https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43804
--- Comment #1 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 207939 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207939&action=edit Bug 43804: Add after_edifact_action plugin hook Add an after_edifact_action hook, fired once an EDIFACT message (QUOTE, INVOICE or ORDRSP) has been processed. It follows the existing after_*_action convention (after_biblio_action, after_item_action, ...): after_edifact_action( { action => 'process', payload => { message, message_id, message_type }, } ) The hook is fired from Koha::EDI::process_quote, process_invoice and process_ordrsp rather than from edi_cron.pl, so it also covers invoices processed manually from the staff interface and does not depend on how the messages were triggered. For quotes it fires after any auto-orders have been created, and for invoices it also fires when a vendor plugin handles the invoice via edifact_process_invoice. This lets plugins run post-EDI workflows (finance reconciliation, exports, alerting, adjusting records created from a quote) against the exact message that was processed without re-querying for 'new' messages. Test plan: 1. Apply the patch 2. prove t/db_dependent/Koha/Plugins/Edifact_hooks.t 3. Confirm the test fails without the Koha/EDI.pm change 4. prove t/db_dependent/Koha/EDI.t Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
