From 1efe6a0bdbe084dab6dda9c04c052f3c3372c52d Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 25 Nov 2008 15:13:29 +0000 Subject: [PATCH] Bug [0000084] Low inventory items not marked properly. --- sales/customer_delivery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index 4b6726ef..6de7f08a 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -368,13 +368,13 @@ $th = array(_("Item Code"), _("Item Description"), _("Ordered"), _("Units"), _(" table_header($th); $k = 0; $has_marked = false; -$show_qoh = true; foreach ($_SESSION['Items']->line_items as $line=>$ln_itm) { if ($ln_itm->quantity==$ln_itm->qty_done) { continue; //this line is fully delivered } // if it's a non-stock item (eg. service) don't show qoh + $show_qoh = true; if (sys_prefs::allow_negative_stock() || !has_stock_holding($ln_itm->mb_flag) || $ln_itm->qty_dispatched == 0) { $show_qoh = false; -- 2.30.2