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=dd4457f18e30a9f12a9954a2022c803119a6890a;p=textcart.git Fixed double quantity check in customer_invoice.php --- diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index 287c617..ee15814 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'])) {