From f201798efc2e9d3927b037d3650f42e636683bc9 Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Mon, 7 Oct 2024 10:34:18 +0000 Subject: [PATCH] Updating regimes and addons --- addons/co-dian-v2.mdx | 73 +++++++++++++++++++++++++++++++++++++++++++ go.mod | 2 +- regimes/co.mdx | 61 +----------------------------------- 3 files changed, 75 insertions(+), 61 deletions(-) create mode 100644 addons/co-dian-v2.mdx diff --git a/addons/co-dian-v2.mdx b/addons/co-dian-v2.mdx new file mode 100644 index 0000000..b248827 --- /dev/null +++ b/addons/co-dian-v2.mdx @@ -0,0 +1,73 @@ +--- +title: Colombia DIAN UBL 2.X +--- +Extensions to support the Colombian DIAN (Dirección de Impuestos y Aduanas Nacionales) +specifications for electronic invoicing based on UBL 2.1. + +## Correction Definitions + +Auto-generation of corrective invoices or credit and debit notes is +supported. + +A reason is required in the reason field +when submitting the correction options. + +### Invoice Types + +The types of invoices that can be created with a preceding definition: +- credit-note +- debit-note + +### Stamp Keys + +Stamp keys from the previous invoice that need to be referenced: +- dian-cude + +### Extension Keys + +One or all of the following extensions may be required as part of the correction +options. See the [Extensions](#extensions) section for possible values. +- co-dian-credit-code +- co-dian-debit-code + +## Extensions + +The following extensions are supported. + +### DIAN Municipality Code + +Key: co-dian-municipality + +The municipality code as defined by the DIAN. + +For further details on the list of possible codes, see: + + * https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf + * https://github.com/ALAxHxC/MunicipiosDane + +### Credit Code + +Key: co-dian-credit-code + +DIAN correction code for credit notes + +| Value | Name | +| ---- | ---- | +| 1 | Partial refund | +| 2 | Revoked | +| 3 | Discount | +| 4 | Adjustment | +| 5 | Other | + +### Debit Code + +Key: co-dian-debit-code + +DIAN correction code for debit notes + +| Value | Name | +| ---- | ---- | +| 1 | Interest | +| 2 | Pending charges | +| 3 | Change in value | +| 4 | Other | \ No newline at end of file diff --git a/go.mod b/go.mod index 257a896..8704daa 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22 toolchain go1.22.5 -require github.com/invopop/gobl v0.200.0 +require github.com/invopop/gobl v0.201.0 require ( cloud.google.com/go v0.115.0 // indirect diff --git a/regimes/co.mdx b/regimes/co.mdx index b34aea9..bc11a02 100644 --- a/regimes/co.mdx +++ b/regimes/co.mdx @@ -1,8 +1,6 @@ --- title: Colombia --- -The Colombian tax regime is based on the DIAN (Dirección de Impuestos y Aduanas Nacionales) -specifications for electronic invoicing. ## Base Details @@ -36,65 +34,8 @@ specifications for electronic invoicing. Auto-generation of corrective invoices or credit and debit notes is supported. -A reason is required in the reason field -when submitting the correction options. - ### Invoice Types The types of invoices that can be created with a preceding definition: - credit-note -- debit-note - -### Stamp Keys - -Stamp keys from the previous invoice that need to be referenced: -- dian-cude - -### Extension Keys - -One or all of the following extensions may be required as part of the correction -options. See the [Extensions](#extensions) section for possible values. -- co-dian-credit-code -- co-dian-debit-code - -## Extensions - -The following extensions are supported. - -### DIAN Municipality Code - -Key: co-dian-municipality - -The municipality code as defined by the DIAN. - -For further details on the list of possible codes, see: - - * https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf - * https://github.com/ALAxHxC/MunicipiosDane - -### Credit Code - -Key: co-dian-credit-code - -DIAN correction code for credit notes - -| Value | Name | -| ---- | ---- | -| 1 | Partial refund | -| 2 | Revoked | -| 3 | Discount | -| 4 | Adjustment | -| 5 | Other | - -### Debit Code - -Key: co-dian-debit-code - -DIAN correction code for debit notes - -| Value | Name | -| ---- | ---- | -| 1 | Interest | -| 2 | Pending charges | -| 3 | Change in value | -| 4 | Other | \ No newline at end of file +- debit-note \ No newline at end of file