X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=038f50857d60e409647be029c6f4dbfb2ef23e15;hb=b55f02cae98917881b488c3ac02392d0419deed5;hp=7cea70211027571f904ec925e441338d0a999a41;hpb=b2c3e28bed892d30cb24e8dd766f1f0b39146cb2;p=fa-stable.git diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 7cea7021..038f5085 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -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);