X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep105.php;h=584791ac52b6877602e51c694a9a239d50fc7358;hb=5d8f36d15260bfd9215315935af86b7d96065489;hp=daa0a40428261789330c4eedc171587a4ca33ca4;hpb=5b56b67cfe574ef2d836a038d98a79914ff7a7a7;p=fa-stable.git diff --git a/reporting/rep105.php b/reporting/rep105.php index daa0a404..584791ac 100644 --- a/reporting/rep105.php +++ b/reporting/rep105.php @@ -135,7 +135,6 @@ function print_order_status_list() $grand_total = 0; $result = GetSalesOrders($from, $to, $category, $location, $backorder); - while ($myrow=db_fetch($result)) { $rep->NewLine(0, 2, false, $orderno); @@ -154,7 +153,7 @@ function print_order_status_list() $rep->DateCol(5, 6, $myrow['delivery_date'], true); $rep->TextCol(6, 7, $myrow['from_stk_loc']); $rep->NewLine(1); - $rep->TextCol(6, 7, number_format2($myrow['total'], $dec)); + $rep->AmountCol(6, 7, $myrow['total']); $rep->NewLine(1); $grand_total += $myrow['total']; $orderno = $myrow['order_no']; @@ -175,8 +174,8 @@ function print_order_status_list() } $rep->Line($rep->row); $rep->NewLine(); - $rep->TextCol(1, 6, _("Total")); - $rep->TextCol(6, 7, number_format2($grand_total, $dec)); + $rep->TextCol(1, 6, _("Grand Total")); + $rep->AmountCol(6, 7, $grand_total); $rep->Line($rep->row - 5); $rep->End(); }