Bug 25531: Debar patron if needed when checkin is backdated
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 May 2020 15:50:11 +0000 (17:50 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 19 May 2020 15:49:25 +0000 (16:49 +0100)
commitf8f890621e8ce99c36f4117eb018bbb3ec3da960
treec5a9fc3ccfee76a87ad03cca5dfbd5b7e9b58b78
parentd7066e8cfb50df6e78e8bb1dd491736b1aadcde6
Bug 25531: Debar patron if needed when checkin is backdated

If think this case does not apply to real-life, but the logic needs to
be fixed.
If an item is due now, and AddReturn is called now with a return date in
the future, the issue is overdue and the patron must be debarred.
However it is not as we compare with now and not the return date

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm