When a posted sales document (e.g., Posted Sales Invoice, Posted Sales Credit Memo) is sent using the Send action, the system uses the previously generated XML. If the user has corrected an error on the document after the initial XML was created (e.g., fixed an address, VAT registration number, or other fields), the sent XML will still contain the old, incorrect data.
Expected Behavior
When the Send action is triggered on a posted sales document that is configured to be sent as a e-document, the system should regenerate the XML before sending. This ensures that:
1. Any corrections made by the user since the last XML generation are reflected in the outgoing document
2. The XML always represents the current state of the posted document
3. Users do not need to manually trigger XML regeneration before sending
