@@ -, +, @@ returns --- C4/Circulation.pm | 2 ++ 1 file changed, 2 insertions(+) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2433,6 +2433,8 @@ sub _FixOverduesOnReturn { if ($exemptfine) { my $amountoutstanding = $accountline->amountoutstanding; + return if $amountoutstanding <= 0; + my $account = Koha::Account->new({patron_id => $borrowernumber}); my $credit = $account->add_credit( { --