Reimplemented for 3.8.x: Added a sprintf to format the actual cost
---
 acqui/orderreceive.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl
index 2b59698..7203d2d 100755
--- a/acqui/orderreceive.pl
+++ b/acqui/orderreceive.pl
@@ -162,8 +162,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",$order->{'ecost'}),
+        unitprice             => sprintf( "%.2f",$order->{'unitprice'}),
         memberfirstname       => $member->{firstname} || "",
         membersurname         => $member->{surname} || "",
         invoice               => $invoice,
-- 
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to