Koha has the preference CumulativeRestrictionPeriodst that allow to sum restriction for each item overdued This is not working when returning items at once from user's detail page, it only applies first suspension. When returning from circulation module one by one it works fine. test plan: a) Configure circulation rule with 1 days of suspension for earch overdue day b) issue two items to any user c) 2 days after due date return both items at one from moremmebers, it will be suspended 2 days instead 2 + 2 d) issue two items again to any other user c) 2 days after the due date, go to circulation module -- return, d) return one by one... e) the user is restrictd 2 + 2 I have checked from 23.05 and 23.11
Hi Hugo, I've just tested using the below test plan, and it's working fine in the "main" branch. I found that returning it via the circulation module was misleading, but the restriction/suspension was the same in the end. I'll take a look on 23.11 to see if I can reproduce there... -- 1. Go to http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=CumulativeRestrictionPeriods 2. Set syspref to "Cumulate" 3. Go to http://localhost:8081/cgi-bin/koha/admin/smart-rules.pl 4. Change circ rules 4a. Set "Suspension in days (day)" to 1 5. Checkout 39999000001310 with a due date 2 days in the past 6. Checkout 39999000004571 with a due date 2 days in the past 7. Checkin the 2 overdue items by going to the "Checkouts" tab below the checkout area and clicking "Check in selected items" 8. Go to http://localhost:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=51 9. Click on "Restrictions" and note that the Expiration date is 4 days from "now" 10. Remove the "Restriction" 11. Repeat the checkout process mentioned above 12. Go to http://localhost:8081/cgi-bin/koha/circ/returns.pl 13. Checkin 39999000001310 (and note that it says the patron is debarred until 2 days in the future) 14. Checkin 39999000004571 (and note that it says the "Patron was earlier restricted until" 2 days in the future) 15. Go to http://localhost:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=51 and note that the actual restriction is 4 days in the future
I just tested on 23.11.09 as well, and it's working the same as on "main".
Note when returning from the patron record, I tried from both /cgi-bin/koha/members/moremember.pl and /cgi-bin/koha/circ/circulation.pl although they use the same API