Bug 22877: Prevent double overdue processing for lost and returned
Test plan:
1 - Issue an item to a patron with a backdated due date
2 - Run fines.pl - note you generate a fine for the patron
3 - Run longoverdue.pl - make sure MarkLostItemsAsReturned is turned off
and to charge
4 - Confirm the patron has a lost fee and an overdue
5 - Return the item
6 - With patch applied, patron should now have 1 overdue fine and 1 lost fine
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d1b6e32086)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
f9f8c1e383
commit
39bb183f53
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue