From ff160526cd8bb892626ec2d97858606b4004dc21 Mon Sep 17 00:00:00 2001 From: Aleksa Vujicic Date: Thu, 19 Jan 2012 15:37:06 +1300 Subject: [PATCH] [PASSED QA] 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 --- acqui/orderreceive.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 1ea0bd1..85168d5 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, -- 1.7.0.4