From: Janusz Dobrowolski Date: Sat, 6 Feb 2010 19:04:09 +0000 (+0000) Subject: Removed 0 zero quantity lines from DN and SI. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1824814d2c313b87f6486f25a2a94c8aab3f066c;p=textcart.git Removed 0 zero quantity lines from DN and SI. --- diff --git a/reporting/rep107.php b/reporting/rep107.php index 54aefe0..e3bd206 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 5afa8b8..3116978 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;