X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep110.php;h=3116978072c9c6c8fdb80dd29ba6ee6291423d01;hb=af40aba36932ab3dbe30b30394ebfa3762be34f6;hp=a8fdbc4a6caae71abf175ab090c49b5b6d9d4ac8;hpb=08e465dd87f4929fcd07ba944c4451bc3437f2b3;p=fa-stable.git diff --git a/reporting/rep110.php b/reporting/rep110.php index a8fdbc4a..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; @@ -187,6 +190,12 @@ function print_deliveries() $rep->Font('bold'); $rep->TextCol(3, 6, $doc_TOTAL_DELIVERY, - 2); $rep->TextCol(6, 7, $DisplayTotal, -2); + $words = price_in_words($myrow['Total'], ST_CUSTDELIVERY); + if ($words != "") + { + $rep->NewLine(1); + $rep->TextCol(1, 7, $myrow['curr_code'] . ": " . $words, - 2); + } $rep->Font(); } if ($email == 1)