Lines 39-45
use Koha::Account::DebitTypes;
Link Here
|
39 |
use Koha::Exceptions; |
39 |
use Koha::Exceptions; |
40 |
use Koha::Exceptions::Account; |
40 |
use Koha::Exceptions::Account; |
41 |
use Koha::Plugins; |
41 |
use Koha::Plugins; |
42 |
use Koha::Patron::Debarments; |
|
|
43 |
|
42 |
|
44 |
=head1 NAME |
43 |
=head1 NAME |
45 |
|
44 |
|
Lines 118-125
sub pay {
Link Here
|
118 |
} |
117 |
} |
119 |
); |
118 |
); |
120 |
|
119 |
|
121 |
Koha::Patron::Debarments::del_restrictions_after_payment({ borrowernumber => $self->{patron_id} }); |
|
|
122 |
|
123 |
# NOTE: Pay historically always applied as much credit as it could to all |
120 |
# NOTE: Pay historically always applied as much credit as it could to all |
124 |
# existing outstanding debits, whether passed specific debits or otherwise. |
121 |
# existing outstanding debits, whether passed specific debits or otherwise. |
125 |
if ( $payment->amountoutstanding ) { |
122 |
if ( $payment->amountoutstanding ) { |