Hourly fine periods do not charge enough
authorDan Wells <dbw2@calvin.edu>
Thu, 1 Sep 2011 13:13:47 +0000 (09:13 -0400)
committerMike Rylander <mrylander@gmail.com>
Sat, 3 Sep 2011 16:45:43 +0000 (12:45 -0400)
commit5254cca76d8341491d2d8cfe91659f85a6f4fba9
tree4a99a7fcbe6fe809f45e8359fef3d54c53e19009
parent11f4d6a2b4c49124bbf159a3094732623564ae7f
Hourly fine periods do not charge enough

Hourly fine periods are not charging for the first period of
overdue-ness. If an item is due at 2:00pm and has a fine of
$.50 per hour, the first fine should be eligible for generation
at 2:01pm. As it stands, the first fine does not generate until
an entire fine period has elapsed, so in this case, 3:00pm.

The previous version of the code had a special case for day-
granular fine periods, so a majority of fines were not affected.
This commit expands the same idea (charging for the fine period
you are currently "in") to all fine periods.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm