Bugzilla – Attachment 14642 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]
bug 9062 Fix format for discount rate for vendors
bug-9062-Fix-format-for-discount-rate-for-vendors.patch (text/plain), 2.01 KB, created by
Chris Cormack
on 2013-01-16 21:22:21 UTC
(
hide
)
Description:
bug 9062 Fix format for discount rate for vendors
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-01-16 21:22:21 UTC
Size:
2.01 KB
patch
obsolete
>From cd17e5a89f5474496af2f459583a84157c9baf22 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] 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> >--- > koha-tmpl/intranet-tmpl/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.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 9062
:
13407
|
13408
|
14641
|
14642
|
14643
|
14644
|
14686
|
14687