From: Janusz Dobrowolski Date: Wed, 23 Mar 2011 17:05:18 +0000 (+0100) Subject: Fixed double quantity check in customer_invoice.php X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6f0dc0c37611547dc9f19519c6a169c2cfec2e25;p=fa-stable.git Fixed double quantity check in customer_invoice.php --- diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 287c6170..ee15814a 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -147,7 +147,7 @@ if ( (isset($_GET['DeliveryNumber']) && ($_GET['DeliveryNumber'] > 0) ) end_page(); exit; -} elseif (!check_quantities()) { +} elseif (!isset($_POST['process_invoice']) && !check_quantities()) { display_error(_("Selected quantity cannot be less than quantity credited nor more than quantity not invoiced yet.")); } if (isset($_POST['Update'])) {