From 6f0dc0c37611547dc9f19519c6a169c2cfec2e25 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 23 Mar 2011 18:05:18 +0100 Subject: [PATCH] Fixed double quantity check in customer_invoice.php --- sales/customer_invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.30.2