mydata

package
v0.309.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package mydata handles the extensions and validation rules in order to use GOBL with the Greek MyData format.

Index

Constants

View Source
const (
	ExtKeyVATRate      = "gr-mydata-vat-rate"
	ExtKeyInvoiceType  = "gr-mydata-invoice-type"
	ExtKeyExemption    = "gr-mydata-exemption"
	ExtKeyIncomeCat    = "gr-mydata-income-cat"
	ExtKeyIncomeType   = "gr-mydata-income-type"
	ExtKeyPaymentMeans = "gr-mydata-payment-means"
	ExtKeyTaxType      = "gr-mydata-tax-type"
	ExtKeyOtherTax     = "gr-mydata-other-tax"
	ExtKeyFee          = "gr-mydata-fee"
	ExtKeyStampDuty    = "gr-mydata-stamp-duty"
)

Regime extension codes.

View Source
const (
	TaxTypeWithholding = "1"
	TaxTypeFee         = "2"
	TaxTypeOtherTax    = "3"
	TaxTypeStampDuty   = "4"
	TaxTypeDeduction   = "5"
)

Tax type codes.

View Source
const (
	TagIslands  cbc.Key = "islands"
	TagGoods    cbc.Key = "goods"
	TagServices cbc.Key = "services"
	TagExport   cbc.Key = "export"
	TagEU       cbc.Key = "eu"
)

Document tag keys

View Source
const (
	MeansKeyForeign cbc.Key = "foreign"
)

Regime Specific Payment Means Extension Keys

View Source
const (
	// V1 for Greece MyData XML v1.x
	V1 cbc.Key = "gr-mydata-v1"
)

Variables

This section is empty.

Functions

func PaymentMeansExtensions

func PaymentMeansExtensions() tax.Extensions

PaymentMeansExtensions returns the mapping of payment means to their extension values used by myDATA.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL