Bug 25417: (QA follow-up) Restore 'fixing' of fines
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
parent
b08fff84bd
commit
a64a5311f4
|
|
@ -2394,11 +2394,9 @@ sub _FixOverduesOnReturn {
|
|||
return 0 unless $accountlines->count; # no warning, there's just nothing to fix
|
||||
|
||||
my $accountline = $accountlines->next;
|
||||
if ($exemptfine) {
|
||||
my $amountoutstanding = $accountline->amountoutstanding;
|
||||
|
||||
return if $amountoutstanding <= 0;
|
||||
|
||||
my $amountoutstanding = $accountline->amountoutstanding;
|
||||
if ($exemptfine && ($amountoutstanding != 0)) {
|
||||
my $account = Koha::Account->new({patron_id => $borrowernumber});
|
||||
my $credit = $account->add_credit(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue