Bugzilla – Attachment 89859 Details for
Bug 22877
Returning a lost item not marked as returned can generate additional overdue fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22877: Prevent double overdue processing for lost and returned
Bug-22877-Prevent-double-overdue-processing-for-lo.patch (text/plain), 1.14 KB, created by
Liz Rea
on 2019-05-16 16:20:33 UTC
(
hide
)
Description:
Bug 22877: Prevent double overdue processing for lost and returned
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-05-16 16:20:33 UTC
Size:
1.14 KB
patch
obsolete
>From fd1ba05167143e2624c618a48cd502ee7aa49cd3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 9 May 2019 15:53:56 +0100 >Subject: [PATCH] Bug 22877: Prevent double overdue processing for lost and > returned > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index e1b0ed6348..9dd1a23774 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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22877
:
89505
|
89507
|
89508
|
89509
|
89510
|
89511
|
89512
|
89513
|
89514
|
89516
|
89527
|
89818
|
89819
|
89820
|
89821
|
89858
|
89859
|
89860
|
89861
|
90210
|
90211
|
90212
|
90213