[Koha-bugs] [Bug 8251] Patrons are systematically debarred at checkin
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 18 02:24:08 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8251
Mason James <mtj at kohaaloha.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #10768|0 |1
is obsolete| |
--- Comment #23 from Mason James <mtj at kohaaloha.com> ---
Created attachment 10914
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10914&action=edit
Patrons get incorrectly debarred
Patrons get incorrectly debarred because of the use of Datetime->delta_days
wich happens to always return a positive number.
Added a check to inverse the delta when patron is not late.
Also changed the use of Datetime->truncate function so it follows the docs,
using 'day' instead of 'days' (which is used in DateTime::Duration).
http://bugs.koha-community.org/show_bug.cgi?id=8251
Signed-off-by: Tajoli Zeno <tajoli at cilea.it>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list