├── README.md
├── controllers
├── __init__.py
└── dian_document.py
├── __init__.py
├── models
├── __init__.py
├── sequence.py
├── account.py
├── dian_fiscal_responsability.py
├── company.py
└── invoice.py
├── report
└── report_document_dian.xml
├── views
├── sequence_view.xml
├── account_view.xml
├── company_view.xml
├── report_invoice.xml
├── invoice_view.xml
├── dian_view.xml
└── report_dian_document.xml
├── __manifest__.py
├── sql
├── actualiza_configuracion_DIAN.sql
└── actualiza_configuracion_ValidacionPrevia_DIAN.sql
├── static
└── xsd
│ ├── common
│ ├── UBL-XAdESv141-2.1.xsd
│ ├── UBL-CoreComponentParameters-2.1.xsd
│ ├── UBL-QualifiedDataTypes-2.1.xsd
│ ├── UBL-SignatureBasicComponents-2.1.xsd
│ ├── UBL-ExtensionContentDataType-2.1.xsd
│ ├── UBL-CommonSignatureComponents-2.1.xsd
│ ├── UBL-SignatureAggregateComponents-2.1.xsd
│ ├── UBL-CommonExtensionComponents-2.1.xsd
│ ├── UBL-xmldsig-core-schema-2.1.xsd
│ └── UBL-XAdESv132-2.1.xsd
│ └── maindoc
│ ├── DIAN_UBL_Structures.xsd
│ ├── UBL-ApplicationResponse-2.1.xsd
│ └── UBL-AttachedDocument-2.1.xsd
├── .gitignore
└── data
└── dian_fiscal_responsability_data.xml
/README.md:
--------------------------------------------------------------------------------
1 | # l10n_co_e-invoice
2 |
3 |
--------------------------------------------------------------------------------
/controllers/__init__.py:
--------------------------------------------------------------------------------
1 | from . import dian_document
--------------------------------------------------------------------------------
/__init__.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from . import models
3 | from . import controllers
--------------------------------------------------------------------------------
/models/__init__.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | from . import dian
4 | from . import company
5 | from . import invoice
6 | from . import sequence
7 | from . import account
8 | from . import dian_fiscal_responsability
--------------------------------------------------------------------------------
/models/sequence.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import api, fields, models, _
3 |
4 | class SequnceDateRange(models.Model):
5 | _inherit = 'ir.sequence.dian_resolution'
6 | _name = 'ir.sequence.dian_resolution'
7 |
8 | technical_key = fields.Char(string="Clave técnica")
9 |
10 |
--------------------------------------------------------------------------------
/report/report_document_dian.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | extension de secuenciador dian
7 | dian.document
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/models/account.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import api, fields, models, _
3 | from openerp.exceptions import UserError, ValidationError
4 |
5 | class AccountTax(models.Model):
6 | _inherit = 'account.tax'
7 | _name = 'account.tax'
8 |
9 | tax_group_fe = fields.Selection([('iva_fe','IVA FE'), ('ica_fe','ICA FE'), ('ico_fe','ICO FE'), ('nap_fe','No palica a DIAN FE')],
10 | string="Grupo de impuesto DIAN FE", default='nap_fe')
--------------------------------------------------------------------------------
/models/dian_fiscal_responsability.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import api, fields, models, _
3 | from openerp.exceptions import UserError, ValidationError
4 |
5 | class DianFiscalResponsability(models.Model):
6 | _name = 'dian.fiscal.responsability'
7 | _description = 'Model DIAN Fiscal Responsability'
8 |
9 | code = fields.Char(string="Código Responsabilidad Fiscal DIAN", required=True)
10 | name = fields.Char(string="Significado Responsabilidad Fiscal DIAN", required=True)
--------------------------------------------------------------------------------
/views/sequence_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | extension de secuenciador dian
7 | ir.sequence
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/views/account_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | account.tax.form.inherit
8 | account.tax
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/__manifest__.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | {
4 | 'name': "Colombian e-invoice",
5 |
6 | 'summary': """
7 | genera la facturacion electronica para la distribucion colombiana segun requisitos de la DIAN""",
8 | 'category': 'Administration',
9 | 'version': '10.0',
10 | 'depends': [
11 | 'account', 'l10n_co_tax_extension',
12 | ],
13 | 'data': [
14 | 'data/dian_fiscal_responsability_data.xml',
15 | 'views/dian_view.xml',
16 | 'views/company_view.xml',
17 | 'views/invoice_view.xml',
18 | 'views/report_invoice.xml',
19 | 'views/account_view.xml',
20 | 'views/sequence_view.xml',
21 | ],
22 |
23 | 'installable' : True
24 | }
25 |
--------------------------------------------------------------------------------
/sql/actualiza_configuracion_DIAN.sql:
--------------------------------------------------------------------------------
1 | -- Actualiza configuración DIAN
2 | -- Actualiza datos de la empresa
3 | update res_company
4 | set digital_certificate = '',
5 | issuer_name = 'C=CO, L=Bogota D.C., O=Andes SCD., OU=Division de certificacion entidad final, CN=CA ANDES SCD S.A. Clase II, emailAddress=info@andesscd.com.co',
6 | software_identification_code = 'b28bc5bb-8a74-46a7-bb16-d3e25ca58358',
7 | password_environment = '8Hollywood',
8 | trade_name = 'Plastinorte S.A.S',
9 | serial_number = '7407950780564486506',
10 | in_use_dian_sequence = 20,
11 | document_repository = '/etc/odoo/dian',
12 | software_pin = '8Odoo77',
13 | seed_code = 5000000,
14 | certificate_key = 'Zhx7KbK4ND'
15 | where id = 1;
16 |
17 | -- Actualiza datos de la secuencia
18 | update ir_sequence
19 | set prefix = 'PRUE',
20 | use_dian_control = TRUE
21 | where id = 20;
22 |
23 | -- Actualiza datos de la resolución
24 | update ir_sequence_dian_resolution
25 | set resolution_number = '9000000032442243',
26 | number_from = 980000000,
27 | number_to = 985000000,
28 | number_next = 980000602,
29 | date_from = '2019-01-30',
30 | date_to = '2020-07-30',
31 | active_resolution = TRUE,
32 | technical_key = 'dd85db55545bd6566f36b0fd3be9fd8555c36e'
33 | where id = 47
34 | and sequence_id = 20;
35 |
36 |
--------------------------------------------------------------------------------
/sql/actualiza_configuracion_ValidacionPrevia_DIAN.sql:
--------------------------------------------------------------------------------
1 | -- Actualiza configuración DIAN
2 | -- Actualiza datos de la empresa
3 | update res_company
4 | set digital_certificate = '',
5 | issuer_name = 'C=CO, L=Bogota D.C., O=Andes SCD., OU=Division de certificacion entidad final, CN=CA ANDES SCD S.A. Clase II, emailAddress=info@andesscd.com.co',
6 | software_identification_code = 'bf3285d7-ab35-4340-8af7-59c106771914',
7 | password_environment = '8Hollywood',
8 | trade_name = 'Plastinorte S.A.S',
9 | serial_number = '7407950780564486506',
10 | in_use_dian_sequence = 20,
11 | document_repository = '/etc/odoo/dian',
12 | software_pin = '85917',
13 | seed_code = 5000000,
14 | certificate_key = 'Zhx7KbK4ND'
15 | where id = x;
16 |
17 | -- Actualiza datos de la secuencia
18 | update ir_sequence
19 | set prefix = 'SETP',
20 | use_dian_control = TRUE
21 | where id = xx;
22 |
23 | -- Actualiza datos de la resolución
24 | update ir_sequence_dian_resolution
25 | set resolution_number = '18760000001',
26 | number_from = 990000000,
27 | number_to = 995000000,
28 | number_next = 990000071,
29 | date_from = '2019-01-19',
30 | date_to = '2030-01-19',
31 | active_resolution = TRUE,
32 | technical_key = 'fc8eac422eba16e22ffd8c6f94b3f40a6e38162c'
33 | where id = xx
34 | and sequence_id = xx;
35 |
36 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-XAdESv141-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/views/company_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Datos de la compañía requeridos por la DIAN
7 | res.company
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/views/report_invoice.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Factura
13 | Nota de Débito
14 | Nota de Crédito
15 |
16 |
17 |
Cufe:
18 |
19 |
20 |
21 |
![]()
22 |
23 |
24 |
25 |
26 | Monto |
27 |
28 |
29 | Impuesto |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # C extensions
7 | *.so
8 |
9 | # Distribution / packaging
10 | .Python
11 | build/
12 | develop-eggs/
13 | dist/
14 | downloads/
15 | eggs/
16 | .eggs/
17 | lib/
18 | lib64/
19 | parts/
20 | sdist/
21 | var/
22 | wheels/
23 | *.egg-info/
24 | .installed.cfg
25 | *.egg
26 | MANIFEST
27 |
28 | # PyInstaller
29 | # Usually these files are written by a python script from a template
30 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
31 | *.manifest
32 | *.spec
33 |
34 | # Installer logs
35 | pip-log.txt
36 | pip-delete-this-directory.txt
37 |
38 | # Unit test / coverage reports
39 | htmlcov/
40 | .tox/
41 | .coverage
42 | .coverage.*
43 | .cache
44 | nosetests.xml
45 | coverage.xml
46 | *.cover
47 | .hypothesis/
48 | .pytest_cache/
49 |
50 | # Translations
51 | *.mo
52 | *.pot
53 |
54 | # Django stuff:
55 | *.log
56 | local_settings.py
57 | db.sqlite3
58 |
59 | # Flask stuff:
60 | instance/
61 | .webassets-cache
62 |
63 | # Scrapy stuff:
64 | .scrapy
65 |
66 | # Sphinx documentation
67 | docs/_build/
68 |
69 | # PyBuilder
70 | target/
71 |
72 | # Jupyter Notebook
73 | .ipynb_checkpoints
74 |
75 | # pyenv
76 | .python-version
77 |
78 | # celery beat schedule file
79 | celerybeat-schedule
80 |
81 | # SageMath parsed files
82 | *.sage.py
83 |
84 | # Environments
85 | .env
86 | .venv
87 | env/
88 | venv/
89 | ENV/
90 | env.bak/
91 | venv.bak/
92 |
93 | # Spyder project settings
94 | .spyderproject
95 | .spyproject
96 |
97 | # Rope project settings
98 | .ropeproject
99 |
100 | # mkdocs documentation
101 | /site
102 |
103 | # mypy
104 | .mypy_cache/
105 |
--------------------------------------------------------------------------------
/models/company.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import api, fields, models, _
3 |
4 | class Company(models.Model):
5 | _inherit = 'res.company'
6 | _name = 'res.company'
7 |
8 |
9 | def _get_dian_sequence(self):
10 | list_dian_sequence = []
11 | rec_dian_sequence = self.env['ir.sequence'].search([('company_id', '=', self.env.user.partner_id.company_id.id), ('use_dian_control', '=', True),('active', '=', True)])
12 | for sequence in rec_dian_sequence:
13 | list_dian_sequence.append((str(sequence.id), sequence.name))
14 | return list_dian_sequence
15 |
16 |
17 | trade_name = fields.Char(string="Razón social", required=True, default="")
18 | digital_certificate = fields.Text(string="Certificado digital público", required=True, default="")
19 | software_identification_code = fields.Char(string="Código de identificación del software", required=True, default="")
20 | software_pin = fields.Char(string="PIN del software", required=True, default="")
21 | password_environment = fields.Char(string="Clave de ambiente", required=True, default="")
22 | seed_code = fields.Integer(string="Código de semilla", required=True, default=5000000)
23 | issuer_name = fields.Char(string="Ente emisor del certificado", required=True, default="")
24 | serial_number = fields.Char(string="Serial del certificado", required=True, default="")
25 | document_repository = fields.Char(string='Ruta de almacenamiento de archivos', required=True)
26 | in_use_dian_sequence = fields.Selection('_get_dian_sequence', 'Secuenciador DIAN a utilizar', required=True)
27 | certificate_key = fields.Char(string='Clave del certificado P12', required=True, default="")
28 | operation_type = fields.Selection([('01','Combustible'),('02','Emisor es Autoretenedor'),('03','Excluidos y Exentos'),
29 | ('04','Exportación'),('05','Generica'),('06','Generica con pago anticipado'),
30 | ('07','Generica con periodo de facturacion'),('08','Consorcio'),('09','Servicios AIU'),('10','Estandar'),
31 | ('11','Mandatos bienes'),('12','Mandatos Servicios')], string='Tipo de operación DIAN', required=True)
--------------------------------------------------------------------------------
/static/xsd/common/UBL-CoreComponentParameters-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
16 |
17 |
18 |
64 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-QualifiedDataTypes-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
70 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-SignatureBasicComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-ExtensionContentDataType-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
28 |
29 |
30 | Any element in any namespace other than the UBL extension
31 | namespace is allowed to be the apex element of an extension.
32 | Only those elements found in the UBL schemas and in the
33 | trees of schemas imported in this module are validated.
34 | Any element for which there is no schema declaration in any
35 | of the trees of schemas passes validation and is not
36 | treated as a schema constraint violation.
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/controllers/dian_document.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import http
3 | from openerp.http import request
4 | from openerp import fields
5 | import ast
6 | import base64
7 | import logging
8 | import unicodedata
9 | import werkzeug.utils
10 | _logger = logging.getLogger(__name__)
11 |
12 |
13 | class Main(http.Controller):
14 |
15 | @http.route("/l10n_co_e-invoice/accept_dian_invoice", type='http', auth='none', csrf=False)
16 | def accept_dian_invoice(self, dian_document):
17 | rec_dian_document = request.env['dian.document'].sudo().search([('cufe','=', dian_document)])
18 | if not rec_dian_document:
19 | return u'
Este documento no existe
'
20 | if rec_dian_document.date_email_acknowledgment:
21 | response = 'aceptado' if rec_dian_document.email_response == 'accepted' else 'rechazado'
22 | return u'Este documento ya fue %s en fecha %s
' % (response, rec_dian_document.date_email_acknowledgment)
23 | else:
24 | rec_dian_document.date_email_acknowledgment = fields.Datetime.now()
25 | rec_dian_document.email_response = 'accepted'
26 | accepted_form = u'''
27 |
28 | Se registró satisfactoriamente su decisión
29 | '''
30 | return accepted_form
31 |
32 |
33 | @http.route("/l10n_co_e-invoice/reject_dian_invoice", type='http', auth='none', csrf=False)
34 | def reject_dian_invoice(self, dian_document):
35 | #rec_dian_document = request.env['dian.document'].sudo().browse(int(dian_document))
36 | rec_dian_document = request.env['dian.document'].sudo().search([('cufe','=', dian_document)])
37 | if not rec_dian_document:
38 | return u'Este documento no existe
'
39 | if rec_dian_document.date_email_acknowledgment:
40 | response = 'aceptado' if rec_dian_document.email_response == 'accepted' else 'rechazado'
41 | return u'Este documento ya fue %s en fecha %s
' % (response, rec_dian_document.date_email_acknowledgment)
42 | else:
43 | reject_reason_form = u'''
44 |
45 |
46 |
56 |
57 | ''' % dian_document
58 | return reject_reason_form
59 |
60 |
61 | @http.route("/l10n_co_e-invoice/reject_dian_invoice_reason", type='http', auth='none', csrf=False)
62 | def reject_dian_invoice_reason(self, dian_document, reason):
63 | rec_dian_document = request.env['dian.document'].sudo().search([('cufe','=', dian_document)])
64 | if not rec_dian_document:
65 | return u'Este documento no existe
'
66 | if rec_dian_document.date_email_acknowledgment:
67 | response = 'aceptado' if rec_dian_document.email_response == 'accepted' else 'rechazado'
68 | return u'Este documento ya fue %s en fecha %s
' % (response, rec_dian_document.date_email_acknowledgment)
69 | if not reason:
70 | reject_reason_form = u'''
71 |
72 |
73 |
83 |
84 | ''' % dian_document
85 | else:
86 | rec_dian_document = request.env['dian.document'].sudo().search([('cufe','=', dian_document)])
87 | rec_dian_document.date_email_acknowledgment = fields.Datetime.now()
88 | rec_dian_document.email_response = 'rejected'
89 | rec_dian_document.email_reject_reason = reason
90 | reject_reason_form = u'''
91 |
92 | Se registró satisfactoriamente su decisión
93 | '''
94 | return reject_reason_form
--------------------------------------------------------------------------------
/static/xsd/common/UBL-CommonSignatureComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | ABIE
30 | UBL Document Signatures. Details
31 | This class collects all signature information for a document.
32 | UBL Document Signatures
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | ASBIE
42 | UBL Document Signatures. Signature Information
43 | Each of these is scaffolding for a single digital signature.
44 | 1..n
45 | UBL Document Signatures
46 | Signature Information
47 | Signature Information
48 | Signature Information
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/views/invoice_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | documento DIAN de una factura
8 | account.invoice
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | Envio de documento DIAN por email
33 | ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe}
34 | ${(object.partner_id.email or '')|safe}
35 | ${object.company_id.name} Documento DIAN (Ref ${object.diancode_id.dian_code or 'n/a'})
36 | ${object.partner_id.id}
37 |
38 |
39 |
40 | ${object.diancode_id.dian_code}
41 | ${object.partner_id.lang}
42 |
44 | Hola ${object.partner_id.name},
45 | Nuevo documento DIAN disponible para Ud.:
46 |
47 | Referencias del documento DIAN:
48 | Numero: ${object.diancode_id.dian_code}
49 | Total: ${object.amount_total} ${object.currency_id.name}
50 | Fecha: ${object.diancode_id.date_document_dian}
51 |
52 | % if object.origin:
53 | Factura: ${object.origin}
54 | % endif
55 |
56 | % if object.user_id:
57 | Su contacto: ${object.user_id.name}
58 | % endif
59 |
60 |
61 |
65 |
66 | % if object.paypal_url:
67 |
68 | Tambien es posible pagar directamente con Paypal:
69 |
70 |
71 |
72 | % endif
73 |
74 |
75 | Si tiene alguna pregunta, no dude en contactarnos.
76 | Gracias por escoger ${object.company_id.name or 'nos'}!
77 |
78 |
79 |
80 |
81 | ${object.company_id.name}
82 |
83 |
84 |
85 | ${object.company_id.partner_id.sudo().with_context(show_address=True, html_format=True).name_get()[0][1] | safe}
86 |
87 | % if object.company_id.phone:
88 |
89 | Telefono: ${object.company_id.phone}
90 |
91 | % endif
92 | % if object.company_id.website:
93 |
96 | %endif
97 |
98 |
99 |
100 | ]]>
101 |
102 |
103 |
104 |
105 |
106 |
107 |
--------------------------------------------------------------------------------
/views/dian_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Lista de Documentos DIAN
6 | dian.document
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | Documento DIAN
25 | dian.document
26 |
27 |
61 |
62 |
63 |
64 |
65 |
66 | Filtrar Documentos DIAN
67 | dian.document
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
99 |
100 |
101 |
107 |
108 |
109 |
131 |
132 |
133 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
21 |
22 |
24 |
26 |
27 |
28 |
30 |
31 |
32 |
34 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | ABIE
46 | Signature Information. Details
47 | This class captures a single signature and optionally associates to a signature in the document with the corresponding identifier.
48 | Signature Information
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | BBIE
58 | Signature Information. Identifier
59 | This specifies the identifier of the signature distinguishing it from other signatures.
60 | 0..1
61 | Signature Information
62 | Identifier
63 | Identifier
64 | Identifier. Type
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | BBIE
74 | Signature Information. Referenced Signature Identifier. Identifier
75 | This associates this signature with the identifier of a signature business object in the document.
76 | 0..1
77 | Signature Information
78 | Referenced Signature Identifier
79 | Identifier
80 | Identifier. Type
81 |
82 |
83 |
84 |
85 |
86 |
87 | This is a single digital signature as defined by the W3C specification.
88 |
89 |
90 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/models/invoice.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | from openerp import api, fields, models, _
3 | from openerp.exceptions import UserError, ValidationError
4 |
5 | class AccountInvoice(models.Model):
6 | _inherit = 'account.invoice'
7 | _name = 'account.invoice'
8 |
9 | diancode_id = fields.Many2one('dian.document', string="Código DIAN", readonly=True)
10 | state_dian_document = fields.Selection(string="Estado documento DIAN", related='diancode_id.state')
11 | shipping_response = fields.Selection(string="Respuesta de envío DIAN", related='diancode_id.shipping_response')
12 | response_document_dian = fields.Selection(string="Respuesta de consulta DIAN", related='diancode_id.response_document_dian')
13 | email_response = fields.Selection(string='Decisión del cliente', related='diancode_id.email_response')
14 | response_message_dian = fields.Text(string='Mensaje de respuesta DIAN', related='diancode_id.response_message_dian')
15 |
16 | @api.multi
17 | def write(self, vals):
18 | before_state = self.state
19 | super(AccountInvoice, self).write(vals)
20 | after_state = self.state
21 |
22 | if before_state == 'draft' and after_state == 'open' and self.type == 'out_invoice':
23 | new_dian_document = self.env['dian.document'].create({'document_id' : self.id, 'document_type' : 'f'})
24 |
25 | if before_state == 'draft' and after_state == 'open' and self.type == 'out_refund':
26 | new_dian_document = self.env['dian.document'].create({'document_id' : self.id, 'document_type' : 'c'})
27 | return True
28 |
29 | @api.multi
30 | def action_invoice_dian_resend(self):
31 | """ Open a window to compose an email, with the edi invoice dian template
32 | message loaded by default
33 | """
34 | self.ensure_one()
35 | template = self.env.ref('l10n_co_e-invoice.email_template_edi_invoice_dian', False)
36 | compose_form = self.env.ref('mail.email_compose_message_wizard_form', False)
37 | ctx = dict(
38 | default_model='account.invoice',
39 | default_res_id=self.id,
40 | default_use_template=bool(template),
41 | default_template_id=template and template.id or False,
42 | default_composition_mode='comment',
43 | mark_invoice_as_sent=True,
44 | )
45 | return {
46 | 'name': _('Compose Email'),
47 | 'type': 'ir.actions.act_window',
48 | 'view_type': 'form',
49 | 'view_mode': 'form',
50 | 'res_model': 'mail.compose.message',
51 | 'views': [(compose_form.id, 'form')],
52 | 'view_id': compose_form.id,
53 | 'target': 'new',
54 | 'context': ctx,
55 | }
56 |
57 |
58 | @api.multi
59 | def action_invoice_open(self):
60 | mensaje = ''
61 | rec = super(AccountInvoice, self).action_invoice_open()
62 |
63 | # Verifica datos de la resolucion DIAN
64 | if self.resolution_number == False:
65 | mensaje += '- La factura no tienen resolución DIAN asociada.' + '\n'
66 | rec_resolution_invoice = self.env['ir.sequence.dian_resolution'].search([('resolution_number', '=', self.resolution_number)])
67 | if not rec_resolution_invoice:
68 | mensaje += '- La resolución DIAN asociada a la factura no existe.' + '\n'
69 | if not rec_resolution_invoice.technical_key:
70 | mensaje += '- La resolución DIAN no tiene asociada la clave técnica.' + '\n'
71 |
72 | # Verifica datos de la compañia
73 | user = self.env['res.users'].search([('id', '=', self.env.uid)])
74 | company = self.env['res.company'].search([('id', '=', user.company_id.id)])
75 | partner = company.partner_id
76 | if not company.document_repository:
77 | mensaje += '- Se debe asociar un repositorio en donde se almacenarán los archivos de FE.' + '\n'
78 | if not company.software_identification_code:
79 | mensaje += '- No se encuentra registrado el código de identificación del software.' + '\n'
80 | if not company.password_environment:
81 | mensaje += '- No se encuentra registrado el password del ambiente.' + '\n'
82 | if not partner.country_id.code:
83 | mensaje += '- Su empresa no tiene registrado el país.' + '\n'
84 | if not partner.xidentification:
85 | mensaje += '- Su empresa no tiene registrado el NIT.' + '\n'
86 | if not partner.company_type:
87 | mensaje += '- Su empresa no está identificada como persona juríduca o persona natural.' + '\n'
88 | if not partner.doctype:
89 | mensaje += '- Su empresa no tiene asociada un tipo de documento.' + '\n'
90 | if not partner.state_id:
91 | mensaje += '- Su empresa no tiene asociada un estado.' + '\n'
92 | if not partner.xcity:
93 | mensaje += '- Su empresa no tiene asociada un municipio.' + '\n'
94 | if not partner.street:
95 | mensaje += '- Su empresa no tiene asocida una dirección.' + '\n'
96 | if not company.trade_name:
97 | mensaje += '- Su empresa no tiene definida una razón social.' + '\n'
98 | # if not partner.x_pn_retri:
99 | # mensaje += '- Su empresa no tiene definida un regimén tributario.' + '\n'
100 | if not company.digital_certificate:
101 | mensaje += '- No se ha registrado el certificado digital.' + '\n'
102 | if not company.certificate_key:
103 | mensaje += '- No se ha registrado la clave del certificado.' + '\n'
104 | if not company.issuer_name:
105 | mensaje += '- No se ha registrado el proveedor del certificado.' + '\n'
106 | if not company.serial_number:
107 | mensaje += '- No se ha registrado el serial del certificado.' + '\n'
108 |
109 | # Verifica datos del cliente
110 | if not self.currency_id.name:
111 | mensaje += '- El cliente no posee una moneda asociada.' + '\n'
112 | if not self.partner_id.company_type:
113 | mensaje += '- No se ha definido si el cliente es una persona natural o juridica.' + '\n'
114 | if not self.partner_id.xidentification:
115 | mensaje += '- El cliente no tiene registrado el NIT.' + '\n'
116 | if not self.partner_id.doctype:
117 | mensaje += '- El cliente no tiene asociada un tipo de documento.' + '\n'
118 | if not self.partner_id.country_id.code:
119 | mensaje += '- El cliente no tiene asociada un país.' + '\n'
120 | if not self.partner_id.state_id.name:
121 | mensaje += '- El cliente no tiene asociada un estado.' + '\n'
122 | if not self.partner_id.city:
123 | mensaje += '- El cliente no tiene asociada una ciudad.' + '\n'
124 | if not self.partner_id.xcity.name:
125 | mensaje += '- El cliente no tiene asociada un municipio.' + '\n'
126 | if not self.partner_id.street:
127 | mensaje += '- El cliente no tiene asociada una dirección.' + '\n'
128 | # if not self.partner_id.x_pn_retri:
129 | # mensaje += '- El cliente no tiene definido un regimén tributario.' + '\n'
130 | if not self.partner_id.email:
131 | mensaje += '- El cliente no tiene definido un email.' + '\n'
132 |
133 | # Verifica que existan asociados impuestos al grupo de impuestos IVA, ICA y ICO
134 | rec_account_invoice_tax = self.env['account.invoice.tax'].search([('invoice_id', '=', self.id)])
135 | if rec_account_invoice_tax:
136 | for item_tax in rec_account_invoice_tax:
137 | if item_tax.tax_id.tax_group_fe not in ('iva_fe','ica_fe','ico_fe'):
138 | mensaje += '- La factura contiene impuestos que no están asociados al grupo de impuestos DIAN FE.' + '\n'
139 |
140 | if mensaje:
141 | raise ValidationError(mensaje)
142 |
143 | super(AccountInvoice, self).action_invoice_open()
144 |
145 |
146 | @api.multi
147 | def valitade_dian(self):
148 | # document_dian = self.env['dian.document'].search([('document_id', '=', self.id)])
149 | # if document_dian.state == ('por_notificar'):
150 | # document_dian.send_pending_dian(document_dian.id,document_dian.document_type)
151 | # elif document_dian.state == 'por_validar':
152 | # document_dian.request_validating_dian(document_dian.id)
153 | document_dian = self.env['dian.document'].search([('document_id', '=', self.id)])
154 | if document_dian.state == ('por_notificar'):
155 | document_dian.send_pending_dian(document_dian.id,document_dian.document_type)
156 | if document_dian.state == 'por_validar':
157 | document_dian.request_validating_dian(document_dian.id)
158 |
159 |
160 | class AccountInvoiceReport(models.Model):
161 | _inherit = "account.invoice.report"
162 |
163 | diancode_id = fields.Many2one('dian.document', string='Código DIAN')
164 |
165 |
166 | def _select(self):
167 | return super(AccountInvoiceReport, self)._select() + ", sub.diancode_id as diancode_id"
168 |
169 |
170 | def _sub_select(self):
171 | return super(AccountInvoiceReport, self)._sub_select() + ", ai.diancode_id as diancode_id"
172 |
173 |
174 | def _group_by(self):
175 | return super(AccountInvoiceReport, self)._group_by() + ", ai.diancode_id"
176 |
--------------------------------------------------------------------------------
/views/report_dian_document.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 | Factura
22 | Nota de Débito
23 | Nota de Crédito
24 |
25 |
26 |
Cufe:
27 |
28 |
29 |
30 |
![]()
31 |
32 |
33 |
34 |
35 |
36 |
Razón Social / Nombres y Apellidos:
37 |
38 |
Fecha Emisión:
39 |
40 |
Moneda:
41 |
42 |
43 |
44 |
Identificación:
45 |
46 |
Dirección:
47 |
48 |
49 |
51 |
Teléfono:
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | | Descripcion |
64 | Cantidad |
65 | Precio unitario |
66 | Descuento(%) |
67 | Impuesto |
68 | Monto |
69 |
70 |
71 |
72 |
73 | |
74 |
75 |
76 |
77 | |
78 |
79 |
80 | |
81 |
82 |
83 | |
84 |
85 |
86 | |
87 |
88 |
90 | |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | | Subtotal |
100 |
101 |
102 | |
103 |
104 |
105 |
106 | |
107 |
108 |
109 | |
110 |
111 |
112 |
113 | | Total |
114 |
115 |
116 | |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | | Impuesto |
128 | Base |
129 | Monto |
130 |
131 |
132 |
133 |
134 | |
135 |
136 |
138 | |
139 |
140 |
142 | |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 | Comentario:
151 |
152 |
153 |
154 |
155 |
156 |
157 | Nota de Posición Fiscal:
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
180 |
181 |
188 |
189 |
190 |
200 |
201 |
202 |
203 |
204 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-CommonExtensionComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | A container for all extensions present in the document.
27 |
28 |
29 |
30 |
31 |
32 |
33 | A container for all extensions present in the document.
34 |
35 |
36 |
37 |
38 |
39 |
40 | A single extension for private use.
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | A single extension for private use.
50 |
51 |
52 |
53 |
54 |
55 |
56 | A single extension for private use.
57 |
58 |
59 |
60 |
61 |
62 |
63 | An identifier for the Extension assigned by the creator of the extension.
64 |
65 |
66 |
67 |
68 |
69 |
70 | A name for the Extension assigned by the creator of the extension.
71 |
72 |
73 |
74 |
75 |
76 |
77 | An agency that maintains one or more Extensions.
78 |
79 |
80 |
81 |
82 |
83 |
84 | The name of the agency that maintains the Extension.
85 |
86 |
87 |
88 |
89 |
90 |
91 | The version of the Extension.
92 |
93 |
94 |
95 |
96 |
97 |
98 | A URI for the Agency that maintains the Extension.
99 |
100 |
101 |
102 |
103 |
104 |
105 | A URI for the Extension.
106 |
107 |
108 |
109 |
110 |
111 |
112 | A code for reason the Extension is being included.
113 |
114 |
115 |
116 |
117 |
118 |
119 | A description of the reason for the Extension.
120 |
121 |
122 |
123 |
124 |
125 |
126 | The definition of the extension content.
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-xmldsig-core-schema-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
19 |
20 |
21 |
22 | ]>
23 |
24 |
39 |
40 |
41 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
228 |
229 |
230 |
231 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
--------------------------------------------------------------------------------
/static/xsd/maindoc/DIAN_UBL_Structures.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
11 |
13 |
14 |
15 |
16 | Extension DIAN - DianExtensions (raíz)
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | Datos Resolución de Numeración de Facturas
25 |
26 |
27 |
28 |
29 | Grupo de información de país del documento electrónico
30 |
31 |
32 |
33 |
34 | Gupo de informaciones sobre el prestador de servicios
35 |
36 |
37 |
39 |
40 | Huella del software que autorizó la DIAN al Obligado a Facturar Electrónicamente o al Proveedor Tecnológico
41 |
42 |
43 |
44 |
45 |
47 |
48 |
50 |
51 |
52 |
53 |
54 | Datos Resolución de Numeración de Facturas
55 |
56 |
57 |
58 |
59 |
60 | Número autorización: Número del código de la resolución otorgada para la numeración
61 |
62 |
63 |
64 |
65 |
66 |
67 | Grupo de informaciones relativas a la fecha de autorización de la numeración
68 |
69 |
70 |
71 |
73 |
74 | Grupo de informaciones del rango de numeración autorizado para este emisor
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | Prefijo establecido para el establecimiento
85 |
86 |
87 |
88 |
89 |
90 |
91 | Valor inicial del rango de numeración otorgado
92 |
93 |
94 |
95 |
96 |
97 |
98 | Valor final del rango de numeración otorgado
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | Prestador de servicios: Datos del
110 | Prestador de Servicios y el software utilizado
111 | en la emisión de la factura. Un Obligado a
112 | facturar puede ser también Prestador de
113 | Servicios para sí mismo u otros, en cuyo caso
114 | será Proveedor Tecnológico
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | Identificador Software: Identificador del software habilitado para la
123 | emisión de facturas
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
133 |
134 | 9.6 - Total impuestos repercutidos:
135 | Suma de todos los impuestos repercutidos
136 |
137 |
138 |
139 |
140 |
141 | 9.7 - Total impuestos retenidos:
142 | Suma de todos los impuestos retenidos
143 |
144 |
145 |
146 |
148 |
149 | 9.12 - Total de Factura Peso Colombiano:
150 | Obligatorio si es una factura con divisa extranjera
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 | 2.1.12 - 2.1.12 Información Financiera
160 |
161 |
162 |
163 |
164 |
165 | 12.3 - Cesionario: Información relativa al pago de la factura.
166 |
167 |
168 |
170 |
171 | 12.4 - Datos del Pago: Datos del Pago
172 |
173 |
174 |
175 |
176 | 12.5 - Cláusula Cesión: Texto libre, explicativo sobre la cláusula de cesión
177 |
178 |
179 |
181 |
182 | 12.6 - Referencia Documentación Factoring: Referencia a un documento
183 |
184 |
185 |
186 |
187 |
188 |
189 | 20181111: tipo para los documentos de identificación de Colombia
190 |
191 | UNDT000011
192 | CCT
193 | Identifier. Type
194 | 1.0
195 | A character string to identify and distinguish uniquely, one instance of an object in an identification scheme from all other objects in the same scheme together with relevant supplementary information.
196 | Identifier
197 | string
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 | UNDT000011-SC4
206 | SC
207 | Identification Scheme Agency. Identifier
208 | The identification of the agency that maintains the identification scheme.
209 | Identification Scheme Agency
210 | Identification
211 | Identifier
212 | string
213 | Defaults to the UN/EDIFACT data element 3055 code list.
214 |
215 |
216 |
217 |
218 | Código estadístico de DIAN en Naciones Unidas: 195
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 | UNDT000011-SC5
229 | SC
230 | Identification Scheme Agency. Name. Text
231 | The name of the agency that maintains the identification scheme.
232 | Identification Scheme Agency
233 | Agency Name
234 | Text
235 | string
236 |
237 |
238 |
239 |
240 | Nombre estadístico de DIAN en Naciones Unidas: 195
241 |
242 |
243 |
245 |
246 |
247 |
248 |
249 |
250 |
251 | UNDT000011-SC2
252 | SC
253 | Identification Scheme. Identifier
254 | The identification of the identification scheme.
255 | Identification Scheme
256 | Identification
257 | Identifier
258 | string
259 |
260 |
261 |
262 |
263 |
264 | 11 Registro civil
265 | 12 Tarjeta de identidad
266 | 13 Cédula de ciudadanía
267 | 21 Tarjeta de extranjería
268 | 22 Cédula de extranjería
269 | 31 NIT de Colombia con DV NIT-DV
270 | 32 NIT de Colombia sin DV NIT
271 | 41 Pasaporte
272 | 42 Documento de identificación extranjero
273 | 50 NIT de otro país
274 | 91 NUIP
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 | UNDT000011-SC3
295 | SC
296 | Identification Scheme. Name. Text
297 | The name of the identification scheme.
298 | Identification Scheme
299 | Name
300 | Text
301 | string
302 |
303 |
304 |
305 |
306 |
307 |
308 | UNDT000011-SC6
309 | SC
310 | Identification Scheme. Version. Identifier
311 | The version of the identification scheme.
312 | Identification Scheme
313 | Version
314 | Identifier
315 | string
316 |
317 |
318 |
319 |
320 |
321 |
322 | UNDT000011-SC7
323 | SC
324 | Identification Scheme Data. Uniform Resource. Identifier
325 | The Uniform Resource Identifier that identifies where the identification scheme data is located.
326 | Identification Scheme Data
327 | Uniform Resource Identifier
328 | Identifier
329 | string
330 |
331 |
332 |
333 |
334 |
335 |
336 | UNDT000011-SC8
337 | SC
338 | Identification Scheme. Uniform Resource. Identifier
339 | The Uniform Resource Identifier that identifies where the identification scheme is located.
340 | Identification Scheme
341 | Uniform Resource Identifier
342 | Identifier
343 | string
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 | Informacion del Proveedor Autorizado (PA) por la DIAN
355 |
356 |
357 |
358 |
360 |
361 |
362 |
363 |
364 |
365 | Informacion sobre el QRCode.
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
--------------------------------------------------------------------------------
/static/xsd/maindoc/UBL-ApplicationResponse-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
19 |
20 |
22 |
24 |
26 |
27 |
28 |
29 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | ABIE
39 | Application Response. Details
40 | A document to indicate the application's response to a transaction. This may be a business response initiated by a user or a technical response sent automatically by an application.
41 | Application Response
42 |
43 |
44 |
45 |
46 |
47 |
48 | A container for all extensions present in the document.
49 |
50 |
51 |
52 |
53 |
54 |
55 | BBIE
56 | Application Response. UBL Version Identifier. Identifier
57 | Identifies the earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
58 | 0..1
59 | Application Response
60 | UBL Version Identifier
61 | Identifier
62 | Identifier. Type
63 | 2.0.5
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | BBIE
73 | Application Response. Customization Identifier. Identifier
74 | Identifies a user-defined customization of UBL for a specific use.
75 | 0..1
76 | Application Response
77 | Customization Identifier
78 | Identifier
79 | Identifier. Type
80 | NES
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | BBIE
90 | Application Response. Profile Identifier. Identifier
91 | Identifies a user-defined profile of the customization of UBL being used.
92 | 0..1
93 | Application Response
94 | Profile Identifier
95 | Identifier
96 | Identifier. Type
97 | BasicProcurementProcess
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | BBIE
107 | Application Response. Profile Execution Identifier. Identifier
108 | Identifies an instance of executing a profile, to associate all transactions in a collaboration.
109 | 0..1
110 | Application Response
111 | Profile Execution Identifier
112 | Identifier
113 | Identifier. Type
114 | BPP-1001
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | BBIE
124 | Application Response. Identifier
125 | An identifier for this document, assigned by the sender.
126 | 1
127 | Application Response
128 | Identifier
129 | Identifier
130 | Identifier. Type
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 | BBIE
140 | Application Response. UUID. Identifier
141 | A universally unique identifier for an instance of this document.
142 | 0..1
143 | Application Response
144 | UUID
145 | Identifier
146 | Identifier. Type
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 | BBIE
156 | Application Response. Issue Date. Date
157 | The date, assigned by the sender, on which this document was issued.
158 | 1
159 | Application Response
160 | Issue Date
161 | Date
162 | Date. Type
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 | BBIE
172 | Application Response. Issue Time. Time
173 | The time, assigned by the sender, at which this document was issued.
174 | 0..1
175 | Application Response
176 | Issue Time
177 | Time
178 | Time. Type
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 | BBIE
188 | Application Response. Response Date. Date
189 | The date on which the information in the response was created.
190 | 0..1
191 | Application Response
192 | Response Date
193 | Date
194 | Date. Type
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 | BBIE
204 | Application Response. Response Time. Time
205 | The time at which the information in the response was created.
206 | 0..1
207 | Application Response
208 | Response Time
209 | Time
210 | Time. Type
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 | BBIE
220 | Application Response. Note. Text
221 | Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
222 | 0..n
223 | Application Response
224 | Note
225 | Text
226 | Text. Type
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 | BBIE
236 | Application Response. Version. Identifier
237 | Identifies the current version of this document.
238 | 0..1
239 | Application Response
240 | Version
241 | Identifier
242 | Identifier. Type
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 | ASBIE
252 | Application Response. Signature
253 | A signature applied to this document.
254 | 0..n
255 | Application Response
256 | Signature
257 | Signature
258 | Signature
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 | ASBIE
268 | Application Response. Sender_ Party. Party
269 | The party sending this document.
270 | 1
271 | Application Response
272 | Sender
273 | Party
274 | Party
275 | Party
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 | ASBIE
285 | Application Response. Receiver_ Party. Party
286 | The party receiving this document.
287 | 1
288 | Application Response
289 | Receiver
290 | Party
291 | Party
292 | Party
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 | ASBIE
302 | Application Response. Document Response
303 | A response to a document.
304 | 0..n
305 | Application Response
306 | Document Response
307 | Document Response
308 | Document Response
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
--------------------------------------------------------------------------------
/static/xsd/common/UBL-XAdESv132-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 |
476 |
477 |
--------------------------------------------------------------------------------
/static/xsd/maindoc/UBL-AttachedDocument-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
19 |
20 |
22 |
24 |
26 |
27 |
28 |
29 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | ABIE
39 | Attached Document. Details
40 | A wrapper that allows a document of any kind to be packaged with the UBL document that references it.
41 | Attached Document
42 |
43 |
44 |
45 |
46 |
47 |
48 | A container for all extensions present in the document.
49 |
50 |
51 |
52 |
53 |
54 |
55 | BBIE
56 | Attached Document. UBL Version Identifier. Identifier
57 | Identifies the earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
58 | 0..1
59 | Attached Document
60 | UBL Version Identifier
61 | Identifier
62 | Identifier. Type
63 | 2.0.5
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | BBIE
73 | Attached Document. Customization Identifier. Identifier
74 | Identifies a user-defined customization of UBL for a specific use.
75 | 0..1
76 | Attached Document
77 | Customization Identifier
78 | Identifier
79 | Identifier. Type
80 | NES
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | BBIE
90 | Attached Document. Profile Identifier. Identifier
91 | Identifies a user-defined profile of the customization of UBL being used.
92 | 0..1
93 | Attached Document
94 | Profile Identifier
95 | Identifier
96 | Identifier. Type
97 | BasicProcurementProcess
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | BBIE
107 | Attached Document. Profile Execution Identifier. Identifier
108 | Identifies an instance of executing a profile, to associate all transactions in a collaboration.
109 | 0..1
110 | Attached Document
111 | Profile Execution Identifier
112 | Identifier
113 | Identifier. Type
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | BBIE
123 | Attached Document. Identifier
124 | An identifier for this document, assigned by the sender.
125 | 1
126 | Attached Document
127 | Identifier
128 | Identifier
129 | Identifier. Type
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | BBIE
139 | Attached Document. UUID. Identifier
140 | A universally unique identifier for an instance of this document.
141 | 0..1
142 | Attached Document
143 | UUID
144 | Identifier
145 | Identifier. Type
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 | BBIE
155 | Attached Document. Issue Date. Date
156 | The date, assigned by the sender, on which this document was issued.
157 | 1
158 | Attached Document
159 | Issue Date
160 | Date
161 | Date. Type
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 | BBIE
171 | Attached Document. Issue Time. Time
172 | The time, assigned by the sender, at which this document was issued.
173 | 0..1
174 | Attached Document
175 | Issue Time
176 | Time
177 | Time. Type
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 | BBIE
187 | Attached Document. Note. Text
188 | Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
189 | 0..n
190 | Attached Document
191 | Note
192 | Text
193 | Text. Type
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 | BBIE
203 | Attached Document. Document Type Code. Code
204 | A code signifying the type of document.
205 | 0..1
206 | Attached Document
207 | Document Type Code
208 | Code
209 | Code. Type
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 | BBIE
219 | Attached Document. Document Type. Text
220 | Text specifying the type of document.
221 | 0..1
222 | Attached Document
223 | Document Type
224 | Text
225 | Text. Type
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | BBIE
235 | Attached Document. Parent_ Document Identifier. Identifier
236 | The Identifier of the parent document.
237 | 1
238 | Attached Document
239 | Parent
240 | Document Identifier
241 | Identifier
242 | Identifier. Type
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 | BBIE
252 | Attached Document. Parent_ Document Type Code. Code
253 | A code signifying the type of parent document.
254 | 0..1
255 | Attached Document
256 | Parent
257 | Document Type Code
258 | Code
259 | Code. Type
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 | BBIE
269 | Attached Document. Parent Document_ Version. Identifier
270 | Indicates the current version of the referred document.
271 | 0..1
272 | Attached Document
273 | Parent Document
274 | Version
275 | Identifier
276 | Identifier. Type
277 | 1.1
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 | ASBIE
287 | Attached Document. Signature
288 | A signature applied to this document.
289 | 0..n
290 | Attached Document
291 | Signature
292 | Signature
293 | Signature
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 | ASBIE
303 | Attached Document. Sender_ Party. Party
304 | The party sending this document.
305 | 1
306 | Attached Document
307 | Sender
308 | Party
309 | Party
310 | Party
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 | ASBIE
320 | Attached Document. Receiver_ Party. Party
321 | The party receiving this document.
322 | 1
323 | Attached Document
324 | Receiver
325 | Party
326 | Party
327 | Party
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 | ASBIE
337 | Attached Document. Attachment
338 | An attachment containing the document content.
339 | 1
340 | Attached Document
341 | Attachment
342 | Attachment
343 | Attachment
344 |
345 |
346 |
347 |
348 |
351 |
352 |
353 |
354 | ASBIE
355 | Attached Document. Parent Document_ Line Reference. Line Reference
356 | A reference to a line in the attached document.
357 | 0..n
358 | Attached Document
359 | Parent Document
360 | Line Reference
361 | Line Reference
362 | Line Reference
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
--------------------------------------------------------------------------------
/data/dian_fiscal_responsability_data.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | O-06
7 | Ingresos y patrimonio
8 |
9 |
10 |
11 | O-07
12 | Retención en la fuente a título de renta
13 |
14 |
15 |
16 | O-08
17 | Retención timbre nacional
18 |
19 |
20 |
21 | O-09
22 | Retención en la fuente en el impuesto sobre las ventas
23 |
24 |
25 |
26 | O-11
27 | Ventas régimen común
28 |
29 |
30 |
31 | O-12
32 | Ventas régimen simplificado
33 |
34 |
35 |
36 | O-13
37 | Gran contribuyente
38 |
39 |
40 |
41 | O-14
42 | Informante de exógena
43 |
44 |
45 |
46 | O-15
47 | Autorretenedor
48 |
49 |
50 |
51 | O-16
52 | Obligación de facturar por ingresos de bienes y/o servicios excluidos
53 |
54 |
55 |
56 | O-17
57 | Profesionales de compra y venta de divisas
58 |
59 |
60 |
61 | O-19
62 | Productor y/o exportador de bienes exentos
63 |
64 |
65 |
66 | O-22
67 | Obligado a cumplir deberes formales a nombre de terceros
68 |
69 |
70 |
71 | O-23
72 | Agente de retención en el impuesto sobre las ventas
73 |
74 |
75 |
76 | O-32
77 | Impuesto Nacional a la Gasolina y al ACPM
78 |
79 |
80 |
81 | O-33
82 | Impuesto Nacional al consumo
83 |
84 |
85 |
86 | O-34
87 | Régimen simplificado impuesto nacional consumo rest y bares
88 |
89 |
90 |
91 | O-36
92 | Establecimiento Permanente
93 |
94 |
95 |
96 | O-37
97 | Obligado a Facturar Electrónicamente Modelo 2242
98 |
99 |
100 |
101 | O-38
102 | Facturación Electrónica Voluntaria Modelo 2242
103 |
104 |
105 |
106 | O-39
107 | Proveedor de Servicios Tecnológicos PST Modelo 2242
108 |
109 |
110 |
111 | O-47
112 | Régimen Simple de Tributación – SIMPLE
113 |
114 |
115 |
116 | O-48
117 | Impuesto sobre las ventas – IVA
118 |
119 |
120 |
121 | O-49
122 | No responsable de IVA
123 |
124 |
125 |
126 | O-52
127 | Facturador electrónico
128 |
129 |
130 |
131 | O-99
132 | Otro tipo de obligado
133 |
134 |
135 |
136 | R-00-PN
137 | Clientes del Exterior
138 |
139 |
140 |
141 | R-12-PN
142 | Factor PN
143 |
144 |
145 |
146 | R-16-PN
147 | Mandatario PN
148 |
149 |
150 |
151 | R-25-PN
152 | Agente Interventor PN
153 |
154 |
155 |
156 | R-06-PJ
157 | Apoderado especial PJ
158 |
159 |
160 |
161 | R-07-PJ
162 | Apoderado general PJ
163 |
164 |
165 |
166 | R-12-PJ
167 | Factor PJ
168 |
169 |
170 |
171 | R-16-PJ
172 | Mandatario PJ
173 |
174 |
175 |
176 | R-99-PN
177 | No responsable PN
178 |
179 |
180 |
181 | A-01
182 | Agente de carga internacional
183 |
184 |
185 |
186 | A-02
187 | Agente marítimo
188 |
189 |
190 |
191 | A-03
192 | Almacén general de depósito
193 |
194 |
195 |
196 | A-04
197 | Comercializadora internacional (C.I.)
198 |
199 |
200 |
201 | A-05
202 | Comerciante de la zona aduanera especial de Inírida, Puerto Carreño, Cumaribo y Primavera
203 |
204 |
205 |
206 | A-06
207 | Comerciantes de la zona de régimen aduanero especial de Leticia
208 |
209 |
210 |
211 | A-07
212 | Comerciantes de la zona de régimen aduanero especial de Maicao, Uribia y Manaure
213 |
214 |
215 |
216 | A-08
217 | Comerciantes de la zona de régimen aduanero especial de Urabá, Tumaco y Guapí
218 |
219 |
220 |
221 | A-09
222 | Comerciantes del puerto libre de San Andrés, Providencia y Santa Catalina
223 |
224 |
225 |
226 | A-10
227 | Depósito público de apoyo logístico internacional
228 |
229 |
230 |
231 | A-11
232 | Depósito privado para procesamiento industrial
233 |
234 |
235 |
236 | A-12
237 | Depósito privado de transformación o ensamble
238 |
239 |
240 |
241 | A-13
242 | Depósito franco
243 |
244 |
245 |
246 | A-14
247 | Depósito privado aeronáutico
248 |
249 |
250 |
251 | A-15
252 | Depósito privado para distribución internacional
253 |
254 |
255 |
256 | A-16
257 | Depósito privado de provisiones de a bordo para consumo y para llevar
258 |
259 |
260 |
261 | A-17
262 | Depósito privado para envíos urgentes
263 |
264 |
265 |
266 | A-18
267 | Depósito privado
268 |
269 |
270 |
271 | A-19
272 | Depósito público
273 |
274 |
275 |
276 | A-20
277 | Depósito público para distribución internacional
278 |
279 |
280 |
281 | A-21
282 | Exportador de café
283 |
284 |
285 |
286 | A-22
287 | Exportador
288 |
289 |
290 |
291 | A-23
292 | Importador
293 |
294 |
295 |
296 | A-24
297 | Intermediario de tráfico postal y envíos urgentes
298 |
299 |
300 |
301 | A-25
302 | Operador de transporte multimodal
303 |
304 |
305 |
306 | A-26
307 | Sociedad de intermediación aduanera
308 |
309 |
310 |
311 | A-27
312 | Titular de puertos y muelles de servicio público o privado
313 |
314 |
315 |
316 | A-28
317 | Transportador nfor régimen de importación y/o exportación
318 |
319 |
320 |
321 | A-29
322 | Transportista nacional para operaciones del régimen de tránsito aduanero
323 |
324 |
325 |
326 | A-30
327 | Usuario comercial zona franca
328 |
329 |
330 |
331 | A-32
332 | Usuario industrial de bienes zona franca
333 |
334 |
335 |
336 | A-34
337 | Usuario industrial de servicios zona franca
338 |
339 |
340 |
341 | A-36
342 | Usuario operador de zona franca
343 |
344 |
345 |
346 | A-37
347 | Usuario aduanero permanente
348 |
349 |
350 |
351 | A-38
352 | Usuario altamente exportador
353 |
354 |
355 |
356 | A-39
357 | Usuario de zonas económicas especiales de exportación
358 |
359 |
360 |
361 | A-40
362 | Deposito privado de instalaciones industriales
363 |
364 |
365 |
366 | A-41
367 | Beneficiarios de programas especiales de exportación PEX
368 |
369 |
370 |
371 | A-42
372 | Depósitos privados para mercancías en tránsito San Andrés
373 |
374 |
375 |
376 | A-43
377 | Observadores de las operaciones de importación
378 |
379 |
380 |
381 | A-44
382 | Usuarios sistemas especiales Importación exportación
383 |
384 |
385 |
386 | A-46
387 | Transportador nformac régimen de importación y/o exportación
388 |
389 |
390 |
391 | A-47
392 | Transportador terrestre régimen de importación y/o exportación
393 |
394 |
395 |
396 | A-48
397 | Aeropuerto de servicio publico o privado
398 |
399 |
400 |
401 | A-49
402 | Transportador fluvial régimen de importación
403 |
404 |
405 |
406 | A-50
407 | Usuario industrial zona franca especial
408 |
409 |
410 |
411 | A-53
412 | Agencias de aduanas 1
413 |
414 |
415 |
416 | A-54
417 | Usuario Operador Zona Franca Especial
418 |
419 |
420 |
421 | A-55
422 | Agencias de aduanas 2
423 |
424 |
425 |
426 | A-56
427 | Agencias de aduanas 3
428 |
429 |
430 |
431 | A-57
432 | Agencias de aduanas 4
433 |
434 |
435 |
436 | A-58
437 | Transportador aéreo nacional
438 |
439 |
440 |
441 | A-60
442 | Transportador aéreo, marítimo o fluvial modalidad Cabotaje
443 |
444 |
445 |
446 | A-61
447 | Importador de alimentos de consumo humano y animal
448 |
449 |
450 |
451 | A-62
452 | Importador Ocasional
453 |
454 |
455 |
456 | A-63
457 | Importador de maquinaría y sus partes Decreto 2261 de 2012
458 |
459 |
460 |
461 | A-64
462 | Beneficiario Programa de Fomento Industria Automotriz-PROFIA
463 |
464 |
465 |
466 | A-99
467 | Otro tipo de agente aduanero
468 |
469 |
470 |
471 | E-01
472 | Agencia
473 |
474 |
475 |
476 | E-02
477 | Establecimiento de comercio
478 |
479 |
480 |
481 | E-03
482 | Centro de explotación agrícola
483 |
484 |
485 |
486 | E-04
487 | Centro de explotación animal
488 |
489 |
490 |
491 | E-05
492 | Centro de explotación minera
493 |
494 |
495 |
496 | E-06
497 | Centro de explotación de transformación
498 |
499 |
500 |
501 | E-07
502 | Centro de explotación de servicios
503 |
504 |
505 |
506 | E-08
507 | Oficina
508 |
509 |
510 |
511 | E-09
512 | Sede
513 |
514 |
515 |
516 | E-10
517 | Sucursal
518 |
519 |
520 |
521 | E-11
522 | Consultorio
523 |
524 |
525 |
526 | E-12
527 | Administraciones
528 |
529 |
530 |
531 | E-13
532 | Seccionales
533 |
534 |
535 |
536 | E-14
537 | Regionales
538 |
539 |
540 |
541 | E-15
542 | Intendencias
543 |
544 |
545 |
546 | E-16
547 | Local o negocio
548 |
549 |
550 |
551 | E-17
552 | Punto de venta
553 |
554 |
555 |
556 | E-18
557 | Fábrica
558 |
559 |
560 |
561 | E-19
562 | Taller
563 |
564 |
565 |
566 | E-20
567 | Cantera
568 |
569 |
570 |
571 | E-21
572 | Pozo de Petróleo y Gas
573 |
574 |
575 |
576 | E-22
577 | Otro lug de tipo de extrac explotación de recursos naturales
578 |
579 |
580 |
581 | E-99
582 | Otro tipo de establecimiento
583 |
584 |
585 |
586 |
--------------------------------------------------------------------------------