@facturacr/atv-sdk 2.0.0 → 2.0.2-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.js +23 -23
  3. package/.github/dependabot.yml +11 -0
  4. package/.github/workflows/ci.yml +14 -12
  5. package/README.md +9 -2
  6. package/__tests__/stubs/commonExpectedXml.xml +14 -16
  7. package/__tests__/stubs/createDocument.data.ts +18 -1
  8. package/__tests__/stubs/frontendRequest.stub.ts +0 -1
  9. package/__tests__/stubs/token.stub.ts +9 -9
  10. package/__tests__/tests/ATV/__snapshots__/create-document.test.ts.snap +1 -1
  11. package/__tests__/tests/ATV/create-document.test.ts +8 -8
  12. package/__tests__/tests/ATV/create-receptor-message.test.ts +41 -36
  13. package/dist/src/ATV/core/CreateDocFactory.d.ts +11 -3
  14. package/dist/src/ATV/core/CreateDocFactory.js +3 -3
  15. package/dist/src/ATV/core/CreateDocFactory.js.map +1 -1
  16. package/dist/src/ATV/core/Document.d.ts +2 -2
  17. package/dist/src/ATV/core/Document.js +15 -5
  18. package/dist/src/ATV/core/Document.js.map +1 -1
  19. package/dist/src/ATV/core/DocumentType.d.ts +2 -3
  20. package/dist/src/ATV/core/DocumentType.js +1 -0
  21. package/dist/src/ATV/core/DocumentType.js.map +1 -1
  22. package/dist/src/ATV/core/FullConsecutive.d.ts +2 -1
  23. package/dist/src/ATV/core/FullConsecutive.js.map +1 -1
  24. package/dist/src/ATV/core/OrderLine.js +8 -1
  25. package/dist/src/ATV/core/OrderLine.js.map +1 -1
  26. package/dist/src/ATV/core/Person.d.ts +2 -2
  27. package/dist/src/ATV/core/ReceptorConsecutive.js.map +1 -1
  28. package/dist/src/ATV/core/ReferenceInformation.js.map +1 -1
  29. package/dist/src/ATV/core/Summary.type.d.ts +5 -0
  30. package/dist/src/ATV/core/types.d.ts +3 -2
  31. package/dist/src/ATV/core/types.js.map +1 -1
  32. package/dist/src/ATV/index.d.ts +2 -2
  33. package/dist/src/ATV/index.js +2 -2
  34. package/dist/src/ATV/mappers/billDocToAtv.js +32 -26
  35. package/dist/src/ATV/mappers/billDocToAtv.js.map +1 -1
  36. package/dist/src/ATV/types.d.ts +1 -1
  37. package/dist/src/ATV/useCases/createDocument/index.js +5 -9
  38. package/dist/src/ATV/useCases/createDocument/index.js.map +1 -1
  39. package/dist/src/ATV/useCases/createDocument/types.d.ts +4 -3
  40. package/dist/src/ATV/useCases/createReceptorMessage/index.d.ts +6 -5
  41. package/dist/src/ATV/useCases/createReceptorMessage/index.js +3 -3
  42. package/dist/src/ATV/useCases/createReceptorMessage/index.js.map +1 -1
  43. package/dist/src/helpers/comprobantes.js +10 -1
  44. package/dist/src/helpers/comprobantes.js.map +1 -1
  45. package/dist/src/lib/genClave/index.d.ts +8 -1
  46. package/dist/src/lib/genClave/index.js +5 -0
  47. package/dist/src/lib/genClave/index.js.map +1 -1
  48. package/dist/src/lib/genXML/index.js +6 -4
  49. package/dist/src/lib/genXML/index.js.map +1 -1
  50. package/dist/src/lib/genXML/sigXML/index.js +7 -4
  51. package/dist/src/lib/genXML/sigXML/index.js.map +1 -1
  52. package/dist/src/services/getToken/GetToken.js +0 -3
  53. package/dist/src/services/getToken/GetToken.js.map +1 -1
  54. package/dist/src/services/getToken/__tests__/GetToken.test.js +0 -1
  55. package/dist/src/services/getToken/__tests__/GetToken.test.js.map +1 -1
  56. package/dist/src/types/facturaInterfaces.d.ts +9 -3
  57. package/dist/src/xmlSchemaHeaderMap.d.ts +70 -0
  58. package/dist/src/xmlSchemaHeaderMap.js +30 -0
  59. package/dist/src/xmlSchemaHeaderMap.js.map +1 -0
  60. package/doc/atv-structures/4.3/FacturaElectronica_V4.3.xsd.xml +1633 -478
  61. package/doc/atv-structures/4.4/TiqueteElectronico_V4.4.xsd.xml +2817 -0
  62. package/doc/json-schemas/4.4/fe.json +544 -0
  63. package/doc/json-schemas/4.4/te.json +420 -0
  64. package/doc/testing.md +27 -0
  65. package/examples/README.md +10 -35
  66. package/examples/atvAccept.ts +18 -9
  67. package/examples/consultXML.ts +1 -0
  68. package/examples/{createAndSend.ts → createAndSendFE.ts} +11 -8
  69. package/examples/createAndSendTE.ts +73 -0
  70. package/examples/createCreditNote.ts +10 -6
  71. package/examples/createDebitNote.ts +2 -0
  72. package/examples/getToken.ts +2 -0
  73. package/package.json +3 -2
  74. package/src/ATV/core/CreateDocFactory.ts +32 -23
  75. package/src/ATV/core/Document.ts +15 -8
  76. package/src/ATV/core/DocumentType.ts +10 -3
  77. package/src/ATV/core/FullConsecutive.ts +2 -1
  78. package/src/ATV/core/OrderLine.ts +7 -1
  79. package/src/ATV/core/Person.ts +2 -2
  80. package/src/ATV/core/ReceptorConsecutive.ts +16 -16
  81. package/src/ATV/core/ReferenceInformation.ts +6 -6
  82. package/src/ATV/core/Summary.type.ts +5 -0
  83. package/src/ATV/core/types.ts +7 -6
  84. package/src/ATV/index.ts +3 -3
  85. package/src/ATV/mappers/billDocToAtv.ts +35 -15
  86. package/src/ATV/types.ts +1 -1
  87. package/src/ATV/useCases/createDocument/index.ts +8 -8
  88. package/src/ATV/useCases/createDocument/types.ts +5 -6
  89. package/src/ATV/useCases/createReceptorMessage/index.ts +94 -93
  90. package/src/helpers/comprobantes.ts +10 -1
  91. package/src/lib/genClave/index.ts +10 -3
  92. package/src/lib/genXML/index.ts +3 -1
  93. package/src/lib/genXML/sigXML/index.ts +6 -3
  94. package/src/services/getToken/GetToken.ts +0 -3
  95. package/src/services/getToken/__tests__/GetToken.test.ts +0 -1
  96. package/src/types/facturaInterfaces.ts +10 -4
  97. package/src/xmlSchemaHeaderMap.ts +37 -0
  98. package/tools/readXML.ts +2 -0
  99. package/tools/xsdToJsonSchema.ts +1 -0
  100. package/tsconfig.json +1 -0
  101. package/dist/src/ATV/core/documentNames.types.d.ts +0 -1
  102. package/dist/src/ATV/core/documentNames.types.js +0 -3
  103. package/dist/src/ATV/core/documentNames.types.js.map +0 -1
  104. package/dist/src/lib/genXML/xmlConfig.d.ts +0 -55
  105. package/dist/src/lib/genXML/xmlConfig.js +0 -42
  106. package/dist/src/lib/genXML/xmlConfig.js.map +0 -1
  107. package/src/ATV/core/documentNames.types.ts +0 -6
  108. package/src/lib/genXML/xmlConfig.ts +0 -60
