Koha/misc/cronjobs
Jonathan Druart 581759e985 Bug 14133: Print notices should be generated with the print template
If the overdue notice to send is an email or a SMS and the patron does
not provided such information, a print notice is generated.
But it will be generated with the email or sms template, which is not
useful, especially in the SMS case.

The template to use should be the print one.

Test plan:
0/ Does not apply this patch and Correctly define the overdue rules to generate
an overdue notice to the message_queue table.
Check email + SMS
1/ Define an email address and a SMS number for a patron
2/ Generate the overdue notices (misc/cronjobs/overdue_notices.pl [-t])
3/ 2 notices should have been generated:
    mtt=email with the email template used
    mtt=sms   with the sms template used
4/ Truncate the message_queue table
5/ Remove the email address and repeat 2
6/ Only 1 notice should have been generated:
    mtt=print with the email template used
7/ Truncate the message_queue table
8/ Remove the sms alert number and repeat 2
9/ 2 notices should have been generated:
    mtt=print with the email template used (or sms I suppose)

10/ Apply this patch and repeat previous steps.
The print notices should be generated with the print template.

IMPORTANT NOTE: This test plan does not take into account the notices
generated for the staff ("These messages were not sent directly to the
patrons."). However the behavior will also change, the print template
will be used in all cases. Is it what we want?

Signed-off-by: Chris <chris@bigballofwax.co.nz>

Seems fine by me

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-01-27 02:18:07 +00:00
..
holds Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
rss Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
social_data Bug 15193 - Perl scripts missing exec permission 2015-12-11 16:36:08 +00:00
thirdparty Bug 14960: Remove C4::Dates from files in misc/cronjobs 2015-11-17 15:36:43 -03:00
advance_notices.pl Bug 12923 Improve error logging for advance_notices.pl 2015-12-31 16:11:54 +00:00
automatic_renewals.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
backup.sh
batch_anonymise.pl Bug 14960: Remove C4::Dates from files in misc/cronjobs 2015-11-17 15:36:43 -03:00
build_browser_and_cloud.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
cart_to_shelf.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
check-url-quick.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
check-url.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
cleanup_database.pl Bug 14960: Remove C4::Dates from files in misc/cronjobs 2015-11-17 15:36:43 -03:00
cloud-kw.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
crontab.example Bug 14840: Added new cron script send membership expiry reminder notices in crontab.example file 2015-10-06 11:21:18 -03:00
delete_expired_opac_registrations.pl Bug 13049: [QA Follow-up] Remove unneeded module 2015-07-28 10:24:02 -03:00
delete_patrons.pl Bug 14544: Get rid of GetSomeShelfNames 2015-11-05 09:58:02 -03:00
delete_records_via_leader.pl Bug 11084 [QA Followup] - Document limitations of test mode 2015-12-29 19:32:20 +00:00
delete_unverified_opac_registrations.pl Bug 13049: [QA Follow-up] Remove unneeded module 2015-07-28 10:24:02 -03:00
fines.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
gather_print_notices.pl Bug 14960: Remove C4::Dates from files in misc/cronjobs 2015-11-17 15:36:43 -03:00
import_webservice_batch.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
j2a.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
longoverdue.pl Bug 14292: Add patron category restrictions to longoverdue.pl 2015-12-31 14:56:34 +00:00
MARC21_parse_test.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
membership_expiry.pl Bug 6810: [QA Follow-up] Exit cronjob if pref not set 2015-10-06 11:13:58 -03:00
nl-sync-from-koha.pl Bug 15193 - Perl scripts missing exec permission 2015-12-11 16:36:08 +00:00
nl-sync-to-koha.pl Bug 15193 - Perl scripts missing exec permission 2015-12-11 16:36:08 +00:00
notice_unprocessed_suggestions.pl Bug 13014: [QA Follow-up] Few typos in cronjob 2015-06-24 11:49:13 -03:00
overdue_notices.pl Bug 14133: Print notices should be generated with the print template 2016-01-27 02:18:07 +00:00
printoverdues.sh
process_message_queue.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
purge_suggestions.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
runreport.pl Bug 12544 - Send scheduled reports as an attachment 2015-12-30 21:37:22 +00:00
serialsUpdate.pl Bug 14960: Remove C4::Dates from files in misc/cronjobs 2015-11-17 15:36:43 -03:00
services_throttle.pl
share_usage_with_koha_community.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
sitemap.pl Bug 11190: sitemap.pl -- Generate a Catalog sitemap 2015-08-26 11:05:24 -03:00
staticfines.pl Bug 14960: Simplify the date management in staticfines 2015-11-17 15:36:51 -03:00
update_totalissues.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00