gr-mydata-v1
Module: github.com/invopop/gobl
Greece uses the myDATA and Peppol BIS Billing 3.0 formats for their e-invoicing/tax-reporting system.
This addon will ensure that the GOBL documents have all the required fields to be able to correctly
generate the myDATA XML reporting files.
Sources
Scenarios
bill/invoice
standard
standard
Filters:
- Types:
standard
- Extensions:
gr-mydata-invoice-type:2.1
standard, #goods
standard, #goods
Filters:
- Types:
standard - Tags:
goods
- Extensions:
gr-mydata-invoice-type:1.1
standard, #goods, #export
standard, #goods, #export
Filters:
- Types:
standard - Tags:
goods,export
- Extensions:
gr-mydata-invoice-type:1.3
standard, #goods, #export, #eu
standard, #goods, #export, #eu
Filters:
- Types:
standard - Tags:
goods,export,eu
- Extensions:
gr-mydata-invoice-type:1.2
standard, #goods, #self-billed
standard, #goods, #self-billed
Filters:
- Types:
standard - Tags:
goods,self-billed
- Extensions:
gr-mydata-invoice-type:1.4
standard, #services
standard, #services
Filters:
- Types:
standard - Tags:
services
- Extensions:
gr-mydata-invoice-type:2.1
standard, #services, #export
standard, #services, #export
Filters:
- Types:
standard - Tags:
services,export
- Extensions:
gr-mydata-invoice-type:2.3
standard, #services, #export, #eu
standard, #services, #export, #eu
Filters:
- Types:
standard - Tags:
services,export,eu
- Extensions:
gr-mydata-invoice-type:2.2
credit-note
credit-note
Filters:
- Types:
credit-note
- Extensions:
gr-mydata-invoice-type:5.1
standard, #simplified
standard, #simplified
Filters:
- Types:
standard - Tags:
simplified
- Extensions:
gr-mydata-invoice-type:11.3
standard, #goods, #simplified
standard, #goods, #simplified
Filters:
- Types:
standard - Tags:
goods,simplified
- Extensions:
gr-mydata-invoice-type:11.1
standard, #services, #simplified
standard, #services, #simplified
Filters:
- Types:
standard - Tags:
services,simplified
- Extensions:
gr-mydata-invoice-type:11.2
credit-note, #simplified
credit-note, #simplified
Filters:
- Types:
credit-note - Tags:
simplified
- Extensions:
gr-mydata-invoice-type:11.4
credit-note, #goods, #simplified, #self-billed
credit-note, #goods, #simplified, #self-billed
Filters:
- Types:
credit-note - Tags:
goods,simplified,self-billed
- Extensions:
gr-mydata-invoice-type:11.5
Extensions
VAT rate
Greece has three VAT rates: standard, reduced and super-reduced. Each of these rates are reduced by 30% on the islands of Leros, Lesbos, Kos, Samos and Chios. The tax authority identifies each rate with a specific VAT category. The IAPR VAT category code must be set using thegr-mydata-vat-rate extension of
a line’s tax to one of the codes.
Please, note that GOBL will automatically set the proper
gr-mydata-vat-rate code and tax percent automatically when the line tax uses any of the GOBL rates specified in the table above. For example:
gr-mydata-vat-rate
gr-mydata-vat-rate
Invoice type
The Greek tax authority (IAPR) requires an invoice type code to be specified as part of the invoice. GOBL will automatically set the correct code based on the invoice’stype and $tags values.
However, you can also set the code manually using the gr-mydata-invoice-type extension in the tax
section of the invoice, and setting the invoice’s type to other.
The following table lists how the combination of type and $tags values are mapped to the
IAPR MyDATA invoice type code:
For example, this is how you set the IAPR invoice type explicitly:
gr-mydata-invoice-type
gr-mydata-invoice-type
Payment means
The IAPR requires invoices to specify a payment method code. In a GOBL invoice, the payment means is set using thekey field in the payment instructions.
The following table lists all the IAPR payment methods and how GOBL will map from
the payment instructions key to each of them:
For example:
gr-mydata-payment-means
gr-mydata-payment-means
VAT exemption cause
Greece invoices can be exempt of VAT for different causes and the tax authority require a specific cause code to be provided. GOBL will try to automatically map the tax combokey to an appropriate exemption
code, but given the number of options you will no doubt need to consult with
a tax professional to determine the correct code for your case.
Example usage:
gr-mydata-exemption extension are
generated using AI and may not be 100% accurate. Always consult with a tax
professional to ensure you’re choosing the correct code.
gr-mydata-exemption
gr-mydata-exemption
Income Classification Category
Invoices reported to the Greek tax authority via myDATA can optionally include information about the income classification of each invoice item. In a GOBL invoice, thegr-mydata-income-cat and gr-mydata-income-type extensions can be
set at the item level to any of the values expected by the IAPR. For example:
gr-mydata-income-cat
gr-mydata-income-cat
Income Classification Type
See the Income Classification Category for more information.gr-mydata-income-type
gr-mydata-income-type
Tax type
Greek invoices may contain charges or allowances for taxes and fees different from VAT. Thegr-mydata-tax-type extension at charge level must be used to specify the tax type.
GOBL will attempt to automatically set the gr-mydata-tax-type extension. The following
table shows the mappings used: first, GOBL will check the charge’s key field; if that
does not match, it will then check for the presence of the related extension:
For example (manual):
gr-mydata-tax-type
gr-mydata-tax-type
Fee category
Greek invoices may contain charges for different types of fees. In GOBL, you must use thegr-mydata-fee extension at charge level to specify the specific fee category
for the charge.
For example:
gr-mydata-fee
gr-mydata-fee
Other taxes category
Greek invoices may contain charges for different taxes other than VAT. Thegr-mydata-other-tax extension at charge level must be used to specify the specific
other tax category for the charge.
For example:
gr-mydata-other-tax
gr-mydata-other-tax
Stamp duty coefficient category
Greek invoices may contain charges for stamp duty. Thegr-mydata-stamp-duty extension
at charge level must be used to specify the specific stamp duty coefficient category
for the charge.
For example:
gr-mydata-stamp-duty
gr-mydata-stamp-duty
Validation Rules
bill.Invoice
bill.Invoice
bill.Charge
bill.Charge
tax.Combo
tax.Combo
pay.Instructions
pay.Instructions
pay.Record
pay.Record