From ddc58fcee6ca3f7c4e930389b89ea8f29d00d8cc Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 5 Jan 2019 03:50:36 +0000 Subject: [PATCH] Bug 22111: Format amount shown on place holds when maxoutstanding is reached (staff) Displays amount outstanding correctly when holds are blocked by maxoutstanding. To test: - Check maxoutstanding system preference value - Add a fine to a patron account exceeding maxoutstanding - Try to place a hold for this patron from staff - Verify this message is shown: Patron has outstanding fines: 6.00 - Toggle CurrencyFormat system preference and verify display changes according to setting Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 9ed0bd8..03823ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -6,6 +6,7 @@ [% USE Categories %] [% USE ItemTypes %] [% USE AuthorisedValues %] +[% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS ( multi_hold ) %] @@ -139,7 +140,7 @@ [% END %] [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] -
  • [% patron.firstname | html %] [% patron.surname | html %]: Patron has outstanding fines: [% amount_outstanding | format('%.2f') %]
  • +
  • [% patron.firstname | html %] [% patron.surname | html %]: Patron has outstanding fines: [% amount_outstanding | $Price %]
  • [% END %] [% IF ( diffbranch ) %] -- 2.1.4