Documentation
¶
Overview ¶
Package common provides re-usable regime related structures and data.
Index ¶
Constants ¶
View Source
const ( TaxCategoryST cbc.Code = "ST" // Sales Tax TaxCategoryVAT cbc.Code = "VAT" // Value Added Tax TaxCategoryGST cbc.Code = "GST" // Goods and Services Tax )
Standard tax categories that may be shared between countries.
View Source
const ( TaxRateZero cbc.Key = "zero" TaxRateStandard cbc.Key = "standard" TaxRateIntermediate cbc.Key = "intermediate" TaxRateReduced cbc.Key = "reduced" TaxRateSuperReduced cbc.Key = "super-reduced" )
Most commonly used codes. Local regions may add their own rate codes.
View Source
const ( TagSimplified cbc.Key = "simplified" TagReverseCharge cbc.Key = "reverse-charge" TagCustomerRates cbc.Key = "customer-rates" TagSelfBilled cbc.Key = "self-billed" TagPartial cbc.Key = "partial" )
Standard tax tags
View Source
const (
IdentityTypeDUNS cbc.Code = "DUNS" // Dun & Bradstreet - Data Universal Numbering System
)
Common Identity Type Codes that are not country specific.
View Source
const (
InboxKeyPEPPOL cbc.Key = "peppol-id"
)
Common inbox keys
Variables ¶
This section is empty.
Functions ¶
func ComputeLuhnCheckDigit ¶ added in v0.37.3
ComputeLuhnCheckDigit expects as argument a number string excluding the check digit. The returned integer should be checked against the check digit by the caller. Luhn Algorithm definition: https://en.wikipedia.org/wiki/Luhn_algorithm
func NormalizeTaxIdentity ¶
NormalizeTaxIdentity removes any whitespace or separation characters and ensures all letters are uppercase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.