From 758eda4e8cef6af76516199636f64415150b6da3 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 22 Jan 2012 09:23:07 +0100 Subject: [PATCH] 0001307: Insufficent quantities "marker" use wrong date in Sales Order --- sales/includes/ui/sales_order_ui.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/includes/ui/sales_order_ui.inc b/sales/includes/ui/sales_order_ui.inc index efe856f2..841294de 100644 --- a/sales/includes/ui/sales_order_ui.inc +++ b/sales/includes/ui/sales_order_ui.inc @@ -166,7 +166,7 @@ function display_order_summary($title, &$order, $editable_items=false) { if (!$SysPrefs->allow_negative_stock() && is_inventory_item($stock_item->stock_id)) { $qoh = get_qoh_on_date($stock_item->stock_id, - $_POST['Location'], $_POST['OrderDate']); + $_POST['Location'], $_POST['delivery_date']); if ($stock_item->qty_dispatched > $qoh) { // oops, we don't have enough of one of the component items -- 2.30.2