Koha/misc/cronjobs
Nick Clemens ff08e99965 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: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-28 11:08:03 +02:00
..
holds Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
rss Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
social_data
thirdparty Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
advance_notices.pl
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 25758: Return on_reserve over too_soon when not calling from automatic_renewals cron 2020-09-28 11:08:03 +02: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
cleanup_database.pl Bug 24153: (QA follow-up) Removing one redundant initialization line 2020-07-20 16:08:22 +02:00
cloud-kw.pl
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 25157: Silent patron deletion cmd line script 2020-05-11 09:57:07 +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 21395: Make perlcritic happy 2020-06-29 12:37:02 +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 26420: Use translated notices for overdue_notices.pl 2020-09-18 10:38:05 +02: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
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 25853: Fix file permissions for update_patrons_category script 2020-08-07 16:54:40 +02:00
update_totalissues.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00