diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index c2c81aed67..8e53b781a0 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -503,6 +503,7 @@ sub apply { if ( $self->credit_type_code ne 'FORGIVEN' && $debit->is_renewable ) { $debit->renew_item( { interface => $params->{interface} } ); } + $debit->discard_changes; # Refresh values from DB to clear floating point remainders # Same logic exists in Koha::Account::pay if (