Hourly fine periods do not charge enough collab/dbwells/lp836996_hourly_fines
authorDan Wells <dbw2@calvin.edu>
Thu, 1 Sep 2011 13:13:47 +0000 (09:13 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 1 Sep 2011 13:13:47 +0000 (09:13 -0400)
commitecae81161bd9c720c9f478d0e51524948679c167
treeaf42e6a682380d70dcfee5d059e72e45b5503433
parentb5579dee0f48f43157ad995669e42a8bf2cc1c80
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm