Fixed double quantity check in customer_invoice.php
[fa-stable.git] / sales / customer_invoice.php
index 287c61709328cb1adc7aa2f570326a5174229358..ee15814a7e33eafc26d11ca39d6d7cf2be7bfb49 100644 (file)
@@ -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'])) {