X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=fd86743b7be4167cefd825e9608ef89b8bb95202;hb=d1de4b72e5fa6b5952c75b7c79479935bdd0d9d8;hp=d3cef151f0c9717f509b2785006930d5cec14b40;hpb=4888cf51abf175a0ed4645e6adb2a326ce7e0e5f;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index d3cef151..fd86743b 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -283,7 +283,8 @@ function check_item_data($n) } } - if ($SysPrefs->check_qty_charged_vs_del_qty == true && ($_POST['qty_recd'.$n] != $_POST['prev_quantity_inv'.$n])) + if ($SysPrefs->check_qty_charged_vs_del_qty == true && ($_POST['qty_recd'.$n] != $_POST['prev_quantity_inv'.$n]) + && !empty($_POST['prev_quantity_inv'.$n])) { if (input_num('this_quantity_inv'.$n) / ($_POST['qty_recd'.$n] - $_POST['prev_quantity_inv'.$n]) > (1+ ($margin / 100)))