From ff7e7e72ee892e20718ae21d0c421cc8d20df5b8 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 29 Apr 2012 20:32:44 +0200 Subject: [PATCH] 0001561: Supplier Credit Notes rasies false error about QOH --- purchasing/supplier_credit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 038f508..4824344 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -195,7 +195,7 @@ function check_data() if (is_inventory_item($item->item_code)) { $qoh = get_qoh_on_date($item->item_code, null, $_SESSION['supp_trans']->tran_date); - if ($item->qty_recd > $qoh) + if ($item->this_quantity_inv > $qoh) { $stock = get_item($item->item_code); display_error(_("The return cannot be processed because there is an insufficient quantity for item:") . -- 2.30.2