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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (+6 lines)
Lines 58-63 Link Here
58
                        </div>
58
                        </div>
59
                    [% END %]
59
                    [% END %]
60
60
61
                    [% IF ( borrower.blockedonfines ) %]
62
                        <div class="alert" id="blockedonfines">
63
                            <strong>Please note:</strong><span> Your account has outstanding fees & charges of [% amountoutstanding | $Price %]. Checkouts and holds are blocked because your fine balance is over the limit.</span>
64
                        </div>
65
                    [% END %]
66
61
                    [% IF ( borrower.warndeparture ) %]
67
                    [% IF ( borrower.warndeparture ) %]
62
                        <div class="alert" id="warndeparture">
68
                        <div class="alert" id="warndeparture">
63
                            <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% borrower.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
69
                            <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% borrower.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
(-)a/opac/opac-user.pl (-1 / +5 lines)
Lines 135-140 if ( C4::Context->preference('OpacRenewalAllowed') Link Here
135
    );
135
    );
136
}
136
}
137
137
138
my $maxoutstanding = C4::Context->preference('maxoutstanding');
139
if ( $amountoutstanding && ( $amountoutstanding > $maxoutstanding ) ){
140
    $borr->{blockedonfines} = 1;
141
}
142
138
# Warningdate is the date that the warning starts appearing
143
# Warningdate is the date that the warning starts appearing
139
if ( $borr->{'dateexpiry'} && C4::Context->preference('NotifyBorrowerDeparture') ) {
144
if ( $borr->{'dateexpiry'} && C4::Context->preference('NotifyBorrowerDeparture') ) {
140
    my $days_to_expiry = Date_to_Days( $warning_year, $warning_month, $warning_day ) - Date_to_Days( $today_year, $today_month, $today_day );
145
    my $days_to_expiry = Date_to_Days( $warning_year, $warning_month, $warning_day ) - Date_to_Days( $today_year, $today_month, $today_day );
141
- 

Return to bug 15775