eu-en16931-v2017
Support for the European Norm (EN) 16931-1:2017 standard for electronic invoicing.
This addon ensures the basic rules and mappings are applied to the GOBL document
ensure that it is compliant and easily convertible to other formats.
We strongly recommend checking the output and specifically the extension codes
used to ensure that any assumptions do not need be adjusted.
Tax Code Extension Mappings
The following tables show how GOBL tax keys/categories are mapped to UNTDID 5305 tax category codes:VAT
Other
For Spanish special territories, IGIC (Canary Islands) maps to code L and IPSI (Ceuta and Melilla) maps to code M. Any other tax category defaults to UNTDID 5305 code O (Outside Scope).Exemption Notes
Exempt tax categories (E, AE, K, G, O) require either a CEF VATEX code (cef-vatex) on the tax combo, or an exemption note in tax.notes.
Exemption notes use the tax.Note struct with cat, key, and text fields.
During normalization, the note’s key is mapped to the corresponding
untdid-tax-category extension (e.g. exempt → E,
reverse-charge → AE).
Each exempt tax category without a VATEX code must have at least one
exemption note covering it.
Scenarios
Scenarios attach notes and extensions to a document when its filters match. Read more about scenarios.bill/invoice
bill/invoice
Validation Rules
Validation rules check each struct against a set of assertions and report any failures with a unique code and message. Read more about validation.bill.Invoice
bill.Invoice
bill.Discount
bill.Discount
bill.LineDiscount
bill.LineDiscount
bill.Charge
bill.Charge
bill.LineCharge
bill.LineCharge
pay.Instructions
pay.Instructions
pay.Terms
pay.Terms
org.Item
org.Item
org.Attachment
org.Attachment
org.Party
org.Party
org.Inbox
org.Inbox
org.Address
org.Address
tax.Combo
tax.Combo