Bug 27835: Add a syspref to control fines calculation on closed days
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Mar 2021 09:16:55 +0000 (10:16 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 18 Mar 2021 14:03:23 +0000 (15:03 +0100)
commit151966d0967786ab235158b4c1a84e19788610b2
tree9bf709a7e8473d90b049144a7cb35535ae63ba96
parent5007e24e90efeb76fe3d86a8fa832d52af30abc0
Bug 27835: Add a syspref to control fines calculation on closed days

Bug 27180 added a patch to not update fines on holidays if finesCalendar was set to ignore.
At least it's what it advertised, but not what it did.

It seems that we need to add a new pref to control the calculation of
fines on closed days to answer the different use cases.

Test plan:
With this patch applied you can run the fines.pl cronjob and play with
the new pref ChargeFinesOnCloseDay to generate fines on close days.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/fines.pl