From f70efb5bfbc9a98af8ba63402ae752b72dd6efed 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 Rebased-by: Victor Grousset/tuxayo --- .../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 4f65855b0c..f372ae5a73 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -138,6 +138,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 %] @@ -156,7 +161,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 %] @@ -681,7 +686,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.50.1