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

(-)a/opac/opac-user.pl (-3 / +3 lines)
Lines 107-115 if ( 5 >= $borr->{'amountoutstanding'} && $borr->{'amountoutstanding'} > 0 ) { Link Here
107
    $borr->{'amountoverzero'} = 1;
107
    $borr->{'amountoverzero'} = 1;
108
}
108
}
109
my $no_renewal_amt = C4::Context->preference( 'OPACFineNoRenewals' );
109
my $no_renewal_amt = C4::Context->preference( 'OPACFineNoRenewals' );
110
$no_renewal_amt ||= 0;
110
$no_renewal_amt ||= undef;
111
111
112
if (  C4::Context->preference( 'OpacRenewalAllowed' ) && $borr->{amountoutstanding} > $no_renewal_amt ) {
112
warn "Renwal amount = $no_renewal_amt";
113
if (  C4::Context->preference( 'OpacRenewalAllowed' ) && $no_renewal_amt && $borr->{amountoutstanding} > $no_renewal_amt ) {
113
    $borr->{'flagged'} = 1;
114
    $borr->{'flagged'} = 1;
114
    $canrenew = 0;
115
    $canrenew = 0;
115
    $template->param(
116
    $template->param(
116
- 

Return to bug 14930