Skip to content

Commit

Permalink
Merge pull request #387 from invopop/release-0.201.0
Browse files Browse the repository at this point in the history
Release 0.201.0
  • Loading branch information
samlown authored Oct 7, 2024
2 parents b65a756 + 7df4926 commit f400fa1
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 224 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ All notable changes to GOBL will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). See also the [GOBL versions](https://docs.gobl.org/overview/versions) documentation site for more details.

## [Unreleased]
## [v0.201.0]

### Fixed

- `es-tbai-v1`: added validation for presense of `series` and `general` notes in Invoices.
- `es`: moving invoice customer validation to the facturae and tbai addons.
- `it-sdi-v1`: fixing validation issue for payment terms with no due dates.

### Updated
### Changed

- `pt`: reduced rate category for PT-MA was updated to reflect latest value of 4%
- `co-dian-v2`: moved from `co` tax regime into own addon.
Expand Down
238 changes: 238 additions & 0 deletions data/addons/co-dian-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
{
"$schema": "https://gobl.org/draft-0/tax/addon-def",
"key": "co-dian-v2",
"name": {
"en": "Colombia DIAN UBL 2.X"
},
"description": {
"en": "Extensions to support the Colombian DIAN (Dirección de Impuestos y Aduanas Nacionales)\nspecifications for electronic invoicing based on UBL 2.1."
},
"extensions": [
{
"key": "co-dian-municipality",
"name": {
"en": "DIAN Municipality Code",
"es": "Código de municipio DIAN"
},
"desc": {
"en": "The municipality code as defined by the DIAN.\n\nFor further details on the list of possible codes, see:\n\n * https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf\n * https://github.com/ALAxHxC/MunicipiosDane"
},
"pattern": "^\\d{5}$"
},
{
"key": "co-dian-credit-code",
"name": {
"en": "Credit Code",
"es": "Código de Crédito"
},
"desc": {
"en": "DIAN correction code for credit notes",
"es": "Código de corrección DIAN para notas de crédito"
},
"values": [
{
"value": "1",
"name": {
"en": "Partial refund",
"es": "Devolución parcial"
},
"desc": {
"en": "Partial refund of part of the goods or services.",
"es": "Devolución de parte de los bienes; no aceptación de partes del servicio."
}
},
{
"value": "2",
"name": {
"en": "Revoked",
"es": "Anulación"
},
"desc": {
"en": "Previous document has been completely cancelled.",
"es": "Anulación de la factura anterior."
}
},
{
"value": "3",
"name": {
"en": "Discount",
"es": "Descuento"
},
"desc": {
"en": "Partial or total discount.",
"es": "Rebaja o descuento parcial o total."
}
},
{
"value": "4",
"name": {
"en": "Adjustment",
"es": "Ajuste"
},
"desc": {
"en": "Price adjustment.",
"es": "Ajuste de precio."
}
},
{
"value": "5",
"name": {
"en": "Other",
"es": "Otros"
}
}
]
},
{
"key": "co-dian-debit-code",
"name": {
"en": "Debit Code",
"es": "Código de Débito"
},
"desc": {
"en": "DIAN correction code for debit notes",
"es": "Código de corrección DIAN para notas de débito"
},
"values": [
{
"value": "1",
"name": {
"en": "Interest",
"es": "Intereses"
}
},
{
"value": "2",
"name": {
"en": "Pending charges",
"es": "Gastos por cobrar"
}
},
{
"value": "3",
"name": {
"en": "Change in value",
"es": "Cambio del valor"
}
},
{
"value": "4",
"name": {
"en": "Other",
"es": "Otros"
}
}
]
}
],
"scenarios": null,
"identities": [
{
"key": "co-civil-register",
"name": {
"en": "Civil Registry",
"es": "Registro Civil"
},
"map": {
"dian-company-id": "11"
}
},
{
"key": "co-id-card",
"name": {
"en": "Identity Card",
"es": "Tarjeta de Identidad"
},
"map": {
"dian-company-id": "12"
}
},
{
"key": "co-citizen-id",
"name": {
"en": "Citizen Identity Card",
"es": "Cédula de ciudadanía"
},
"map": {
"dian-company-id": "13"
}
},
{
"key": "co-foreigner-id-card",
"name": {
"en": "Foreigner Identity Card",
"es": "Tarjeta de Extranjería"
},
"map": {
"dian-company-id": "21"
}
},
{
"key": "co-foreigner-id",
"name": {
"en": "Foreigner Citizen Identity",
"es": "Cédula de extranjería"
},
"map": {
"dian-company-id": "22"
}
},
{
"key": "co-passport",
"name": {
"en": "Passport",
"es": "Pasaporte"
},
"map": {
"dian-company-id": "41"
}
},
{
"key": "co-foreign-id",
"name": {
"en": "Foreign Document",
"es": "Documento de identificación extranjero"
},
"map": {
"dian-company-id": "42"
}
},
{
"key": "co-pep",
"name": {
"en": "PEP - Special Permit to Stay",
"es": "PEP - Permiso Especial de Permanencia"
},
"map": {
"dian-company-id": "47"
}
},
{
"key": "co-nuip",
"name": {
"en": "NUIP - National Unique Personal Identification Number",
"es": "NUIP - Número Único de Identificación Personal"
},
"map": {
"dian-company-id": "91"
}
}
],
"corrections": [
{
"schema": "bill/invoice",
"types": [
"credit-note",
"debit-note"
],
"extensions": [
"co-dian-credit-code",
"co-dian-debit-code"
],
"reason_required": true,
"stamps": [
"dian-cude"
]
}
]
}
Loading

0 comments on commit f400fa1

Please sign in to comment.