https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34924

Nick Clemens <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #157290|0                           |1
        is obsolete|                            |
 Attachment #157291|0                           |1
        is obsolete|                            |
 Attachment #157292|0                           |1
        is obsolete|                            |

--- Comment #11 from Nick Clemens <[email protected]> ---
Created attachment 157687
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157687&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to