Bugzilla – Attachment 83436 Details for
Bug 22037
Regression: guarantor no longer blocked (debarred) if child is over limit, when checking out via SIP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22037: Block SIP checkout if guarantees have debt
Bug-22037-Block-SIP-checkout-if-guarantees-have-de.patch (text/plain), 989 bytes, created by
Jonathan Druart
on 2018-12-20 22:42:45 UTC
(
hide
)
Description:
Bug 22037: Block SIP checkout if guarantees have debt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-20 22:42:45 UTC
Size:
989 bytes
patch
obsolete
>From 4f7e4ce0370bc06049998b7f5892b8f207e44e32 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 20 Dec 2018 19:39:34 -0300 >Subject: [PATCH] Bug 22037: Block SIP checkout if guarantees have debt > >--- > C4/SIP/ILS/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm >index 34866508e3..07b6d3f5ce 100644 >--- a/C4/SIP/ILS/Patron.pm >+++ b/C4/SIP/ILS/Patron.pm >@@ -65,7 +65,7 @@ sub new { > $dob and $dob =~ s/-//g; # YYYYMMDD > my $dexpiry = $kp->{dateexpiry}; > $dexpiry and $dexpiry =~ s/-//g; # YYYYMMDD >- my $fines_amount = $patron->account->balance; >+ my $fines_amount = $flags->{CHARGES}->{amount}; # This "amount" is the negative balance or the one of the guarantees > $fines_amount = ($fines_amount and $fines_amount > 0) ? $fines_amount : 0; > my $fee_limit = _fee_limit(); > my $fine_blocked = $fines_amount > $fee_limit; >-- >2.11.0
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 22037
:
83436
|
91229
|
92434
|
92770
|
92771
|
92772