]> 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)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 14:43:57 +0000 (16:43 +0200)
commit32e3f9eace2bfc2ee4ba4250c36c877f0595e22c
tree0cf125d78c195f837b3c770a4580dd0083be3521
parent9d4e241adadc9a3c62d94a2d487a738e9490925a
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>
C4/Circulation.pm