https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42787 Bug ID: 42787 Summary: EDI ORDRSP: No staff notification triggered when an order line is 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 is received containing a cancellation (action code 2), Koha marks the order line as cancelled (via C4::Acquisition::ModOrder) but generates no staff-visible notification, email, or alert. Staff have no way to know a cancellation was processed unless they manually inspect the order or check the acquisitions log. In busy libraries this means cancellations can go unnoticed for days. The processing logic is in Koha/EDI.pm, process_ordrsp() (~line 199-248). This patch should add a staff notification (e.g. via the existing notice/ messaging infrastructure) when an order line is cancelled via EDI ORDRSP, so that the relevant librarian is alerted promptly. Test plan: 1. Configure EDI for a vendor and send an ORDRSP containing a cancellation (action code 2) for an existing order line. 2. Run the EDI cron: misc/cronjobs/edi_cron.pl 3. Confirm the order line is marked cancelled in acquisitions. 4. Confirm that an appropriate staff notification has been triggered. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.