Koha/misc/cronjobs
Kyle M Hall fef29151e0
Bug 28553: Patrons can be set to receive auto_renew notices as SMS, but Koha does not generate them
Following bug 18532, one can set a patron's messaging prefs to deliver an auto-renew notice via SMS.
However, the auto_renewals cron only knows how to generate email notices. We should not allow the selection of non-functional transport types.

Test Plan:
 1 - Set pref AutoRenewalNotices - 'according to patron messaging preferences'
 2 - Set circ rule with:
    Loan period: 5 days
    No renewal before: 5
    AutoRenewal: Yes
    Renewals allowed: 5
 3 - Set SMS Send driver to Email
 4 - Find a patron and set them to receive auto renewal notices via SMS and no other transport
 5 - Provide a proivder and sms number for the patron
 6 - Checkout an item to the patron, set due date to yesterday
 7 - Run auto renewals:
    perl misc/cronjobs/automatic_renewals.pl -v --send-notices -c
 8 - Item renewed, no message sent
 9 - Check in item, checkout again due yesterday
10 - Apply patch
11 - Browse to Tools->notices and slips
12 - Edit AUTO_RENEWALS and AUTO_RENEWALS_DIGEST to copy email template to sms and add a title
13 - perl misc/cronjobs/automatic_renewals.pl -v --send-notices -c
14 - Item renewed, confirm patron has a notice in their account
15 - Check the digest option, check in item, checkout again as due, repeat cronjob and note digest notic
16 - sign off

https://bugs.koha-community.org/show_bug.cgi?id=30355

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-16 10:30:40 -03:00
..
holds Bug 31122: Terminology - Replace occurences of 'Notices & slips' with 'Notices and slips' 2022-07-08 15:08:23 -03:00
recalls
rss
social_data
thirdparty Bug 31356: Use hold expiration date instead of adding days to the waiting date 2022-08-31 14:30:26 -03:00
advance_notices.pl
archive_purchase_suggestions.pl
automatic_checkin.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 28553: Patrons can be set to receive auto_renew notices as SMS, but Koha does not generate them 2022-09-16 10:30:40 -03:00
backup.sh
batch_anonymise.pl Bug 30042: Remove Date::Calc dependency in batch_anonymize.pl 2022-09-07 13:23:31 -07:00
build_browser_and_cloud.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
cart_to_shelf.pl
check-url-quick.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
cleanup_database.pl
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example
delete_items.pl
delete_patrons.pl
delete_records_via_leader.pl
edi_cron.pl
fines.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
gather_print_notices.pl
import_webservice_batch.pl
longoverdue.pl
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
patron_emailer.pl Bug 31282: Fix broken characters in patron_emailer.pl verbose mode 2022-08-19 09:56:13 -03:00
plugins_nightly.pl
printoverdues.sh
process_message_queue.pl
purge_suggestions.pl
reconcile_balances.pl
remove_temporary_edifiles.pl
runreport.pl
serialsUpdate.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
share_usage_with_koha_community.pl
sitemap.pl
staticfines.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
stockrotation.pl
update_patrons_category.pl Bug 31249: Use cronlogaction on update_patrons_category.pl 2022-08-05 11:53:15 -03:00
update_totalissues.pl
writeoff_debts.pl