eu-en16931-v2017
Module: github.com/invopop/gobl
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
bill/invoice
standard
standard
Filters:
- Types:
standard
- Extensions:
untdid-document-type:380
credit-note
credit-note
Filters:
- Types:
credit-note
- Extensions:
untdid-document-type:381
debit-note
debit-note
Filters:
- Types:
debit-note
- Extensions:
untdid-document-type:383
corrective
corrective
Filters:
- Types:
corrective
- Extensions:
untdid-document-type:384
proforma
proforma
Filters:
- Types:
proforma
- Extensions:
untdid-document-type:325
standard, #partial
standard, #partial
Filters:
- Types:
standard - Tags:
partial
- Extensions:
untdid-document-type:326
standard, #self-billed
standard, #self-billed
Filters:
- Types:
standard - Tags:
self-billed
- Extensions:
untdid-document-type:389
credit-note, #self-billed
credit-note, #self-billed
Filters:
- Types:
credit-note - Tags:
self-billed
- Extensions:
untdid-document-type:261
standard, #prepayment
standard, #prepayment
Filters:
- Types:
standard - Tags:
prepayment
- Extensions:
untdid-document-type:386
standard, #factoring
standard, #factoring
Filters:
- Types:
standard - Tags:
factoring
- Extensions:
untdid-document-type:393
credit-note, #factoring
credit-note, #factoring
Filters:
- Types:
credit-note - Tags:
factoring
- Extensions:
untdid-document-type:396
Validation Rules
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