Bugzilla – Attachment 10030 Details for
Bug 7129
actual cost showing too many zeros
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7129: Added a sprintf to format the actual cost.
Bug-7129-Added-a-sprintf-to-format-the-actual-cost.patch (text/plain), 1.20 KB, created by
Katrin Fischer
on 2012-06-09 14:27:14 UTC
(
hide
)
Description:
Bug 7129: Added a sprintf to format the actual cost.
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-06-09 14:27:14 UTC
Size:
1.20 KB
patch
obsolete
>From 2b8e37b1696bd2e7745486396e18994724ec9cd7 Mon Sep 17 00:00:00 2001 >From: Aleksa Vujicic <aleksa@catalyst.net.nz> >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 <Katrin.Fischer.83@web.de> >Rebased to current master, please test. >--- > acqui/orderreceive.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl >index 1ea0bd1..2de67d7 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",@$results[0]->{'ecost'}), >+ unitprice => sprintf( "%.2f",@$results[0]->{'unitprice'}), > memberfirstname => $member->{firstname} || "", > membersurname => $member->{surname} || "", > invoice => $invoice, >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7129
:
6134
|
7305
|
10030
|
10216
|
10300
|
13735
|
15337
|
15990
|
16300