[Bug 42788] New: EDI ORDRSP: Fund encumbrance not released when order line cancelled by supplier
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42788 Bug ID: 42788 Summary: EDI ORDRSP: Fund encumbrance not released when order line cancelled by supplier Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org When an EDI ORDRSP message cancels an order line, Koha updates the order status to 'cancelled' but does not release the fund encumbrance. The budget remains committed to the cancelled order indefinitely, preventing those funds from being used for replacement orders. The processing logic is in Koha/EDI.pm, process_ordrsp() (~line 199-248). Manual cancellation via the acquisitions UI does release the encumbrance, but the EDI code path does not. This patch should release the fund encumbrance when an order line is cancelled via EDI ORDRSP, ideally guarded by a system preference so libraries can choose the behaviour that suits their workflow. Test plan: 1. Place an order against a fund with a known balance; note the encumbered amount. 2. Receive an EDI ORDRSP cancellation for that order line and run edi_cron.pl. 3. Confirm the order line is marked cancelled. 4. Confirm the fund encumbrance has been released and the available balance restored. 5. Test with the system preference disabled to confirm encumbrance is retained. -- 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=42788 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 -- 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