Bugzilla – Attachment 25830 Details for
Bug 11872
Lost overdue items should not generate fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 11872 - Lost overdue items should not generate fines
0001-SIGNED-OFF-Bug-11872-Lost-overdue-items-should-not-g.patch (text/plain), 1.72 KB, created by
wajasu
on 2014-03-04 18:40:22 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 11872 - Lost overdue items should not generate fines
Filename:
MIME Type:
Creator:
wajasu
Created:
2014-03-04 18:40:22 UTC
Size:
1.72 KB
patch
obsolete
>From feb68a6e7fbc5d08ba7816f24abc1103822569f3 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 28 Feb 2014 09:44:40 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 11872 - Lost overdue items should not > generate fines > >An item can be marked as lost by longoverdue.pl, but left checked out to >the patron. In this case, the item will continue to accrue fines. > >Test Plan: >1) Check out an item and back date it so it is overdue and should > generate fines. >2) Mark the item as lost by either using longoverdue.pl, or just > by setting itemlost to 1 by directly accessing the database >3) Run fines.pl >4) Note the overdue generated a fine >5) Repeat steps 1-2 >6) Apply this patch >7) Run fines.pl >8) Note a fine was not generated > >Signed-off-by: wajasu <matted-34813@mypacks.net> >--- > C4/Overdues.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Overdues.pm b/C4/Overdues.pm >index 33dbd98..a71fb7d 100644 >--- a/C4/Overdues.pm >+++ b/C4/Overdues.pm >@@ -93,6 +93,8 @@ overdue items. It is primarily used by the 'misc/fines2.pl' script. > > Returns the list of all overdue books, with their itemtype. > >+This list does not include overdue items that are marked lost >+ > C<$overdues> is a reference-to-array. Each element is a > reference-to-hash whose keys are the fields of the issues table in the > Koha database. >@@ -110,6 +112,7 @@ sub Getoverdues { > FROM issues > LEFT JOIN items USING (itemnumber) > WHERE date_due < NOW() >+ AND itemlost = 0 > "; > } else { > $statement = " >@@ -118,6 +121,7 @@ LEFT JOIN items USING (itemnumber) > LEFT JOIN items USING (itemnumber) > LEFT JOIN biblioitems USING (biblioitemnumber) > WHERE date_due < NOW() >+ AND itemlost = 0 > "; > } > >-- >1.8.5.3 >
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 11872
:
25720
|
25830
|
29228
|
30294
|
33913
|
33980