Bug 5549 Followup: fix suspension in days
authorIan Walls <koha.sekjal@gmail.com>
Wed, 21 Mar 2012 20:03:32 +0000 (16:03 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 21 Mar 2012 20:31:11 +0000 (09:31 +1300)
commit28309bc61e0d2ba687f40dc8a59dc9f29044e681
treecbc9e9a922bfef7e7633d7cfb458939bdc3ad638
parent22aa99917fb47265f3cd993b92aa6836769a3edc
Bug 5549 Followup: fix suspension in days

ISO dates were being compared with DateTime objects, and DateTime::Durations
with integers.  This patch reimplements the _FixFineDaysOnReturn subroutine
to use the new hourly loans functionality.

Also moves date formatting of patron debar date out of circ/returns.pl and into
KohaDates on the template

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt