Bug [0000084] Low inventory items not marked properly.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 25 Nov 2008 15:13:29 +0000 (15:13 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 25 Nov 2008 15:13:29 +0000 (15:13 +0000)
sales/customer_delivery.php

index 4b6726efa1e21690c87a22a4ecfec0f60827db7f..6de7f08a000768bcdbebce993bb4d27b14376628 100644 (file)
@@ -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;