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 253-259 if ($club_hold && !$borrowernumber_hold && !$action) { Link Here
253
253
254
    while(my $enrollment = $enrollments->next) {
254
    while(my $enrollment = $enrollments->next) {
255
        next if $enrollment->is_canceled;
255
        next if $enrollment->is_canceled;
256
        my $member = { patron => $enrollment->patron->unblessed };
256
        my $member = { patron => $enrollment->patron };
257
        my $reserves_count = $enrollment->patron->holds->count;
257
        my $reserves_count = $enrollment->patron->holds->count;
258
        if ( $maxreserves
258
        if ( $maxreserves
259
            && ( $reserves_count + $new_reserves_count > $maxreserves ) )
259
            && ( $reserves_count + $new_reserves_count > $maxreserves ) )
Lines 263-274 if ($club_hold && !$borrowernumber_hold && !$action) { Link Here
263
                : 0;
263
                : 0;
264
            $member->{exceeded_maxreserves} = 1;
264
            $member->{exceeded_maxreserves} = 1;
265
        }
265
        }
266
        my $expiry_date = $enrollment->patron->dateexpiry;
267
        $member->{expiry} = 0; # flag set if patron account has expired
268
        if ($expiry_date and
269
            Date_to_Days(split /-/,$date) > Date_to_Days(split /-/,$expiry_date)) {
270
            $member->{expiry} = 1;
271
        }
272
        $member->{amount_outstanding} = $enrollment->patron->account->balance;
266
        $member->{amount_outstanding} = $enrollment->patron->account->balance;
273
        if ( $enrollment->patron->branchcode ne C4::Context->userenv->{'branch'} ) {
267
        if ( $enrollment->patron->branchcode ne C4::Context->userenv->{'branch'} ) {
274
            $member->{diffbranch} = 1;
268
            $member->{diffbranch} = 1;
275
- 

Return to bug 29115