From 4306c587694be1c6a0c9ff00c87f2dc4393f22ce Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 13 Feb 2025 13:09:49 +0000 Subject: [PATCH] Bug 38924: Display quota used at checkout Use the quota relation added to Koha::Checkout to display an info alert message that quota allocation has been used by the checkout that just took place Signed-off-by: Jacob O'Mara --- .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 9 +++++++-- 1 file changed, 7 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 dd11245aebd..764a5634b23 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -137,6 +137,11 @@
System preference 'ChildNeedsGuarantor' is enabled and this patron does not have a guarantor.
[% END %] + [% IF issue && issue.quota %] + [% SET quota = issue.quota %] +
Usage recorded against[% IF quota.patron_id != issue.borrowernumber %][% INCLUDE 'patron-title.inc' patron = quota.patron no_cardnumber = 1 %][% END %] [% quota.description | html %] quota.
+ [% END %] + [% IF ( NEEDSCONFIRMATION ) %]
[% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %] @@ -155,7 +160,7 @@ [% END %] - [%IF ( QUOTA_EXCEEDED ) %] + [% IF ( QUOTA_EXCEEDED ) %]
  • Quota Exceeded. Available: [% QUOTA_EXCEEDED.available | html %] / [% QUOTA_EXCEEDED.total | html %]. [% IF CAN_user_circulate_force_checkout %] @@ -680,7 +685,7 @@
  • Age restriction [% AGE_RESTRICTION | html %].
  • [% END %] - [%IF ( QUOTA_EXCEEDED ) %] + [% IF ( QUOTA_EXCEEDED ) %]
  • Quota Exceeded. Available: [% QUOTA_EXCEEDED.available | html %] / [% QUOTA_EXCEEDED.total | html %].
  • [% END %] -- 2.39.5