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

(-)a/Koha/Template/Plugin/Borrowers.pm (-1 / +1 lines)
Lines 49-55 sub IsDebarred { Link Here
49
    return Koha::Borrower::Debarments::IsDebarred($borrower->{borrowernumber});
49
    return Koha::Borrower::Debarments::IsDebarred($borrower->{borrowernumber});
50
}
50
}
51
51
52
sub HasOverdues {
52
sub WithOverdues {
53
    my ( $self, $borrowernumber ) = @_;
53
    my ( $self, $borrowernumber ) = @_;
54
54
55
    return unless $borrowernumber;
55
    return unless $borrowernumber;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-2 / +1 lines)
Lines 160-166 function searchToHold(){ Link Here
160
                [% IF ( CAN_user_borrowers ) %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %]
160
                [% IF ( CAN_user_borrowers ) %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %]
161
                <li><a id="printslip" href="#">Print slip</a></li>
161
                <li><a id="printslip" href="#">Print slip</a></li>
162
                <li><a id="printquickslip" href="#">Print quick slip</a></li>
162
                <li><a id="printquickslip" href="#">Print quick slip</a></li>
163
                [% IF Borrowers.HasOverdues( borrowernumber ) %]
163
                [% IF Borrowers.WithOverdues( borrowernumber ) %]
164
                    <li><a id="print_overdues" href="#">Print overdues</a></li>
164
                    <li><a id="print_overdues" href="#">Print overdues</a></li>
165
                [% END %]
165
                [% END %]
166
            </ul>
166
            </ul>
167
- 

Return to bug 15135