Cleanup in supplier_invoice.php (obsolete add_grn_to_trans parameter)
[fa-stable.git] / purchasing / supplier_invoice.php
index b0434e68d3670ebd64b78dfc4125d84007d1d106..b4c7b89e636aa9c022490e4f6f422307b4415567 100644 (file)
@@ -268,19 +268,10 @@ function commit_item_data($n)
 {
        if (check_item_data($n))
        {
-       if (input_num('this_quantity_inv'.$n) >= ($_POST['qty_recd'.$n] - $_POST['prev_quantity_inv'.$n]))
-       {
-               $complete = true;
-       }
-       else
-       {
-               $complete = false;
-       }
-
                $_SESSION['supp_trans']->add_grn_to_trans($n, $_POST['po_detail_item'.$n],
                        $_POST['item_code'.$n], $_POST['item_description'.$n], $_POST['qty_recd'.$n],
                        $_POST['prev_quantity_inv'.$n], input_num('this_quantity_inv'.$n),
-                       $_POST['order_price'.$n], input_num('ChgPrice'.$n), $complete,
+                       $_POST['order_price'.$n], input_num('ChgPrice'.$n),
                        $_POST['std_cost_unit'.$n], "");
        }
 }