From: Joe Hunt Date: Mon, 29 Jan 2018 19:55:33 +0000 (+0100) Subject: Rerun of Sales Orders Status with zero decimals in amounts. X-Git-Tag: v2.4.4~19 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=73f247196745ed24e9258d2d8535c6630bc07a4e Rerun of Sales Orders Status with zero decimals in amounts. --- 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(); }