From 6359922847aa9437bccc1d28fd429d5432517e9a Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Aug 2016 11:33:50 +0200 Subject: [PATCH] Bug 17076 - Format fines in patron search results table Format the values in patron search results following syspref CurrencyFormat. To verify: - Search for patrons who have fines or credits - In result table, column 'Fines' does not respect syspref CurrencyFormat (e.g. for FR) To test: - Apply patch - Repeat steps above, verify that fines display as appropriate - Change syspref Currencyformat, verify display Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/members/tables/members_results.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt index cd37507882..afef7088b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt @@ -1,6 +1,7 @@ [% USE To %] [% USE AuthorisedValues %] [% USE KohaDates %] +[% USE Price %] { "sEcho": [% sEcho %], "iTotalRecords": [% iTotalRecords %], @@ -27,7 +28,7 @@ "dt_od_checkouts": "[% IF data.overdues %][% data.overdues %][% ELSE %][% data.overdues %][% END %] / [% data.issues %]", "dt_fines": - "[% IF data.fines < 0 %][% data.fines |html %] [% ELSIF data.fines > 0 %] [% data.fines |html %] [% ELSE %] [% data.fines |html%] [% END %]", + "[% IF data.fines < 0 %][% data.fines | $Price %] [% ELSIF data.fines > 0 %] [% data.fines | $Price %] [% ELSE %] [% data.fines | $Price %] [% END %]", "dt_borrowernotes": "[% data.borrowernotes.replace('\\\\' , '\\\\') |html |html_line_break |collapse %]", "dt_action": -- 2.39.5