[Bug 16344] New: Add a circ rule to limit the auto renewals given a specific date
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Bug ID: 16344 Summary: Add a circ rule to limit the auto renewals given a specific date Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: jonathan.druart@bugs.koha-community.org QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com A new column issuingrules.no_auto_renewal_after_hard_limit will allow to restrict the auto renewals based on a specific date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |jonathan.druart@bugs.koha-c |ity.org |ommunity.org Status|NEW |ASSIGNED Depends on| |15581 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15581 [Bug 15581] Add a circ rule to limit the auto renewals given a delay -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 50676 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50676&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 50677 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50677&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |15582 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15582 [Bug 15582] Ability to block auto renewals if the OPACFineNoRenewals amount is reached -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 50725 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50725&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |16413 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16413 [Bug 16413] Prototype for GetLatestAutoRenewDate and GetSoonestRenewDate should be changed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |BLOCKED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|BLOCKED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #50676|0 |1 is obsolete| | --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 53428 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53428&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #50677|0 |1 is obsolete| | --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 53429 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53429&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #50725|0 |1 is obsolete| | --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 53430 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53430&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Liz Rea <liz@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liz@catalyst.net.nz Status|Needs Signoff |Patch doesn't apply --- Comment #7 from Liz Rea <liz@catalyst.net.nz> --- Applying: Bug 16344: Add a circ rule to limit the auto renewals given a specific fatal: sha1 information is lacking or useless (C4/Circulation.pm). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 Bug 16344: Add a circ rule to limit the auto renewals given a specific :( -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Liz Rea from comment #7)
Applying: Bug 16344: Add a circ rule to limit the auto renewals given a specific fatal: sha1 information is lacking or useless (C4/Circulation.pm). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 Bug 16344: Add a circ rule to limit the auto renewals given a specific
:(
It applies cleanly on top of bug 15581. Please try again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Janet McGowan <janet.mcgowan@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janet.mcgowan@ptfs-europe.c | |om -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Michael Kuhn <mik@adminkuhn.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mik@adminkuhn.ch --- Comment #9 from Michael Kuhn <mik@adminkuhn.ch> --- First I successfully applied bug 15581: vagrant@kohadevbox:kohaclone(003)$ git bz apply 15581 ... Applying: Bug 15581: Add a circ rule to limit the auto renewals given a delay Applying: Bug 15581: Display the latest auto renew date possible when renewing manually Applying: Bug 15581: Display the generic "schedule for auto renew" message on the checkouts table Applying: Bug 15581: [DO NOT PUSH] Schema changes Then I tried to apply bug 16344 but this failed with the same message as given by Liz Rea: vagrant@kohadevbox:kohaclone(003)$ git bz apply 16344 ... Applying: Bug 16344: Add a circ rule to limit the auto renewals given a specific fatal: sha1 information is lacking or useless (C4/Circulation.pm). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 Bug 16344: Add a circ rule to limit the auto renewals given a specific ... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53428|0 |1 is obsolete| | Attachment #53429|0 |1 is obsolete| | Attachment #53430|0 |1 is obsolete| | --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56616 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56616&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56617 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56617&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #12 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56618 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56618&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #13 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Patches rebased. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #14 from Michael Kuhn <mik@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@kohadevbox:kohaclone(003)$ sudo koha-shell kohadev kohadev-koha@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@kohadevbox:kohaclone(003)$ sudo koha-shell kohadev kohadev-koha@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56616|0 |1 is obsolete| | Attachment #56617|0 |1 is obsolete| | Attachment #56618|0 |1 is obsolete| | --- Comment #15 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56750&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #16 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56751&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #17 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56752&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #18 from Michael Kuhn <mik@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@kohadevbox:kohaclone(002)$ sudo koha-shell kohadev kohadev-koha@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): 27/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-24 14:48:00" WHERE itemnumber=1; 3) I executed the renewals cronjob script as follows: vagrant@kohadevbox:kohaclone(002)$ sudo koha-shell kohadev kohadev-koha@kohadevbox:/home/vagrant/kohaclone$ misc/cronjobs/automatic_renewals.pl I still cannot confirm that the issue has been renewed. Instead, nothing has changed (the due date is still set to 25/10/2016). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #19 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Michael Kuhn from comment #18)
I still cannot confirm that the issue has been renewed. Instead, nothing has changed (the due date is still set to 25/10/2016).
Check your issuing rules: SELECT issuelength, lengthunit, renewalperiod FROM issuingrules; -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #20 from Michael Kuhn <mik@adminkuhn.ch> --- mysql> SELECT issuelength, lengthunit, renewalperiod FROM issuingrules; +-------------+------------+---------------+ | issuelength | lengthunit | renewalperiod | +-------------+------------+---------------+ | NULL | days | 0 | +-------------+------------+---------------+ These are the standard values in the kohadevbox. Should I set these to different values? Which are these? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #21 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Michael Kuhn from comment #20)
mysql> SELECT issuelength, lengthunit, renewalperiod FROM issuingrules; +-------------+------------+---------------+ | issuelength | lengthunit | renewalperiod | +-------------+------------+---------------+ | NULL | days | 0 | +-------------+------------+---------------+
These are the standard values in the kohadevbox. Should I set these to different values? Which are these?
Yes, the issuelength and renewalperiod should be defined and set to something > 0 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #22 from Michael Kuhn <mik@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@kohadevbox:kohaclone(002)$ sudo koha-shell kohadev kohadev-koha@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@kohadevbox:kohaclone(002)$ sudo koha-shell kohadev kohadev-koha@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #23 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Michael Kuhn from comment #22)
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.
If the due date is in the future, why do you want the issue to be renewed automatically? :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #24 from Michael Kuhn <mik@adminkuhn.ch> --- Well, the test plan didn't say it can not be in the future... However as I know from my library days it is usual that users lend a book and they renew it as soon as possible, so they can keep it longer. Usually this is possible. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #25 from Michael Kuhn <mik@adminkuhn.ch> --- OK, in the case I described the issue is usually not renewed automatically. I'll try again on 29/10/2016. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #26 from Michael Kuhn <mik@adminkuhn.ch> --- Today I executed the renewals cronjob script again as follows: vagrant@kohadevbox:kohaclone(002)$ sudo koha-shell kohadev kohadev-koha@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. I will now definitely stop testing this case because it takes me far too much time for no result at all. I hope someone with better knowledge can successfully sign this off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56752|0 |1 is obsolete| | --- Comment #27 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 56977 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56977&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #28 from Janet McGowan <janet.mcgowan@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56750|0 |1 is obsolete| | --- Comment #29 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 57735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57735&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56751|0 |1 is obsolete| | --- Comment #30 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 57736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57736&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56977|0 |1 is obsolete| | --- Comment #31 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 57737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57737&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #57735|0 |1 is obsolete| | Attachment #57736|0 |1 is obsolete| | Attachment #57737|0 |1 is obsolete| | --- Comment #32 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 61074 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61074&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #33 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 61075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61075&action=edit Bug 16344: Fix alignment between top and bottom columns -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #34 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 61076 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61076&action=edit Bug 16344: [DO NOT PUSH] Schema changes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61074|0 |1 is obsolete| | --- Comment #35 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 61511 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61511&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61075|0 |1 is obsolete| | --- Comment #36 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 61512 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61512&action=edit Bug 16344: Fix alignment between top and bottom columns Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61076|0 |1 is obsolete| | --- Comment #37 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 61513 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61513&action=edit Bug 16344: [DO NOT PUSH] Schema changes Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com Status|Needs Signoff |Signed Off --- Comment #38 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Acting as git gopher for Jonathan Field and Janet McGowan again here, they did the actual testing and signoff. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61511|0 |1 is obsolete| | Attachment #61512|0 |1 is obsolete| | Attachment #61513|0 |1 is obsolete| | --- Comment #39 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 62820 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62820&action=edit Bug 16344: Add a circ rule to limit the auto renewals given a specific This patch adds a new circulation rule (no_auto_renewal_after_hard_limit) to block/allow auto renewals after a given date. The idea is to stop renewals at a given date. That way the library will have time to send overdues and get the books back before the students do on holiday. Test plan: 0/ Execute the update DB entry 1/ Define a rule with no_auto_renewal_after_hard_limit set to tomorrow 2/ Modify the issues.issuedate, to simulate a checkout in the past: UPDATE issues SET issuedate = "yyyy-mm-dd hh:mm:ss" WHERE itemnumber = YOUR_ITEMNUMBER; with issuedate = 2 days before for instance 3/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has been renewed 4/ Modify the no_auto_renewal_after_hard_limit and set it to yesterday 5/ Execute the automatic renewals cronjob script (misc/cronjobs/automatic_renewals.pl) Confirm that the issue has not been renewed Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #40 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 62821 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62821&action=edit Bug 16344: Fix alignment between top and bottom columns Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #41 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 62822 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62822&action=edit Bug 16344: [DO NOT PUSH] Schema changes Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #42 from Kyle M Hall <kyle@bywatersolutions.com> --- Pushed to master for 17.05, thanks Jonathan! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Status|Pushed to Master |RESOLVED Resolution|--- |FIXED --- Comment #43 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This won't get ported back to 16.11.x as it is an enhancement. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #44 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 63707 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63707&action=edit Bug 16344: Fix test in GetHardDueDate.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16344 --- Comment #45 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #44)
Created attachment 63707 [details] [review] Bug 16344: Fix test in GetHardDueDate.t
Pushed to master -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org