@@ -1,7 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- edited with XMLSpy v2017 rel. 3 (x64) (http://www.altova.com) by Gerardo Arroyo (Flecha Roja Technologies S.A.) -->
3
- <xs:schema xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.3" vc:minVersion="1.1">
4
- <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/2008/REC-xmldsig-core-20080610/xmldsig-core-schema.xsd"/>
2
+ <xs:schema xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.4/facturaElectronica" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.4/facturaElectronica" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.4" vc:minVersion="1.1">
3
+ <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../../xmldsig-core-schema.xsd"/>
5
4
  <xs:element name="FacturaElectronica">
6
5
  <xs:annotation>
7
6
  <xs:documentation>Elemento Raiz de la Facturacion Electrónica</xs:documentation>
@@ -10,12 +9,36 @@
10
9
  <xs:sequence>
11
10
  <xs:element name="Clave" type="ClaveType">
12
11
  <xs:annotation>
13
- <xs:documentation>Corresponde a la clave del comprobante. Es un campo de 50 posiciones y se tiene que utilizar para la consulta del código QR. Ver nota 1 y 4.1</xs:documentation>
12
+ <xs:documentation>Corresponde a la clave del comprobante. Es un campo fijo de cincuenta posiciones y se tiene que utilizar para
13
+ la consulta del código QR</xs:documentation>
14
14
  </xs:annotation>
15
15
  </xs:element>
16
- <xs:element name="CodigoActividad">
16
+ <xs:element name="ProveedorSistemas">
17
17
  <xs:annotation>
18
- <xs:documentation>Se debe indicar el código de la actividad económica a la cual corresponde el comprobante electrónico</xs:documentation>
18
+ <xs:documentation>Se debe indicar el número de cedula de identificación del proveedor de sistemas que esté utilizando para la emisión de comprobantes
19
+ electrónicos</xs:documentation>
20
+ </xs:annotation>
21
+ <xs:simpleType>
22
+ <xs:restriction base="xs:string">
23
+ <xs:maxLength value="20"/>
24
+ </xs:restriction>
25
+ </xs:simpleType>
26
+ </xs:element>
27
+ <xs:element name="CodigoActividadEmisor">
28
+ <xs:annotation>
29
+ <xs:documentation>Se debe de indicar el código de la actividad económica inscrita a la cual corresponde el comprobante que se está generando</xs:documentation>
30
+ </xs:annotation>
31
+ <xs:simpleType>
32
+ <xs:restriction base="xs:string">
33
+ <xs:maxLength value="6"/>
34
+ <xs:minLength value="6"/>
35
+ </xs:restriction>
36
+ </xs:simpleType>
37
+ </xs:element>
38
+ <xs:element name="CodigoActividadReceptor" minOccurs="0">
39
+ <xs:annotation>
40
+ <xs:documentation>Se debe de indicar el código de la actividad económica inscrita del receptor a la cual corresponden los bienes o servicios que se le están
41
+ facturando al receptor en caso de ser requerido para un crédito o un gasto deducible.</xs:documentation>
19
42
  </xs:annotation>
20
43
  <xs:simpleType>
21
44
  <xs:restriction base="xs:string">
@@ -42,7 +65,7 @@
42
65
  </xs:element>
43
66
  <xs:element name="CondicionVenta">
44
67
  <xs:annotation>
45
- <xs:documentation>Condiciones de la venta: 01 Contado, 02 Crédito, 03 Consignación, 04 Apartado, 05 Arrendamiento con opción de compra, 06 Arrendamiento en función financiera, 07 Cobro a favor de un tercero, 08 servicxios prestados al estado a credito, 09 pago del servicio prestado al estado, 99 Otros</xs:documentation>
68
+ <xs:documentation>Condiciones de la venta: 01 Contado, 02 Crédito, 03 Consignación, 04 Apartado, 05 Arrendamiento con opción de compra, 06 Arrendamiento en función financiera, 07 Cobro a favor de un tercero, 08 servicxios prestados al estado a credito, 09 pago del servicio prestado al estado,10 venta a crédito hasta 90 dias,11 pago de venta a crédito en IVA hasta 90 dias, 99 Otros</xs:documentation>
46
69
  </xs:annotation>
47
70
  <xs:simpleType>
48
71
  <xs:restriction base="xs:string">
@@ -86,9 +109,29 @@
86
109
  <xs:documentation>Servicios prestados al Estado a crédito </xs:documentation>
87
110
  </xs:annotation>
88
111
  </xs:enumeration>
89
- <xs:enumeration value="09">
112
+ <xs:enumeration value="10">
90
113
  <xs:annotation>
91
- <xs:documentation>Pago del servicios prestado al Estado </xs:documentation>
114
+ <xs:documentation>Venta a crédito en IVA hasta 90 días (Artículo 27, LIVA) </xs:documentation>
115
+ </xs:annotation>
116
+ </xs:enumeration>
117
+ <xs:enumeration value="12">
118
+ <xs:annotation>
119
+ <xs:documentation>Venta Mercancía No Nacionalizada</xs:documentation>
120
+ </xs:annotation>
121
+ </xs:enumeration>
122
+ <xs:enumeration value="13">
123
+ <xs:annotation>
124
+ <xs:documentation>Venta Bienes Usados No Contribuyente</xs:documentation>
125
+ </xs:annotation>
126
+ </xs:enumeration>
127
+ <xs:enumeration value="14">
128
+ <xs:annotation>
129
+ <xs:documentation>Arrendamiento Operativo</xs:documentation>
130
+ </xs:annotation>
131
+ </xs:enumeration>
132
+ <xs:enumeration value="15">
133
+ <xs:annotation>
134
+ <xs:documentation>Arrendamiento Financiero</xs:documentation>
92
135
  </xs:annotation>
93
136
  </xs:enumeration>
94
137
  <xs:enumeration value="99">
@@ -99,58 +142,32 @@
99
142
  </xs:restriction>
100
143
  </xs:simpleType>
101
144
  </xs:element>
102
- <xs:element name="PlazoCredito" minOccurs="0">
145
+ <xs:element name="CondicionVentaOtros" minOccurs="0">
103
146
  <xs:annotation>
104
- <xs:documentation>Plazo del crédito, es obligatorio cuando la venta del producto o prestación del servicio sea a crédito</xs:documentation>
147
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de "Otros" de la nota
148
+ 5. Se debe describir puntualmente la condición de la venta utilizada.</xs:documentation>
105
149
  </xs:annotation>
106
150
  <xs:simpleType>
107
151
  <xs:restriction base="xs:string">
108
- <xs:maxLength value="10"/>
152
+ <xs:minLength value="5"/>
153
+ <xs:maxLength value="100"/>
109
154
  </xs:restriction>
110
155
  </xs:simpleType>
111
156
  </xs:element>
112
- <xs:element name="MedioPago" maxOccurs="4">
157
+ <xs:element name="PlazoCredito" minOccurs="0">
113
158
  <xs:annotation>
114
- <xs:documentation>Corresponde al medio de pago empleado: 01 Efectivo, 02 Tarjeta, 03 Cheque, 04 Transferencia - depósito bancario, 05 - Recaudado por terceros, 99 Otros</xs:documentation>
159
+ <xs:documentation>Plazo del crédito, es obligatorio cuando la venta del producto o prestación del servicio sea a crédito</xs:documentation>
115
160
  </xs:annotation>
116
161
  <xs:simpleType>
117
- <xs:restriction base="xs:string">
118
- <xs:enumeration value="01">
119
- <xs:annotation>
120
- <xs:documentation>Efectivo</xs:documentation>
121
- </xs:annotation>
122
- </xs:enumeration>
123
- <xs:enumeration value="02">
124
- <xs:annotation>
125
- <xs:documentation> Tarjeta</xs:documentation>
126
- </xs:annotation>
127
- </xs:enumeration>
128
- <xs:enumeration value="03">
129
- <xs:annotation>
130
- <xs:documentation>Cheque</xs:documentation>
131
- </xs:annotation>
132
- </xs:enumeration>
133
- <xs:enumeration value="04">
134
- <xs:annotation>
135
- <xs:documentation>Transferencia - depósito bancario</xs:documentation>
136
- </xs:annotation>
137
- </xs:enumeration>
138
- <xs:enumeration value="05">
139
- <xs:annotation>
140
- <xs:documentation>Recaudado por terceros</xs:documentation>
141
- </xs:annotation>
142
- </xs:enumeration>
143
- <xs:enumeration value="99">
144
- <xs:annotation>
145
- <xs:documentation>Otros</xs:documentation>
146
- </xs:annotation>
147
- </xs:enumeration>
162
+ <xs:restriction base="xs:integer">
163
+ <xs:totalDigits value="5"/>
148
164
  </xs:restriction>
149
165
  </xs:simpleType>
150
166
  </xs:element>
151
167
  <xs:element name="DetalleServicio" minOccurs="0">
152
168
  <xs:annotation>
153
- <xs:documentation>Detalle de la mercancia o servicio prestado.</xs:documentation>
169
+ <xs:documentation>Detalle del Servicio,
170
+ Mercancía u otro</xs:documentation>
154
171
  </xs:annotation>
155
172
  <xs:complexType>
156
173
  <xs:sequence>
@@ -160,12 +177,18 @@
160
177
  </xs:annotation>
161
178
  <xs:complexType>
162
179
  <xs:sequence>
163
- <xs:element name="NumeroLinea" type="xs:positiveInteger">
180
+ <xs:element name="NumeroLinea">
164
181
  <xs:annotation>
165
182
  <xs:documentation>Número de línea del detalle</xs:documentation>
166
183
  </xs:annotation>
184
+ <xs:simpleType>
185
+ <xs:restriction base="xs:positiveInteger">
186
+ <xs:minInclusive value="1"/>
187
+ <xs:maxInclusive value="1000"/>
188
+ </xs:restriction>
189
+ </xs:simpleType>
167
190
  </xs:element>
168
- <xs:element name="Codigo">
191
+ <xs:element name="CodigoCABYS">
169
192
  <xs:annotation>
170
193
  <xs:documentation>Código de Producto/servicio </xs:documentation>
171
194
  </xs:annotation>
@@ -193,6 +216,17 @@
193
216
  <xs:documentation>Unidad de medida </xs:documentation>
194
217
  </xs:annotation>
195
218
  </xs:element>
219
+ <xs:element name="TipoTransaccion" minOccurs="0">
220
+ <xs:annotation>
221
+ <xs:documentation>Este campo se utilizará para identificar el tipo de transacción
222
+ que se realizará.</xs:documentation>
223
+ </xs:annotation>
224
+ <xs:simpleType>
225
+ <xs:restriction base="TipoTransaccionType">
226
+ <xs:maxLength value="2"/>
227
+ </xs:restriction>
228
+ </xs:simpleType>
229
+ </xs:element>
196
230
  <xs:element name="UnidadMedidaComercial" minOccurs="0">
197
231
  <xs:annotation>
198
232
  <xs:documentation>Unidad de medida comercial</xs:documentation>
@@ -210,9 +244,345 @@
210
244
  <xs:simpleType>
211
245
  <xs:restriction base="xs:string">
212
246
  <xs:maxLength value="200"/>
247
+ <xs:minLength value="3"/>
248
+ </xs:restriction>
249
+ </xs:simpleType>
250
+ </xs:element>
251
+ <xs:element name="NumeroVINoSerie" minOccurs="0" maxOccurs="1000">
252
+ <xs:annotation>
253
+ <xs:documentation>Número de VIN o Serie
254
+ del medio de transporte</xs:documentation>
255
+ </xs:annotation>
256
+ <xs:simpleType>
257
+ <xs:restriction base="xs:string">
258
+ <xs:maxLength value="17"/>
259
+ </xs:restriction>
260
+ </xs:simpleType>
261
+ </xs:element>
262
+ <xs:element name="RegistroMedicamento" minOccurs="0">
263
+ <xs:annotation>
264
+ <xs:documentation>Se refiere al respectivo número de registro del Ministerio de Salud</xs:documentation>
265
+ </xs:annotation>
266
+ <xs:simpleType>
267
+ <xs:restriction base="xs:string">
268
+ <xs:maxLength value="100"/>
269
+ </xs:restriction>
270
+ </xs:simpleType>
271
+ </xs:element>
272
+ <xs:element name="FormaFarmaceutica" minOccurs="0">
273
+ <xs:annotation>
274
+ <xs:documentation>Código de la presentación del medicamento.</xs:documentation>
275
+ </xs:annotation>
276
+ <xs:simpleType>
277
+ <xs:restriction base="xs:string">
278
+ <xs:maxLength value="3"/>
213
279
  </xs:restriction>
214
280
  </xs:simpleType>
215
281
  </xs:element>
282
+ <xs:element name="DetalleSurtido" minOccurs="0">
283
+ <xs:annotation>
284
+ <xs:documentation>Tipo complejo que representa cada línea del detalle de los componentes de un surtido, paquete o combinación de productos. Se debe utilizar exclusivamente cuando en la línea de detalle se está facturando un paquete, surtido o combo, entendido como la combinación de más de dos productos con diferentes códigos de producto/servicio.</xs:documentation>
285
+ </xs:annotation>
286
+ <xs:complexType>
287
+ <xs:sequence>
288
+ <xs:element name="LineaDetalleSurtido" maxOccurs="20">
289
+ <xs:annotation>
290
+ <xs:documentation>Tipo complejo que representa cada línea del detalle del surtido</xs:documentation>
291
+ </xs:annotation>
292
+ <xs:complexType>
293
+ <xs:sequence>
294
+ <xs:element name="CodigoCABYSSurtido">
295
+ <xs:annotation>
296
+ <xs:documentation>Código de Producto
297
+ /Servicio componente de Surtido</xs:documentation>
298
+ </xs:annotation>
299
+ <xs:simpleType>
300
+ <xs:restriction base="xs:string">
301
+ <xs:maxLength value="13"/>
302
+ <xs:minLength value="13"/>
303
+ </xs:restriction>
304
+ </xs:simpleType>
305
+ </xs:element>
306
+ <xs:element name="CodigoComercialSurtido" minOccurs="0" maxOccurs="5">
307
+ <xs:complexType>
308
+ <xs:sequence>
309
+ <xs:element name="TipoSurtido">
310
+ <xs:simpleType>
311
+ <xs:restriction base="xs:string">
312
+ <xs:length value="2"/>
313
+ <xs:enumeration value="01">
314
+ <xs:annotation>
315
+ <xs:documentation>Código del producto del vendedor</xs:documentation>
316
+ </xs:annotation>
317
+ </xs:enumeration>
318
+ <xs:enumeration value="02">
319
+ <xs:annotation>
320
+ <xs:documentation>Código del producto del comprador</xs:documentation>
321
+ </xs:annotation>
322
+ </xs:enumeration>
323
+ <xs:enumeration value="03">
324
+ <xs:annotation>
325
+ <xs:documentation>código del producto asignado por la industria</xs:documentation>
326
+ </xs:annotation>
327
+ </xs:enumeration>
328
+ <xs:enumeration value="04">
329
+ <xs:annotation>
330
+ <xs:documentation>código de uso interno</xs:documentation>
331
+ </xs:annotation>
332
+ </xs:enumeration>
333
+ <xs:enumeration value="99">
334
+ <xs:annotation>
335
+ <xs:documentation>Otros</xs:documentation>
336
+ </xs:annotation>
337
+ </xs:enumeration>
338
+ </xs:restriction>
339
+ </xs:simpleType>
340
+ </xs:element>
341
+ <xs:element name="CodigoSurtido">
342
+ <xs:simpleType>
343
+ <xs:restriction base="xs:string">
344
+ <xs:maxLength value="20"/>
345
+ <xs:minLength value="1"/>
346
+ </xs:restriction>
347
+ </xs:simpleType>
348
+ </xs:element>
349
+ </xs:sequence>
350
+ </xs:complexType>
351
+ </xs:element>
352
+ <xs:element name="CantidadSurtido">
353
+ <xs:annotation>
354
+ <xs:documentation>Es un número decimal compuesto por 13 enteros y 3 decimales.</xs:documentation>
355
+ </xs:annotation>
356
+ <xs:simpleType>
357
+ <xs:restriction base="xs:decimal">
358
+ <xs:totalDigits value="16"/>
359
+ <xs:fractionDigits value="3"/>
360
+ <xs:minInclusive value="0"/>
361
+ </xs:restriction>
362
+ </xs:simpleType>
363
+ </xs:element>
364
+ <xs:element name="UnidadMedidaSurtido">
365
+ <xs:simpleType>
366
+ <xs:restriction base="UnidadMedidaType">
367
+ <xs:maxLength value="15"/>
368
+ </xs:restriction>
369
+ </xs:simpleType>
370
+ </xs:element>
371
+ <xs:element name="UnidadMedidaComercialSurtido" minOccurs="0">
372
+ <xs:annotation>
373
+ <xs:documentation>Nodo utilizado para indicar una unidad de medida que nace del propio giro comercial del establecimiento, no es una cantidad estandarizada de una determinada magnitud física, definida y adoptada por convención o por ley ejemplo: "1
374
+ Tarima"</xs:documentation>
375
+ </xs:annotation>
376
+ <xs:simpleType>
377
+ <xs:restriction base="xs:string">
378
+ <xs:maxLength value="20"/>
379
+ </xs:restriction>
380
+ </xs:simpleType>
381
+ </xs:element>
382
+ <xs:element name="DetalleSurtido">
383
+ <xs:annotation>
384
+ <xs:documentation>Detalle de la mercancía transferida o servicio prestado incluido en el surtido</xs:documentation>
385
+ </xs:annotation>
386
+ <xs:simpleType>
387
+ <xs:restriction base="xs:string">
388
+ <xs:maxLength value="200"/>
389
+ <xs:minLength value="3"/>
390
+ </xs:restriction>
391
+ </xs:simpleType>
392
+ </xs:element>
393
+ <xs:element name="PrecioUnitarioSurtido">
394
+ <xs:simpleType>
395
+ <xs:restriction base="DecimalDineroType">
396
+ <xs:minInclusive value="0"/>
397
+ </xs:restriction>
398
+ </xs:simpleType>
399
+ </xs:element>
400
+ <xs:element name="MontoTotalSurtido" type="DecimalDineroType">
401
+ <xs:annotation>
402
+ <xs:documentation>Se obtiene de la multiplicación del campo "Cantidad componente de surtido" por el campo "Precio unitario componente de surtido".</xs:documentation>
403
+ </xs:annotation>
404
+ </xs:element>
405
+ <xs:element name="DescuentoSurtido" minOccurs="0" maxOccurs="5">
406
+ <xs:annotation>
407
+ <xs:documentation>Se puede incluir un máximo de 5 repeticiones de
408
+ descuentos, cada descuento adicional se calcula sobre la base menos el descuento anterior.</xs:documentation>
409
+ </xs:annotation>
410
+ <xs:complexType>
411
+ <xs:sequence>
412
+ <xs:element name="MontoDescuentoSurtido" type="DecimalDineroType">
413
+ <xs:annotation>
414
+ <xs:documentation>Validación: Se deberá incluir un valor igual o menor al del
415
+ "Monto total componente surtido"</xs:documentation>
416
+ </xs:annotation>
417
+ </xs:element>
418
+ <xs:element name="CodigoDescuentoSurtido" type="CodigoDescuentoType">
419
+ <xs:annotation>
420
+ <xs:documentation>Este campo será de condición obligatoria, cuando se incluya información en el campo "Monto de descuentos concedidos al componente de surtido</xs:documentation>
421
+ </xs:annotation>
422
+ </xs:element>
423
+ <xs:element name="DescuentoSurtidoOtros" minOccurs="0">
424
+ <xs:annotation>
425
+ <xs:documentation>Este campo será de condición obligatoria, cuando se utilice el código 99 de la Nota 20
426
+ Validación: En caso de utilizarse el código 99, se verificará que este campo se encuentre en el comprobante, caso contrario se rechazará. Además, deberá contener mínimo 3 caracteres y un máximo de 80</xs:documentation>
427
+ </xs:annotation>
428
+ <xs:simpleType>
429
+ <xs:restriction base="xs:string">
430
+ <xs:maxLength value="80"/>
431
+ <xs:minLength value="3"/>
432
+ </xs:restriction>
433
+ </xs:simpleType>
434
+ </xs:element>
435
+ </xs:sequence>
436
+ </xs:complexType>
437
+ </xs:element>
438
+ <xs:element name="SubTotalSurtido" type="DecimalDineroType">
439
+ <xs:annotation>
440
+ <xs:documentation>Se obtiene de la resta del campo "Monto total componente surtido" menos "Monto de descuentos concedidos al componente de surtido"</xs:documentation>
441
+ </xs:annotation>
442
+ </xs:element>
443
+ <xs:element name="IVACobradoFabricaSurtido" minOccurs="0">
444
+ <xs:annotation>
445
+ <xs:documentation>En este campo se indicará si el Impuesto al Valor Agregado fue cobrado a nivel de fábrica, por lo que deberá ser utilizado únicamente por los obligados tributarios a realizar el pago de esta forma.
446
+ Se convierte en obligatorio cuando el IVA se cobra o se cobró a nivel de fábrica.
447
+ Al hacer uso del presente campo el producto se entenderá exento para el código 02, por lo cual no deberá llenar el subnodo de impuestos para el cálculo del IVA.
448
+ ▪Para el código 01 el emisor puede separar los impuestos
449
+ que está cobrando en la fábrica.</xs:documentation>
450
+ </xs:annotation>
451
+ <xs:simpleType>
452
+ <xs:restriction base="xs:string">
453
+ <xs:maxLength value="2"/>
454
+ <xs:minLength value="2"/>
455
+ <xs:enumeration value="01">
456
+ <xs:annotation>
457
+ <xs:documentation>Venta de bienes con IVA según el sistema especial de determinación de IVA a nivel de fábrica (Se utiliza cuando se está cobrando el IVA a nivel de fábrica</xs:documentation>
458
+ </xs:annotation>
459
+ </xs:enumeration>
460
+ <xs:enumeration value="02">
461
+ <xs:annotation>
462
+ <xs:documentation>Ventas exentas según el sistema especial de determinación de IVA a nivel de fábrica, mayorista y aduanas (se utiliza cuando el producto se encuentra exento ya que el bien soporto el cobro de impuestos a nivel de fábrica).
463
+ </xs:documentation>
464
+ </xs:annotation>
465
+ </xs:enumeration>
466
+ </xs:restriction>
467
+ </xs:simpleType>
468
+ </xs:element>
469
+ <xs:element name="BaseImponibleSurtido" type="DecimalDineroType">
470
+ <xs:annotation>
471
+ <xs:documentation>Este campo será de condición obligatoria, cuando el producto este gravado con algún impuesto. Se obtiene de la suma entre el campo "Subtotal componente del surtido", más el impuesto selectivo de consumo (02), el Impuesto específico de Bebidas Alcohólicas (04) y el Impuesto Específico sobre las bebidas envasadas sin contenido alcohólico y jabones de tocador (05), cuando corresponda. Este campo se podrá editar cuando se seleccione en el campo "IVA cobrado a nivel de fábrica" el Código 01 o en el campo de "Código del impuesto" el código 07. Validación: En caso de utilizarse el código 01, en el campo de IVA cobrado a nivel de fábrica, se verificará que este campo se encuentre en el comprobante, caso contrario se rechazará. Además, se deberá incluir un valor mayor a "cero".</xs:documentation>
472
+ </xs:annotation>
473
+ </xs:element>
474
+ <xs:element name="ImpuestoSurtido" maxOccurs="1000">
475
+ <xs:complexType>
476
+ <xs:sequence>
477
+ <xs:element name="CodigoImpuestoSurtido" type="CodigoImpuestoType">
478
+ <xs:annotation>
479
+ <xs:documentation>Ver nota 8. Es un campo fijo de dos posiciones.
480
+ Al utilizar el código de Naturaleza del Descuento 01 correspondiente a "Regalías" o 03 de "Bonificaciones" y el código de impuesto 01, se debe utilizar para el cálculo del impuesto el campo denominado "Monto total componente de surtido" y la "Tarifa del Impuesto al Valor Agregado para componente de surtido"
481
+ Validación: Se verificará el cumplimiento de la nota 8</xs:documentation>
482
+ </xs:annotation>
483
+ </xs:element>
484
+ <xs:element name="CodigoImpuestoOTROSurtido" minOccurs="0">
485
+ <xs:annotation>
486
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de "Otros" de la nota 8. Se debe describir puntualmente el impuesto utilizado.
487
+ Validación: Deberá contener mínimo 5 caracteres y un máximo de 100</xs:documentation>
488
+ </xs:annotation>
489
+ <xs:simpleType>
490
+ <xs:restriction base="xs:string">
491
+ <xs:maxLength value="100"/>
492
+ <xs:minLength value="5"/>
493
+ </xs:restriction>
494
+ </xs:simpleType>
495
+ </xs:element>
496
+ <xs:element name="CodigoTarifaIVASurtido" type="CodigoTarifaIVAType" minOccurs="0">
497
+ <xs:annotation>
498
+ <xs:documentation>Se convierte en obligatorio cuando se usa el código 01 de impuestos de surtido
499
+ Validación: Se verificará el cumplimiento de nota 8.1. cuando se utilice el código 01 de campo código del impuesto.</xs:documentation>
500
+ </xs:annotation>
501
+ </xs:element>
502
+ <xs:element name="TarifaSurtido" minOccurs="0">
503
+ <xs:annotation>
504
+ <xs:documentation>Este campo es de condición obligatoria, cuando el componente este gravado con alguna tarifa de impuesto, según corresponda. Debe de expresarse el porcentaje como número entero (Ejemplo: la tarifa del 13% se debe de reflejar como 13, la tarifa del 1% como 1, o bien la tarifa del 0.5% como 0.5)</xs:documentation>
505
+ </xs:annotation>
506
+ <xs:simpleType>
507
+ <xs:restriction base="xs:decimal">
508
+ <xs:totalDigits value="4"/>
509
+ <xs:fractionDigits value="2"/>
510
+ </xs:restriction>
511
+ </xs:simpleType>
512
+ </xs:element>
513
+ <xs:element name="DatosImpuestoEspecificoSurtido" minOccurs="0">
514
+ <xs:annotation>
515
+ <xs:documentation>Datos para Impuestos Específicos para componente de surtido</xs:documentation>
516
+ </xs:annotation>
517
+ <xs:complexType>
518
+ <xs:sequence>
519
+ <xs:element name="CantidadUnidadMedidaSurtido">
520
+ <xs:annotation>
521
+ <xs:documentation>Cantidad de la unidad de medida a utilizar para componente de surtido. Este campo es de condición obligatoria, cuando se utilicen los códigos de impuesto 04, 05 y 06 de la nota 8</xs:documentation>
522
+ </xs:annotation>
523
+ <xs:simpleType>
524
+ <xs:restriction base="xs:decimal">
525
+ <xs:totalDigits value="7"/>
526
+ <xs:fractionDigits value="2"/>
527
+ </xs:restriction>
528
+ </xs:simpleType>
529
+ </xs:element>
530
+ <xs:element name="PorcentajeSurtido" minOccurs="0">
531
+ <xs:annotation>
532
+ <xs:documentation>Porcentaje en componente de surtido. Este campo es de condición obligatoria, cuando se utilice el código de impuesto 04 de la nota 8. Debe de expresarse el porcentaje como número entero (Ejemplo: la tarifa del 13% se debe de reflejar como 13, la tarifa del 1% como 1, o bien la tarifa del 0.5% como 0.5)</xs:documentation>
533
+ </xs:annotation>
534
+ <xs:simpleType>
535
+ <xs:restriction base="xs:decimal">
536
+ <xs:totalDigits value="4"/>
537
+ <xs:fractionDigits value="2"/>
538
+ </xs:restriction>
539
+ </xs:simpleType>
540
+ </xs:element>
541
+ <xs:element name="ProporcionSurtido" minOccurs="0">
542
+ <xs:annotation>
543
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilice el código de impuesto 04 de la nota 8
544
+ Este campo se obtiene de multiplicar la "Cantidad de la unidad de medida a utilizar" por el "Porcentaje"</xs:documentation>
545
+ </xs:annotation>
546
+ <xs:simpleType>
547
+ <xs:restriction base="xs:decimal">
548
+ <xs:totalDigits value="5"/>
549
+ <xs:fractionDigits value="2"/>
550
+ </xs:restriction>
551
+ </xs:simpleType>
552
+ </xs:element>
553
+ <xs:element name="VolumenUnidadConsumoSurtido" minOccurs="0">
554
+ <xs:annotation>
555
+ <xs:documentation>Volumen por Unidad de Consumo componente de surtido. Este campo es de condición obligatoria, cuando se utilice el código de impuesto 05 de la nota 8</xs:documentation>
556
+ </xs:annotation>
557
+ <xs:simpleType>
558
+ <xs:restriction base="xs:decimal">
559
+ <xs:fractionDigits value="2"/>
560
+ <xs:totalDigits value="7"/>
561
+ </xs:restriction>
562
+ </xs:simpleType>
563
+ </xs:element>
564
+ <xs:element name="ImpuestoUnidadSurtido" type="DecimalDineroType">
565
+ <xs:annotation>
566
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilicen los códigos de impuesto 04, 05 y 06 de la nota 8</xs:documentation>
567
+ </xs:annotation>
568
+ </xs:element>
569
+ </xs:sequence>
570
+ </xs:complexType>
571
+ </xs:element>
572
+ <xs:element name="MontoImpuestoSurtido" type="DecimalDineroType">
573
+ <xs:annotation>
574
+ <xs:documentation>Este campo será de condición obligatoria, cuando el componente este gravado con algún impuesto. Es un número decimal compuesto por 13 enteros y 5 decimales</xs:documentation>
575
+ </xs:annotation>
576
+ </xs:element>
577
+ </xs:sequence>
578
+ </xs:complexType>
579
+ </xs:element>
580
+ </xs:sequence>
581
+ </xs:complexType>
582
+ </xs:element>
583
+ </xs:sequence>
584
+ </xs:complexType>
585
+ </xs:element>
216
586
  <xs:element name="PrecioUnitario" type="DecimalDineroType">
217
587
  <xs:annotation>
218
588
  <xs:documentation>Precio Unitario</xs:documentation>
@@ -229,27 +599,58 @@
229
599
  <xs:documentation>Se obtiene de la resta del campo monto total menos monto de descuento concedido</xs:documentation>
230
600
  </xs:annotation>
231
601
  </xs:element>
232
- <xs:element name="BaseImponible" type="DecimalDineroType" minOccurs="0">
602
+ <xs:element name="IVACobradoFabrica" minOccurs="0">
603
+ <xs:annotation>
604
+ <xs:documentation>En este campo se indicará si el Impuesto al Valor Agregado fue cobrado a nivel de fábrica, por lo que deberá ser utilizado únicamente por los obligados tributarios a realizar el pago de
605
+ esta forma. Se convierte en obligatorio cuando el IVA se cobra o se cobró a nivel de fábrica. Al hacer uso del presente campo el producto se entenderá exento para el código 02, por lo cual no deberá llenar el subnodo de impuestos para el cálculo del IVA. Para el código 01 el emisor puede separar los impuestos
606
+ que está cobrando en la fábrica. </xs:documentation>
607
+ </xs:annotation>
608
+ <xs:simpleType>
609
+ <xs:restriction base="xs:string">
610
+ <xs:maxLength value="2"/>
611
+ <xs:minLength value="2"/>
612
+ <xs:enumeration value="01">
613
+ <xs:annotation>
614
+ <xs:documentation>Venta de bienes con IVA según el sistema especial de determinación de IVA a nivel de fábrica (Se utiliza cuando se está cobrando el IVA a nivel de fábrica</xs:documentation>
615
+ </xs:annotation>
616
+ </xs:enumeration>
617
+ <xs:enumeration value="02">
618
+ <xs:annotation>
619
+ <xs:documentation>Ventas exentas según el sistema especial de determinación de IVA a nivel de fábrica, mayorista y aduanas (se utiliza cuando el producto se encuentra exento ya que el bien soporto el cobro de impuestos a nivel de fábrica).
620
+ </xs:documentation>
621
+ </xs:annotation>
622
+ </xs:enumeration>
623
+ </xs:restriction>
624
+ </xs:simpleType>
625
+ </xs:element>
626
+ <xs:element name="BaseImponible" type="DecimalDineroType">
233
627
  <xs:annotation>
234
- <xs:documentation>Base imponible especial</xs:documentation>
628
+ <xs:documentation>Este campo será de condición obligatoria, cuando el
629
+ producto/ servicio este gravado con algún impuesto. Se obtiene de la suma entre el campo "Subtotal", más el impuesto selectivo de consumo (02), el Impuesto específico de Bebidas Alcohólicas (04), el Impuesto Específico sobre las bebidas envasadas sin contenido alcohólico y jabones de
630
+ tocador (05) y el impuesto al cemento (12), cuando corresponda.
631
+ Este campo se podrá editar cuando se seleccione en el campo "IVA cobrado a nivel de fábrica" el Código 01 o en el campo de "Código del impuesto" el código 07.</xs:documentation>
235
632
  </xs:annotation>
236
633
  </xs:element>
237
- <xs:element name="Impuesto" type="ImpuestoType" minOccurs="0" maxOccurs="unbounded">
634
+ <xs:element name="Impuesto" type="ImpuestoType" maxOccurs="1000">
238
635
  <xs:annotation>
239
636
  <xs:documentation>Cuando el producto o servicio este gravado con algún impuesto se debe indicar cada uno de ellos.</xs:documentation>
240
637
  </xs:annotation>
241
638
  </xs:element>
242
- <xs:element name="ImpuestoNeto" type="DecimalDineroType" minOccurs="0">
639
+ <xs:element name="ImpuestoAsumidoEmisorFabrica" type="DecimalDineroType">
243
640
  <xs:annotation>
244
- <xs:documentation>Impuesto Neto</xs:documentation>
641
+ <xs:documentation>Impuestos Asumidos por el Emisor o cobrado a Nivel de Fábrica</xs:documentation>
642
+ </xs:annotation>
643
+ </xs:element>
644
+ <xs:element name="ImpuestoNeto" type="DecimalDineroType">
645
+ <xs:annotation>
646
+ <xs:documentation>Este monto se obtiene al restar el campo “Monto del Impuesto” menos “Monto del Impuesto Exonerado” o el
647
+ campo “Impuestos Asumidos por el Emisor o cobrado a Nivel de Fábrica” cuando corresponda</xs:documentation>
245
648
  </xs:annotation>
246
649
  </xs:element>
247
650
  <xs:element name="MontoTotalLinea" type="DecimalDineroType">
248
651
  <xs:annotation>
249
- <xs:documentation>Existe dos maneras de obtener el resultado del campo:
250
- - Cuando no existe exoneración, se obtiene de la sumatoria de los campos “subtotal”, “monto del impuesto” .
251
- - Cuando posee una exoneración, se obtiene de la sumatoria de los campos “Subtotal”, “Impuesto Neto”.
252
- </xs:documentation>
652
+ <xs:documentation>Se calcula de la siguiente manera:
653
+ se obtiene de la sumatoria de los campos “Subtotal”, “Impuesto Neto”.</xs:documentation>
253
654
  </xs:annotation>
254
655
  </xs:element>
255
656
  </xs:sequence>
@@ -266,15 +667,15 @@
266
667
  <xs:element name="ResumenFactura">
267
668
  <xs:complexType>
268
669
  <xs:sequence>
269
- <xs:element name="CodigoTipoMoneda" type="CodigoMonedaType" minOccurs="0"/>
670
+ <xs:element name="CodigoTipoMoneda" type="CodigoMonedaType"/>
270
671
  <xs:element name="TotalServGravados" type="DecimalDineroType" minOccurs="0">
271
672
  <xs:annotation>
272
- <xs:documentation>Total de los servicios gravados con IV</xs:documentation>
673
+ <xs:documentation>Total de los servicios gravados con IVA</xs:documentation>
273
674
  </xs:annotation>
274
675
  </xs:element>
275
676
  <xs:element name="TotalServExentos" type="DecimalDineroType" minOccurs="0">
276
677
  <xs:annotation>
277
- <xs:documentation>Total de los servicios exentos de IV</xs:documentation>
678
+ <xs:documentation>Total de los servicios exentos de IVA</xs:documentation>
278
679
  </xs:annotation>
279
680
  </xs:element>
280
681
  <xs:element name="TotalServExonerado" type="DecimalDineroType" minOccurs="0">
@@ -282,14 +683,19 @@
282
683
  <xs:documentation>Total servicios exonerados del IVA</xs:documentation>
283
684
  </xs:annotation>
284
685
  </xs:element>
686
+ <xs:element name="TotalServNoSujeto" type="DecimalDineroType" minOccurs="0">
687
+ <xs:annotation>
688
+ <xs:documentation>Este campo será de condición obligatoria, cuando se seleccionen códigos CAByS que correspondan a un servicio y el servicio sea No Sujeto de IVA</xs:documentation>
689
+ </xs:annotation>
690
+ </xs:element>
285
691
  <xs:element name="TotalMercanciasGravadas" type="DecimalDineroType" minOccurs="0">
286
692
  <xs:annotation>
287
- <xs:documentation>Total mercancias gravadas con IV</xs:documentation>
693
+ <xs:documentation>Total mercancias gravadas con IVA</xs:documentation>
288
694
  </xs:annotation>
289
695
  </xs:element>
290
696
  <xs:element name="TotalMercanciasExentas" type="DecimalDineroType" minOccurs="0">
291
697
  <xs:annotation>
292
- <xs:documentation>Total mercancias exentas de IV</xs:documentation>
698
+ <xs:documentation>Total mercancias exentas de IVA</xs:documentation>
293
699
  </xs:annotation>
294
700
  </xs:element>
295
701
  <xs:element name="TotalMercExonerada" type="DecimalDineroType" minOccurs="0">
@@ -297,6 +703,11 @@
297
703
  <xs:documentation>Total mercancías exoneradas del IVA</xs:documentation>
298
704
  </xs:annotation>
299
705
  </xs:element>
706
+ <xs:element name="TotalMercNoSujeta" type="DecimalDineroType" minOccurs="0">
707
+ <xs:annotation>
708
+ <xs:documentation>Este campo será de condición obligatoria, cuando se seleccionen códigos CAByS que correspondan a una mercancía y la mercancía sea No Sujeta de IVA</xs:documentation>
709
+ </xs:annotation>
710
+ </xs:element>
300
711
  <xs:element name="TotalGravado" type="DecimalDineroType" minOccurs="0">
301
712
  <xs:annotation>
302
713
  <xs:documentation>Total gravado. se obtiene de la suma del total servicios gravados con IV + total mercancias gravadas con IV</xs:documentation>
@@ -309,12 +720,17 @@
309
720
  </xs:element>
310
721
  <xs:element name="TotalExonerado" type="DecimalDineroType" minOccurs="0">
311
722
  <xs:annotation>
312
- <xs:documentation>Se obtiene de la suma de los campos total servicios exonerados de IVA mas total de mercancías exoneradas del IVA”.</xs:documentation>
723
+ <xs:documentation>Se obtiene de la suma de los campos "total servicios exonerados de IVA" mas "total de mercancías exoneradas del IVA".</xs:documentation>
724
+ </xs:annotation>
725
+ </xs:element>
726
+ <xs:element name="TotalNoSujeto" type="DecimalDineroType" minOccurs="0">
727
+ <xs:annotation>
728
+ <xs:documentation>Se obtiene de la suma de los campos "Total servicios No Sujetos de IVA" mas "Total mercancías No Sujetas de IVA".</xs:documentation>
313
729
  </xs:annotation>
314
730
  </xs:element>
315
731
  <xs:element name="TotalVenta" type="DecimalDineroType">
316
732
  <xs:annotation>
317
- <xs:documentation>Se obtiene de la sumatoria de los campos “total gravado”, “total exento” y “Total Exonerado”.</xs:documentation>
733
+ <xs:documentation>Se obtiene de la sumatoria de los campos “total gravado”, “total exento”, “Total Exonerado” y “Total No Sujeto</xs:documentation>
318
734
  </xs:annotation>
319
735
  </xs:element>
320
736
  <xs:element name="TotalDescuentos" type="DecimalDineroType" minOccurs="0">
@@ -327,11 +743,36 @@
327
743
  <xs:documentation>Se obtiene de la resta de los campos total venta menos total descuento</xs:documentation>
328
744
  </xs:annotation>
329
745
  </xs:element>
746
+ <xs:element name="TotalDesgloseImpuesto" minOccurs="0" maxOccurs="1000">
747
+ <xs:annotation>
748
+ <xs:documentation>Tipo complejo que contiene los montos desglosados por impuesto cobrado en el comprobante electrónico.</xs:documentation>
749
+ </xs:annotation>
750
+ <xs:complexType>
751
+ <xs:sequence>
752
+ <xs:element name="Codigo" type="CodigoImpuestoType">
753
+ <xs:annotation>
754
+ <xs:documentation>Indicará los códigos de impuesto registrados en las líneas de detalle.</xs:documentation>
755
+ </xs:annotation>
756
+ </xs:element>
757
+ <xs:element name="CodigoTarifaIVA" type="CodigoTarifaIVAType" minOccurs="0"/>
758
+ <xs:element name="TotalMontoImpuesto" type="DecimalDineroType">
759
+ <xs:annotation>
760
+ <xs:documentation>Se obtiene de la sumatoria del monto por código de impuesto cobrado en el comprobante electrónico</xs:documentation>
761
+ </xs:annotation>
762
+ </xs:element>
763
+ </xs:sequence>
764
+ </xs:complexType>
765
+ </xs:element>
330
766
  <xs:element name="TotalImpuesto" type="DecimalDineroType" minOccurs="0">
331
767
  <xs:annotation>
332
768
  <xs:documentation>Se obtiene de la suma de todos campos monto del impuesto</xs:documentation>
333
769
  </xs:annotation>
334
770
  </xs:element>
771
+ <xs:element name="TotalImpAsumEmisorFabrica" type="DecimalDineroType" minOccurs="0">
772
+ <xs:annotation>
773
+ <xs:documentation>Este campo es de condición obligatoria, cuando existen producto/servicio gravados con algún impuesto en las líneas de detalle que sean asumidos por el emisor</xs:documentation>
774
+ </xs:annotation>
775
+ </xs:element>
335
776
  <xs:element name="TotalIVADevuelto" type="DecimalDineroType" minOccurs="0">
336
777
  <xs:annotation>
337
778
  <xs:documentation>IVA Devuelto</xs:documentation>
@@ -342,9 +783,80 @@
342
783
  <xs:documentation>Total Otros Cargos </xs:documentation>
343
784
  </xs:annotation>
344
785
  </xs:element>
786
+ <xs:element name="MedioPago" minOccurs="0" maxOccurs="4">
787
+ <xs:complexType>
788
+ <xs:sequence>
789
+ <xs:element name="TipoMedioPago" minOccurs="0">
790
+ <xs:annotation>
791
+ <xs:documentation>Corresponde al medio de pago empleado: 01 - Efectivo, 02 - Tarjeta, 03 - Cheque, 04 - Transferencia - depósito bancario, 05 - Recaudado por terceros, 06 - SINPE MOVIL, 07 - Plataforma Digital, 99 - Otros</xs:documentation>
792
+ </xs:annotation>
793
+ <xs:simpleType>
794
+ <xs:restriction base="xs:string">
795
+ <xs:enumeration value="01">
796
+ <xs:annotation>
797
+ <xs:documentation>Efectivo</xs:documentation>
798
+ </xs:annotation>
799
+ </xs:enumeration>
800
+ <xs:enumeration value="02">
801
+ <xs:annotation>
802
+ <xs:documentation> Tarjeta</xs:documentation>
803
+ </xs:annotation>
804
+ </xs:enumeration>
805
+ <xs:enumeration value="03">
806
+ <xs:annotation>
807
+ <xs:documentation>Cheque</xs:documentation>
808
+ </xs:annotation>
809
+ </xs:enumeration>
810
+ <xs:enumeration value="04">
811
+ <xs:annotation>
812
+ <xs:documentation>Transferencia - depósito bancario</xs:documentation>
813
+ </xs:annotation>
814
+ </xs:enumeration>
815
+ <xs:enumeration value="05">
816
+ <xs:annotation>
817
+ <xs:documentation>Recaudado por terceros</xs:documentation>
818
+ </xs:annotation>
819
+ </xs:enumeration>
820
+ <xs:enumeration value="06">
821
+ <xs:annotation>
822
+ <xs:documentation>SINPE MOVIL</xs:documentation>
823
+ </xs:annotation>
824
+ </xs:enumeration>
825
+ <xs:enumeration value="07">
826
+ <xs:annotation>
827
+ <xs:documentation>Plataforma Digital</xs:documentation>
828
+ </xs:annotation>
829
+ </xs:enumeration>
830
+ <xs:enumeration value="99">
831
+ <xs:annotation>
832
+ <xs:documentation>Otros</xs:documentation>
833
+ </xs:annotation>
834
+ </xs:enumeration>
835
+ </xs:restriction>
836
+ </xs:simpleType>
837
+ </xs:element>
838
+ <xs:element name="MedioPagoOtros" minOccurs="0">
839
+ <xs:annotation>
840
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de "Otros" de la nota 6. Se debe describir puntualmente el medio de pago utilizado</xs:documentation>
841
+ </xs:annotation>
842
+ <xs:simpleType>
843
+ <xs:restriction base="xs:string">
844
+ <xs:minLength value="3"/>
845
+ <xs:maxLength value="100"/>
846
+ </xs:restriction>
847
+ </xs:simpleType>
848
+ </xs:element>
849
+ <xs:element name="TotalMedioPago" type="DecimalDineroType" minOccurs="0">
850
+ <xs:annotation>
851
+ <xs:documentation>Se deberá detallar el monto correspondiente al tipo de pago seleccionado. Se volverá obligatorio cuando se utilice más de un medio de pago.</xs:documentation>
852
+ </xs:annotation>
853
+ </xs:element>
854
+ </xs:sequence>
855
+ </xs:complexType>
856
+ </xs:element>
345
857
  <xs:element name="TotalComprobante" type="DecimalDineroType">
346
858
  <xs:annotation>
347
- <xs:documentation>Se obtiene de la suma de los campos total venta neta”, monto total del impuesto y total otros cargos menos total IVA devuelto”, en caso de contar con dichos campos.</xs:documentation>
859
+ <xs:documentation>Se obtiene de la suma de los campos "total venta neta", "monto total del impuesto" y "total otros cargos" menos "total IVA devuelto", en caso de contar con dichos campos.</xs:documentation>
348
860
  </xs:annotation>
349
861
  </xs:element>
350
862
  </xs:sequence>
@@ -353,70 +865,25 @@
353
865
  <xs:element name="InformacionReferencia" minOccurs="0" maxOccurs="10">
354
866
  <xs:complexType>
355
867
  <xs:sequence>
356
- <xs:element name="TipoDoc">
868
+ <xs:element name="TipoDocIR" type="TipoDocReferenciaType">
869
+ <xs:annotation>
870
+ <xs:documentation>Tipo de documento de referencia </xs:documentation>
871
+ </xs:annotation>
872
+ </xs:element>
873
+ <xs:element name="TipoDocRefOTRO" minOccurs="0">
357
874
  <xs:annotation>
358
- <xs:documentation>Tipo de documento de referencia. 01 Factura electrónica, 02 Nota de débito electrónica, 03 nota de crédito electrónica, 04 Tiquete electrónico, 05 Nota de despacho, 06 Contrato, 07 Procedimiento, 08 Comprobante emitido en contigencia, 09 Devoluicion mercaderia, 10 Sustituye factura rechazada poir Ministerio de Hacienda, 11 Sustituye factura rechazada por el receptor del comprobante, 12 Sustituye factura de exportacion, 13 facturacion mes vencido, 99 otros</xs:documentation>
875
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de “Otros” de la nota 10. Se debe describir puntualmente el tipo de documento utilizado</xs:documentation>
359
876
  </xs:annotation>
360
877
  <xs:simpleType>
361
878
  <xs:restriction base="xs:string">
362
- <xs:enumeration value="01">
363
- <xs:annotation>
364
- <xs:documentation>Factura electrónica</xs:documentation>
365
- </xs:annotation>
366
- </xs:enumeration>
367
- <xs:enumeration value="02">
368
- <xs:annotation>
369
- <xs:documentation>Nota de debido electrónica</xs:documentation>
370
- </xs:annotation>
371
- </xs:enumeration>
372
- <xs:enumeration value="03">
373
- <xs:annotation>
374
- <xs:documentation>nota de crédito electrónica</xs:documentation>
375
- </xs:annotation>
376
- </xs:enumeration>
377
- <xs:enumeration value="04">
378
- <xs:annotation>
379
- <xs:documentation>Tiquete electrónico</xs:documentation>
380
- </xs:annotation>
381
- </xs:enumeration>
382
- <xs:enumeration value="05">
383
- <xs:annotation>
384
- <xs:documentation>Nota de despacho</xs:documentation>
385
- </xs:annotation>
386
- </xs:enumeration>
387
- <xs:enumeration value="06">
388
- <xs:annotation>
389
- <xs:documentation>Contrato</xs:documentation>
390
- </xs:annotation>
391
- </xs:enumeration>
392
- <xs:enumeration value="07">
393
- <xs:annotation>
394
- <xs:documentation>Procedimiento</xs:documentation>
395
- </xs:annotation>
396
- </xs:enumeration>
397
- <xs:enumeration value="08">
398
- <xs:annotation>
399
- <xs:documentation>Comprobante emitido en contigencia</xs:documentation>
400
- </xs:annotation>
401
- </xs:enumeration>
402
- <xs:enumeration value="09"/>
403
- <xs:enumeration value="10"/>
404
- <xs:enumeration value="11"/>
405
- <xs:enumeration value="12"/>
406
- <xs:enumeration value="13"/>
407
- <xs:enumeration value="99">
408
- <xs:annotation>
409
- <xs:documentation>Otros</xs:documentation>
410
- </xs:annotation>
411
- </xs:enumeration>
412
- <xs:enumeration value="14"/>
413
- <xs:enumeration value="15"/>
879
+ <xs:minLength value="5"/>
880
+ <xs:maxLength value="100"/>
414
881
  </xs:restriction>
415
882
  </xs:simpleType>
416
883
  </xs:element>
417
884
  <xs:element name="Numero" minOccurs="0">
418
885
  <xs:annotation>
419
- <xs:documentation>Número de documento de referencia</xs:documentation>
886
+ <xs:documentation>Clave numérica del comprobante electrónico o consecutivo del documento de referencia</xs:documentation>
420
887
  </xs:annotation>
421
888
  <xs:simpleType>
422
889
  <xs:restriction base="xs:string">
@@ -424,47 +891,24 @@
424
891
  </xs:restriction>
425
892
  </xs:simpleType>
426
893
  </xs:element>
427
- <xs:element name="FechaEmision" type="xs:dateTime">
894
+ <xs:element name="FechaEmisionIR" type="xs:dateTime">
428
895
  <xs:annotation>
429
- <xs:documentation>Fecha y hora de emisión del documento de referencia</xs:documentation>
896
+ <xs:documentation>Fecha de emisión del documento de referencia</xs:documentation>
430
897
  </xs:annotation>
431
898
  </xs:element>
432
- <xs:element name="Codigo" minOccurs="0">
899
+ <xs:element name="Codigo" type="CodigoReferenciaType" minOccurs="0">
433
900
  <xs:annotation>
434
- <xs:documentation>Código de referencia. 01 Anula documento de referencia, 02 Corrige texto de documento de referencia, 03 Corrige monto, 04 Referencia a otro documento, 05 Sustituye comprobante provisional por contigencia, 99 Otros</xs:documentation>
901
+ <xs:documentation>Código de referencia. 01 Anula documento de referencia, 02 Corrige texto de documento de referencia, 04 Referencia a otro documento, 05 Sustituye comprobante provisional por contigencia, 99 Otros</xs:documentation>
902
+ </xs:annotation>
903
+ </xs:element>
904
+ <xs:element name="CodigoReferenciaOTRO" minOccurs="0">
905
+ <xs:annotation>
906
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de “Otros” de la nota 9. Se debe describir puntualmente el código de referencia utilizado</xs:documentation>
435
907
  </xs:annotation>
436
908
  <xs:simpleType>
437
909
  <xs:restriction base="xs:string">
438
- <xs:enumeration value="01">
439
- <xs:annotation>
440
- <xs:documentation>Anula documento de referencia</xs:documentation>
441
- </xs:annotation>
442
- </xs:enumeration>
443
- <xs:enumeration value="02">
444
- <xs:annotation>
445
- <xs:documentation>Corrige texto de ocumento de referencia</xs:documentation>
446
- </xs:annotation>
447
- </xs:enumeration>
448
- <xs:enumeration value="03">
449
- <xs:annotation>
450
- <xs:documentation>Corrige monto</xs:documentation>
451
- </xs:annotation>
452
- </xs:enumeration>
453
- <xs:enumeration value="04">
454
- <xs:annotation>
455
- <xs:documentation>Referencia a otro documento</xs:documentation>
456
- </xs:annotation>
457
- </xs:enumeration>
458
- <xs:enumeration value="05">
459
- <xs:annotation>
460
- <xs:documentation>Sustituye comprobante provisional por contigencia</xs:documentation>
461
- </xs:annotation>
462
- </xs:enumeration>
463
- <xs:enumeration value="99">
464
- <xs:annotation>
465
- <xs:documentation>Otros</xs:documentation>
466
- </xs:annotation>
467
- </xs:enumeration>
910
+ <xs:minLength value="5"/>
911
+ <xs:maxLength value="100"/>
468
912
  </xs:restriction>
469
913
  </xs:simpleType>
470
914
  </xs:element>
@@ -486,11 +930,11 @@
486
930
  <xs:sequence>
487
931
  <xs:element name="OtroTexto" minOccurs="0" maxOccurs="unbounded">
488
932
  <xs:annotation>
489
- <xs:documentation>Elemento opcional que se puede utilizar la almacenar texto.</xs:documentation>
933
+ <xs:documentation>Elemento opcional que se puede utilizar para almacenar texto.</xs:documentation>
490
934
  </xs:annotation>
491
935
  <xs:complexType>
492
936
  <xs:simpleContent>
493
- <xs:extension base="xs:string">
937
+ <xs:extension base="restrictedString">
494
938
  <xs:attribute name="codigo" type="xs:string">
495
939
  <xs:annotation>
496
940
  <xs:documentation>Código opcional para facilitar la identificación del elemento.</xs:documentation>
@@ -505,14 +949,15 @@
505
949
  <xs:documentation>Elemento opcional que se puede utilizar para almacenar contenido estructurado.</xs:documentation>
506
950
  </xs:annotation>
507
951
  <xs:complexType>
508
- <xs:sequence>
509
- <xs:any namespace="##other" processContents="lax"/>
510
- </xs:sequence>
511
- <xs:attribute name="codigo" type="xs:string">
512
- <xs:annotation>
513
- <xs:documentation>Código opcional para facilitar la identificación del elemento.</xs:documentation>
514
- </xs:annotation>
515
- </xs:attribute>
952
+ <xs:simpleContent>
953
+ <xs:extension base="restrictedString">
954
+ <xs:attribute name="codigo" type="xs:string">
955
+ <xs:annotation>
956
+ <xs:documentation>Código opcional para facilitar la identificación del elemento.</xs:documentation>
957
+ </xs:annotation>
958
+ </xs:attribute>
959
+ </xs:extension>
960
+ </xs:simpleContent>
516
961
  </xs:complexType>
517
962
  </xs:element>
518
963
  </xs:sequence>
@@ -531,10 +976,24 @@
531
976
  <xs:simpleType>
532
977
  <xs:restriction base="xs:string">
533
978
  <xs:maxLength value="100"/>
979
+ <xs:minLength value="5"/>
534
980
  </xs:restriction>
535
981
  </xs:simpleType>
536
982
  </xs:element>
537
983
  <xs:element name="Identificacion" type="IdentificacionType"/>
984
+ <xs:element name="Registrofiscal8707" minOccurs="0">
985
+ <xs:annotation>
986
+ <xs:documentation>Campo condicional. Se convierte en carácter obligatorio cuando se
987
+ estén facturando códigosCAByS de bebidas alcohólicas según la Ley
988
+ 8707. Contiene los datos del número de registro de bebidas
989
+ alcohólicas, suministrado por la Dirección General de Aduanas</xs:documentation>
990
+ </xs:annotation>
991
+ <xs:simpleType>
992
+ <xs:restriction base="xs:string">
993
+ <xs:maxLength value="12"/>
994
+ </xs:restriction>
995
+ </xs:simpleType>
996
+ </xs:element>
538
997
  <xs:element name="NombreComercial" minOccurs="0">
539
998
  <xs:annotation>
540
999
  <xs:documentation>En caso de que se cuente con nombre comercial debe indicarse</xs:documentation>
@@ -542,13 +1001,13 @@
542
1001
  <xs:simpleType>
543
1002
  <xs:restriction base="xs:string">
544
1003
  <xs:maxLength value="80"/>
1004
+ <xs:minLength value="3"/>
545
1005
  </xs:restriction>
546
1006
  </xs:simpleType>
547
1007
  </xs:element>
548
1008
  <xs:element name="Ubicacion" type="UbicacionType"/>
549
1009
  <xs:element name="Telefono" type="TelefonoType" nillable="true" minOccurs="0"/>
550
- <xs:element name="Fax" type="TelefonoType" nillable="true" minOccurs="0"/>
551
- <xs:element name="CorreoElectronico">
1010
+ <xs:element name="CorreoElectronico" maxOccurs="4">
552
1011
  <xs:annotation>
553
1012
  <xs:documentation>Debe cumplir con la siguiente estructura:
554
1013
  \s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*
@@ -571,20 +1030,11 @@
571
1030
  <xs:simpleType>
572
1031
  <xs:restriction base="xs:string">
573
1032
  <xs:maxLength value="100"/>
1033
+ <xs:minLength value="3"/>
574
1034
  </xs:restriction>
575
1035
  </xs:simpleType>
576
1036
  </xs:element>
577
1037
  <xs:element name="Identificacion" type="IdentificacionType"/>
578
- <xs:element name="IdentificacionExtranjero" minOccurs="0">
579
- <xs:annotation>
580
- <xs:documentation>Este campo será de condición obligatoria, cuando el cliente lo requiera</xs:documentation>
581
- </xs:annotation>
582
- <xs:simpleType>
583
- <xs:restriction base="xs:string">
584
- <xs:maxLength value="20"/>
585
- </xs:restriction>
586
- </xs:simpleType>
587
- </xs:element>
588
1038
  <xs:element name="NombreComercial" minOccurs="0">
589
1039
  <xs:annotation>
590
1040
  <xs:documentation>En caso de que se cuente con nombre comercial debe indicarse</xs:documentation>
@@ -592,6 +1042,7 @@
592
1042
  <xs:simpleType>
593
1043
  <xs:restriction base="xs:string">
594
1044
  <xs:maxLength value="80"/>
1045
+ <xs:minLength value="3"/>
595
1046
  </xs:restriction>
596
1047
  </xs:simpleType>
597
1048
  </xs:element>
@@ -603,11 +1054,11 @@
603
1054
  <xs:simpleType>
604
1055
  <xs:restriction base="xs:string">
605
1056
  <xs:maxLength value="300"/>
1057
+ <xs:minLength value="5"/>
606
1058
  </xs:restriction>
607
1059
  </xs:simpleType>
608
1060
  </xs:element>
609
1061
  <xs:element name="Telefono" type="TelefonoType" minOccurs="0"/>
610
- <xs:element name="Fax" type="TelefonoType" minOccurs="0"/>
611
1062
  <xs:element name="CorreoElectronico" minOccurs="0">
612
1063
  <xs:annotation>
613
1064
  <xs:documentation>Este campo será de condición obligatoria, cuando el cliente lo requiera. Debe cumplir con la siguiente estructura:
@@ -626,7 +1077,7 @@
626
1077
  <xs:sequence>
627
1078
  <xs:element name="Tipo" nillable="false">
628
1079
  <xs:annotation>
629
- <xs:documentation>Tipo de identificación: 01 Cédula Física, 02 Cédula Jurídica, 03 DIMEX, 04 NITE</xs:documentation>
1080
+ <xs:documentation>Tipo de identificación: 01 Cédula Física, 02 Cédula Jurídica, 03 DIMEX, 04 NITE, 05 Extranjero No Domiciliado, 06 No Contribuyente</xs:documentation>
630
1081
  </xs:annotation>
631
1082
  <xs:simpleType>
632
1083
  <xs:restriction base="xs:string">
@@ -650,6 +1101,16 @@
650
1101
  <xs:documentation>NITE</xs:documentation>
651
1102
  </xs:annotation>
652
1103
  </xs:enumeration>
1104
+ <xs:enumeration value="05">
1105
+ <xs:annotation>
1106
+ <xs:documentation>Extranjero No Domiciliado</xs:documentation>
1107
+ </xs:annotation>
1108
+ </xs:enumeration>
1109
+ <xs:enumeration value="06">
1110
+ <xs:annotation>
1111
+ <xs:documentation>No Contribuyente</xs:documentation>
1112
+ </xs:annotation>
1113
+ </xs:enumeration>
653
1114
  </xs:restriction>
654
1115
  </xs:simpleType>
655
1116
  </xs:element>
@@ -659,8 +1120,7 @@
659
1120
  </xs:annotation>
660
1121
  <xs:simpleType>
661
1122
  <xs:restriction base="xs:string">
662
- <xs:maxLength value="12"/>
663
- <xs:pattern value="\d{9,12}"/>
1123
+ <xs:maxLength value="20"/>
664
1124
  </xs:restriction>
665
1125
  </xs:simpleType>
666
1126
  </xs:element>
@@ -694,9 +1154,9 @@
694
1154
  </xs:element>
695
1155
  <xs:element name="Barrio" minOccurs="0">
696
1156
  <xs:simpleType>
697
- <xs:restriction base="xs:positiveInteger">
698
- <xs:totalDigits value="2"/>
699
- <xs:pattern value="\d\d"/>
1157
+ <xs:restriction base="xs:string">
1158
+ <xs:maxLength value="50"/>
1159
+ <xs:minLength value="5"/>
700
1160
  </xs:restriction>
701
1161
  </xs:simpleType>
702
1162
  </xs:element>
@@ -704,6 +1164,7 @@
704
1164
  <xs:simpleType>
705
1165
  <xs:restriction base="xs:string">
706
1166
  <xs:maxLength value="250"/>
1167
+ <xs:minLength value="5"/>
707
1168
  </xs:restriction>
708
1169
  </xs:simpleType>
709
1170
  </xs:element>
@@ -727,7 +1188,8 @@
727
1188
  </xs:annotation>
728
1189
  <xs:simpleType>
729
1190
  <xs:restriction base="xs:integer">
730
- <xs:totalDigits value="20"/>
1191
+ <xs:minInclusive value="10000000"/>
1192
+ <xs:maxInclusive value="99999999999999999999"/>
731
1193
  </xs:restriction>
732
1194
  </xs:simpleType>
733
1195
  </xs:element>
@@ -735,52 +1197,19 @@
735
1197
  </xs:complexType>
736
1198
  <xs:complexType name="ExoneracionType">
737
1199
  <xs:sequence>
738
- <xs:element name="TipoDocumento">
1200
+ <xs:element name="TipoDocumentoEX1" type="TipoExoneracionType">
1201
+ <xs:annotation>
1202
+ <xs:documentation>Tipo de documento de exoneración o autorización.</xs:documentation>
1203
+ </xs:annotation>
1204
+ </xs:element>
1205
+ <xs:element name="TipoDocumentoOTRO" minOccurs="0">
739
1206
  <xs:annotation>
740
- <xs:documentation>Tipo de documento de exoneración o autorización. 01 Compras Autorizadas, 02 Ventas exentas a diplomáticos, 03 Autorizado por Ley Especial, 04 Exenciones Dirección General de Hacienda, 05 Transitorio V, 06 Transitorio IX, 07 Transitorio XVII, 99 Otros</xs:documentation>
1207
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de “Otros” de la nota 10.1. Se debe describir puntualmente el tipo de documento o autorización utilizado</xs:documentation>
741
1208
  </xs:annotation>
742
1209
  <xs:simpleType>
743
1210
  <xs:restriction base="xs:string">
744
- <xs:enumeration value="01">
745
- <xs:annotation>
746
- <xs:documentation>Compras Autorizadas</xs:documentation>
747
- </xs:annotation>
748
- </xs:enumeration>
749
- <xs:enumeration value="02">
750
- <xs:annotation>
751
- <xs:documentation>Ventas exentas a diplomáticos</xs:documentation>
752
- </xs:annotation>
753
- </xs:enumeration>
754
- <xs:enumeration value="03">
755
- <xs:annotation>
756
- <xs:documentation>Autorizado por Ley Especial</xs:documentation>
757
- </xs:annotation>
758
- </xs:enumeration>
759
- <xs:enumeration value="04">
760
- <xs:annotation>
761
- <xs:documentation>Exenciones Direccion General de Hacienda</xs:documentation>
762
- </xs:annotation>
763
- </xs:enumeration>
764
- <xs:enumeration value="05">
765
- <xs:annotation>
766
- <xs:documentation>Transitorio V</xs:documentation>
767
- </xs:annotation>
768
- </xs:enumeration>
769
- <xs:enumeration value="06">
770
- <xs:annotation>
771
- <xs:documentation>Transitorio IX</xs:documentation>
772
- </xs:annotation>
773
- </xs:enumeration>
774
- <xs:enumeration value="07">
775
- <xs:annotation>
776
- <xs:documentation>Transitorio XVII</xs:documentation>
777
- </xs:annotation>
778
- </xs:enumeration>
779
- <xs:enumeration value="99">
780
- <xs:annotation>
781
- <xs:documentation>Otros</xs:documentation>
782
- </xs:annotation>
783
- </xs:enumeration>
1211
+ <xs:minLength value="5"/>
1212
+ <xs:maxLength value="100"/>
784
1213
  </xs:restriction>
785
1214
  </xs:simpleType>
786
1215
  </xs:element>
@@ -791,92 +1220,95 @@
791
1220
  <xs:simpleType>
792
1221
  <xs:restriction base="xs:string">
793
1222
  <xs:maxLength value="40"/>
1223
+ <xs:minLength value="3"/>
794
1224
  </xs:restriction>
795
1225
  </xs:simpleType>
796
1226
  </xs:element>
797
- <xs:element name="NombreInstitucion">
1227
+ <xs:element name="Articulo" minOccurs="0">
798
1228
  <xs:annotation>
799
- <xs:documentation>Nombre de la institución o dependencia que emitió la exoneración</xs:documentation>
1229
+ <xs:documentation>Número de artículo que establece la exoneración o autorización</xs:documentation>
800
1230
  </xs:annotation>
801
1231
  <xs:simpleType>
802
- <xs:restriction base="xs:string">
803
- <xs:maxLength value="160"/>
1232
+ <xs:restriction base="xs:integer">
1233
+ <xs:totalDigits value="6"/>
804
1234
  </xs:restriction>
805
1235
  </xs:simpleType>
806
1236
  </xs:element>
807
- <xs:element name="FechaEmision" type="xs:dateTime">
808
- <xs:annotation>
809
- <xs:documentation>Fecha y hora de la emisión del documento de exoneración o autorización.</xs:documentation>
810
- </xs:annotation>
811
- </xs:element>
812
- <xs:element name="PorcentajeExoneracion">
1237
+ <xs:element name="Inciso" minOccurs="0">
813
1238
  <xs:annotation>
814
- <xs:documentation>Porcentaje de la exoneración</xs:documentation>
1239
+ <xs:documentation>Número de inciso que establece la exoneración o autorización</xs:documentation>
815
1240
  </xs:annotation>
816
1241
  <xs:simpleType>
817
- <xs:restriction base="xs:positiveInteger">
818
- <xs:totalDigits value="3"/>
1242
+ <xs:restriction base="xs:integer">
1243
+ <xs:totalDigits value="6"/>
819
1244
  </xs:restriction>
820
1245
  </xs:simpleType>
821
1246
  </xs:element>
822
- <xs:element name="MontoExoneracion" type="DecimalDineroType">
823
- <xs:annotation>
824
- <xs:documentation>Monto del impuesto exonerado</xs:documentation>
825
- </xs:annotation>
826
- </xs:element>
827
- </xs:sequence>
828
- </xs:complexType>
829
- <xs:complexType name="ImpuestoType">
830
- <xs:sequence>
831
- <xs:element name="Codigo">
1247
+ <xs:element name="NombreInstitucion">
832
1248
  <xs:annotation>
833
- <xs:documentation>Código del impuesto: 01 Impuesto al valor agregado, 02 Impuesto Selectivo de Consumo, 03 Impuesto único a los combustivos, 04 Impuesto específico de bebidas alcohólicas, 05 Impuesto específico sobre las bebidas envasadas sin contenido alcohólico y jabones de tocador, 06 Impuesto a los productos de tabaco, 07 IVA (cálculo especial), 08 IVA Regimen de Bienes Usados (Factor), 12 Impuesto Especifico al cemento, 99 Otros</xs:documentation>
1249
+ <xs:documentation>Nombre de la institución o dependencia que emitió la exoneración</xs:documentation>
834
1250
  </xs:annotation>
835
1251
  <xs:simpleType>
836
1252
  <xs:restriction base="xs:string">
1253
+ <xs:maxLength value="2"/>
837
1254
  <xs:enumeration value="01">
838
1255
  <xs:annotation>
839
- <xs:documentation>Impuesto al Valor Agregado</xs:documentation>
1256
+ <xs:documentation>Ministerio de Hacienda</xs:documentation>
840
1257
  </xs:annotation>
841
1258
  </xs:enumeration>
842
1259
  <xs:enumeration value="02">
843
1260
  <xs:annotation>
844
- <xs:documentation> Impuesto Selectivo de Consumo</xs:documentation>
1261
+ <xs:documentation>Ministerio de Relaciones Exteriores y Culto</xs:documentation>
845
1262
  </xs:annotation>
846
1263
  </xs:enumeration>
847
1264
  <xs:enumeration value="03">
848
1265
  <xs:annotation>
849
- <xs:documentation>Impuesto unico a los combustivos</xs:documentation>
1266
+ <xs:documentation>Ministerio de Agricultura y Ganadería</xs:documentation>
850
1267
  </xs:annotation>
851
1268
  </xs:enumeration>
852
1269
  <xs:enumeration value="04">
853
1270
  <xs:annotation>
854
- <xs:documentation>Impuesto especifico de bebidas alcohólicas</xs:documentation>
1271
+ <xs:documentation>Ministerio de Economía, Industria y Comercio</xs:documentation>
855
1272
  </xs:annotation>
856
1273
  </xs:enumeration>
857
1274
  <xs:enumeration value="05">
858
1275
  <xs:annotation>
859
- <xs:documentation>impuesto especifico sobre las bebidas envasadas sin contenido alcoholico y jabones de tocador</xs:documentation>
1276
+ <xs:documentation>Cruz Roja Costarricense</xs:documentation>
860
1277
  </xs:annotation>
861
1278
  </xs:enumeration>
862
1279
  <xs:enumeration value="06">
863
1280
  <xs:annotation>
864
- <xs:documentation>impuesto a los productos de tabaco</xs:documentation>
1281
+ <xs:documentation>Benemérito Cuerpo de Bomberos de Costa Rica</xs:documentation>
865
1282
  </xs:annotation>
866
1283
  </xs:enumeration>
867
1284
  <xs:enumeration value="07">
868
1285
  <xs:annotation>
869
- <xs:documentation>IVA (cálculo especial)</xs:documentation>
1286
+ <xs:documentation>Asociación Obras del Espíritu Santo</xs:documentation>
870
1287
  </xs:annotation>
871
1288
  </xs:enumeration>
872
1289
  <xs:enumeration value="08">
873
1290
  <xs:annotation>
874
- <xs:documentation>IVA Régimen de Bienes Usados (Factor)</xs:documentation>
1291
+ <xs:documentation>Federación Cruzada Nacional de protección al Anciano (Fecrunapa)</xs:documentation>
1292
+ </xs:annotation>
1293
+ </xs:enumeration>
1294
+ <xs:enumeration value="09">
1295
+ <xs:annotation>
1296
+ <xs:documentation>Escuela de Agricultura de la Región Húmeda (EARTH)</xs:documentation>
1297
+ </xs:annotation>
1298
+ </xs:enumeration>
1299
+ <xs:enumeration value="10">
1300
+ <xs:annotation>
1301
+ <xs:documentation>Instituto Centroamericano de Administración de Empresas (INCAE)</xs:documentation>
1302
+ </xs:annotation>
1303
+ </xs:enumeration>
1304
+ <xs:enumeration value="11">
1305
+ <xs:annotation>
1306
+ <xs:documentation>Junta de Protección Social (JPS)</xs:documentation>
875
1307
  </xs:annotation>
876
1308
  </xs:enumeration>
877
1309
  <xs:enumeration value="12">
878
1310
  <xs:annotation>
879
- <xs:documentation>Impuesto Especifico al Cemento</xs:documentation>
1311
+ <xs:documentation>Autoridad Reguladora de los Servicios Públicos (Aresep)</xs:documentation>
880
1312
  </xs:annotation>
881
1313
  </xs:enumeration>
882
1314
  <xs:enumeration value="99">
@@ -887,28 +1319,69 @@
887
1319
  </xs:restriction>
888
1320
  </xs:simpleType>
889
1321
  </xs:element>
890
- <xs:element name="CodigoTarifa" minOccurs="0">
1322
+ <xs:element name="NombreInstitucionOtros" minOccurs="0">
891
1323
  <xs:annotation>
892
- <xs:documentation>Código de la tarifa del impuesto. 01 Tarifa 0% (Exento), 02 Tarifa Reducida 1%, 03 Tarifa reducida 2%, 04 Tarifa reducida 4%, 05 Transitorio 0%, 06 Transitorio 4%, 07 Transitorio 8%, 08 Tarifa General 13%</xs:documentation>
1324
+ <xs:documentation>Detalle Nombre de institución o dependencia que emitió la exoneración OTRO</xs:documentation>
893
1325
  </xs:annotation>
894
1326
  <xs:simpleType>
895
1327
  <xs:restriction base="xs:string">
896
- <xs:maxLength value="2"/>
897
- <xs:minLength value="2"/>
898
- <xs:enumeration value="01"/>
899
- <xs:enumeration value="02"/>
900
- <xs:enumeration value="03"/>
901
- <xs:enumeration value="04"/>
902
- <xs:enumeration value="05"/>
903
- <xs:enumeration value="06"/>
904
- <xs:enumeration value="07"/>
905
- <xs:enumeration value="08"/>
1328
+ <xs:minLength value="5"/>
1329
+ <xs:maxLength value="160"/>
1330
+ </xs:restriction>
1331
+ </xs:simpleType>
1332
+ </xs:element>
1333
+ <xs:element name="FechaEmisionEX" type="xs:dateTime">
1334
+ <xs:annotation>
1335
+ <xs:documentation>Fecha y hora de la emisión del documento de exoneración o autorización.</xs:documentation>
1336
+ </xs:annotation>
1337
+ </xs:element>
1338
+ <xs:element name="TarifaExonerada">
1339
+ <xs:annotation>
1340
+ <xs:documentation>Tarifa exonerada</xs:documentation>
1341
+ </xs:annotation>
1342
+ <xs:simpleType>
1343
+ <xs:restriction base="xs:decimal">
1344
+ <xs:totalDigits value="4"/>
1345
+ <xs:fractionDigits value="2"/>
1346
+ </xs:restriction>
1347
+ </xs:simpleType>
1348
+ </xs:element>
1349
+ <xs:element name="MontoExoneracion" type="DecimalDineroType">
1350
+ <xs:annotation>
1351
+ <xs:documentation>Monto del impuesto exonerado</xs:documentation>
1352
+ </xs:annotation>
1353
+ </xs:element>
1354
+ </xs:sequence>
1355
+ </xs:complexType>
1356
+ <xs:complexType name="ImpuestoType">
1357
+ <xs:sequence>
1358
+ <xs:element name="Codigo" type="CodigoImpuestoType">
1359
+ <xs:annotation>
1360
+ <xs:documentation>Código del impuesto: 01 Impuesto al valor agregado, 02 Impuesto Selectivo de Consumo, 03 Impuesto único a los combustivos, 04 Impuesto específico de bebidas alcohólicas, 05 Impuesto específico sobre las bebidas envasadas sin contenido alcohólico y jabones de tocador, 06 Impuesto a los productos de tabaco, 07 IVA (cálculo especial), 08 IVA Regimen de Bienes Usados (Factor), 12 Impuesto Especifico al cemento, 99 Otros</xs:documentation>
1361
+ </xs:annotation>
1362
+ </xs:element>
1363
+ <xs:element name="CodigoImpuestoOTRO" minOccurs="0">
1364
+ <xs:annotation>
1365
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de “Otros” de la nota 8. Se debe describir puntualmente el impuesto
1366
+ utilizado</xs:documentation>
1367
+ </xs:annotation>
1368
+ <xs:simpleType>
1369
+ <xs:restriction base="xs:string">
1370
+ <xs:minLength value="5"/>
1371
+ <xs:maxLength value="100"/>
906
1372
  </xs:restriction>
907
1373
  </xs:simpleType>
908
1374
  </xs:element>
1375
+ <xs:element name="CodigoTarifaIVA" type="CodigoTarifaIVAType" minOccurs="0">
1376
+ <xs:annotation>
1377
+ <xs:documentation>En el caso que se utilice el nodo “Detalle de productos del surtido, paquetes o combos”, no se deberá utilizar este
1378
+ campo, ya que el impuesto se calcula como la suma de los montos de impuestos individuales de las líneas de detalle de los componentes del surtido que se deben incluir en estos
1379
+ casos. La eventual validación de la consistencia de los impuestos calculados y aplicación de tarifas se hará sobre las líneas individuales de detalle.</xs:documentation>
1380
+ </xs:annotation>
1381
+ </xs:element>
909
1382
  <xs:element name="Tarifa" minOccurs="0">
910
1383
  <xs:annotation>
911
- <xs:documentation>Tarifa del impuesto</xs:documentation>
1384
+ <xs:documentation>En el caso que se utilice el nodo “Detalle de productos del surtido, paquetes o combos”, no se deberá utilizar este campo, ya que el impuesto se calcula como la suma de los montos de impuestos individuales de las líneas de detalle de componentes del surtido que se deben incluir en estos casos. La eventual validación de la consistencia de los impuestos calculados y aplicación de tarifas se hará sobre las líneas individuales de detalle.</xs:documentation>
912
1385
  </xs:annotation>
913
1386
  <xs:simpleType>
914
1387
  <xs:restriction base="xs:decimal">
@@ -917,9 +1390,10 @@
917
1390
  </xs:restriction>
918
1391
  </xs:simpleType>
919
1392
  </xs:element>
920
- <xs:element name="FactorIVA" minOccurs="0">
1393
+ <xs:element name="FactorCalculoIVA" minOccurs="0">
921
1394
  <xs:annotation>
922
- <xs:documentation>Factor del impuesto</xs:documentation>
1395
+ <xs:documentation>Este campo es de condición obligatoria, cuando el producto/servicio posea un factor para su cálculo.
1396
+ Cuando en el código de impuesto se defina IVA Bienes Usados se deberá utilizar este campo con el factor establecido por el Ministerio de Hacienda</xs:documentation>
923
1397
  </xs:annotation>
924
1398
  <xs:simpleType>
925
1399
  <xs:restriction base="xs:decimal">
@@ -928,6 +1402,67 @@
928
1402
  </xs:restriction>
929
1403
  </xs:simpleType>
930
1404
  </xs:element>
1405
+ <xs:element name="DatosImpuestoEspecifico" minOccurs="0">
1406
+ <xs:annotation>
1407
+ <xs:documentation>Tipo complejo con el detalle para calcular impuestos específicos no tarifarios. Este campo es de condición obligatoria, cuando se utilicen
1408
+ los códigos de impuesto 03, 04, 05, 06 de la nota 8 y agrupará los campos requeridos para el cálculo de estos impuestos</xs:documentation>
1409
+ </xs:annotation>
1410
+ <xs:complexType>
1411
+ <xs:sequence>
1412
+ <xs:element name="CantidadUnidadMedida">
1413
+ <xs:annotation>
1414
+ <xs:documentation>En el caso que se utilice el nodo “Detalle de productos del surtido, paquetes o combos”, no se deberá utilizar este
1415
+ campo, para los códigos de impuesto 04, 05, 06 de la nota 8, ya que el impuesto se calcula como la suma de los montos de impuestos individuales de las líneas de detalle de
1416
+ componentes del surtido que se deben incluir en estos casos</xs:documentation>
1417
+ </xs:annotation>
1418
+ <xs:simpleType>
1419
+ <xs:restriction base="xs:decimal">
1420
+ <xs:totalDigits value="7"/>
1421
+ <xs:fractionDigits value="2"/>
1422
+ </xs:restriction>
1423
+ </xs:simpleType>
1424
+ </xs:element>
1425
+ <xs:element name="Porcentaje" minOccurs="0">
1426
+ <xs:annotation>
1427
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilice el código de impuesto 04 de la nota 8</xs:documentation>
1428
+ </xs:annotation>
1429
+ <xs:simpleType>
1430
+ <xs:restriction base="xs:decimal">
1431
+ <xs:totalDigits value="4"/>
1432
+ <xs:fractionDigits value="2"/>
1433
+ </xs:restriction>
1434
+ </xs:simpleType>
1435
+ </xs:element>
1436
+ <xs:element name="Proporcion" minOccurs="0">
1437
+ <xs:annotation>
1438
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilice el código de impuesto 04 de la nota 8 Este campo se obtiene de multiplicar la “Cantidad de la unidad de medida a utilizar” por el “Porcentaje”</xs:documentation>
1439
+ </xs:annotation>
1440
+ <xs:simpleType>
1441
+ <xs:restriction base="xs:decimal">
1442
+ <xs:totalDigits value="5"/>
1443
+ <xs:fractionDigits value="2"/>
1444
+ </xs:restriction>
1445
+ </xs:simpleType>
1446
+ </xs:element>
1447
+ <xs:element name="VolumenUnidadConsumo" minOccurs="0">
1448
+ <xs:annotation>
1449
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilice el código de impuesto 05 de la nota 8</xs:documentation>
1450
+ </xs:annotation>
1451
+ <xs:simpleType>
1452
+ <xs:restriction base="xs:decimal">
1453
+ <xs:totalDigits value="7"/>
1454
+ <xs:fractionDigits value="2"/>
1455
+ </xs:restriction>
1456
+ </xs:simpleType>
1457
+ </xs:element>
1458
+ <xs:element name="ImpuestoUnidad" type="DecimalDineroType">
1459
+ <xs:annotation>
1460
+ <xs:documentation>Este campo es de condición obligatoria, cuando se utilicen los códigos de impuesto 03, 04, 05 y 06 de la nota 8</xs:documentation>
1461
+ </xs:annotation>
1462
+ </xs:element>
1463
+ </xs:sequence>
1464
+ </xs:complexType>
1465
+ </xs:element>
931
1466
  <xs:element name="Monto" type="DecimalDineroType">
932
1467
  <xs:annotation>
933
1468
  <xs:documentation>Monto del impuesto</xs:documentation>
@@ -940,10 +1475,22 @@
940
1475
  <xs:sequence>
941
1476
  <xs:element name="Tipo">
942
1477
  <xs:annotation>
943
- <xs:documentation>Tipo de código de producto o servicio: 01: Código del producto del vendedor, 02 Código del producto del comprador, 03 Código del producto asignado por la industria, 04 Código de uso interno, 99 Otros</xs:documentation>
1478
+ <xs:documentation>Será obligatorio para las líneas de detalle que utilicen uno de
1479
+ los códigos de producto/servicio de "surtidos" que estén
1480
+ habilitados en el CAByS.
1481
+ En el caso de la inclusión de paquetes, surtidos o combos,
1482
+ entendidos como la combinación de más de dos productos
1483
+ con diferentes códigos de producto/servicio, se debe
1484
+ seleccionar el código 03 "Código del producto asignado por la
1485
+ industria" de la nota 12 e incluir en el campo "código" el
1486
+ respectivo código "SKU", GTIN o equivalentes, con el que el
1487
+ paquete este identificado en la industria. Estos códigos deben
1488
+ ser verificables en los catálogos disponibles en la industria.</xs:documentation>
944
1489
  </xs:annotation>
945
1490
  <xs:simpleType>
946
1491
  <xs:restriction base="xs:string">
1492
+ <xs:minLength value="2"/>
1493
+ <xs:maxLength value="2"/>
947
1494
  <xs:enumeration value="01">
948
1495
  <xs:annotation>
949
1496
  <xs:documentation>Código del producto del vendedor</xs:documentation>
@@ -972,9 +1519,11 @@
972
1519
  </xs:restriction>
973
1520
  </xs:simpleType>
974
1521
  </xs:element>
975
- <xs:element name="Codigo" minOccurs="0">
1522
+ <xs:element name="Codigo">
976
1523
  <xs:annotation>
977
- <xs:documentation>Código del producto o servicio</xs:documentation>
1524
+ <xs:documentation>Será obligatorio para las líneas de detalle que utilicen uno de
1525
+ los códigos de producto/servicio de "surtidos" que estén
1526
+ habilitados en el CAByS.</xs:documentation>
978
1527
  </xs:annotation>
979
1528
  <xs:simpleType>
980
1529
  <xs:restriction base="xs:string">
@@ -988,16 +1537,37 @@
988
1537
  <xs:sequence>
989
1538
  <xs:element name="MontoDescuento" type="DecimalDineroType">
990
1539
  <xs:annotation>
991
- <xs:documentation>Monto de descuento concedido, el cual es obligatorio si existe descuento</xs:documentation>
1540
+ <xs:documentation>Monto de descuento concedido. Este campo será de condición obligatoria, cuando se indique
1541
+ un descuento, en el campo "Código del descuento"</xs:documentation>
1542
+ </xs:annotation>
1543
+ </xs:element>
1544
+ <xs:element name="CodigoDescuento" type="CodigoDescuentoType">
1545
+ <xs:annotation>
1546
+ <xs:documentation>Este campo será de condición obligatoria, cuando se incluya
1547
+ información en el campo "monto de descuentos concedidos"</xs:documentation>
992
1548
  </xs:annotation>
993
1549
  </xs:element>
994
- <xs:element name="NaturalezaDescuento">
1550
+ <xs:element name="CodigoDescuentoOTRO" minOccurs="0">
1551
+ <xs:annotation>
1552
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de "Otros"
1553
+ de la nota 20. Se debe describir puntualmente el descuento
1554
+ utilizado</xs:documentation>
1555
+ </xs:annotation>
1556
+ <xs:simpleType>
1557
+ <xs:restriction base="xs:string">
1558
+ <xs:maxLength value="100"/>
1559
+ <xs:minLength value="5"/>
1560
+ </xs:restriction>
1561
+ </xs:simpleType>
1562
+ </xs:element>
1563
+ <xs:element name="NaturalezaDescuento" minOccurs="0">
995
1564
  <xs:annotation>
996
1565
  <xs:documentation>Naturaleza del descuento, que es obligatorio si existe descuento</xs:documentation>
997
1566
  </xs:annotation>
998
1567
  <xs:simpleType>
999
1568
  <xs:restriction base="xs:string">
1000
1569
  <xs:maxLength value="80"/>
1570
+ <xs:minLength value="3"/>
1001
1571
  </xs:restriction>
1002
1572
  </xs:simpleType>
1003
1573
  </xs:element>
@@ -1005,33 +1575,30 @@
1005
1575
  </xs:complexType>
1006
1576
  <xs:complexType name="OtrosCargosType">
1007
1577
  <xs:sequence>
1008
- <xs:element name="TipoDocumento">
1578
+ <xs:element name="TipoDocumentoOC">
1009
1579
  <xs:annotation>
1010
- <xs:documentation>01 Contribución parafiscal, 02 Timbre de la Cruz Roja, 03 Timbre de Benemérito Cuerpo de Bomberos de Costa Rica, 04 Cobro de un tercero, 05 Costos de Exportación, 06 Impuesto de Servicio 10%, 07 Timbre de Colegios Profesionales, 99 Otros Cargos</xs:documentation>
1580
+ <xs:documentation>Se verificará el cumplimiento de la nota 16.
1581
+ Además, cuando se seleccione el código 04, 08, 09 y 10 de la nota 16 en “Tipo de documento otros cargos” y no se cuente con una línea de servicio o producto, no es obligatorio usar el nodo “Detalle de la mercancía o servicio prestado”.</xs:documentation>
1011
1582
  </xs:annotation>
1012
1583
  <xs:simpleType>
1013
- <xs:restriction base="xs:string">
1014
- <xs:enumeration value="01"/>
1015
- <xs:enumeration value="02"/>
1016
- <xs:enumeration value="03"/>
1017
- <xs:enumeration value="04"/>
1018
- <xs:enumeration value="05"/>
1019
- <xs:enumeration value="06"/>
1020
- <xs:enumeration value="07"/>
1021
- <xs:enumeration value="99"/>
1584
+ <xs:restriction base="TipoDocOtrosCargosType">
1585
+ <xs:minLength value="2"/>
1586
+ <xs:maxLength value="2"/>
1022
1587
  </xs:restriction>
1023
1588
  </xs:simpleType>
1024
1589
  </xs:element>
1025
- <xs:element name="NumeroIdentidadTercero" minOccurs="0">
1590
+ <xs:element name="TipoDocumentoOTROS" minOccurs="0">
1026
1591
  <xs:annotation>
1027
- <xs:documentation>Número de cédula física/ jurídica/NITE/DIMEX del emisor </xs:documentation>
1592
+ <xs:documentation>Será obligatorio en caso de utilizar el código 99 de “Otros” de la nota 16. Se debe describir puntualmente el tipo de documento utilizado</xs:documentation>
1028
1593
  </xs:annotation>
1029
1594
  <xs:simpleType>
1030
1595
  <xs:restriction base="xs:string">
1031
- <xs:maxLength value="12"/>
1596
+ <xs:minLength value="5"/>
1597
+ <xs:maxLength value="100"/>
1032
1598
  </xs:restriction>
1033
1599
  </xs:simpleType>
1034
1600
  </xs:element>
1601
+ <xs:element name="IdentificacionTercero" type="IdentificacionType" minOccurs="0"/>
1035
1602
  <xs:element name="NombreTercero" minOccurs="0">
1036
1603
  <xs:annotation>
1037
1604
  <xs:documentation>Nombre o razón social del receptor</xs:documentation>
@@ -1039,6 +1606,7 @@
1039
1606
  <xs:simpleType>
1040
1607
  <xs:restriction base="xs:string">
1041
1608
  <xs:maxLength value="100"/>
1609
+ <xs:minLength value="5"/>
1042
1610
  </xs:restriction>
1043
1611
  </xs:simpleType>
1044
1612
  </xs:element>
@@ -1052,10 +1620,13 @@
1052
1620
  </xs:restriction>
1053
1621
  </xs:simpleType>
1054
1622
  </xs:element>
1055
- <xs:element name="Porcentaje" minOccurs="0">
1623
+ <xs:element name="PorcentajeOC" minOccurs="0">
1624
+ <xs:annotation>
1625
+ <xs:documentation>En el caso que el cargo posea un porcentaje o monto para su cálculo se debe de indicar el mismo</xs:documentation>
1626
+ </xs:annotation>
1056
1627
  <xs:simpleType>
1057
1628
  <xs:restriction base="xs:decimal">
1058
- <xs:totalDigits value="6"/>
1629
+ <xs:totalDigits value="9"/>
1059
1630
  <xs:fractionDigits value="5"/>
1060
1631
  <xs:minInclusive value="0"/>
1061
1632
  </xs:restriction>
@@ -1072,7 +1643,7 @@
1072
1643
  <xs:sequence>
1073
1644
  <xs:element name="CodigoMoneda">
1074
1645
  <xs:annotation>
1075
- <xs:documentation>Código de la moneda de acuerdo al ISO 4217</xs:documentation>
1646
+ <xs:documentation>Código de la moneda</xs:documentation>
1076
1647
  </xs:annotation>
1077
1648
  <xs:simpleType>
1078
1649
  <xs:restriction base="xs:string">
@@ -1296,259 +1867,339 @@
1296
1867
  <xs:documentation>Unidades de Medida basadas en el estándar RTC 443:2010</xs:documentation>
1297
1868
  </xs:annotation>
1298
1869
  <xs:restriction base="xs:string">
1299
- <xs:enumeration value="Al">
1870
+ <xs:enumeration value="1">
1300
1871
  <xs:annotation>
1301
- <xs:documentation>Alquiler de uso habitacional</xs:documentation>
1872
+ <xs:documentation>uno (índice de refracción)</xs:documentation>
1302
1873
  </xs:annotation>
1303
1874
  </xs:enumeration>
1304
- <xs:enumeration value="Alc">
1875
+ <xs:enumeration value="´">
1305
1876
  <xs:annotation>
1306
- <xs:documentation>Alquiler de uso comercial</xs:documentation>
1877
+ <xs:documentation>minuto</xs:documentation>
1307
1878
  </xs:annotation>
1308
1879
  </xs:enumeration>
1309
- <xs:enumeration value="Cm">
1880
+ <xs:enumeration value="´´">
1310
1881
  <xs:annotation>
1311
- <xs:documentation>Comisiones</xs:documentation>
1882
+ <xs:documentation>segundo</xs:documentation>
1312
1883
  </xs:annotation>
1313
1884
  </xs:enumeration>
1314
- <xs:enumeration value="I">
1885
+ <xs:enumeration value="°C">
1315
1886
  <xs:annotation>
1316
- <xs:documentation>Intereses</xs:documentation>
1887
+ <xs:documentation>grado Celsius</xs:documentation>
1317
1888
  </xs:annotation>
1318
1889
  </xs:enumeration>
1319
- <xs:enumeration value="Os">
1890
+ <xs:enumeration value="1/m">
1320
1891
  <xs:annotation>
1321
- <xs:documentation>Otro tipo de servicios</xs:documentation>
1892
+ <xs:documentation>1 por metro</xs:documentation>
1322
1893
  </xs:annotation>
1323
1894
  </xs:enumeration>
1324
- <xs:enumeration value="Sp">
1895
+ <xs:enumeration value="A">
1325
1896
  <xs:annotation>
1326
- <xs:documentation>Servicios Profesionales</xs:documentation>
1897
+ <xs:documentation>Ampere</xs:documentation>
1327
1898
  </xs:annotation>
1328
1899
  </xs:enumeration>
1329
- <xs:enumeration value="Spe">
1900
+ <xs:enumeration value="A/m">
1330
1901
  <xs:annotation>
1331
- <xs:documentation>Servicios Personales</xs:documentation>
1902
+ <xs:documentation>ampere por metro</xs:documentation>
1332
1903
  </xs:annotation>
1333
1904
  </xs:enumeration>
1334
- <xs:enumeration value="St">
1905
+ <xs:enumeration value="A/m²">
1335
1906
  <xs:annotation>
1336
- <xs:documentation>Servicios Técnicos</xs:documentation>
1907
+ <xs:documentation>ampere por metro cuadrado</xs:documentation>
1337
1908
  </xs:annotation>
1338
1909
  </xs:enumeration>
1339
- <xs:enumeration value="d">
1910
+ <xs:enumeration value="Acv">
1340
1911
  <xs:annotation>
1341
- <xs:documentation>Día</xs:documentation>
1912
+ <xs:documentation>Activo Virtual</xs:documentation>
1342
1913
  </xs:annotation>
1343
1914
  </xs:enumeration>
1344
- <xs:enumeration value="m">
1915
+ <xs:enumeration value="Al">
1345
1916
  <xs:annotation>
1346
- <xs:documentation>Metro</xs:documentation>
1917
+ <xs:documentation>Alquiler de uso habitacional</xs:documentation>
1347
1918
  </xs:annotation>
1348
1919
  </xs:enumeration>
1349
- <xs:enumeration value="kg">
1920
+ <xs:enumeration value="Alc">
1350
1921
  <xs:annotation>
1351
- <xs:documentation>Kilogramo</xs:documentation>
1922
+ <xs:documentation>Alquiler de uso comercial</xs:documentation>
1352
1923
  </xs:annotation>
1353
1924
  </xs:enumeration>
1354
- <xs:enumeration value="s">
1925
+ <xs:enumeration value="B">
1355
1926
  <xs:annotation>
1356
- <xs:documentation>Segundo</xs:documentation>
1927
+ <xs:documentation>bel</xs:documentation>
1357
1928
  </xs:annotation>
1358
1929
  </xs:enumeration>
1359
- <xs:enumeration value="A">
1930
+ <xs:enumeration value="Bq">
1360
1931
  <xs:annotation>
1361
- <xs:documentation>Ampere</xs:documentation>
1932
+ <xs:documentation>Becquerel</xs:documentation>
1362
1933
  </xs:annotation>
1363
1934
  </xs:enumeration>
1364
- <xs:enumeration value="K">
1935
+ <xs:enumeration value="C">
1365
1936
  <xs:annotation>
1366
- <xs:documentation>Kelvin</xs:documentation>
1937
+ <xs:documentation>coulomb</xs:documentation>
1367
1938
  </xs:annotation>
1368
1939
  </xs:enumeration>
1369
- <xs:enumeration value="mol">
1940
+ <xs:enumeration value="C/kg">
1370
1941
  <xs:annotation>
1371
- <xs:documentation>Mol</xs:documentation>
1942
+ <xs:documentation>coulomb por kilogramo</xs:documentation>
1372
1943
  </xs:annotation>
1373
1944
  </xs:enumeration>
1374
- <xs:enumeration value="cd">
1945
+ <xs:enumeration value="C/m²">
1375
1946
  <xs:annotation>
1376
- <xs:documentation>Candela</xs:documentation>
1947
+ <xs:documentation>coulomb por metro cuadrado</xs:documentation>
1377
1948
  </xs:annotation>
1378
1949
  </xs:enumeration>
1379
- <xs:enumeration value="m²">
1950
+ <xs:enumeration value="C/m³">
1380
1951
  <xs:annotation>
1381
- <xs:documentation>metro cuadrado</xs:documentation>
1952
+ <xs:documentation>coulomb por metro cúbico</xs:documentation>
1382
1953
  </xs:annotation>
1383
1954
  </xs:enumeration>
1384
- <xs:enumeration value="">
1955
+ <xs:enumeration value="Cc">
1385
1956
  <xs:annotation>
1386
- <xs:documentation>metro cúbico</xs:documentation>
1957
+ <xs:documentation>Cajuela de café</xs:documentation>
1387
1958
  </xs:annotation>
1388
1959
  </xs:enumeration>
1389
- <xs:enumeration value="m/s">
1960
+ <xs:enumeration value="Cd">
1390
1961
  <xs:annotation>
1391
- <xs:documentation>metro por segundo</xs:documentation>
1962
+ <xs:documentation>Candela</xs:documentation>
1392
1963
  </xs:annotation>
1393
1964
  </xs:enumeration>
1394
- <xs:enumeration value="m/s²">
1965
+ <xs:enumeration value="cd/m²">
1395
1966
  <xs:annotation>
1396
- <xs:documentation>metro por segundo cuadrado</xs:documentation>
1967
+ <xs:documentation>candela por metro cuadrado</xs:documentation>
1397
1968
  </xs:annotation>
1398
1969
  </xs:enumeration>
1399
- <xs:enumeration value="1/m">
1970
+ <xs:enumeration value="Cm">
1400
1971
  <xs:annotation>
1401
- <xs:documentation>1 por metro</xs:documentation>
1972
+ <xs:documentation>Comisiones</xs:documentation>
1402
1973
  </xs:annotation>
1403
1974
  </xs:enumeration>
1404
- <xs:enumeration value="kg/m³">
1975
+ <xs:enumeration value="cm">
1405
1976
  <xs:annotation>
1406
- <xs:documentation>kilogramo por metro cúbico</xs:documentation>
1977
+ <xs:documentation>centímetro</xs:documentation>
1407
1978
  </xs:annotation>
1408
1979
  </xs:enumeration>
1409
- <xs:enumeration value="A/m²">
1980
+ <xs:enumeration value="Cu">
1410
1981
  <xs:annotation>
1411
- <xs:documentation>ampere por metro cuadrado</xs:documentation>
1982
+ <xs:documentation>cuartillos de café</xs:documentation>
1412
1983
  </xs:annotation>
1413
1984
  </xs:enumeration>
1414
- <xs:enumeration value="A/m">
1985
+ <xs:enumeration value="D">
1415
1986
  <xs:annotation>
1416
- <xs:documentation>ampere por metro</xs:documentation>
1987
+ <xs:documentation>día</xs:documentation>
1417
1988
  </xs:annotation>
1418
1989
  </xs:enumeration>
1419
- <xs:enumeration value="mol/m³">
1990
+ <xs:enumeration value="eV">
1420
1991
  <xs:annotation>
1421
- <xs:documentation>mol por metro cúbico</xs:documentation>
1992
+ <xs:documentation>electronvolt</xs:documentation>
1422
1993
  </xs:annotation>
1423
1994
  </xs:enumeration>
1424
- <xs:enumeration value="cd/m²">
1995
+ <xs:enumeration value="F">
1425
1996
  <xs:annotation>
1426
- <xs:documentation>candela por metro cuadrado</xs:documentation>
1997
+ <xs:documentation>farad</xs:documentation>
1427
1998
  </xs:annotation>
1428
1999
  </xs:enumeration>
1429
- <xs:enumeration value="1">
2000
+ <xs:enumeration value="F/m">
1430
2001
  <xs:annotation>
1431
- <xs:documentation>uno (indice de refracción)</xs:documentation>
2002
+ <xs:documentation>farad por metro</xs:documentation>
1432
2003
  </xs:annotation>
1433
2004
  </xs:enumeration>
1434
- <xs:enumeration value="rad">
2005
+ <xs:enumeration value="Fa">
1435
2006
  <xs:annotation>
1436
- <xs:documentation>radián</xs:documentation>
2007
+ <xs:documentation>fanega de café</xs:documentation>
1437
2008
  </xs:annotation>
1438
2009
  </xs:enumeration>
1439
- <xs:enumeration value="sr">
2010
+ <xs:enumeration value="G">
1440
2011
  <xs:annotation>
1441
- <xs:documentation>estereorradián</xs:documentation>
2012
+ <xs:documentation>Gramo</xs:documentation>
1442
2013
  </xs:annotation>
1443
2014
  </xs:enumeration>
1444
- <xs:enumeration value="Hz">
2015
+ <xs:enumeration value="Gal">
1445
2016
  <xs:annotation>
1446
- <xs:documentation>hertz</xs:documentation>
2017
+ <xs:documentation>Galón</xs:documentation>
1447
2018
  </xs:annotation>
1448
2019
  </xs:enumeration>
1449
- <xs:enumeration value="N">
2020
+ <xs:enumeration value="Gy">
1450
2021
  <xs:annotation>
1451
- <xs:documentation>newton</xs:documentation>
2022
+ <xs:documentation>gray</xs:documentation>
1452
2023
  </xs:annotation>
1453
2024
  </xs:enumeration>
1454
- <xs:enumeration value="Pa">
2025
+ <xs:enumeration value="Gy/s">
1455
2026
  <xs:annotation>
1456
- <xs:documentation>pascal</xs:documentation>
2027
+ <xs:documentation>gray por segundo</xs:documentation>
1457
2028
  </xs:annotation>
1458
2029
  </xs:enumeration>
1459
- <xs:enumeration value="J">
2030
+ <xs:enumeration value="h">
1460
2031
  <xs:annotation>
1461
- <xs:documentation>Joule</xs:documentation>
2032
+ <xs:documentation>hora</xs:documentation>
1462
2033
  </xs:annotation>
1463
2034
  </xs:enumeration>
1464
- <xs:enumeration value="W">
2035
+ <xs:enumeration value="H">
1465
2036
  <xs:annotation>
1466
- <xs:documentation>Watt</xs:documentation>
2037
+ <xs:documentation>henry</xs:documentation>
1467
2038
  </xs:annotation>
1468
2039
  </xs:enumeration>
1469
- <xs:enumeration value="C">
2040
+ <xs:enumeration value="H/m">
1470
2041
  <xs:annotation>
1471
- <xs:documentation>coulomb</xs:documentation>
2042
+ <xs:documentation>henry por metro</xs:documentation>
1472
2043
  </xs:annotation>
1473
2044
  </xs:enumeration>
1474
- <xs:enumeration value="V">
2045
+ <xs:enumeration value="Hz">
1475
2046
  <xs:annotation>
1476
- <xs:documentation>volt</xs:documentation>
2047
+ <xs:documentation>hertz</xs:documentation>
1477
2048
  </xs:annotation>
1478
2049
  </xs:enumeration>
1479
- <xs:enumeration value="F">
2050
+ <xs:enumeration value="I">
1480
2051
  <xs:annotation>
1481
- <xs:documentation>farad</xs:documentation>
2052
+ <xs:documentation>Intereses</xs:documentation>
1482
2053
  </xs:annotation>
1483
2054
  </xs:enumeration>
1484
- <xs:enumeration value="">
2055
+ <xs:enumeration value="J">
1485
2056
  <xs:annotation>
1486
- <xs:documentation>ohm</xs:documentation>
2057
+ <xs:documentation>Joule</xs:documentation>
1487
2058
  </xs:annotation>
1488
2059
  </xs:enumeration>
1489
- <xs:enumeration value="S">
2060
+ <xs:enumeration value="J/(kg·K)">
1490
2061
  <xs:annotation>
1491
- <xs:documentation>siemens</xs:documentation>
2062
+ <xs:documentation>joule por kilogramo kelvin</xs:documentation>
1492
2063
  </xs:annotation>
1493
2064
  </xs:enumeration>
1494
- <xs:enumeration value="Wb">
2065
+ <xs:enumeration value="J/(mol·K)">
1495
2066
  <xs:annotation>
1496
- <xs:documentation>weber</xs:documentation>
2067
+ <xs:documentation>joule por mol kelvin</xs:documentation>
1497
2068
  </xs:annotation>
1498
2069
  </xs:enumeration>
1499
- <xs:enumeration value="T">
2070
+ <xs:enumeration value="J/K">
1500
2071
  <xs:annotation>
1501
- <xs:documentation>tesla</xs:documentation>
2072
+ <xs:documentation>joule por kelvin</xs:documentation>
1502
2073
  </xs:annotation>
1503
2074
  </xs:enumeration>
1504
- <xs:enumeration value="H">
2075
+ <xs:enumeration value="J/kg">
1505
2076
  <xs:annotation>
1506
- <xs:documentation>henry</xs:documentation>
2077
+ <xs:documentation>joule por kilogramo</xs:documentation>
1507
2078
  </xs:annotation>
1508
2079
  </xs:enumeration>
1509
- <xs:enumeration value="°C">
2080
+ <xs:enumeration value="J/m³">
1510
2081
  <xs:annotation>
1511
- <xs:documentation>grado Celsius</xs:documentation>
2082
+ <xs:documentation>joule por metro cúbico</xs:documentation>
2083
+ </xs:annotation>
2084
+ </xs:enumeration>
2085
+ <xs:enumeration value="J/mol">
2086
+ <xs:annotation>
2087
+ <xs:documentation>joule por mol</xs:documentation>
2088
+ </xs:annotation>
2089
+ </xs:enumeration>
2090
+ <xs:enumeration value="K">
2091
+ <xs:annotation>
2092
+ <xs:documentation>Kelvin</xs:documentation>
2093
+ </xs:annotation>
2094
+ </xs:enumeration>
2095
+ <xs:enumeration value="Kat">
2096
+ <xs:annotation>
2097
+ <xs:documentation>katal</xs:documentation>
2098
+ </xs:annotation>
2099
+ </xs:enumeration>
2100
+ <xs:enumeration value="kat/m³">
2101
+ <xs:annotation>
2102
+ <xs:documentation>katal por metro cúbico</xs:documentation>
2103
+ </xs:annotation>
2104
+ </xs:enumeration>
2105
+ <xs:enumeration value="Kg">
2106
+ <xs:annotation>
2107
+ <xs:documentation>Kilogramo</xs:documentation>
1512
2108
  </xs:annotation>
1513
2109
  </xs:enumeration>
1514
- <xs:enumeration value="lm">
2110
+ <xs:enumeration value="kg/m³">
2111
+ <xs:annotation>
2112
+ <xs:documentation>kilogramo por metro cúbico</xs:documentation>
2113
+ </xs:annotation>
2114
+ </xs:enumeration>
2115
+ <xs:enumeration value="Km">
2116
+ <xs:annotation>
2117
+ <xs:documentation>Kilometro</xs:documentation>
2118
+ </xs:annotation>
2119
+ </xs:enumeration>
2120
+ <xs:enumeration value="Kw">
2121
+ <xs:annotation>
2122
+ <xs:documentation>kilovatios</xs:documentation>
2123
+ </xs:annotation>
2124
+ </xs:enumeration>
2125
+ <xs:enumeration value="kWh">
2126
+ <xs:annotation>
2127
+ <xs:documentation>Kilovatios por hora</xs:documentation>
2128
+ </xs:annotation>
2129
+ </xs:enumeration>
2130
+ <xs:enumeration value="L">
2131
+ <xs:annotation>
2132
+ <xs:documentation>litro</xs:documentation>
2133
+ </xs:annotation>
2134
+ </xs:enumeration>
2135
+ <xs:enumeration value="Lm">
1515
2136
  <xs:annotation>
1516
2137
  <xs:documentation>lumen</xs:documentation>
1517
2138
  </xs:annotation>
1518
2139
  </xs:enumeration>
1519
- <xs:enumeration value="lx">
2140
+ <xs:enumeration value="Ln">
2141
+ <xs:annotation>
2142
+ <xs:documentation>pulgada</xs:documentation>
2143
+ </xs:annotation>
2144
+ </xs:enumeration>
2145
+ <xs:enumeration value="Lx">
1520
2146
  <xs:annotation>
1521
2147
  <xs:documentation>lux</xs:documentation>
1522
2148
  </xs:annotation>
1523
2149
  </xs:enumeration>
1524
- <xs:enumeration value="Bq">
2150
+ <xs:enumeration value="M">
1525
2151
  <xs:annotation>
1526
- <xs:documentation>Becquerel</xs:documentation>
2152
+ <xs:documentation>Metro</xs:documentation>
1527
2153
  </xs:annotation>
1528
2154
  </xs:enumeration>
1529
- <xs:enumeration value="Gy">
2155
+ <xs:enumeration value="m/s">
1530
2156
  <xs:annotation>
1531
- <xs:documentation>gray</xs:documentation>
2157
+ <xs:documentation>metro por segundo</xs:documentation>
1532
2158
  </xs:annotation>
1533
2159
  </xs:enumeration>
1534
- <xs:enumeration value="Sv">
2160
+ <xs:enumeration value="m/s²">
1535
2161
  <xs:annotation>
1536
- <xs:documentation>sievert</xs:documentation>
2162
+ <xs:documentation>metro por segundo cuadrado</xs:documentation>
1537
2163
  </xs:annotation>
1538
2164
  </xs:enumeration>
1539
- <xs:enumeration value="kat">
2165
+ <xs:enumeration value="">
1540
2166
  <xs:annotation>
1541
- <xs:documentation>katal</xs:documentation>
2167
+ <xs:documentation>metro cuadrado</xs:documentation>
1542
2168
  </xs:annotation>
1543
2169
  </xs:enumeration>
1544
- <xs:enumeration value="Pa·s">
2170
+ <xs:enumeration value="">
1545
2171
  <xs:annotation>
1546
- <xs:documentation>pascal segundo</xs:documentation>
2172
+ <xs:documentation>metro cúbico</xs:documentation>
1547
2173
  </xs:annotation>
1548
2174
  </xs:enumeration>
1549
- <xs:enumeration value="N·m">
2175
+ <xs:enumeration value="Min">
1550
2176
  <xs:annotation>
1551
- <xs:documentation>newton metro</xs:documentation>
2177
+ <xs:documentation>minuto</xs:documentation>
2178
+ </xs:annotation>
2179
+ </xs:enumeration>
2180
+ <xs:enumeration value="mL">
2181
+ <xs:annotation>
2182
+ <xs:documentation>mililitro</xs:documentation>
2183
+ </xs:annotation>
2184
+ </xs:enumeration>
2185
+ <xs:enumeration value="Mm">
2186
+ <xs:annotation>
2187
+ <xs:documentation>Milímetro</xs:documentation>
2188
+ </xs:annotation>
2189
+ </xs:enumeration>
2190
+ <xs:enumeration value="Mol">
2191
+ <xs:annotation>
2192
+ <xs:documentation>Mol</xs:documentation>
2193
+ </xs:annotation>
2194
+ </xs:enumeration>
2195
+ <xs:enumeration value="mol/m³">
2196
+ <xs:annotation>
2197
+ <xs:documentation>mol por metro cúbico</xs:documentation>
2198
+ </xs:annotation>
2199
+ </xs:enumeration>
2200
+ <xs:enumeration value="N">
2201
+ <xs:annotation>
2202
+ <xs:documentation>newton</xs:documentation>
1552
2203
  </xs:annotation>
1553
2204
  </xs:enumeration>
1554
2205
  <xs:enumeration value="N/m">
@@ -1556,6 +2207,56 @@
1556
2207
  <xs:documentation>newton por metro</xs:documentation>
1557
2208
  </xs:annotation>
1558
2209
  </xs:enumeration>
2210
+ <xs:enumeration value="N·m">
2211
+ <xs:annotation>
2212
+ <xs:documentation>newton metro</xs:documentation>
2213
+ </xs:annotation>
2214
+ </xs:enumeration>
2215
+ <xs:enumeration value="Np">
2216
+ <xs:annotation>
2217
+ <xs:documentation>neper</xs:documentation>
2218
+ </xs:annotation>
2219
+ </xs:enumeration>
2220
+ <xs:enumeration value="º">
2221
+ <xs:annotation>
2222
+ <xs:documentation>grado</xs:documentation>
2223
+ </xs:annotation>
2224
+ </xs:enumeration>
2225
+ <xs:enumeration value="Os">
2226
+ <xs:annotation>
2227
+ <xs:documentation>Otro tipo de servicio</xs:documentation>
2228
+ </xs:annotation>
2229
+ </xs:enumeration>
2230
+ <xs:enumeration value="Otros">
2231
+ <xs:annotation>
2232
+ <xs:documentation>Se debe indicar la descripción de la medida a utilizar</xs:documentation>
2233
+ </xs:annotation>
2234
+ </xs:enumeration>
2235
+ <xs:enumeration value="Oz">
2236
+ <xs:annotation>
2237
+ <xs:documentation>Onzas</xs:documentation>
2238
+ </xs:annotation>
2239
+ </xs:enumeration>
2240
+ <xs:enumeration value="Pa">
2241
+ <xs:annotation>
2242
+ <xs:documentation>pascal</xs:documentation>
2243
+ </xs:annotation>
2244
+ </xs:enumeration>
2245
+ <xs:enumeration value="Pa·s">
2246
+ <xs:annotation>
2247
+ <xs:documentation>pascal segundo</xs:documentation>
2248
+ </xs:annotation>
2249
+ </xs:enumeration>
2250
+ <xs:enumeration value="Qq">
2251
+ <xs:annotation>
2252
+ <xs:documentation>Quintal</xs:documentation>
2253
+ </xs:annotation>
2254
+ </xs:enumeration>
2255
+ <xs:enumeration value="Rad">
2256
+ <xs:annotation>
2257
+ <xs:documentation>radián</xs:documentation>
2258
+ </xs:annotation>
2259
+ </xs:enumeration>
1559
2260
  <xs:enumeration value="rad/s">
1560
2261
  <xs:annotation>
1561
2262
  <xs:documentation>radián por segundo</xs:documentation>
@@ -1566,84 +2267,84 @@
1566
2267
  <xs:documentation>radián por segundo cuadrado</xs:documentation>
1567
2268
  </xs:annotation>
1568
2269
  </xs:enumeration>
1569
- <xs:enumeration value="W/m²">
2270
+ <xs:enumeration value="S">
1570
2271
  <xs:annotation>
1571
- <xs:documentation>watt por metro cuadrado</xs:documentation>
2272
+ <xs:documentation>Segundo</xs:documentation>
1572
2273
  </xs:annotation>
1573
2274
  </xs:enumeration>
1574
- <xs:enumeration value="J/K">
2275
+ <xs:enumeration value="s">
1575
2276
  <xs:annotation>
1576
- <xs:documentation>joule por kelvin</xs:documentation>
2277
+ <xs:documentation>siemens</xs:documentation>
1577
2278
  </xs:annotation>
1578
2279
  </xs:enumeration>
1579
- <xs:enumeration value="J/(kg·K)">
2280
+ <xs:enumeration value="Sp">
1580
2281
  <xs:annotation>
1581
- <xs:documentation>joule por kilogramo kelvin</xs:documentation>
2282
+ <xs:documentation>Servicios Profesionales</xs:documentation>
1582
2283
  </xs:annotation>
1583
2284
  </xs:enumeration>
1584
- <xs:enumeration value="J/kg">
2285
+ <xs:enumeration value="Spe">
1585
2286
  <xs:annotation>
1586
- <xs:documentation>joule por kilogramo</xs:documentation>
2287
+ <xs:documentation>Servicios personales</xs:documentation>
1587
2288
  </xs:annotation>
1588
2289
  </xs:enumeration>
1589
- <xs:enumeration value="W/(m·K)">
2290
+ <xs:enumeration value="Sr">
1590
2291
  <xs:annotation>
1591
- <xs:documentation>watt por metro kevin</xs:documentation>
2292
+ <xs:documentation>estereorradián</xs:documentation>
1592
2293
  </xs:annotation>
1593
2294
  </xs:enumeration>
1594
- <xs:enumeration value="J/m³">
2295
+ <xs:enumeration value="St">
1595
2296
  <xs:annotation>
1596
- <xs:documentation>joule por metro cúbico</xs:documentation>
2297
+ <xs:documentation>Servicios técnicos</xs:documentation>
1597
2298
  </xs:annotation>
1598
2299
  </xs:enumeration>
1599
- <xs:enumeration value="V/m">
2300
+ <xs:enumeration value="Sv">
1600
2301
  <xs:annotation>
1601
- <xs:documentation>volt por metro</xs:documentation>
2302
+ <xs:documentation>sievert</xs:documentation>
1602
2303
  </xs:annotation>
1603
2304
  </xs:enumeration>
1604
- <xs:enumeration value="C/m³">
2305
+ <xs:enumeration value="t">
1605
2306
  <xs:annotation>
1606
- <xs:documentation>coulomb por metro cúbico</xs:documentation>
2307
+ <xs:documentation>tesla</xs:documentation>
1607
2308
  </xs:annotation>
1608
2309
  </xs:enumeration>
1609
- <xs:enumeration value="C/m²">
2310
+ <xs:enumeration value="T">
1610
2311
  <xs:annotation>
1611
- <xs:documentation>coulomb por metro cuadrado</xs:documentation>
2312
+ <xs:documentation>tonelada</xs:documentation>
1612
2313
  </xs:annotation>
1613
2314
  </xs:enumeration>
1614
- <xs:enumeration value="F/m">
2315
+ <xs:enumeration value="U">
1615
2316
  <xs:annotation>
1616
- <xs:documentation>farad por metro</xs:documentation>
2317
+ <xs:documentation>unidad de masa atómica unificada</xs:documentation>
1617
2318
  </xs:annotation>
1618
2319
  </xs:enumeration>
1619
- <xs:enumeration value="H/m">
2320
+ <xs:enumeration value="Ua">
1620
2321
  <xs:annotation>
1621
- <xs:documentation>henry por metro</xs:documentation>
2322
+ <xs:documentation>unidad astronómica</xs:documentation>
1622
2323
  </xs:annotation>
1623
2324
  </xs:enumeration>
1624
- <xs:enumeration value="J/mol">
2325
+ <xs:enumeration value="Unid">
1625
2326
  <xs:annotation>
1626
- <xs:documentation>joule por mol</xs:documentation>
2327
+ <xs:documentation>Unidad</xs:documentation>
1627
2328
  </xs:annotation>
1628
2329
  </xs:enumeration>
1629
- <xs:enumeration value="J/(mol·K)">
2330
+ <xs:enumeration value="V">
1630
2331
  <xs:annotation>
1631
- <xs:documentation>joule por mol kelvin</xs:documentation>
2332
+ <xs:documentation>volt</xs:documentation>
1632
2333
  </xs:annotation>
1633
2334
  </xs:enumeration>
1634
- <xs:enumeration value="C/kg">
2335
+ <xs:enumeration value="V/m">
1635
2336
  <xs:annotation>
1636
- <xs:documentation>coulomb por kilogramo</xs:documentation>
2337
+ <xs:documentation>volt por metro</xs:documentation>
1637
2338
  </xs:annotation>
1638
2339
  </xs:enumeration>
1639
- <xs:enumeration value="Gy/s">
2340
+ <xs:enumeration value="W">
1640
2341
  <xs:annotation>
1641
- <xs:documentation>gray por segundo</xs:documentation>
2342
+ <xs:documentation>Watt</xs:documentation>
1642
2343
  </xs:annotation>
1643
2344
  </xs:enumeration>
1644
- <xs:enumeration value="W/sr">
2345
+ <xs:enumeration value="W/(m·K)">
1645
2346
  <xs:annotation>
1646
- <xs:documentation>watt por estereorradián</xs:documentation>
2347
+ <xs:documentation>watt por metro kevin</xs:documentation>
1647
2348
  </xs:annotation>
1648
2349
  </xs:enumeration>
1649
2350
  <xs:enumeration value="W/(m²·sr)">
@@ -1651,131 +2352,585 @@
1651
2352
  <xs:documentation>watt por metro cuadrado estereorradián</xs:documentation>
1652
2353
  </xs:annotation>
1653
2354
  </xs:enumeration>
1654
- <xs:enumeration value="kat/m³">
2355
+ <xs:enumeration value="W/m²">
1655
2356
  <xs:annotation>
1656
- <xs:documentation>katal por metro cúbico</xs:documentation>
2357
+ <xs:documentation>watt por metro cuadrado</xs:documentation>
1657
2358
  </xs:annotation>
1658
2359
  </xs:enumeration>
1659
- <xs:enumeration value="min">
2360
+ <xs:enumeration value="W/sr">
1660
2361
  <xs:annotation>
1661
- <xs:documentation>minuto</xs:documentation>
2362
+ <xs:documentation>watt por estereorradián</xs:documentation>
1662
2363
  </xs:annotation>
1663
2364
  </xs:enumeration>
1664
- <xs:enumeration value="h">
2365
+ <xs:enumeration value="Wb">
1665
2366
  <xs:annotation>
1666
- <xs:documentation>hora</xs:documentation>
2367
+ <xs:documentation>weber</xs:documentation>
1667
2368
  </xs:annotation>
1668
2369
  </xs:enumeration>
1669
- <xs:enumeration value="d">
2370
+ <xs:enumeration value="">
1670
2371
  <xs:annotation>
1671
- <xs:documentation>día</xs:documentation>
2372
+ <xs:documentation>ohm</xs:documentation>
1672
2373
  </xs:annotation>
1673
2374
  </xs:enumeration>
1674
- <xs:enumeration value="º">
2375
+ </xs:restriction>
2376
+ </xs:simpleType>
2377
+ <xs:simpleType name="TipoTransaccionType">
2378
+ <xs:annotation>
2379
+ <xs:documentation>Tipos de transacción para el caso de transacciones con tratamientos tributarios específicos </xs:documentation>
2380
+ </xs:annotation>
2381
+ <xs:restriction base="xs:string">
2382
+ <xs:enumeration value="01">
1675
2383
  <xs:annotation>
1676
- <xs:documentation>grado</xs:documentation>
2384
+ <xs:documentation>Venta Normal de Bienes y Servicios (Transacción General)</xs:documentation>
1677
2385
  </xs:annotation>
1678
2386
  </xs:enumeration>
1679
- <xs:enumeration value="´">
2387
+ <xs:enumeration value="02">
1680
2388
  <xs:annotation>
1681
- <xs:documentation>minuto</xs:documentation>
2389
+ <xs:documentation>Mercancía de Autoconsumo exento</xs:documentation>
1682
2390
  </xs:annotation>
1683
2391
  </xs:enumeration>
1684
- <xs:enumeration value="´´">
2392
+ <xs:enumeration value="03">
1685
2393
  <xs:annotation>
1686
- <xs:documentation>segundo</xs:documentation>
2394
+ <xs:documentation>Mercancía de Autoconsumo gravado</xs:documentation>
1687
2395
  </xs:annotation>
1688
2396
  </xs:enumeration>
1689
- <xs:enumeration value="L">
2397
+ <xs:enumeration value="04">
1690
2398
  <xs:annotation>
1691
- <xs:documentation>litro</xs:documentation>
2399
+ <xs:documentation>Servicio de Autoconsumo exento</xs:documentation>
1692
2400
  </xs:annotation>
1693
2401
  </xs:enumeration>
1694
- <xs:enumeration value="t">
2402
+ <xs:enumeration value="05">
1695
2403
  <xs:annotation>
1696
- <xs:documentation>tonelada</xs:documentation>
2404
+ <xs:documentation>Servicio de Autoconsumo gravado</xs:documentation>
1697
2405
  </xs:annotation>
1698
2406
  </xs:enumeration>
1699
- <xs:enumeration value="Np">
2407
+ <xs:enumeration value="06">
1700
2408
  <xs:annotation>
1701
- <xs:documentation>neper</xs:documentation>
2409
+ <xs:documentation>Cuota de afiliación</xs:documentation>
1702
2410
  </xs:annotation>
1703
2411
  </xs:enumeration>
1704
- <xs:enumeration value="B">
2412
+ <xs:enumeration value="07">
1705
2413
  <xs:annotation>
1706
- <xs:documentation>bel</xs:documentation>
2414
+ <xs:documentation>Cuota de afiliación Exenta</xs:documentation>
1707
2415
  </xs:annotation>
1708
2416
  </xs:enumeration>
1709
- <xs:enumeration value="eV">
2417
+ <xs:enumeration value="08">
1710
2418
  <xs:annotation>
1711
- <xs:documentation>electronvolt</xs:documentation>
2419
+ <xs:documentation>Bienes de Capital para el emisor</xs:documentation>
1712
2420
  </xs:annotation>
1713
2421
  </xs:enumeration>
1714
- <xs:enumeration value="u">
2422
+ <xs:enumeration value="09">
1715
2423
  <xs:annotation>
1716
- <xs:documentation>unidad de masa atómica unificada</xs:documentation>
2424
+ <xs:documentation>Bienes de Capital para el receptor</xs:documentation>
1717
2425
  </xs:annotation>
1718
2426
  </xs:enumeration>
1719
- <xs:enumeration value="ua">
2427
+ <xs:enumeration value="10">
1720
2428
  <xs:annotation>
1721
- <xs:documentation>unidad astronómica</xs:documentation>
2429
+ <xs:documentation>Bienes de Capital para el emisor y el receptor</xs:documentation>
1722
2430
  </xs:annotation>
1723
2431
  </xs:enumeration>
1724
- <xs:enumeration value="Unid">
2432
+ <xs:enumeration value="11">
1725
2433
  <xs:annotation>
1726
- <xs:documentation>unidad</xs:documentation>
2434
+ <xs:documentation>Bienes de capital de autoconsumo exento para el emisor</xs:documentation>
1727
2435
  </xs:annotation>
1728
2436
  </xs:enumeration>
1729
- <xs:enumeration value="Gal">
2437
+ <xs:enumeration value="12">
1730
2438
  <xs:annotation>
1731
- <xs:documentation>galón</xs:documentation>
2439
+ <xs:documentation>Bienes de capital sin contraprestación a terceros exento para el emisor</xs:documentation>
1732
2440
  </xs:annotation>
1733
2441
  </xs:enumeration>
1734
- <xs:enumeration value="g">
2442
+ <xs:enumeration value="13">
1735
2443
  <xs:annotation>
1736
- <xs:documentation>gramo</xs:documentation>
2444
+ <xs:documentation>Sin contraprestación a terceros</xs:documentation>
1737
2445
  </xs:annotation>
1738
2446
  </xs:enumeration>
1739
- <xs:enumeration value="Km">
2447
+ </xs:restriction>
2448
+ </xs:simpleType>
2449
+ <xs:simpleType name="CodigoDescuentoType">
2450
+ <xs:annotation>
2451
+ <xs:documentation>Los tipos de descuentos a utilizar en el campo "Código del Descuento" del Descuento</xs:documentation>
2452
+ </xs:annotation>
2453
+ <xs:restriction base="xs:string">
2454
+ <xs:maxLength value="2"/>
2455
+ <xs:minLength value="2"/>
2456
+ <xs:enumeration value="01">
1740
2457
  <xs:annotation>
1741
- <xs:documentation>kilometro</xs:documentation>
2458
+ <xs:documentation>Descuento por Regalía</xs:documentation>
1742
2459
  </xs:annotation>
1743
2460
  </xs:enumeration>
1744
- <xs:enumeration value="Kw">
2461
+ <xs:enumeration value="02">
1745
2462
  <xs:annotation>
1746
- <xs:documentation>kilovatios</xs:documentation>
2463
+ <xs:documentation>Descuento por Regalía IVA Cobrado al Cliente</xs:documentation>
1747
2464
  </xs:annotation>
1748
2465
  </xs:enumeration>
1749
- <xs:enumeration value="ln">
2466
+ <xs:enumeration value="03">
1750
2467
  <xs:annotation>
1751
- <xs:documentation>pulgada</xs:documentation>
2468
+ <xs:documentation>Descuento por Bonificación</xs:documentation>
1752
2469
  </xs:annotation>
1753
2470
  </xs:enumeration>
1754
- <xs:enumeration value="cm">
2471
+ <xs:enumeration value="04">
1755
2472
  <xs:annotation>
1756
- <xs:documentation>centimetro</xs:documentation>
2473
+ <xs:documentation>Descuento por volumen</xs:documentation>
1757
2474
  </xs:annotation>
1758
2475
  </xs:enumeration>
1759
- <xs:enumeration value="mL">
2476
+ <xs:enumeration value="05">
1760
2477
  <xs:annotation>
1761
- <xs:documentation>mililitro</xs:documentation>
2478
+ <xs:documentation>Descuento por Temporada (estacional)</xs:documentation>
1762
2479
  </xs:annotation>
1763
2480
  </xs:enumeration>
1764
- <xs:enumeration value="mm">
2481
+ <xs:enumeration value="06">
1765
2482
  <xs:annotation>
1766
- <xs:documentation>milimetro</xs:documentation>
2483
+ <xs:documentation>Descuento promocional</xs:documentation>
1767
2484
  </xs:annotation>
1768
2485
  </xs:enumeration>
1769
- <xs:enumeration value="Oz">
2486
+ <xs:enumeration value="07">
1770
2487
  <xs:annotation>
1771
- <xs:documentation>onzas</xs:documentation>
2488
+ <xs:documentation>Descuento Comercial</xs:documentation>
1772
2489
  </xs:annotation>
1773
2490
  </xs:enumeration>
1774
- <xs:enumeration value="Otros">
2491
+ <xs:enumeration value="08">
1775
2492
  <xs:annotation>
1776
- <xs:documentation/>
2493
+ <xs:documentation>Descuento por frecuencia</xs:documentation>
1777
2494
  </xs:annotation>
1778
2495
  </xs:enumeration>
2496
+ <xs:enumeration value="09">
2497
+ <xs:annotation>
2498
+ <xs:documentation>Descuento sostenido </xs:documentation>
2499
+ </xs:annotation>
2500
+ </xs:enumeration>
2501
+ <xs:enumeration value="99">
2502
+ <xs:annotation>
2503
+ <xs:documentation>Otros descuentos</xs:documentation>
2504
+ </xs:annotation>
2505
+ </xs:enumeration>
2506
+ </xs:restriction>
2507
+ </xs:simpleType>
2508
+ <xs:simpleType name="CodigoImpuestoType">
2509
+ <xs:annotation>
2510
+ <xs:documentation>Código del impuesto: 01 Impuesto al valor agregado, 02 Impuesto Selectivo de Consumo, 03 Impuesto único a los combustivos, 04 Impuesto específico de bebidas alcohólicas, 05 Impuesto específico sobre las bebidas envasadas sin contenido alcohólico y jabones de tocador, 06 Impuesto a los productos de tabaco, 07 IVA (cálculo especial), 08 IVA Regimen de Bienes Usados (Factor), 12 Impuesto Especifico al cemento, 99 Otros</xs:documentation>
2511
+ </xs:annotation>
2512
+ <xs:restriction base="xs:string">
2513
+ <xs:minLength value="2"/>
2514
+ <xs:maxLength value="2"/>
2515
+ <xs:enumeration value="01">
2516
+ <xs:annotation>
2517
+ <xs:documentation>Impuesto al Valor Agregado</xs:documentation>
2518
+ </xs:annotation>
2519
+ </xs:enumeration>
2520
+ <xs:enumeration value="02">
2521
+ <xs:annotation>
2522
+ <xs:documentation> Impuesto Selectivo de Consumo</xs:documentation>
2523
+ </xs:annotation>
2524
+ </xs:enumeration>
2525
+ <xs:enumeration value="03">
2526
+ <xs:annotation>
2527
+ <xs:documentation>Impuesto unico a los combustivos</xs:documentation>
2528
+ </xs:annotation>
2529
+ </xs:enumeration>
2530
+ <xs:enumeration value="04">
2531
+ <xs:annotation>
2532
+ <xs:documentation>Impuesto especifico de bebidas alcohólicas</xs:documentation>
2533
+ </xs:annotation>
2534
+ </xs:enumeration>
2535
+ <xs:enumeration value="05">
2536
+ <xs:annotation>
2537
+ <xs:documentation>impuesto especifico sobre las bebidas envasadas sin contenido alcoholico y jabones de tocador</xs:documentation>
2538
+ </xs:annotation>
2539
+ </xs:enumeration>
2540
+ <xs:enumeration value="06">
2541
+ <xs:annotation>
2542
+ <xs:documentation>impuesto a los productos de tabaco</xs:documentation>
2543
+ </xs:annotation>
2544
+ </xs:enumeration>
2545
+ <xs:enumeration value="07">
2546
+ <xs:annotation>
2547
+ <xs:documentation>IVA (cálculo especial)</xs:documentation>
2548
+ </xs:annotation>
2549
+ </xs:enumeration>
2550
+ <xs:enumeration value="08">
2551
+ <xs:annotation>
2552
+ <xs:documentation>IVA Régimen de Bienes Usados (Factor)</xs:documentation>
2553
+ </xs:annotation>
2554
+ </xs:enumeration>
2555
+ <xs:enumeration value="12">
2556
+ <xs:annotation>
2557
+ <xs:documentation>Impuesto Especifico al Cemento</xs:documentation>
2558
+ </xs:annotation>
2559
+ </xs:enumeration>
2560
+ <xs:enumeration value="99">
2561
+ <xs:annotation>
2562
+ <xs:documentation>Otros</xs:documentation>
2563
+ </xs:annotation>
2564
+ </xs:enumeration>
2565
+ </xs:restriction>
2566
+ </xs:simpleType>
2567
+ <xs:simpleType name="CodigoTarifaIVAType">
2568
+ <xs:annotation>
2569
+ <xs:documentation> Cuando se trata del IVA las tarifas y códigos a utilizar son las siguientes</xs:documentation>
2570
+ </xs:annotation>
2571
+ <xs:restriction base="xs:string">
2572
+ <xs:minLength value="2"/>
2573
+ <xs:maxLength value="2"/>
2574
+ <xs:enumeration value="01">
2575
+ <xs:annotation>
2576
+ <xs:documentation>Tarifa 0% (Artículo 32, num 1, RLIVA)</xs:documentation>
2577
+ </xs:annotation>
2578
+ </xs:enumeration>
2579
+ <xs:enumeration value="02">
2580
+ <xs:annotation>
2581
+ <xs:documentation>Tarifa reducida 1%</xs:documentation>
2582
+ </xs:annotation>
2583
+ </xs:enumeration>
2584
+ <xs:enumeration value="03">
2585
+ <xs:annotation>
2586
+ <xs:documentation>Tarifa reducida 2%</xs:documentation>
2587
+ </xs:annotation>
2588
+ </xs:enumeration>
2589
+ <xs:enumeration value="04">
2590
+ <xs:annotation>
2591
+ <xs:documentation>Tarifa reducida 4%</xs:documentation>
2592
+ </xs:annotation>
2593
+ </xs:enumeration>
2594
+ <xs:enumeration value="05">
2595
+ <xs:annotation>
2596
+ <xs:documentation>Transitorio 0%</xs:documentation>
2597
+ </xs:annotation>
2598
+ </xs:enumeration>
2599
+ <xs:enumeration value="06">
2600
+ <xs:annotation>
2601
+ <xs:documentation>Transitorio 4%</xs:documentation>
2602
+ </xs:annotation>
2603
+ </xs:enumeration>
2604
+ <xs:enumeration value="07">
2605
+ <xs:annotation>
2606
+ <xs:documentation>Tarifa transitoria 8%</xs:documentation>
2607
+ </xs:annotation>
2608
+ </xs:enumeration>
2609
+ <xs:enumeration value="08">
2610
+ <xs:annotation>
2611
+ <xs:documentation>Tarifa general 13%</xs:documentation>
2612
+ </xs:annotation>
2613
+ </xs:enumeration>
2614
+ <xs:enumeration value="09">
2615
+ <xs:annotation>
2616
+ <xs:documentation>Tarifa reducida 0.5%</xs:documentation>
2617
+ </xs:annotation>
2618
+ </xs:enumeration>
2619
+ <xs:enumeration value="10">
2620
+ <xs:annotation>
2621
+ <xs:documentation>Tarifa Exenta</xs:documentation>
2622
+ </xs:annotation>
2623
+ </xs:enumeration>
2624
+ <xs:enumeration value="11">
2625
+ <xs:annotation>
2626
+ <xs:documentation>Tarifa 0% sin derecho a crédito</xs:documentation>
2627
+ </xs:annotation>
2628
+ </xs:enumeration>
2629
+ </xs:restriction>
2630
+ </xs:simpleType>
2631
+ <xs:simpleType name="TipoExoneracionType">
2632
+ <xs:annotation>
2633
+ <xs:documentation>Tipo de documento de exoneración o de autorización.</xs:documentation>
2634
+ </xs:annotation>
2635
+ <xs:restriction base="xs:string">
2636
+ <xs:minLength value="2"/>
2637
+ <xs:maxLength value="2"/>
2638
+ <xs:enumeration value="01">
2639
+ <xs:annotation>
2640
+ <xs:documentation>Compras autorizadas por la Dirección General de Tributación</xs:documentation>
2641
+ </xs:annotation>
2642
+ </xs:enumeration>
2643
+ <xs:enumeration value="02">
2644
+ <xs:annotation>
2645
+ <xs:documentation>Ventas exentas a diplomáticos</xs:documentation>
2646
+ </xs:annotation>
2647
+ </xs:enumeration>
2648
+ <xs:enumeration value="03">
2649
+ <xs:annotation>
2650
+ <xs:documentation>Autorizado por Ley Especial</xs:documentation>
2651
+ </xs:annotation>
2652
+ </xs:enumeration>
2653
+ <xs:enumeration value="04">
2654
+ <xs:annotation>
2655
+ <xs:documentation>Exenciones Dirección General de Hacienda Autorización Local Genérica</xs:documentation>
2656
+ </xs:annotation>
2657
+ </xs:enumeration>
2658
+ <xs:enumeration value="05">
2659
+ <xs:annotation>
2660
+ <xs:documentation>Exenciones Dirección General de Hacienda Transitorio V (servicios de ingeniería, arquitectura, topografía obra civil)
2661
+ </xs:documentation>
2662
+ </xs:annotation>
2663
+ </xs:enumeration>
2664
+ <xs:enumeration value="06">
2665
+ <xs:annotation>
2666
+ <xs:documentation>Servicios turísticos inscritos ante el Instituto Costarricense de Turismo (ICT)</xs:documentation>
2667
+ </xs:annotation>
2668
+ </xs:enumeration>
2669
+ <xs:enumeration value="07">
2670
+ <xs:annotation>
2671
+ <xs:documentation>Transitorio XVII (Recolección, Clasificación, almacenamiento de Reciclaje y reutilizable)</xs:documentation>
2672
+ </xs:annotation>
2673
+ </xs:enumeration>
2674
+ <xs:enumeration value="08">
2675
+ <xs:annotation>
2676
+ <xs:documentation>Exoneración a Zona Franca</xs:documentation>
2677
+ </xs:annotation>
2678
+ </xs:enumeration>
2679
+ <xs:enumeration value="09">
2680
+ <xs:annotation>
2681
+ <xs:documentation>Exoneración de servicios complementarios para la exportación articulo 11 RLIVA</xs:documentation>
2682
+ </xs:annotation>
2683
+ </xs:enumeration>
2684
+ <xs:enumeration value="10">
2685
+ <xs:annotation>
2686
+ <xs:documentation>Órgano de las corporaciones municipales</xs:documentation>
2687
+ </xs:annotation>
2688
+ </xs:enumeration>
2689
+ <xs:enumeration value="11">
2690
+ <xs:annotation>
2691
+ <xs:documentation>Exenciones Dirección General de Hacienda Autorización de Impuesto Local Concreta</xs:documentation>
2692
+ </xs:annotation>
2693
+ </xs:enumeration>
2694
+ <xs:enumeration value="99">
2695
+ <xs:annotation>
2696
+ <xs:documentation>Otros</xs:documentation>
2697
+ </xs:annotation>
2698
+ </xs:enumeration>
2699
+ </xs:restriction>
2700
+ </xs:simpleType>
2701
+ <xs:simpleType name="TipoDocOtrosCargosType">
2702
+ <xs:annotation>
2703
+ <xs:documentation>Tipo de documento otros cargos
2704
+ </xs:documentation>
2705
+ </xs:annotation>
2706
+ <xs:restriction base="xs:string">
2707
+ <xs:enumeration value="01">
2708
+ <xs:annotation>
2709
+ <xs:documentation>Contribución parafiscal</xs:documentation>
2710
+ </xs:annotation>
2711
+ </xs:enumeration>
2712
+ <xs:enumeration value="02">
2713
+ <xs:annotation>
2714
+ <xs:documentation>Timbre de la Cruz Roja</xs:documentation>
2715
+ </xs:annotation>
2716
+ </xs:enumeration>
2717
+ <xs:enumeration value="03">
2718
+ <xs:annotation>
2719
+ <xs:documentation>Timbre de Benemérito Cuerpo de Bomberos de Costa Rica</xs:documentation>
2720
+ </xs:annotation>
2721
+ </xs:enumeration>
2722
+ <xs:enumeration value="04">
2723
+ <xs:annotation>
2724
+ <xs:documentation>Cobro de un tercero</xs:documentation>
2725
+ </xs:annotation>
2726
+ </xs:enumeration>
2727
+ <xs:enumeration value="05">
2728
+ <xs:annotation>
2729
+ <xs:documentation>Costos de Exportación</xs:documentation>
2730
+ </xs:annotation>
2731
+ </xs:enumeration>
2732
+ <xs:enumeration value="06">
2733
+ <xs:annotation>
2734
+ <xs:documentation>Impuesto de servicio 10%</xs:documentation>
2735
+ </xs:annotation>
2736
+ </xs:enumeration>
2737
+ <xs:enumeration value="07">
2738
+ <xs:annotation>
2739
+ <xs:documentation>Timbre de Colegios Profesionales</xs:documentation>
2740
+ </xs:annotation>
2741
+ </xs:enumeration>
2742
+ <xs:enumeration value="08">
2743
+ <xs:annotation>
2744
+ <xs:documentation>Depósitos de Garantía</xs:documentation>
2745
+ </xs:annotation>
2746
+ </xs:enumeration>
2747
+ <xs:enumeration value="09">
2748
+ <xs:annotation>
2749
+ <xs:documentation>Multas o Penalizaciones</xs:documentation>
2750
+ </xs:annotation>
2751
+ </xs:enumeration>
2752
+ <xs:enumeration value="10">
2753
+ <xs:annotation>
2754
+ <xs:documentation>Intereses Moratorios</xs:documentation>
2755
+ </xs:annotation>
2756
+ </xs:enumeration>
2757
+ <xs:enumeration value="99">
2758
+ <xs:annotation>
2759
+ <xs:documentation>Otros Cargos</xs:documentation>
2760
+ </xs:annotation>
2761
+ </xs:enumeration>
2762
+ </xs:restriction>
2763
+ </xs:simpleType>
2764
+ <xs:simpleType name="TipoDocReferenciaType">
2765
+ <xs:restriction base="xs:string">
2766
+ <xs:minLength value="2"/>
2767
+ <xs:maxLength value="2"/>
2768
+ <xs:enumeration value="01">
2769
+ <xs:annotation>
2770
+ <xs:documentation>Factura electrónica</xs:documentation>
2771
+ </xs:annotation>
2772
+ </xs:enumeration>
2773
+ <xs:enumeration value="02">
2774
+ <xs:annotation>
2775
+ <xs:documentation>Nota de debido electrónica</xs:documentation>
2776
+ </xs:annotation>
2777
+ </xs:enumeration>
2778
+ <xs:enumeration value="03">
2779
+ <xs:annotation>
2780
+ <xs:documentation>nota de crédito electrónica</xs:documentation>
2781
+ </xs:annotation>
2782
+ </xs:enumeration>
2783
+ <xs:enumeration value="04">
2784
+ <xs:annotation>
2785
+ <xs:documentation>Tiquete electrónico</xs:documentation>
2786
+ </xs:annotation>
2787
+ </xs:enumeration>
2788
+ <xs:enumeration value="05">
2789
+ <xs:annotation>
2790
+ <xs:documentation>Nota de despacho</xs:documentation>
2791
+ </xs:annotation>
2792
+ </xs:enumeration>
2793
+ <xs:enumeration value="06">
2794
+ <xs:annotation>
2795
+ <xs:documentation>Contrato</xs:documentation>
2796
+ </xs:annotation>
2797
+ </xs:enumeration>
2798
+ <xs:enumeration value="07">
2799
+ <xs:annotation>
2800
+ <xs:documentation>Procedimiento</xs:documentation>
2801
+ </xs:annotation>
2802
+ </xs:enumeration>
2803
+ <xs:enumeration value="08">
2804
+ <xs:annotation>
2805
+ <xs:documentation>Comprobante emitido en contigencia</xs:documentation>
2806
+ </xs:annotation>
2807
+ </xs:enumeration>
2808
+ <xs:enumeration value="09">
2809
+ <xs:annotation>
2810
+ <xs:documentation>Devolución mercadería</xs:documentation>
2811
+ </xs:annotation>
2812
+ </xs:enumeration>
2813
+ <xs:enumeration value="10">
2814
+ <xs:annotation>
2815
+ <xs:documentation>Comprobante electrónico rechazado por el Ministerio de Hacienda</xs:documentation>
2816
+ </xs:annotation>
2817
+ </xs:enumeration>
2818
+ <xs:enumeration value="11">
2819
+ <xs:annotation>
2820
+ <xs:documentation>Sustituye factura rechazada por el Receptor del comprobante</xs:documentation>
2821
+ </xs:annotation>
2822
+ </xs:enumeration>
2823
+ <xs:enumeration value="12">
2824
+ <xs:annotation>
2825
+ <xs:documentation>Sustituye Factura de exportación</xs:documentation>
2826
+ </xs:annotation>
2827
+ </xs:enumeration>
2828
+ <xs:enumeration value="13">
2829
+ <xs:annotation>
2830
+ <xs:documentation>Facturación mes vencido</xs:documentation>
2831
+ </xs:annotation>
2832
+ </xs:enumeration>
2833
+ <xs:enumeration value="99">
2834
+ <xs:annotation>
2835
+ <xs:documentation>Otros</xs:documentation>
2836
+ </xs:annotation>
2837
+ </xs:enumeration>
2838
+ <xs:enumeration value="14">
2839
+ <xs:annotation>
2840
+ <xs:documentation>Comprobante aportado por contribuyente de Régimen Especial.</xs:documentation>
2841
+ </xs:annotation>
2842
+ </xs:enumeration>
2843
+ <xs:enumeration value="15">
2844
+ <xs:annotation>
2845
+ <xs:documentation>Sustituye una Factura electrónica de Compra</xs:documentation>
2846
+ </xs:annotation>
2847
+ </xs:enumeration>
2848
+ <xs:enumeration value="16">
2849
+ <xs:annotation>
2850
+ <xs:documentation>Comprobante de Proveedor No Domiciliado</xs:documentation>
2851
+ </xs:annotation>
2852
+ </xs:enumeration>
2853
+ <xs:enumeration value="17">
2854
+ <xs:annotation>
2855
+ <xs:documentation>Nota de Crédito a Factura Electrónica de Compra</xs:documentation>
2856
+ </xs:annotation>
2857
+ </xs:enumeration>
2858
+ <xs:enumeration value="18">
2859
+ <xs:annotation>
2860
+ <xs:documentation>Nota de Débito a Factura Electrónica de Compra</xs:documentation>
2861
+ </xs:annotation>
2862
+ </xs:enumeration>
2863
+ </xs:restriction>
2864
+ </xs:simpleType>
2865
+ <xs:simpleType name="CodigoReferenciaType">
2866
+ <xs:restriction base="xs:string">
2867
+ <xs:minLength value="2"/>
2868
+ <xs:maxLength value="2"/>
2869
+ <xs:enumeration value="01">
2870
+ <xs:annotation>
2871
+ <xs:documentation>Anula documento de referencia</xs:documentation>
2872
+ </xs:annotation>
2873
+ </xs:enumeration>
2874
+ <xs:enumeration value="02">
2875
+ <xs:annotation>
2876
+ <xs:documentation>Corrige texto de ocumento de referencia</xs:documentation>
2877
+ </xs:annotation>
2878
+ </xs:enumeration>
2879
+ <xs:enumeration value="04">
2880
+ <xs:annotation>
2881
+ <xs:documentation>Referencia a otro documento</xs:documentation>
2882
+ </xs:annotation>
2883
+ </xs:enumeration>
2884
+ <xs:enumeration value="05">
2885
+ <xs:annotation>
2886
+ <xs:documentation>Sustituye comprobante provisional por contigencia</xs:documentation>
2887
+ </xs:annotation>
2888
+ </xs:enumeration>
2889
+ <xs:enumeration value="06">
2890
+ <xs:annotation>
2891
+ <xs:documentation>Devolución de mercancía</xs:documentation>
2892
+ </xs:annotation>
2893
+ </xs:enumeration>
2894
+ <xs:enumeration value="07">
2895
+ <xs:annotation>
2896
+ <xs:documentation>Sustituye comprobante electrónico</xs:documentation>
2897
+ </xs:annotation>
2898
+ </xs:enumeration>
2899
+ <xs:enumeration value="08">
2900
+ <xs:annotation>
2901
+ <xs:documentation>Factura Endosada</xs:documentation>
2902
+ </xs:annotation>
2903
+ </xs:enumeration>
2904
+ <xs:enumeration value="09">
2905
+ <xs:annotation>
2906
+ <xs:documentation>Nota de crédito financiera</xs:documentation>
2907
+ </xs:annotation>
2908
+ </xs:enumeration>
2909
+ <xs:enumeration value="10">
2910
+ <xs:annotation>
2911
+ <xs:documentation>Nota de débito financiera</xs:documentation>
2912
+ </xs:annotation>
2913
+ </xs:enumeration>
2914
+ <xs:enumeration value="11">
2915
+ <xs:annotation>
2916
+ <xs:documentation>Proveedor No Domiciliado</xs:documentation>
2917
+ </xs:annotation>
2918
+ </xs:enumeration>
2919
+ <xs:enumeration value="12">
2920
+ <xs:annotation>
2921
+ <xs:documentation>Crédito por exoneración posterior a la facturación</xs:documentation>
2922
+ </xs:annotation>
2923
+ </xs:enumeration>
2924
+ <xs:enumeration value="99">
2925
+ <xs:annotation>
2926
+ <xs:documentation>Otros</xs:documentation>
2927
+ </xs:annotation>
2928
+ </xs:enumeration>
2929
+ </xs:restriction>
2930
+ </xs:simpleType>
2931
+ <xs:simpleType name="restrictedString">
2932
+ <xs:restriction base="xs:string">
2933
+ <xs:maxLength value="500"/>
1779
2934
  </xs:restriction>
1780
2935
  </xs:simpleType>
1781
2936
  </xs:schema>