https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20252

--- Comment #4 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 200362
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200362&action=edit
Bug 20252: Send ORDCHG cancellation message when an EDI order is cancelled

When an order that was transmitted to a vendor as an EDIFACT ORDERS message is
cancelled, generate an ORDCHG (purchase order change) message requesting
cancellation of the order line and queue it for transmission.

The ORDCHG follows the EDItEUR/EANCOM purchase order change subset for
cancellations (D.96A, EAN005): BGM coded 230 with message function 1 (BiC
trade) or 4 (EDItEUR library), and one cancellation line per order carrying a
LIN segment with action code 2, a PIA product identifier and an RFF+LI segment
referencing the Koha ordernumber.

- Koha::Edifact::Order gains an ORDCHG message_type mode
- Koha::EDI::create_edi_ordchg queues the message
- Koha::Acquisition::Order->cancel triggers generation when the basket was
  EDI-transmitted and the vendor account has cancellations enabled
- edi_cron.pl uploads pending ORDCHG messages
- The EDI account admin page exposes the cancellations_enabled switch

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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/

Reply via email to