X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=3510dbd44c864e8a28d43a02170c8752063f71b3;hb=6152038f836d8e467209398169b65997783ac8a9;hp=baf7f8857f28c2245873b9f3d5e8c19a8e8c9614;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index baf7f885..3510dbd4 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -125,6 +125,12 @@ if (isset($_POST['Process'])) $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."));