https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20253
--- Comment #6 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 183862 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183862&action=edit Bug 20253: (follow-up) Add RFF+ON segments to outgoing ORDER messages When vendors are configured to use purchase order numbers for basket naming, the purchase order number should be included in outgoing ORDER messages as an RFF+ON (Reference - Order Number) segment for proper EDI workflow continuity. This follow-up ensures that: 1. Purchase order numbers from incoming QUOTE messages are preserved 2. The same purchase order numbers are sent back in ORDER messages 3. Vendors receive the reference numbers they expect for order processing Implementation: - Added _get_purchase_order_number() method to extract PO number from basket name when vendor is configured with basket_name_source = 'purchase_order_number' - Modified order_msg_header() to include RFF+ON segment when PO number available - Added comprehensive tests for RFF+ON segment generation in ORDER messages Test Plan: 1. Apply patches 2. Configure a vendor EDI account with "Basket name source" = "Purchase order number" 3. Process a QUOTE message containing RFF+ON segment 4. Verify basket is created with purchase order number as name 5. Generate ORDER message from the basket 6. Verify ORDER message contains RFF+ON segment with the purchase order number 7. Run tests: prove t/db_dependent/Koha/Edifact/Order.t This completes the round-trip EDI workflow for purchase order number handling. -- 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/
