]> git.koha-community.org Git - koha.git/commit
Use hour or day deltas to calculate overdue durations
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 15 Sep 2011 11:42:12 +0000 (12:42 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 3 Apr 2012 15:59:56 +0000 (17:59 +0200)
commit32c5ef613d8805304c1b7f97e597116226b7bbe8
tree5c65492aad90792a6bc89a17cdeecfcd72d9ab22
parentb915f4ff322b4639ad1b8705f7d11977b8c487e4
Use hour or day deltas to calculate overdue durations

If durations are calculated by subtraction they will use units
larger than those we care about and these are not convertable
to the smaller units we are attempting to enumerate
Use the appropriate delta methods to calculate theee fines

Adds a separate hours_between method to calendar
This should strictly be checking opening hours (of which
closed days are a special case) of the relevant branch
These need adding to branches

http://bugs.koha-community.org/show_bug.cgi?id=7852
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Ian Walls <koha.sekjal@gmail.com>
QA comment: renamed "days_minus_grace" variable to "units_minus_grace"
Also added POD to _get_chargeable_units

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Overdues.pm
Koha/Calendar.pm