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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +2 lines)
Lines 223-229 Link Here
223
                                            <strong>Too many holds: </strong> Patron can only place a maximum of [% maxreserves | html %] total holds.
223
                                            <strong>Too many holds: </strong> Patron can only place a maximum of [% maxreserves | html %] total holds.
224
                                        </div>
224
                                        </div>
225
                                    [% END %]
225
                                    [% END %]
226
                                    [% IF ( member.expiry ) %]
226
                                    [% IF ( patron.is_expired ) %]
227
                                        <div>
227
                                        <div>
228
                                            <i class="fa fa-warning"></i>
228
                                            <i class="fa fa-warning"></i>
229
                                            <strong>Account has expired</strong>
229
                                            <strong>Account has expired</strong>
Lines 235-241 Link Here
235
                                            <strong>Patron has restrictions</strong>
235
                                            <strong>Patron has restrictions</strong>
236
                                        </div>
236
                                        </div>
237
                                    [% END %]
237
                                    [% END %]
238
                                    [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
238
                                    [% IF member.amount_outstanding && Koha.Preference('maxoutstanding') && member.amount_outstanding > Koha.Preference('maxoutstanding') %]
239
                                        <div>
239
                                        <div>
240
                                            <i class="fa fa-warning"></i>
240
                                            <i class="fa fa-warning"></i>
241
                                            <strong>Patron has outstanding fines: [% member.amount_outstanding | $Price %]</strong>
241
                                            <strong>Patron has outstanding fines: [% member.amount_outstanding | $Price %]</strong>
(-)a/reserve/request.pl (-8 / +1 lines)
Lines 240-246 if ($club_hold && !$borrowernumber_hold && !$action) { Link Here
240
240
241
    while(my $enrollment = $enrollments->next) {
241
    while(my $enrollment = $enrollments->next) {
242
        next if $enrollment->is_canceled;
242
        next if $enrollment->is_canceled;
243
        my $member = { patron => $enrollment->patron->unblessed };
243
        my $member = { patron => $enrollment->patron };
244
        my $reserves_count = $enrollment->patron->holds->count;
244
        my $reserves_count = $enrollment->patron->holds->count;
245
        if ( $maxreserves
245
        if ( $maxreserves
246
            && ( $reserves_count + $new_reserves_count > $maxreserves ) )
246
            && ( $reserves_count + $new_reserves_count > $maxreserves ) )
Lines 250-261 if ($club_hold && !$borrowernumber_hold && !$action) { Link Here
250
                : 0;
250
                : 0;
251
            $member->{exceeded_maxreserves} = 1;
251
            $member->{exceeded_maxreserves} = 1;
252
        }
252
        }
253
        my $expiry_date = $enrollment->patron->dateexpiry;
254
        $member->{expiry} = 0; # flag set if patron account has expired
255
        if ($expiry_date and
256
            Date_to_Days(split /-/,$date) > Date_to_Days(split /-/,$expiry_date)) {
257
            $member->{expiry} = 1;
258
        }
259
        $member->{amount_outstanding} = $enrollment->patron->account->balance;
253
        $member->{amount_outstanding} = $enrollment->patron->account->balance;
260
        if ( $enrollment->patron->branchcode ne C4::Context->userenv->{'branch'} ) {
254
        if ( $enrollment->patron->branchcode ne C4::Context->userenv->{'branch'} ) {
261
            $member->{diffbranch} = 1;
255
            $member->{diffbranch} = 1;
262
- 

Return to bug 29115