Bug 24526: Add verbose and commit options to automatic_renewals cronjob
authorNick Clemens <nick@bywatersolutions.com>
Tue, 28 Jan 2020 14:27:06 +0000 (14:27 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 10 Feb 2020 10:13:01 +0000 (10:13 +0000)
commit6e0a4d18d4f5c996c18b719f020adcfb800368b8
tree858f075ac80fcdc4f9b8a28b2dc59f63bf413419
parent1bcc2159a5c137c216f6afa759cb7da5f2f4a15d
Bug 24526: Add verbose and commit options to automatic_renewals cronjob

To test:
 1 - Apply patch
 2 - Have some items marked for auto-renewal
 3 - Run the job with no parameters
 4 - It should print 'Test mode'
 5 - Provide -v
 6 - It should print 'Test mode' then a line for each item
 7 - Provide -v -c
 8 - It should not say test mode, but should provide a line for each item
 9 - Provide -c
10 - Shoudl run as expected with no output

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/cronjobs/automatic_renewals.pl