Bug 24075: Backdating a return to the exact due date and time results in the fine...
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 22 Nov 2019 12:31:09 +0000 (12:31 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 22 Nov 2019 15:08:21 +0000 (15:08 +0000)
commit39cc13d070e1613b4a903ec5e0e2513ebd561285
treeaafe03014e0fce801aff3c94adbdea8081e31928
parent737d8d1c7c044905c22e4ed735f7782589cf1f80
Bug 24075: Backdating a return to the exact due date and time results in the fine not being refunded

When you use the date picker or book drop mode and check in an item that is due on that date, a fine is assessed and not refunded.

For example: item 12345 is due on 11/19/2109 23:59.  On 11/20/2019 I check the item in using date picker/book drop setting the check in date to 11/19/2019 23:59, the patron is charged a fine, and the fine is not cleared as would be expected, since the item is being checked in before it is overdue.

Test Plan:
1) Back date a checkout so it is overdue
2) Run fines.pl to generate the fine
3) Return the item, backdating to the same date/time is was due
4) Note the fine was not removed
5) Apply this patch
6) Repeat steps 1-3
7) Fine should be zeroed out now!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm
C4/Overdues.pm