[Bug 14797] Cancelling orders with no alert to existing holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14797 --- Comment #11 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Update to my earlier comment: bug 44288 has been folded into bug 44187, which now has a patch set (attachments 212619 to 212623) for the automated, EDI side. The part this bug can reuse is in patch 3 there. Koha::Acquisition::Order now has holds_orphaned_by_cancellation(), which returns the unfilled holds that would be left with nothing to fill them if the order were cancelled (holds on the order's own items, and record level holds when the record has no other item, uncancelled order line or subscription), and Order->cancel() accepts cancel_holds and hold_cancellation_reason. The holds are cancelled first, so the items can then be deleted, and the patron is sent the HOLD_CANCELLATION notice when the library has defined one (Koha does not ship it). That leaves this bug to the staff side: when cancelling an order from the basket, check holds_orphaned_by_cancellation() first. If there are any, warn the librarian, say how many patrons are affected, offer a HOLD_CANCELLATION reason to choose and a choice to cancel the holds and notify them or leave them, and then call cancel() with the choice. Checking before cancelling avoids a half-done state when the librarian decides not to proceed. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org