X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep107.php;h=e3bd2065207de7463d6ea976ae327143362d651c;hb=3a722558dc5a513ee403628604a6f44e8bd44e7a;hp=54aefe044b6a0eae4b6078fa2da5fd17be5113bb;hpb=5f06887dedd4d14701864fb72994d7e20352086d;p=fa-stable.git 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;