[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
Wed Oct 19 23:10:20 CEST 2016


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

--- Comment #14 from Michael Kuhn <mik at adminkuhn.ch> ---
According to the test plan I did the following.

I successfully applied patches 15581 and 16344.

0) I executed the update DB entry

vagrant at kohadevbox:kohaclone(003)$ sudo koha-shell kohadev
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ perl
installer/data/mysql/updatedatabase.pl
DEV atomic update: bug_15581.sql
DEV atomic update: bug_16344.sql

1) In Koha menu "Administration > Circulation and fine rules" I defined a rule
for all categories and all item types:
* Renewals allowed (count): 3
* No automatic renewal after (hard limit): 20/10/2016

Then I checked out the item with number 1 (otherwise it couldn't be updated
with following statement).

2) I modified the table "issues" with issuedate two days before as followes:

UPDATE issues SET issuedate = "2016-10-17 22:48:00" WHERE itemnumber=1;

3) I executed the renewals cronjob script as follows:

vagrant at kohadevbox:kohaclone(003)$ sudo koha-shell kohadev
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$
misc/cronjobs/automatic_renewals.pl

I cannot confirm that the issue has been renewed. Instead, nothing has changed.

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


More information about the Koha-bugs mailing list