From cdf09dcdf25f798349854ad2c53bd4692918e8a6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 14 Mar 2018 11:04:50 +0200 Subject: [PATCH] Bug 20395: Change paycollect to use Price formatter Test plan: 1) Apply patch 2) Go to Home -> Patrons -> Patron details (for any patron) 3) Create manual invoice for the patron 4) Pay fines -> Pay -button 5) Check that the currency values look correct 6) Pay fines -> Pay amount -button 7) Check that the currency values look correct 8) Pay fines -> Pay selected -button 9) Check that the currency values look correct 10) Change the CurrencyFormat setting 11) Repeat 2-9 Signed-off-by: Pasi Kallinen --- .../prog/en/modules/members/paycollect.tt | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt index 39df143..56a7321 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -1,5 +1,6 @@ [% USE Koha %] [% USE Branches %] +[% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › Collect fine payment for [% patron.firstname %] [% patron.surname %] @@ -38,7 +39,7 @@
[% IF ( error_over ) %]
- You must pay a value less than or equal to [% total_due | format('%.2f') %]. + You must pay a value less than or equal to [% total_due | $Price %].
[% END %] @@ -66,15 +67,15 @@ Amount outstanding - Total amount payable:[% amountoutstanding | format('%.2f') %] + Total amount payable:[% amountoutstanding | $Price %] [% individual_description %] [% accounttype %] - [% amount | format('%.2f') %] - [% amountoutstanding | format('%.2f') %] + [% amount | $Price %] + [% amountoutstanding | $Price %] @@ -83,7 +84,7 @@
  • - +
  • @@ -112,12 +113,12 @@ Amount Amount outstanding - Total amount outstanding:[% amountoutstanding | format('%.2f') %] + Total amount outstanding:[% amountoutstanding | $Price %] [% description %] [% title %] [% accounttype %] - [% amount | format('%.2f') %] - [% amountoutstanding | format('%.2f') %] + [% amount | $Price %] + [% amountoutstanding | $Price %] @@ -125,7 +126,7 @@
  • - +
  • @@ -145,12 +146,12 @@
    1. Total amount outstanding: - [% total | format('%.2f') %] + [% total | $Price %]
    2. - +
    3. -- 2.7.4