Summary: | Cumulative restriction does not apply when return in batch | ||
---|---|---|---|
Product: | Koha | Reporter: | Hugo Agud <hagud> |
Component: | Circulation | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | dcook, gmcharlt, kyle.m.hall |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Hugo Agud
2024-10-11 08:11:12 UTC
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 |