From a0ed4689969f7ad3d986a3c2e060f8d4e962aed3 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 6 Feb 2010 19:04:09 +0000 Subject: [PATCH] Removed 0 zero quantity lines from DN and SI. --- reporting/rep107.php | 3 +++ reporting/rep110.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/reporting/rep107.php b/reporting/rep107.php index 54aefe04..e3bd2065 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -113,6 +113,9 @@ function print_invoices() $SubTotal = 0; while ($myrow2=db_fetch($result)) { + if ($myrow2["quantity"] == 0) + continue; + $Net = round2($sign * ((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]), user_price_dec()); $SubTotal += $Net; diff --git a/reporting/rep110.php b/reporting/rep110.php index 5afa8b82..31169780 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -105,6 +105,9 @@ function print_deliveries() $SubTotal = 0; while ($myrow2=db_fetch($result)) { + if ($myrow2["quantity"] == 0) + continue; + $Net = round2(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]), user_price_dec()); $SubTotal += $Net; -- 2.30.2