Bug 7129: Added a sprintf to format the actual cost.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Rebased to current master, please test.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Ian Walls <koha.sekjal@gmail.com>

QA note: changed call to use $order instead of @$results[0], for consistency
with surrounding variables

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Aleksa Vujicic 2012-01-19 15:37:06 +13:00 committed by Paul Poulain
parent f5974e278b
commit f2ca89b30e
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ if ( $count == 1 ) {
quantityreceivedplus1 => $order->{'quantityreceived'} + 1,
quantityreceived => $order->{'quantityreceived'},
rrp => $order->{'rrp'},
ecost => $order->{'ecost'},
unitprice => $order->{'unitprice'},
ecost => sprintf( "%.2f",$order->{'ecost'}),
unitprice => sprintf( "%.2f",$order->{'unitprice'}),
memberfirstname => $member->{firstname} || "",
membersurname => $member->{surname} || "",
invoice => $invoice,