mydata

package
v0.200.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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"

	InvoiceTypeRetailPrefix = "11."
)

Regime extension 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 IsRetail

func IsRetail(inv *bill.Invoice) bool

IsRetail returns true if the invoice type corresponds to a retail invoice.

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