mydata

package
v0.502.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 16 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 (
	// Key identifies the MyData addon family. Individual versions append a
	// suffix; the family key is used as the fault-code namespace so that
	// rules that carry across versions keep stable codes.
	Key cbc.Key = "gr-mydata"

	// V1 for Greece MyData XML v1.x
	V1 cbc.Key = Key + "-v1"
)
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

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