View | Details | Raw Unified | Return to bug 28924
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Categories.pm (+6 lines)
Lines 45-50 sub can_any_reset_password { Link Here
45
        : 0;
45
        : 0;
46
}
46
}
47
47
48
sub GetPatronCharges {
49
    my ( $self, $params ) = @_;
50
    my $charges = Koha::Patron->is_patron_inside_charge_limits({ borrowernumber => $params });
51
    return $charges->{noissuescharge};
52
}
53
48
1;
54
1;
49
55
50
=head1 NAME
56
=head1 NAME
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/blocked-fines.inc (-4 / +5 lines)
Lines 1-10 Link Here
1
[% USE Price %]
1
[% USE Price %]
2
[% SET NoIssuesCharge = Koha.Preference('noissuescharge') %]
2
[% USE Categories %]
3
[% IF fines and fines > 0 %]
3
[% SET NoIssuesCharge = Categories.GetPatronCharges(borrowernumber) %]
4
[% IF NoIssuesCharge.charge and NoIssuesCharge.charge > 0 %]
4
    <li>
5
    <li>
5
        <span class="circ-hlt">Charges:</span>
6
        <span class="circ-hlt">Charges:</span>
6
        <span>Patron has outstanding charges of [% fines | $Price %].</span>
7
        <span>Patron has outstanding charges of [% NoIssuesCharge.charge | $Price %].</span>
7
        [% IF !Koha.Preference('AllowFineOverride') && NoIssuesCharge && fines > NoIssuesCharge %]
8
        [% IF !Koha.Preference('AllowFineOverride') && NoIssuesCharge.limit && NoIssuesCharge.overlimit %]
8
           <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
9
           <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
9
        [% END %]
10
        [% END %]
10
        [% IF CAN_user_updatecharges_remaining_permissions %]
11
        [% IF CAN_user_updatecharges_remaining_permissions %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-1 / +1 lines)
Lines 119-125 Link Here
119
        [% END %]
119
        [% END %]
120
120
121
        [% IF ( charges ) %]
121
        [% IF ( charges ) %]
122
            [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
122
            [% INCLUDE 'blocked-fines.inc' borrowernumber = patron.borrowernumber %]
123
        [% END %]
123
        [% END %]
124
124
125
        [% IF ( charges_guarantors_guarantees ) %]
125
        [% IF ( charges_guarantors_guarantees ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-2 / +1 lines)
Lines 63-69 Link Here
63
  <div class="dialog alert">
63
  <div class="dialog alert">
64
      Cannot check out!
64
      Cannot check out!
65
      [% IF ( charges ) %]
65
      [% IF ( charges ) %]
66
          [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
66
          [% INCLUDE 'blocked-fines.inc' borrowernumber = patron.borrowernumber %]
67
      [% END %]
67
      [% END %]
68
      [% IF ( charges_guarantors_guarantees ) %]
68
      [% IF ( charges_guarantors_guarantees ) %]
69
          <li>
69
          <li>
70
- 

Return to bug 28924