[0000641] Supplier Credit Give Error, [0000663] Work Order entry form does not show...
[fa-stable.git] / purchasing / supplier_credit.php
index 7cea70211027571f904ec925e441338d0a999a41..038f50857d60e409647be029c6f4dbfb2ef23e15 100644 (file)
@@ -194,7 +194,7 @@ function check_data()
                foreach ($_SESSION['supp_trans']->grn_items as $n => $item) {
                        if (is_inventory_item($item->item_code))
                        {
-                               $qoh = get_qoh_on_date($item->item_code, $item->location, $_SESSION['supp_trans']->tran_date);
+                               $qoh = get_qoh_on_date($item->item_code, null, $_SESSION['supp_trans']->tran_date);
                                if ($item->qty_recd > $qoh)
                                {
                                        $stock = get_item($item->item_code);