X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fcustomer_delivery.php;h=3c275dbbf9aeeab2ce0148491699d1633209fea0;hb=b6af4ea4c99734cfd051395289107bbba5a405e9;hp=8e5da8e8b8efa69c67045591a3fe1cb6a6fe2b02;hpb=f6857ddce763542393996620848daa7ce519842d;p=fa-stable.git diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index 8e5da8e8..3c275dbb 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -366,13 +366,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;