From 55cf86e2309b0a33660d7f7011becf23035a7d5e Mon Sep 17 00:00:00 2001 From: Hugh Davenport 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 Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Makes display on vendor detail page more consistent and passes all tests. Signed-off-by: Jared Camins-Esakov --- 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 201c08043b..bf5d367b7e 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 %]
  1. - %
  2. + %
  3. days @@ -238,7 +238,7 @@ if (f.company.value == "") {

    Invoice item price includes tax: [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]

    [% END %]

    Discount: - [% discount %] %

    + [% discount | format("%.1f") %] %

    Tax rate: [% 0 + gstrate * 100 | format("%.1f") %]%

    [% IF deliverytime.defined %] -- 2.39.5