! -> Note
$ -> Affected files
+25-Nov-2009 Joe Hunt/Tom Hallman
+# Fixed so total amount cannot be 0 in Bank Payments/Deposits
+$ /gl/gl_bank.php
+
21-Nov-2009 Janusz Dobrowolski
# Fixed bug [0000178] data error in supplier allocations
$ /includes/ui/allocation_cart.inc
$input_error = 1;
}
+ if ($_SESSION['pay_items']->gl_items_total() == 0.0) {
+ display_error(_("The total bank amount cannot be 0."));
+ set_focus('code_id');
+ $input_error = 1;
+ }
+
if (!$Refs->is_valid($_POST['ref']))
{
display_error( _("You must enter a reference."));