Koha-clms/misc/cronjobs
Nick Clemens 321afcfe74 Bug 25758: Return on_reserve over too_soon when not calling from automatic_renewals cron
Bug 19014 altered CanBookBeRenewed to return (auto_)too_soon over on_reserve

For cron purposes this is the correct behaviour.

For display purposes we wish to see on_reserve over too_soon

This patchset adds a switch to 'CanBookBeRenewed' to alter the priority of these statuses

To test:
 1 - set NoRenewalBeforePrecision to date only
 2 - set a circ rule to auto-renewal=yes, no renewal before=0, checkout period to 7 days
 3 - check item out
 4 - confirm item shows Scheduled For Automatic Renewal in issues table
 5 - place a hold on the item for another patron
 6 - reload issues table for patron 1, confirm checkout still shows "scheduled for automatic renewal" rather than "on hold"
 7 - change No Renewal Before value to 7
 8 - reload issues table for patron 1, confirm checkout now shows "on hold"
 9 - Apply patch
10 - restart_all
11 - Reload the issues table - confirm 'on_hold' still shows
12 - Change No Renewal Before to 0
13 - Refresh issues table, still shows 'On hold'
14 - perl misc/cronjobs/automatic_renewals.pl -v
15 - Result shows 'auto_too_soon'
16 - prove -v t/db_dependent/Circulation.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-11-24 13:01:39 +13:00
..
holds Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
rss Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
social_data Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
thirdparty Bug 15260: Modify next/prev_open_day 2019-10-31 11:52:26 +00:00
CONFIGURE.gmail
…
advance_notices.pl Bug 24235: DUEDGST not sent if PREDUDGST checkbox is off 2020-01-03 16:43:47 +00:00
automatic_item_modification_by_age.pl Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs 2020-05-05 23:05:58 +00:00
automatic_renewals.pl Bug 25758: Return on_reserve over too_soon when not calling from automatic_renewals cron 2020-11-24 13:01:39 +13:00
backup.sh
…
batch_anonymise.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
build_browser_and_cloud.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cart_to_shelf.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url-quick.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cleanup_database.pl Bug 19008: Replace issues with checkouts in print statement 2020-04-02 18:46:12 +00:00
cloud-kw.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cloud-sample.conf
…
create_koc_db.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
crontab.example Bug 21235: Remove table services_throttle 2018-09-07 15:09:39 +00:00
delete_items.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
delete_patrons.pl Bug 25157: Silent patron deletion cmd line script 2020-05-11 22:35:19 +00:00
delete_records_via_leader.pl Bug 24324: Resolve error with delete_records_via_leader.pl 2020-04-03 21:25:00 +00:00
edi_cron.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
fines.pl Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
gather_print_notices.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
import_webservice_batch.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
longoverdue.pl Bug 25958: (QA follow-up) Implement filter in database query instead of in loop 2020-09-09 21:47:57 +12:00
membership_expiry.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
merge_authorities.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
notice_unprocessed_suggestions.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
overdue_notices.pl Bug 26601: Add utf8 encoding to text output of overdue_notices.pl 2020-11-17 17:39:44 +13:00
patron_emailer.pl Bug 22755: Fix pod in patron_emailer.pl 2019-04-24 10:43:55 +00:00
printoverdues.sh
…
process_message_queue.pl Bug 24183: Add before_send_messages hook 2020-04-29 15:44:23 +00:00
purge_suggestions.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
reconcile_balances.pl Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron 2020-05-04 21:04:55 +00:00
remove_temporary_edifiles.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
runreport.pl Bug 16219: (QA follow-up) Tiny regex change 2019-08-13 11:55:17 +01:00
serialsUpdate.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
share_usage_with_koha_community.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
sitemap.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
staticfines.pl Bug 21633: Remove finesMode 'test' 2020-03-13 00:23:47 +00:00
stockrotation.pl Bug 22566: (QA follow-up) Fix pod complaint 2019-06-25 17:01:33 +01:00
update_patrons_category.pl Bug 25853: Fix file permissions for update_patrons_category script 2020-08-17 11:13:25 +12:00
update_totalissues.pl Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00