Koha/misc/cronjobs
Nick Clemens 95f6015d43
Bug 34924: Add Koha::Checkout->attempt_auto_renew
This patch moves the actual renewal out of the auto_renewals cronjob script and into the object and adds tests. The logic for notices is still handled in the script.

To test:
1 - prove -v t/db_dependent/Koha/Checkouts.t
2 - Add a circ rule with auto_renew checked
3 - Checkout an item to a patron and set due date in the past
4 - Checkout an item to a patron and set due date in the future
5 - perl misc/cronjobs/automatic_renewals.pl -v
6 - Confirm one would be renewed and the other is too_soon
7 - perl misc/cronjobs/automatic_renewals.pl -v --confirm
8 - Confirm the expected issue is successfully renewed

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-31 11:02:46 -03:00
..
holds Bug 34569: (QA follow-up) Tidy block 2023-09-01 12:08:38 -03:00
recalls Bug 33992: Only consider the date when auto-expiring problematic recalls 2023-07-19 12:06:50 -03:00
rss
social_data
thirdparty
advance_notices.pl Bug 34059: Add only issues from the branch that is creating the notice 2023-08-15 11:25:39 +03:00
archive_purchase_suggestions.pl
automatic_checkin.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 34924: Add Koha::Checkout->attempt_auto_renew 2023-10-31 11:02:46 -03:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
cleanup_database.pl Bug 33837: Remove datetime parameter 2023-10-11 10:31:45 -03:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 28688: Add renewal to crontab example 2023-10-10 09:22:31 -03:00
delete_items.pl
delete_patrons.pl Bug 15504: (QA follow-up) Final changes 2023-10-24 10:05:23 -03:00
delete_records_via_leader.pl
edi_cron.pl
fines.pl
gather_print_notices.pl Bug 34728: (QA follow-up) Remove o modifier, bit more compact 2023-09-18 15:31:50 -03:00
import_webservice_batch.pl
longoverdue.pl
membership_expiry.pl Bug 35001: Add some checks to membership_expiry 2023-10-24 15:44:32 -03:00
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl Bug 32740: Add a new option patron home library to OverdueNoticeFrom 2023-10-11 12:13:04 -03:00
patron_emailer.pl
plugins_nightly.pl
printoverdues.sh
process_message_queue.pl Bug 35148: before_send_messages plugin hook does not pass the --where option 2023-10-25 11:08:03 -03:00
purge_suggestions.pl
reconcile_balances.pl
remove_temporary_edifiles.pl
runreport.pl
serialsUpdate.pl
share_usage_with_koha_community.pl
sitemap.pl Bug 33871: Use Koha object in Sitemapper, add optional filter 2023-09-01 11:23:25 -03:00
staticfines.pl
stockrotation.pl
update_patrons_category.pl
update_totalissues.pl
writeoff_debts.pl Bug 28995: Update aliases 2023-09-08 11:54:55 -03:00