Documentation
¶
Overview ¶
Package saft provides the SAF-T addon for Portuguese invoices.
Index ¶
Constants ¶
View Source
const ( ExtKeyExemption cbc.Key = "pt-saft-exemption" ExtKeyTaxRate cbc.Key = "pt-saft-tax-rate" ExtKeyInvoiceType cbc.Key = "pt-saft-invoice-type" )
SAF-T Extension Keys
View Source
const ( // V1 for SAF-T (PT) versions 1.x V1 cbc.Key = "pt-saft-v1" )
Variables ¶
This section is empty.
Functions ¶
func TaxRateExtensions ¶
func TaxRateExtensions() tax.Extensions
TaxRateExtensions returns the mapping of tax rates defined in PT to their extension values used by SAF-T.
Use this to lookup a tax rate key for a SAF-T tax rate code:
saft.TaxRateExtensions().Lookup("RED") // returns tax.RateReduced
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.