diff --git a/C4/Overdues.pm b/C4/Overdues.pm index 09d4119985..9ab0bdc6b1 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -526,8 +526,7 @@ sub UpdateFine { my $overdues = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, - debit_type_code => 'OVERDUE', - amountoutstanding => { '<>' => 0 } + debit_type_code => 'OVERDUE' } ); @@ -561,7 +560,6 @@ sub UpdateFine { } } - if ( $accountline ) { if ( $accountline->amount != $amount ) { $accountline->adjust(