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)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 21 May 2020 20:45:58 +0000 (20:45 +0000)
commit0c238db2f5763db48fe3d451b599ffd6b0e42869
tree06cef528f32c0db0c49c7de00b40a26137c35f8a
parent6066bb39a5ed9b284bf2344e4b98394e89f809a3
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>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/Circulation.pm