X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=0806b7cf5d48e5373d0dcc0b957ffab6013e67bc;hb=23ec3ca30beddc8541b222b5e2fe3dd816201933;hp=038f50857d60e409647be029c6f4dbfb2ef23e15;hpb=6308abaf63ef43275af0b5300d39c03232e37d7a;p=fa-stable.git diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 038f5085..0806b7cf 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:") . @@ -203,7 +203,6 @@ function check_data() _("Quantity On Hand") . " = " . number_format2($qoh, get_qty_dec($stock['stock_id']))); return false; } - return true; } } }