Removed 0 zero quantity lines from DN and SI.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 6 Feb 2010 19:04:09 +0000 (19:04 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 6 Feb 2010 19:04:09 +0000 (19:04 +0000)
reporting/rep107.php
reporting/rep110.php

index 54aefe044b6a0eae4b6078fa2da5fd17be5113bb..e3bd2065207de7463d6ea976ae327143362d651c 100644 (file)
@@ -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;
index 5afa8b825f5be99aa0791c89253ad4e5263ad54e..3116978072c9c6c8fdb80dd29ba6ee6291423d01 100644 (file)
@@ -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;