[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 26 13:57:32 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344
--- Comment #22 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(002)$ 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:
* Loan period: 3
* Unit: days
* Renewals allowed (count): 3
* Renewal period: 5
* No automatic renewal after (hard limit): 27/10/2016
Then I checked out the item with number 1 (otherwise it couldn't be updated
with following statement). It gets the due date of 29/10/2016.
2) I modified the table "issues" with issuedate two days before as followes:
UPDATE issues SET issuedate = "2016-10-24 14:00:00" WHERE itemnumber=1;
3) I executed the renewals cronjob script as follows:
vagrant at kohadevbox:kohaclone(002)$ sudo koha-shell kohadev
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$
misc/cronjobs/automatic_renewals.pl
Still I cannot confirm that the issue has been renewed. Instead, nothing has
changed and the due date is still set to 29/10/2016.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list