Bugzilla – Attachment 10300 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]
[PASSED QA] Bug 7129: Added a sprintf to format the actual cost.
PASSED-QA-Bug-7129-Added-a-sprintf-to-format-the-a.patch (text/plain), 1.40 KB, created by
Ian Walls
on 2012-06-15 15:15:47 UTC
(
hide
)
Description:
[PASSED QA] Bug 7129: Added a sprintf to format the actual cost.
Filename:
MIME Type:
Creator:
Ian Walls
Created:
2012-06-15 15:15:47 UTC
Size:
1.40 KB
patch
obsolete
>From ff160526cd8bb892626ec2d97858606b4004dc21 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] [PASSED QA] 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. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Ian Walls <koha.sekjal@gmail.com> > >QA note: changed call to use $order instead of @$results[0], for consistency >with surrounding variables >--- > acqui/orderreceive.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl >index 1ea0bd1..85168d5 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",$order->{'ecost'}), >+ unitprice => sprintf( "%.2f",$order->{'unitprice'}), > memberfirstname => $member->{firstname} || "", > membersurname => $member->{surname} || "", > invoice => $invoice, >-- >1.7.0.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