[Bug 44140] New: Check-in page: cancel waiting hold with cancellation request when return is blocked
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 Bug ID: 44140 Summary: Check-in page: cancel waiting hold with cancellation request when return is blocked Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Depends on: 42383 Target Milestone: --- A check-in refused by 'BlockReturnOfWithdrawnItems' (or 'BlockReturnOfLostItems') no longer cancels a waiting hold that has a cancellation request. The old page did cancel it, so on the new page the hold stays on the hold shelf even though the patron asked to cancel and the item is withdrawn or lost. Follow-up to bug 42383, reported by Pedro Amorim. Test plan: 1. Set 'BlockReturnOfWithdrawnItems' to "Block" (/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=BlockReturnOfWithdrawnItems) 2. In Administration > Circulation and fines rules (/cgi-bin/koha/admin/smart-rules.pl), under 'Default waiting hold cancellation policy', set 'Cancellation allowed' to 'Yes' for all patron categories and item types 3. Place a hold on the record of item 3999900000018 for patron '42' (koha), pickup at Centerville (/cgi-bin/koha/reserve/request.pl?biblionumber=4) 4. Check in item 3999900000018 at /cgi-bin/koha/circ/checkin.pl and confirm the hold, so it is waiting 5. Log in to the OPAC as koha/koha, go to 'Holds' in your account (/cgi-bin/koha/opac-user.pl) and click 'Request to cancel' 6. On the 'Items' tab of the record (/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=4), set the 'Withdrawn status' of item 3999900000018 to 'Withdrawn' and click 'Set status' 7. Check in item 3999900000018 again 8. Expected: the check-in is refused and the waiting hold is cancelled, as the old page did. Actual: the check-in is refused and the hold is still waiting (/cgi-bin/koha/reserve/request.pl?biblionumber=4) Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 [Bug 42383] Migrate check-in page to Vue -- 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=44140 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk Keywords| |regression -- 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=44140 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211899 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211899&action=edit Bug 44140: Cancel the waiting holds with a cancellation request when the check-in is blocked The old check-in page cancelled the waiting holds for which the patron had requested cancellation before it tried to return the item, so a check-in refused by BlockReturnOfWithdrawnItems or BlockReturnOfLostItems still cancelled them. The Vue page only did it for the check-ins that went through, leaving the hold on the hold shelf for an item that is withdrawn or lost. POST /checkins now cancels them when the check-in is blocked too, and lists them in 'cancelled_holds' of the 403 response. The page says that the hold was cancelled, next to the NOT CHECKED IN alert. To test: 1. Set BlockReturnOfWithdrawnItems to "Block" 2. In Administration > Circulation and fines rules, under 'Default waiting hold cancellation policy', set 'Cancellation allowed' to 'Yes' for all patron categories and item types 3. Place a hold on the record of an item for a patron, check the item in and confirm the hold, so it is waiting 4. In the OPAC, as that patron, go to your account > Holds and click 'Request to cancel' 5. On the 'Items' tab of the record, set the 'Withdrawn status' of the item to 'Withdrawn' 6. Check in the item at Circulation > Check in 7. The check-in is refused, and an alert says that the hold waiting for the item was cancelled 8. The hold is gone from the record's holds 9. Run the tests: prove t/db_dependent/api/v1/checkins.t t/cypress/integration/Circulation/Checkin_spec.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211899|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 211925 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211925&action=edit Bug 44140: Cancel the waiting holds with a cancellation request when the check-in is blocked The old check-in page cancelled the waiting holds for which the patron had requested cancellation before it tried to return the item, so a check-in refused by BlockReturnOfWithdrawnItems or BlockReturnOfLostItems still cancelled them. The Vue page only did it for the check-ins that went through, leaving the hold on the hold shelf for an item that is withdrawn or lost. POST /checkins now cancels them when the check-in is blocked too, and lists them in 'cancelled_holds' of the 403 response. The page says that the hold was cancelled, next to the NOT CHECKED IN alert. To test: 1. Set BlockReturnOfWithdrawnItems to "Block" 2. In Administration > Circulation and fines rules, under 'Default waiting hold cancellation policy', set 'Cancellation allowed' to 'Yes' for all patron categories and item types 3. Place a hold on the record of an item for a patron, check the item in and confirm the hold, so it is waiting 4. In the OPAC, as that patron, go to your account > Holds and click 'Request to cancel' 5. On the 'Items' tab of the record, set the 'Withdrawn status' of the item to 'Withdrawn' 6. Check in the item at Circulation > Check in 7. The check-in is refused, and an alert says that the hold waiting for the item was cancelled 8. The hold is gone from the record's holds 9. Run the tests: prove t/db_dependent/api/v1/checkins.t t/cypress/integration/Circulation/Checkin_spec.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44140 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |tomascohen@gmail.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org