Skip to main content
Key: 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. exemptE, reverse-chargeAE). Each exempt tax category without a VATEX code must have at least one exemption note covering it.

Scenarios

bill/invoice

Filters:
  • Types: standard
Output:
  • Extensions: untdid-document-type:380
Filters:
  • Types: credit-note
Output:
  • Extensions: untdid-document-type:381
Filters:
  • Types: debit-note
Output:
  • Extensions: untdid-document-type:383
Filters:
  • Types: corrective
Output:
  • Extensions: untdid-document-type:384
Filters:
  • Types: proforma
Output:
  • Extensions: untdid-document-type:325
Filters:
  • Types: standard
  • Tags: partial
Output:
  • Extensions: untdid-document-type:326
Filters:
  • Types: standard
  • Tags: self-billed
Output:
  • Extensions: untdid-document-type:389
Filters:
  • Types: credit-note
  • Tags: self-billed
Output:
  • Extensions: untdid-document-type:261
Filters:
  • Types: standard
  • Tags: prepayment
Output:
  • Extensions: untdid-document-type:386
Filters:
  • Types: standard
  • Tags: factoring
Output:
  • Extensions: untdid-document-type:393
Filters:
  • Types: credit-note
  • Tags: factoring
Output:
  • Extensions: untdid-document-type:396

Validation Rules