Bugzilla – Attachment 14686 Details for
Bug 9062
Tax and discount should be formatted the same
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9062 Fix format for discount rate for vendors
SIGNED-OFF-Bug-9062-Fix-format-for-discount-rate-f.patch (text/plain), 2.15 KB, created by
Katrin Fischer
on 2013-01-17 20:03:23 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9062 Fix format for discount rate for vendors
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-01-17 20:03:23 UTC
Size:
2.15 KB
patch
obsolete
>From f1c562672a1acd227ef7fd46c9b42bab168e4624 Mon Sep 17 00:00:00 2001 >From: Hugh Davenport <hugh@davenport.net.nz> >Date: Thu, 17 Jan 2013 10:07:59 +1300 >Subject: [PATCH] [SIGNED-OFF] Bug 9062 Fix format for discount rate for > vendors > >On the vendor display and edit screens, the tax rate information was >formatted to 1 decimal point, while the discount rate was not. > >This patch adds a format string to the discount information so that >it is formatted in the same way. > >Signed-off-by: Hugh Davenport <hugh@davenport.net.nz> >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Makes display on vendor detail page more consistent and >passes all tests. >--- > .../prog/en/modules/acqui/supplier.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >index 201c080..bf5d367 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >@@ -176,7 +176,7 @@ if (f.company.value == "") { > [% END %] > <ol> > <li><label for="discount">Discount</label> >- <input type="text" size="6" id="discount" name="discount" value="[% discount %]" />%</li> >+ <input type="text" size="6" id="discount" name="discount" value="[% discount | format ("%.1f") %]" />%</li> > <li> > <label for="deliverytime">Delivery time</label> > <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime %]" /> days >@@ -238,7 +238,7 @@ if (f.company.value == "") { > <p><strong>Invoice item price includes tax: </strong> > [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %] > <p><strong>Discount: </strong> >- [% discount %] %</p> >+ [% discount | format("%.1f") %] %</p> > <p><strong>Tax rate: </strong> > [% 0 + gstrate * 100 | format("%.1f") %]%</p> > [% IF deliverytime.defined %] >-- >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 9062
:
13407
|
13408
|
14641
|
14642
|
14643
|
14644
| 14686 |
14687