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 141-146 if ( C4::Context->preference('OpacRenewalAllowed') Link Here
141
    );
141
    );
142
}
142
}
143
143
144
my $maxoutstanding = C4::Context->preference('maxoutstanding');
145
if ( $amountoutstanding && ( $amountoutstanding > $maxoutstanding ) ){
146
    $borr->{blockedonfines} = 1;
147
}
148
144
# Warningdate is the date that the warning starts appearing
149
# Warningdate is the date that the warning starts appearing
145
if ( $borr->{'dateexpiry'} && C4::Context->preference('NotifyBorrowerDeparture') ) {
150
if ( $borr->{'dateexpiry'} && C4::Context->preference('NotifyBorrowerDeparture') ) {
146
    my $days_to_expiry = Date_to_Days( $warning_year, $warning_month, $warning_day ) - Date_to_Days( $today_year, $today_month, $today_day );
151
    my $days_to_expiry = Date_to_Days( $warning_year, $warning_month, $warning_day ) - Date_to_Days( $today_year, $today_month, $today_day );
147
- 

Return to bug 15775