[Frontaccounting-cvs_updates] /hg/p/frontaccounting/mercurial: We must always test for stock a...
Brought to you by:
frontaccounting,
itronics
From: FrontAccounting <fro...@us...> - 2014-09-19 00:10:56
|
details: http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/frontaccounting/hg/p/frontaccounting/mercurial/rev/f6a7525c1206 changeset: 3414:f6a7525c1206 user: Joe date: Fri Sep 19 02:04:30 2014 +0200 description: We must always test for stock availability by todays date. diffstat: sales/sales_order_entry.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r f9923fded32c -r f6a7525c1206 sales/sales_order_entry.php --- a/sales/sales_order_entry.php Wed Sep 17 11:04:23 2014 +0200 +++ b/sales/sales_order_entry.php Fri Sep 19 02:04:30 2014 +0200 @@ -509,7 +509,7 @@ elseif ($is_inventory_item && $_SESSION['Items']->trans_type!=ST_SALESORDER && $_SESSION['Items']->trans_type!=ST_SALESQUOTE && !$SysPrefs->allow_negative_stock()) { - $qoh = get_qoh_on_date($_POST['stock_id'], $_POST['Location'], $_POST['OrderDate']); + $qoh = get_qoh_on_date($_POST['stock_id'], $_POST['Location'], null); // Of course we must always test for stock availability by todays date. if (input_num('qty') > $qoh) { $stock = get_item($_POST['stock_id']); |