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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 11 Jun 2020 16:06:40 +0000 (18:06 +0200)
commitbab4bb9adb4db0b20ef94771ef78ecf654497788
tree8289d0296879018755acf4249e4656f95845db4d
parent120fdbb8f3bf9d8c26ff01184b4f3bdb06a9d58e
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>

(cherry picked from commit 0c238db2f5763db48fe3d451b599ffd6b0e42869)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
C4/Circulation.pm