]> git.koha-community.org Git - koha.git/commit
Bug 11577: Add an automatic renewal cronjob
authorHolger Meißner <h.meissner.82@web.de>
Fri, 16 May 2014 11:14:32 +0000 (13:14 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 17 Sep 2014 22:23:23 +0000 (19:23 -0300)
commitd02f87a2986bd20e513e02ab299a9b66af9ea08f
treeec6d815b75e942f4004e6fb3fb34bdf365fcab52
parent17821c58ccbeeb719e283e7932064e6ea61d657e
Bug 11577: Add an automatic renewal cronjob

This patch adds a new cron script automatic_renewals.pl and a new
entry in crontab.example.

To test:

1) You need a few issues, some with automatic renewal and some without.
2) Confirm that each time you run misc/cronjobs/automatic_renewals.pl
   those issues are renewed that meet all of the following criteria:
   - automatic renewal has been scheduled either by issuing rule or by
     checkbox on the checkout page
   - the number of allowed renewals isn't exceeded
   - renewal isn't premature (No renewal before)
3) Confirm that all other issues are not affected.

Sponsored-by: Hochschule für Gesundheit (hsg), Germany
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
debian/koha-common.cron.daily
misc/cronjobs/automatic_renewals.pl [new file with mode: 0644]
misc/cronjobs/crontab.example