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:
Martin Renvoize 2020-05-11 21:14:24 +01:00 committed by Joy Nelson
parent b08fff84bd
commit a64a5311f4
1 changed files with 2 additions and 4 deletions

View File

@ -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(
{