co

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

README

GOBL Colombia Tax Regime

Zones

Colombia requires zones to be defined in supplier and customer party's tax identity.

Invoice Series & Code

Invoices ("Facturas de Venta") as expected in many countries require a series and unique sequential code to be issued for each document. The DIAN in colombia however have gone a step further and require invoice series to be pre-registered with the government.

Details on how to do this are available here.

Documentation

Overview

Package co handles tax regime data for Colombia.

Index

Constants

View Source
const (
	TaxCategoryIC        cbc.Code = "IC"  // Impuesto Consumo
	TaxCategoryICA       cbc.Code = "ICA" // Impuesto de Industria y Comercio
	TaxCategoryINC       cbc.Code = "INC"
	TaxCategoryReteIVA   cbc.Code = "RVAT" // ReteIVA
	TaxCategoryReteRenta cbc.Code = "RR"   // ReteRenta
	TaxCategoryReteICA   cbc.Code = "RICA" // ReteICA
)

Local tax categories.

View Source
const (
	StampProviderDIANCUDE cbc.Key = "dian-cude"
	StampProviderDIANQR   cbc.Key = "dian-qr"
)

DIAN official codes to include in stamps.

View Source
const (
	CorrectionMethodKeyPartial         cbc.Key = "partial"
	CorrectionMethodKeyRevoked         cbc.Key = "revoked"
	CorrectionMethodKeyDiscount        cbc.Key = "discount"
	CorrectionMethodKeyPriceAdjustment cbc.Key = "price-adjustment"
	CorrectionMethodKeyOther           cbc.Key = "other"
)

Preceding document correction method constants.

View Source
const (
	KeyDep        cbc.Key = "dep"
	KeyISO        cbc.Key = "iso"
	KeyRegionISO  cbc.Key = "region_iso"
	KeyRegionCode cbc.Key = "region_code"
)

Keys used in meta data

View Source
const (
	KeyDIAN cbc.Key = "dian"
)

Special keys to use in meta data.

Variables

This section is empty.

Functions

func Calculate

func Calculate(doc interface{}) error

Calculate will attempt to clean the object passed to it.

func New

func New() *tax.Regime

New provides the tax region definition

func Validate

func Validate(doc interface{}) error

Validate checks the document type and determines if it can be validated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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