Bug 28924: (QA follow-up): Remove unnecessary template method
Sponsored-by: Cuyahoga County Public Library <https://cuyahogalibrary.org/> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
08328a5d3a
commit
132b22bbfa
4 changed files with 4 additions and 11 deletions
|
@ -45,12 +45,6 @@ sub can_any_reset_password {
|
||||||
: 0;
|
: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub GetPatronCharges {
|
|
||||||
my ( $self, $params ) = @_;
|
|
||||||
my $charges = Koha::Patron->is_patron_inside_charge_limits({ borrowernumber => $params });
|
|
||||||
return $charges->{noissuescharge};
|
|
||||||
}
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[% USE Price %]
|
[% USE Price %]
|
||||||
[% USE Categories %]
|
[% USE Categories %]
|
||||||
[% SET NoIssuesCharge = Categories.GetPatronCharges(borrowernumber) %]
|
[% IF NoIssuesCharge and NoIssuesCharge > 0 %]
|
||||||
[% IF NoIssuesCharge.charge and NoIssuesCharge.charge > 0 %]
|
|
||||||
<li>
|
<li>
|
||||||
<span class="circ-hlt">Charges:</span>
|
<span class="circ-hlt">Charges:</span>
|
||||||
<span>Patron has outstanding charges of [% NoIssuesCharge.charge | $Price %].</span>
|
<span>Patron has outstanding charges of [% NoIssuesCharge | $Price %].</span>
|
||||||
[% IF !Koha.Preference('AllowFineOverride') && NoIssuesCharge.limit && NoIssuesCharge.overlimit %]
|
[% IF !Koha.Preference('AllowFineOverride') && NoIssuesCharge.limit && NoIssuesCharge.overlimit %]
|
||||||
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
|
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF ( charges ) %]
|
[% IF ( charges ) %]
|
||||||
[% INCLUDE 'blocked-fines.inc' borrowernumber = patron.borrowernumber %]
|
[% INCLUDE 'blocked-fines.inc' NoIssuesCharge = chargesamount %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF ( charges_guarantors_guarantees ) %]
|
[% IF ( charges_guarantors_guarantees ) %]
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="dialog alert">
|
<div class="dialog alert">
|
||||||
Cannot check out!
|
Cannot check out!
|
||||||
[% IF ( charges ) %]
|
[% IF ( charges ) %]
|
||||||
[% INCLUDE 'blocked-fines.inc' borrowernumber = patron.borrowernumber %]
|
[% INCLUDE 'blocked-fines.inc' NoIssuesCharge = chargesamount %]
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF ( charges_guarantors_guarantees ) %]
|
[% IF ( charges_guarantors_guarantees ) %]
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue