Bugzilla – Attachment 193798 Details for
Bug 39658
Allow definition of non-hierarchical linked patron accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39658: (follow-up) block checkout when linked accounts over charge limit
Bug-39658-follow-up-block-checkout-when-linked-acc.patch (text/plain), 3.48 KB, created by
Andrew Fuerste-Henry
on 2026-02-24 17:22:55 UTC
(
hide
)
Description:
Bug 39658: (follow-up) block checkout when linked accounts over charge limit
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2026-02-24 17:22:55 UTC
Size:
3.48 KB
patch
obsolete
>From cddfc04c35bd76d1043b787ef2bd756b8661a082 Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Thu, 19 Feb 2026 14:00:42 +0000 >Subject: [PATCH] Bug 39658: (follow-up) block checkout when linked accounts > over charge limit > >When AllowFineOverride is disabled and NoIssuesChargeLinkedAccounts >is exceeded, hide the barcode field and show 'Cannot check out'. > >Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org> >--- > circ/circulation.pl | 12 ++++++++++++ > .../prog/en/includes/patron_messages.inc | 11 ++++++++++- > 2 files changed, 22 insertions(+), 1 deletion(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 1bdd47321ae..0d13a4f3269 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -695,6 +695,18 @@ if ($patron) { > } > } > >+ # Check the debt of this patron's linked accounts >+ my $no_issues_charge_linked = $patron_charge_limits->{NoIssuesChargeLinkedAccounts}->{limit}; >+ if ( defined $no_issues_charge_linked ) { >+ if ( $patron_charge_limits->{NoIssuesChargeLinkedAccounts}->{overlimit} ) { >+ $template->param( >+ charges_linked_accounts => 1, >+ chargesamount_linked_accounts => $patron_charge_limits->{NoIssuesChargeLinkedAccounts}->{charge}, >+ ); >+ $noissues = 1 unless C4::Context->preference("allowfineoverride"); >+ } >+ } >+ > if ( $patron->has_overdues ) { > $template->param( odues => 1 ); > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >index dbabcef9aa4..2936efabf52 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -5,7 +5,7 @@ > [% SET return_claims = patron.return_claims %] > [% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] > >-[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || limited_category || charges || charges_guarantors_guarantees || charges_guarantees || credits || patron.account_locked ) %] >+[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || limited_category || charges || charges_guarantors_guarantees || charges_guarantees || charges_linked_accounts || credits || patron.account_locked ) %] > <h3>Attention</h3> > <ul> > [% IF ( has_modifications ) %] >@@ -166,6 +166,15 @@ > </li> > [% END %] > >+ [% IF ( charges_linked_accounts ) %] >+ <li class="charges_linked_accounts"> >+ <span class="circ-hlt">Charges:</span> Patron's linked accounts collectively owe [% chargesamount_linked_accounts | $Price %]. >+ [% IF noissues %] >+ <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> >+ [% END %] >+ </li> >+ [% END %] >+ > [% IF ( credits ) %] > <li class="credits"><span class="circ-hlt">Credits:</span> Patron has outstanding credits [% IF ( creditsamount ) %]of <span class="credit"><strong>[% creditsamount | $Price %]</strong></span>[% END %]</li> > [% END %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39658
:
193344
|
193345
|
193346
|
193347
|
193348
|
193349
|
193350
|
193351
|
193352
|
193353
|
193354
|
193355
|
193356
|
193357
|
193358
|
193359
|
193462
|
193463
|
193464
|
193465
|
193466
|
193467
|
193468
|
193469
|
193470
|
193471
|
193472
|
193473
|
193474
|
193475
|
193476
|
193477
|
193478
|
193479
|
193781
|
193782
|
193783
|
193784
|
193785
|
193786
|
193787
|
193788
|
193789
|
193790
|
193791
|
193792
|
193793
|
193794
|
193795
|
193796
|
193797
|
193798
|
193800
|
193801
|
193802
|
193803
|
193804
|
193805
|
193806
|
193807
|
193808
|
193809
|
193810
|
193811
|
193812
|
193813
|
193814
|
193815
|
193816
|
193817