From 24fc081f445c12f2cbf03aae38536993bba1b528 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 9 May 2019 15:53:56 +0100 Subject: [PATCH] Bug 22877: Prevent double overdue processing for lost and returned --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b9ff0f2824..7b6b794066 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1960,7 +1960,7 @@ sub AddReturn { MarkIssueReturned( $borrowernumber, $item->itemnumber, $return_date, $patron->privacy ); }; unless ( $@ ) { - if ( C4::Context->preference('CalculateFinesOnReturn') && $is_overdue ) { + if ( C4::Context->preference('CalculateFinesOnReturn') && $is_overdue && !$item->itemlost ) { _CalculateAndUpdateFine( { issue => $issue, item => $item_unblessed, borrower => $patron_unblessed, return_date => $return_date } ); } } else { -- 2.20.1