How to deal with XML versioning of e-invoice export?
Short answer
For each XML export, record the mapping version, the profile version, the validator version and the hash of the resulting XML. If you later change the export logic, old invoices should not be overwritten. It must be clear according to which version of the rules a particular document was created.
Rules version
Save according to which XML mapping it was created.
Control version
The result of the validation depends on the rules at the time of the check.
Fixed output
The hash will distinguish the original XML from the new export.
Change log
Each export adjustment should have a brief reason.
Conclusion
Export versioning protects the company from the chaos of rule and ERP changes.
Sources
- Law no. 431/2002 Z. z. Coll. about accounting
- Law no. 222/2004 Z. z. Coll. about VAT
- EN 16931 and versioned validation rules
release notes Peppol BIS Billing · validation artifacts and examples
Not legal advice. Machine-translated answer, not yet manually reviewed. For the exact wording, see the Slovak original.