Bugzilla – Attachment 15990 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]
[SIGNED-OFF] transitional patch
attachment.cgi?id=15337 (text/plain), 1.64 KB, created by
Mathieu Saby
on 2013-03-08 20:45:20 UTC
(
hide
)
Description:
[SIGNED-OFF] transitional patch
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-03-08 20:45:20 UTC
Size:
1.64 KB
patch
obsolete
>From f89433806df1c8f2543c1c6dcf0f9d890982dab0 Mon Sep 17 00:00:00 2001 >From: Christophe Croullebois <christophe.croullebois@biblibre.com> >Date: Thu, 14 Feb 2013 16:39:14 +0100 >Subject: [SIGNED-OFF] [PATCH 1/1] (MT #11060) correction of a bug due to bz 7129 > >See comments in the patch > >Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >--- > acqui/orderreceive.pl | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl >index f25b5a9..55378b0 100755 >--- a/acqui/orderreceive.pl >+++ b/acqui/orderreceive.pl >@@ -214,7 +214,9 @@ $template->param( > quantityreceived => $order->{'quantityreceived'}, > rrp => sprintf( "%.2f", $rrp ), > ecost => sprintf( "%.2f", $ecost ), >- unitprice => sprintf( "%.2f", $unitprice), >+# unitprice => sprintf( "%.2f", $unitprice), >+# this line due to bz 7129 regardless of the content of $unitprice e.g 0 or '' or any string will return in these cases 0.00 >+# and the 'IF' in the .tt will show 0.00 and not 'ecost' > memberfirstname => $member->{firstname} || "", > membersurname => $member->{surname} || "", > invoiceid => $invoice->{invoiceid}, >@@ -227,6 +229,13 @@ $template->param( > firstnamesuggestedby => $suggestion->{firstnamesuggestedby}, > ); > >+# see the comments up. If $unitprice == 0 we don't create unitprice >+if ( $unitprice != 0) { >+ $template->param( >+ unitprice => sprintf( "%.2f", $unitprice), >+ ); >+} >+ > my $op = $input->param('op'); > if ($op and $op eq 'edit'){ > $template->param(edit => 1); >-- >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