From b5387019dcb9ac2dc7d5a0cfa1c2c7744eb19e9c Mon Sep 17 00:00:00 2001 From: Aleksa Vujicic Date: Thu, 19 Jan 2012 15:37:06 +1300 Subject: [PATCH 17/20] Bug 7129: Added a sprintf to format the actual cost. --- acqui/orderreceive.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 753071d..3c38bf5 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -160,8 +160,8 @@ if ( $count == 1 ) { quantityreceivedplus1 => @$results[0]->{'quantityreceived'} + 1, quantityreceived => @$results[0]->{'quantityreceived'}, rrp => @$results[0]->{'rrp'}, - ecost => @$results[0]->{'ecost'}, - unitprice => @$results[0]->{'unitprice'}, + ecost => sprintf( "%.2f",@$results[0]->{'ecost'}), + unitprice => sprintf( "%.2f",@$results[0]->{'unitprice'}), memberfirstname => $member->{firstname} || "", membersurname => $member->{surname} || "", invoice => $invoice, -- 1.7.5.4