From f241a90fe205f3b49c37f252b13a7a2f6f9c1a7f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 4 Dec 2013 15:52:39 +0100 Subject: [PATCH] Bug 11144: Run fines cronjob before overdues cronjob Fines in overdues can only be printed correctly, when they have been already generated when the overdue_notices job is been run. This patch just changes the sequence of both cronjobs putting fines.pl before overdue_notices. Patch changes crontab.example and koha-common.cron.daily for package installations. --- debian/koha-common.cron.daily | 2 +- misc/cronjobs/crontab.example | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index e2c7a80..b0affe5 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -15,8 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl +koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1 diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 012747c..72dea48 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -45,11 +45,11 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # SCHEDULED JOBS: # m h dom mon dow user command -# OVERDUE NOTICES -0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/overdue_notices.pl -t - # FINES -5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/fines.pl +0 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/fines.pl + +# OVERDUE NOTICES +5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/overdue_notices.pl -t # ADVANCE NOTICES 10 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/advance_notices.pl -c -- 1.8.3.2