saft

package
v0.201.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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