Bugzilla – Attachment 13735 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 [3.8.x] actual cost showing too many zeros
Bug-7129-38x-actual-cost-showing-too-many-zeros.patch (text/plain), 1.22 KB, created by
Owen Leonard
on 2012-11-28 15:05:00 UTC
(
hide
)
Description:
Bug 7129 [3.8.x] actual cost showing too many zeros
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-11-28 15:05:00 UTC
Size:
1.22 KB
patch
obsolete
>From 0d11b348885ff04f3223faa7adc58d8a418b9dae Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 28 Nov 2012 10:02:35 -0500 >Subject: [PATCH] Bug 7129 [3.8.x] actual cost showing too many zeros >Content-Type: text/plain; charset="utf-8" > >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
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