From b43602ee7d2cf5407b987224be8554251a9f80f6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 15 Jul 2019 15:06:14 +0100 Subject: [PATCH] Bug 23316: (follow-up) for bug 22521 to fix GetFine We changed the way we classify fines with bug 22521 but missed one instance. Signed-off-by: Martin Renvoize Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- C4/Overdues.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index 78ec2e57fa..2a617335bc 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -637,7 +637,7 @@ sub GetFine { my ( $itemnum, $borrowernumber ) = @_; my $dbh = C4::Context->dbh(); my $query = q|SELECT sum(amountoutstanding) as fineamount FROM accountlines - where accounttype like 'F%' + where accounttype like 'OVERDUE' AND amountoutstanding > 0 AND borrowernumber=?|; my @query_param; push @query_param, $borrowernumber; -- 2.39.5