Backport of fixing vertical alignment on date picker icon
[fa-stable.git] / purchasing / supplier_invoice.php
index c9029c3b0bd4fc09778e4c4a842e261730ce3854..c4b91de93164aca359a267a50f7c5bd6f376c1ac 100644 (file)
@@ -260,7 +260,7 @@ function check_item_data($n)
                }
        }
 
-       if ($check_qty_charged_vs_del_qty == True)
+       if ($check_qty_charged_vs_del_qty == true && ($_POST['qty_recd'.$n] != $_POST['prev_quantity_inv'.$n]))
        {
                if (input_num('this_quantity_inv'.$n) / ($_POST['qty_recd'.$n] - $_POST['prev_quantity_inv'.$n]) >
                        (1+ ($margin / 100)))