Skip to content

Commit

Permalink
Rerun of Sales Orders Status with zero decimals in amounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-hunt committed Jan 29, 2018
1 parent 5b56b67 commit 73f2471
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reporting/rep105.php
Expand Up @@ -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);
Expand All @@ -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'];
Expand All @@ -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();
}
Expand Down

1 comment on commit 73f2471

@apmuthu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.