Bug 33055: (bug 32624 follow-up) Don't send a screen message if not blocked
To test: 0 - Apply first patch 1 - prove -v t/db_dependent/SIP/Patron.t 2 - It fails 3 - Apply second patch 4 - prove -v t/db_dependent/SIP/Patron.t 5 - It passes! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit6c5c35aa32) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> (cherry picked from commita076542019) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
1bf178a77e
commit
69cfbbabe3
|
|
@ -90,11 +90,11 @@ sub new {
|
|||
} elsif ( $noissueschargeguarantorswithguarantees ) {
|
||||
$fines_amount += $patron->relationships_debt({ include_guarantors => 1, only_this_guarantor => 0, include_this_patron => 0 });
|
||||
$fine_blocked ||= $fines_amount > $noissueschargeguarantorswithguarantees;
|
||||
$fines_msg .= " -- " . "Patron blocked by fines ($fines_amount) on related accounts";
|
||||
$fines_msg .= " -- " . "Patron blocked by fines ($fines_amount) on related accounts" if $fine_blocked;
|
||||
} elsif ( $noissueschargeguarantees ) {
|
||||
$fines_amount += $patron->relationships_debt({ include_guarantors => 0, only_this_guarantor => 0, include_this_patron => 0 });
|
||||
$fine_blocked ||= $fines_amount > $noissueschargeguarantees;
|
||||
$fines_msg .= " -- " . "Patron blocked by fines ($fines_amount) on guaranteed accounts";
|
||||
$fines_msg .= " -- " . "Patron blocked by fines ($fines_amount) on guaranteed accounts" if $fine_blocked;
|
||||
}
|
||||
|
||||
my $circ_blocked =( C4::Context->preference('OverduesBlockCirc') ne "noblock" && defined $flags->{ODUES}->{itemlist} ) ? 1 : 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue