Lines 36-42
use Koha::Account::DebitTypes;
Link Here
|
36 |
use Koha::Exceptions; |
36 |
use Koha::Exceptions; |
37 |
use Koha::Exceptions::Account; |
37 |
use Koha::Exceptions::Account; |
38 |
use Koha::Plugins; |
38 |
use Koha::Plugins; |
39 |
use Koha::Patron::Debarments; |
|
|
40 |
|
39 |
|
41 |
=head1 NAME |
40 |
=head1 NAME |
42 |
|
41 |
|
Lines 103-110
sub pay {
Link Here
|
103 |
} |
102 |
} |
104 |
); |
103 |
); |
105 |
|
104 |
|
106 |
Koha::Patron::Debarments::del_restrictions_after_payment({ borrowernumber => $self->{patron_id} }); |
|
|
107 |
|
108 |
# NOTE: Pay historically always applied as much credit as it could to all |
105 |
# NOTE: Pay historically always applied as much credit as it could to all |
109 |
# existing outstanding debits, whether passed specific debits or otherwise. |
106 |
# existing outstanding debits, whether passed specific debits or otherwise. |
110 |
if ( $payment->amountoutstanding ) { |
107 |
if ( $payment->amountoutstanding ) { |