From: Joe Hunt Date: Sun, 29 Apr 2012 18:32:44 +0000 (+0200) Subject: 0001561: Supplier Credit Notes rasies false error about QOH X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ff7e7e72ee892e20718ae21d0c421cc8d20df5b8;p=textcart.git 0001561: Supplier Credit Notes rasies false error about QOH --- 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:") .