https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42789
Bug ID: 42789
Summary: EDI ORDRSP: Item and suggestion status not updated
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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
When an EDI ORDRSP message cancels an order line, Koha marks the order status
to 'cancelled' but does not update the status of associated items or purchase
suggestions.
Items created as part of the acquisition (on-order items) retain their existing
status, which can prevent holds from being placed or fulfilled. Similarly, any
purchase suggestion that drove the original order is not updated to reflect
that the order has been cancelled, leaving suggestions in a misleading state.
Customer reports confirm that in some configurations items are being deleted on
cancellation, causing holds to fail. The correct behaviour â whether to
delete,
update status, or transfer holds â needs to be defined and implemented
consistently for the EDI cancellation code path, matching the behaviour of
manual cancellation via the acquisitions UI.
The processing logic is in Koha/EDI.pm, process_ordrsp() (~line 199-248).
Test plan:
1. Create an order with associated on-order items and/or a linked suggestion.
2. Place a hold on one of the on-order items.
3. Receive an EDI ORDRSP cancellation for that order line and run edi_cron.pl.
4. Confirm the order line is marked cancelled.
5. Confirm on-order items are handled appropriately (status updated / holds
transferred).
6. Confirm any linked suggestion is returned to a pending/unfulfilled state.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/