Bugzilla – Attachment 14645 Details for
Bug 9410
Formatting of the discount field when doing a new order from new empty record is not correct
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 9410 Fix formatting of discount rate
bug-9410-Fix-formatting-of-discount-rate.patch (text/plain), 1.69 KB, created by
Hugh Davenport
on 2013-01-16 23:19:56 UTC
(
hide
)
Description:
bug 9410 Fix formatting of discount rate
Filename:
MIME Type:
Creator:
Hugh Davenport
Created:
2013-01-16 23:19:56 UTC
Size:
1.69 KB
patch
obsolete
>From 97cbfa7c9f401b14a24017bcdd2bb07b57e606e3 Mon Sep 17 00:00:00 2001 >From: Hugh Davenport <hugh@davenport.net.nz> >Date: Thu, 17 Jan 2013 12:11:17 +1300 >Subject: [PATCH] bug 9410 Fix formatting of discount rate > >The formatting for discount doesn't limit the number of decimal points >for the discount rate when creating a new order from an empty record. > >This patch fixes that by limiting it to 2dp > >Signed-off-by: Hugh Davenport <hugh@davenport.net.nz> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index 398a568..095791d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -486,9 +486,9 @@ $(document).ready(function() > [% END %] > [% ELSE %] > [% IF ( orderdiscount ) %] >- <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />% >+ <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount_2dp %]" onchange="updateCosts();" />% > [% ELSE %] >- <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />% >+ <input type="text" size="6" name="discount" id="discount" value="[% discount_2dp %]" onchange="updateCosts();" />% > [% END %] > [% END %] > </li> >-- >1.7.10.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 9410
:
14645
|
15354
|
19792
|
21267