From 1cf2143a60439c8a2b46e58108b6f0572312c391 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 28 Jun 2023 11:15:51 +0300 Subject: [PATCH 6/6] Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index a7543ad2c4..7c88975f2c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -929,8 +929,8 @@ [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %] var amountlimit = "[% Koha.Preference('FineNoRenewals') | html %]"; - var fines = "[% fines | html %]"; - var MSG_CONFRIM_RENEW = _("The patron has a debt of %s.\n Are you sure you want to renew checkout(s)?").format(fines); + var fines = "[% fines | $Price %]"; + var MSG_CONFRIM_RENEW = _("The patron has a debt of %s\nAre you sure you want to renew checkout(s)?").format(fines); // On-site checkout function toggle_onsite_checkout(){ -- 2.34.1