Koha/misc/cronjobs
Stefan Berndtsson 9d765eb5c9 Bug 21886: Add option to send notices from owning library instead of issuing library
The provided patch adds the following functionality:

* Add --owning to both advance_notice.pl and overdue_notice.pl
* Add --library to advance_notice.pl like the way overdue_notice.pl already works

When specifying "--owning" both scripts will use items.homebranch instead of
issues.branchcode to determine sending library.

For advance_notice.pl this affects non-digest DUE and PREDUE, but not digest notices.

To test:

1.  Have a patron who wants advance notices as email with 2 days in advance (not digest)
2.  Have the first overdue date set 3 days past due date
3.  Have issue for that patron where date_due is 2 days away where the item homebranch differs from the issuing branch
4.  Have issue for that patron where date_due is 3 days old
5.  Run advance_notices.pl without --owning
6.  Run overdue_notices.pl without --owning
7.  Confirm that two messages were created for that patron with the sender being the issuing branch
8.  Delete messages or create two more issues according to (3) and (4)
9.  Run advance_notices.pl with --owning
10. Run overdue_notices.pl with --owning
11. Confirm that the two messages created has the item homebranch as sender

Extra feature for advance_notices.pl is that it adds "--library" the same way overdue_notices.pl has.
Adding variants of that flag in steps (5) and (9) above can confirm this option as well.

Sponsored-by: Gothenburg University Library
Signed-off-by: Björn Nylén <bjorn.nylen@ub.lu.se>
Signed-off-by: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-04 16:33:15 +01:00
..
holds Bug 12656: Allow --reason to be passed to cancel_expired_holds 2020-11-04 12:59:33 +01:00
rss Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
social_data
thirdparty Bug 25333: Change message transport type for Talking Tech from "phone" to "itiva" 2020-11-04 12:59:32 +01:00
advance_notices.pl Bug 21886: Add option to send notices from owning library instead of issuing library 2021-01-04 16:33:15 +01:00
archive_purchase_suggestions.pl Bug 22784: Add a cronjob to archive suggestions given age or status criteria 2020-04-14 16:22:02 +01:00
automatic_item_modification_by_age.pl Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs 2020-04-17 09:17:52 +01:00
automatic_renewals.pl Bug 24083: (follow-up) Make requested changes 2020-11-11 16:09:58 +01:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
cart_to_shelf.pl
check-url-quick.pl
check-url.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cleanup_database.pl Bug 24541: Purge old messages 2021-01-04 16:31:29 +01:00
cloud-kw.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cloud-sample.conf
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
create_koc_db.pl
crontab.example Bug 24153: Add the confirm flag to the crontab calls 2020-07-20 16:08:22 +02:00
delete_items.pl Bug 23463: Remove DelItemCheck and ItemSafeToDelete 2020-03-23 09:26:31 +00:00
delete_patrons.pl Bug 14708: Enforce restriction in delete_patrons.pl 2020-11-06 09:40:25 +01:00
delete_records_via_leader.pl Bug 24324: Resolve error with delete_records_via_leader.pl 2020-03-24 08:03:30 +00:00
edi_cron.pl Bug 23682: Fix use Koha::Plugins::Handler statements 2020-09-03 15:00:48 +02:00
fines.pl Bug 23571: (QA follow-up) Add missing newline in warning 2020-04-14 16:59:15 +01:00
gather_print_notices.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
import_webservice_batch.pl
longoverdue.pl Bug 25958: (QA follow-up) Implement filter in database query instead of in loop 2020-08-25 12:01:43 +02:00
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
overdue_notices.pl Bug 21886: Add option to send notices from owning library instead of issuing library 2021-01-04 16:33:15 +01:00
patron_emailer.pl
printoverdues.sh
process_message_queue.pl Bug 25097: Add option to message_queue to allow for only specific sending notices 2020-06-24 15:15:41 +02:00
purge_suggestions.pl
reconcile_balances.pl Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron 2020-04-14 08:21:31 +01:00
remove_temporary_edifiles.pl
runreport.pl Bug 22343: Fix runreport encoding issues 2020-10-02 15:23:52 +02:00
serialsUpdate.pl
share_usage_with_koha_community.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sitemap.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
staticfines.pl Bug 22589: Remove C4::Overdues::BorType 2020-03-24 10:57:55 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
update_patrons_category.pl Bug 25624: Add --where option to update_patrons_category.pl 2020-09-28 16:09:10 +02:00
update_totalissues.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00