Lines 48-54
sub do_renew_for {
Link Here
|
48 |
|
48 |
|
49 |
unless ( C4::Accounts::GetTotalFines($borrower->{borrowernumber}) < C4::Context->preference('OPACFineNoRenewals') ) { |
49 |
unless ( C4::Accounts::GetTotalFines($borrower->{borrowernumber}) < C4::Context->preference('OPACFineNoRenewals') ) { |
50 |
$renewokay = 0; |
50 |
$renewokay = 0; |
51 |
$renewerror = 'too_many_fines' |
51 |
$renewerror = 'fines_exceed_OPACFineNoRenewals' |
52 |
} |
52 |
} |
53 |
|
53 |
|
54 |
if ($renewokay){ |
54 |
if ($renewokay){ |
Lines 62-67
sub do_renew_for {
Link Here
|
62 |
} else { |
62 |
} else { |
63 |
$renewerror=~s/on_reserve/Item unavailable due to outstanding holds/; |
63 |
$renewerror=~s/on_reserve/Item unavailable due to outstanding holds/; |
64 |
$renewerror=~s/too_many/Item has reached maximum renewals/; |
64 |
$renewerror=~s/too_many/Item has reached maximum renewals/; |
|
|
65 |
$renewerror=~s/fines_exceed_OPACFineNoRenewals/Total fines owed exceeds amount that would allow renewal/; |
65 |
$self->screen_msg($renewerror); |
66 |
$self->screen_msg($renewerror); |
66 |
$self->renewal_ok(0); |
67 |
$self->renewal_ok(0); |
67 |
} |
68 |
} |
68 |
- |
|
|