[Koha-bugs] [Bug 16344] Add a circ rule to limit the auto renewals given a specific date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 31 18:08:31 CET 2016


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

--- Comment #28 from Janet McGowan <janet.mcgowan at ptfs-europe.com> ---
Hi, I've just signed this off using our Sandbox.

My testing plan as follows:

Test plan:

0) I executed the update DB entry
1) I defined a rule with no_auto_renewal_after_hard_limit set to tomorrow
01/11/2016
2) I modified issues.issuedate, to simulate a checkout in the past:
    UPDATE issues
    SET issuedate = "2016-10-29 23:59:00"
    WHERE itemnumber = '6';

For my test the due date = 2016-11-01 (ie. due tomorrow). With this example it
is also necessary to set a No renewal before value - e.g. 1 day in the
Circulation rule - to allow the item to be autorenewed 1 day before it is due.

3) I ran the misc/cronjobs/automatic_renewals.pl
I confirmed that the issue is renewed until 22/11/2016 (following 21 days in
the Circulation rule)

4) I modified the no_auto_renewal_after_hard_limit and set it to yesterday
30/10/2016

5) I ran the misc/cronjobs/automatic_renewals.pl
This time the issue has not been renewed - in the staff client the Renew column
displays: "Can no longer be auto-renewed - number of checkout days exceeded"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list