[Bug 14797] Cancelling orders with no alert to existing holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14797 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk --- Comment #13 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Patch attached. It depends on bug 44187: it uses Koha::Acquisition::Order->holds_orphaned_by_cancellation() and the cancel_holds / hold_cancellation_reason options of Order->cancel() added there, so that bug needs to be applied first. What it does: the "Cancel order" confirmation page lists the patrons whose holds could no longer be filled once the order is cancelled (holds on the order's own items, and record level holds when nothing else would be left to fill them). A librarian with the permission to cancel holds can tick "Cancel these holds and tell the patrons" and choose a HOLD_CANCELLATION reason. The holds are cancelled first, so the items can then be deleted, and the patrons get the HOLD_CANCELLATION notice if the library has defined one (Koha does not ship it; the page says so when it is missing). A reason is required, and without ticking the box, or without the permission, the holds are left as they were. Not covered, as a possible follow-up: deleting a whole basket cancels every order line too, and does not ask about holds yet. Tested through the staff interface (confirm page, missing reason, successful cancellation, leaving the holds, an order with no holds, and a librarian without permission to cancel holds). The patch has a manual test plan; there is no automated browser test for this page. -- 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