[Bug 27435] New: Patron suspensions calculated differently when items are returned through patron Details tab
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27435 Bug ID: 27435 Summary: Patron suspensions calculated differently when items are returned through patron Details tab Change sponsored?: --- Product: Koha Version: 19.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: hc@interleaf.ie QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Suspension dates for patrons are different depending on where overdue items are checked in, i.e Details tab on the patron account vs. under Circulation, Checkin. Example: Circulation rules for items a + b Suspension in days (day) = 2 Max suspension duration (day) = 10 Suspension charging interval = 1 Fine grace period = 1 Circulation rules for item c Suspension in days (day) = 1 Max suspension duration (day) = 10 Suspension charging interval = 1 Fine grace period = 1 System preference CumulativeRestrictionPeriods set to "Cumulate". 3 items are overdue, all with the due date 06/01/21. They are all checked in, via Circulation, Checkin on 08/01/21. The ‘debarred until’ date increases as each individual item is checked in. The final restriction date of 15/01/21. Same three items, under the same conditions are checked in via the Circulation table on the Details tab of the patron account and restriction date is set to 14/01/21. This could relate to bug 3514 -- 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=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I don't recreate on master. -- 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=27435 --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- If you are able to recreate the problem on a sandbox let me know the different steps to reproduce the issue and I will have a look. -- 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=27435 --- Comment #3 from Holly <hc@interleaf.ie> --- I recreated this on master. I checked out three items to a patron in the "Patron" category. Two of these items were item type "Books". One of these items was item type "Visual Materials". The circulation rules for "Patron" and "Books" were: Fine grace period: 1 Suspensions in days: 2 Max. suspension duration: 10 Suspension charging interval: 1 The circulation rules for "Patron" and "Visual Materials" were: Fine grace period: 1 Suspensions in days: 1 Max. suspension duration: 10 Suspension charging interval: 1 The system preference CumulativeRestrictionPeriods was set to "Cumulate". When I checked the three items out on 15/01/21, I backdated the due date on the three items to 13/01/21. When I checked the items in together, all at once on the Patron Details page, the patron was suspended until 01/19/2021. I then checked the items out again and backdated them to be due on 13/01/21 again. When I checked the items back in, one at a time, under Circulation, Checkin the patron was suspended until 01/20/2021. -- 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=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|19.11 |unspecified --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Right, I think I recreate it now. If I am understanding correctly what's going on we have a race condition. For instance if the 3rd checkin happens when the 1st (or 2nd) is not completed yet then it will create an other restriction, instead of cumulating over the 2 other restrictions as it should. -- 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=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=19814 -- 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=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |11703 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11703 [Bug 11703] Convert checkouts table to ajax datatable -- 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=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |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=27435 --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- The following change may fix the problem. diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index b5347c0bae..284b86c0ca 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -128,7 +128,9 @@ $(document).ready(function() { $(id).replaceWith( content ); }, "json") + $.ajaxSetup({async: true}); }); -- 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=27435 Holly <hc@interleaf.ie> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dch@interleaf.ie -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27435 Holly <hc@interleaf.ie> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|dch@interleaf.ie | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27435 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Should be fixed by bug 26208, can you test it please? *** This bug has been marked as a duplicate of bug 26208 *** -- 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=27435 --- Comment #7 from Holly <hc@interleaf.ie> --- Testing confirms that the fix in bug 26208 resolves this issue. Thanks so much Jonathan. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org