]> git.koha-community.org Git - koha.git/commit
Bug 8251 Do not try to debar patrons if returns are not overdue
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 5 Sep 2012 10:58:54 +0000 (11:58 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 12 Sep 2012 21:18:38 +0000 (09:18 +1200)
commit1a91738b69a2227d2b92449d1a9c64f86ee41603
tree6d4e424f22748bcd195adb3128861664b56b51f6
parent4f206cf124a40172351c140d9c48bbc2d6f42c6d
Bug 8251 Do not try to debar patrons if returns are not overdue

If a period of suspension is configured in the issuing rules
a calculation to debar the patron was called on all returns
It should be limited to overdue returns

Renamed _FixFineDaysOnReturn subroutine to _debar_user_on_return
which is more descriptive of its purpose
Removed some unnecessary or duplicated processing
Changed visibility of $today so it didnt need
calculating twice
Removed declaration of a datedue variable that is
never used

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm