From a9e2337308517f1cb330ceed66dd632c8a1655a5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 5 Dec 2019 10:14:51 +0000 Subject: [PATCH] Bug 24146: Increment existing fine We should increment an existing fine even if it has been fully paid off whilst it is still incrementing and not create a new fine. Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- C4/Overdues.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index 485f4dd598..daffbd0397 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -527,8 +527,7 @@ sub UpdateFine { my $overdues = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, - debit_type_code => 'OVERDUE', - amountoutstanding => { '<>' => 0 } + debit_type_code => 'OVERDUE' } ); @@ -562,7 +561,6 @@ sub UpdateFine { } } - if ( $accountline ) { if ( $accountline->amount != $amount ) { $accountline->adjust( -- 2.39.5