]> git.koha-community.org Git - koha.git/commit
Bug 25393: (QA follow-up) Report 'too_soon' errors from cron
authorNick Clemens <nick@bywatersolutions.com>
Wed, 11 Oct 2023 13:55:42 +0000 (13:55 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Oct 2023 19:31:23 +0000 (16:31 -0300)
commitd67ab2337308eae7921273f08dbfa94581b59e58
tree6f9c69e90141a62f01f6a1aadb8b5f8e4dac092c
parentfb4a40c34dbc30c06dea8be89f6ca5efaf268d9e
Bug 25393: (QA follow-up) Report 'too_soon' errors from cron

This patchset made it possible for 'too_soon' to be returned instead of 'auto_too_soon' - we just need to take that into account in the error listing

To test:
1 - Set circ rule to no renewal before 2, no auto renewal before 3
2 - Checkout 3 items with auto renew, due tomorrow, in 2 days, in 3 days
3 - perl misc/cronjobs/automatic_renewals.pl -v
4 - Confirm 1 can be renewed, 1 is too soon, 1 is auto too soon

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/automatic_renewals.pl