From: Joe Hunt Date: Sun, 22 Jan 2012 22:23:51 +0000 (+0100) Subject: 0001309: Insufficient Quantities "Red Marker" doesn't take into account dispatched... X-Git-Tag: 2.3-final~495 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1188ac04a620a54d238454ecf9107dd5e98857d2;p=fa-stable.git 0001309: Insufficient Quantities "Red Marker" doesn't take into account dispatched quantity --- diff --git a/sales/includes/ui/sales_order_ui.inc b/sales/includes/ui/sales_order_ui.inc index 841294de..27242928 100644 --- a/sales/includes/ui/sales_order_ui.inc +++ b/sales/includes/ui/sales_order_ui.inc @@ -167,7 +167,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['delivery_date']); - if ($stock_item->qty_dispatched > $qoh) + if (($stock_item->qty_dispatched -$stock_item->qty_done) > $qoh) { // oops, we don't have enough of one of the component items start_row("class='stockmankobg'");