Skip to content

Commit

Permalink
Updating regimes and addons
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Oct 7, 2024
1 parent e32ead1 commit f201798
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 61 deletions.
73 changes: 73 additions & 0 deletions addons/co-dian-v2.mdx
Original file line number Diff line number Diff line change
@@ -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 <code>reason</code> field
when submitting the correction options.

### Invoice Types

The types of invoices that can be created with a preceding definition:
- <code>credit-note</code>
- <code>debit-note</code>

### Stamp Keys

Stamp keys from the previous invoice that need to be referenced:
- <code>dian-cude</code>

### 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.
- <code>co-dian-credit-code</code>
- <code>co-dian-debit-code</code>

## Extensions

The following extensions are supported.

### DIAN Municipality Code

Key: <code>co-dian-municipality</code>

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: <code>co-dian-credit-code</code>

DIAN correction code for credit notes

| Value | Name |
| ---- | ---- |
| <code>1</code> | Partial refund |
| <code>2</code> | Revoked |
| <code>3</code> | Discount |
| <code>4</code> | Adjustment |
| <code>5</code> | Other |

### Debit Code

Key: <code>co-dian-debit-code</code>

DIAN correction code for debit notes

| Value | Name |
| ---- | ---- |
| <code>1</code> | Interest |
| <code>2</code> | Pending charges |
| <code>3</code> | Change in value |
| <code>4</code> | Other |
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
61 changes: 1 addition & 60 deletions regimes/co.mdx
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 <code>reason</code> field
when submitting the correction options.

### Invoice Types

The types of invoices that can be created with a preceding definition:
- <code>credit-note</code>
- <code>debit-note</code>

### Stamp Keys

Stamp keys from the previous invoice that need to be referenced:
- <code>dian-cude</code>

### 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.
- <code>co-dian-credit-code</code>
- <code>co-dian-debit-code</code>

## Extensions

The following extensions are supported.

### DIAN Municipality Code

Key: <code>co-dian-municipality</code>

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: <code>co-dian-credit-code</code>

DIAN correction code for credit notes

| Value | Name |
| ---- | ---- |
| <code>1</code> | Partial refund |
| <code>2</code> | Revoked |
| <code>3</code> | Discount |
| <code>4</code> | Adjustment |
| <code>5</code> | Other |

### Debit Code

Key: <code>co-dian-debit-code</code>

DIAN correction code for debit notes

| Value | Name |
| ---- | ---- |
| <code>1</code> | Interest |
| <code>2</code> | Pending charges |
| <code>3</code> | Change in value |
| <code>4</code> | Other |
- <code>debit-note</code>

0 comments on commit f201798

Please sign in to comment.