From f2ca89b30e8d48b987782ff3f9f7c8e8240b87a4 Mon Sep 17 00:00:00 2001 From: Aleksa Vujicic Date: Thu, 19 Jan 2012 15:37:06 +1300 Subject: [PATCH] Bug 7129: Added a sprintf to format the actual cost. Signed-off-by: Katrin Fischer Rebased to current master, please test. Signed-off-by: Kyle M Hall Signed-off-by: Ian Walls QA note: changed call to use $order instead of @$results[0], for consistency with surrounding variables Signed-off-by: Paul Poulain --- acqui/orderreceive.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 1ea0bd1bca..85168d56d9 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -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, -- 2.39.5