From 2f918ab38d22047a8cd180aa16248f41ffc10329 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 Signed-off-by: Mikael Olangcay Brisebois Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens (cherry picked from commit c37ded96714409cd572c79f3c9cd69694e0e71de) Signed-off-by: Martin Renvoize (cherry picked from commit 78e617b201402b5e551ba79131b362b2ef7f0bee) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 5 ++++- 1 file changed, 4 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 1badd9adab..2dbf93b5c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -4,6 +4,9 @@ [% USE Branches %] [% USE Categories %] [% USE ItemTypes %] +[% USE AuthorisedValues %] +[% USE Price %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS ( multi_hold ) %] Koha › Circulation › Holds › Place a hold on [% title |html %] @@ -346,7 +349,7 @@ function checkMultiHold() { [% END %] [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] -
  • [% patron.firstname %] [% patron.surname %]: 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.39.5