Bugzilla – Attachment 7305 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]
Added a sprintf to format the actual cost.
0017-Bug-7129-Added-a-sprintf-to-format-the-actual-cost.patch (text/plain), 1.14 KB, created by
Aleksa Vujicic
on 2012-01-24 00:38:49 UTC
(
hide
)
Description:
Added a sprintf to format the actual cost.
Filename:
MIME Type:
Creator:
Aleksa Vujicic
Created:
2012-01-24 00:38:49 UTC
Size:
1.14 KB
patch
obsolete
>From b5387019dcb9ac2dc7d5a0cfa1c2c7744eb19e9c 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 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 >
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