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>
Thu, 28 Nov 2019 18:56:58 +0000 (18:56 +0000)
commit05a83010d8aff67241794ce15f6a8320ea338264
tree66c6522653712ba9c12c54a8e65de2549d015068
parenta7ab0e40d37bc4894f80ab4801c7d2feefdc1b02
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>
(cherry picked from commit 39cc13d070e1613b4a903ec5e0e2513ebd561285)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
C4/Overdues.pm