Bug 11144: Fix sequence of cronjobs: automatic renewal - fines - overdue notices
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Tue, 9 Jun 2015 21:13:15 +0000 (23:13 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 8 Sep 2016 19:24:46 +0000 (21:24 +0200)
commit110dded2d1949851dc3e4314176cbf4c277f4711
tree63c0ae7b3544c53e464f13da43e60a70302ea73d
parent61e6f79dfc070dcf5b73177254f39986dbc538f7
Bug 11144: Fix sequence of cronjobs: automatic renewal - fines - overdue notices

The patch changes the sequence of cronjobs in the crontab example
file and in the cron.daily file of the packages.

This is why:
1) Renew automatically
   ... only when we can't renew, we want to
2) Calculate fines
   ... once the fine are calculated and charged
   we can print the amount into the
3) Overdue notices

Before the change it could happen that you'd charge for an item,
that would then be renewed. Or that you'd try to print fine
amounts into the overdue notices, when they would only be
charged moments later.

To test:
- configure your system so you have items that should
  - be charged with fines
  - renew automatically
- configure your crontabs according to the example file
  or switch the cron.daily in your package installation with
  the new one
- configure your overdue notices so that one should be generated
  <<items.fine>>
- Wait for the cronjobs or schedule them to run earlier
- Verify all is well and as it should be

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 596ddef3c33f675f9daad675512fb119f80a23fa)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
debian/koha-common.cron.daily
misc/cronjobs/crontab.example