From: Janusz Dobrowolski Date: Tue, 25 Nov 2008 15:13:29 +0000 (+0000) Subject: Bug [0000084] Low inventory items not marked properly. X-Git-Tag: 2.3-final~1375 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1efe6a0bdbe084dab6dda9c04c052f3c3372c52d;p=fa-stable.git Bug [0000084] Low inventory items not marked properly. --- 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;