-
Notifications
You must be signed in to change notification settings - Fork 1
/
LceSiiTypes_v10.xsd
283 lines (283 loc) · 9.61 KB
/
LceSiiTypes_v10.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Version 1, 01-08-2005 17:00
07-09-2005 16:00 Se cambia "MontoType" con el largo de los decimales de los montos a 4.
14-03-2009 16:00 Se cambia "MontoType" con el largo de 18 a 30 cifras + 4 digitos decimales. Hubo que
colocar un maximo de : 999999999999999999999999999999.9999, para que solo acepte 30 enteros y 4 digitos
-->
<xs:schema targetNamespace="http://www.sii.cl/SiiLce" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:simpleType name="RUTType">
<xs:annotation>
<xs:documentation>Rol Unico Tributario (99..99-X)</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
<xs:minLength value="3"/>
<xs:pattern value="[0-9]+-([0-9]|K)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FolioType">
<xs:annotation>
<xs:documentation>Folio de DTE - 10 digitos</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MontoType">
<xs:annotation>
<xs:documentation>Monto de 30 digitos y 4 decimales</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="34"/>
<xs:fractionDigits value="4"/>
<xs:maxInclusive value="999999999999999999999999999999.9999"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ImptoType">
<xs:annotation>
<xs:documentation>Impuestos Adicionales</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:positiveInteger">
<xs:enumeration value="14">
<xs:annotation>
<xs:documentation>IVA Margen de Comercializacion</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="15">
<xs:annotation>
<xs:documentation>IVA Retenido Total</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="16">
<xs:annotation>
<xs:documentation>IVA Retenido Parcial</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="17">
<xs:annotation>
<xs:documentation>IVA Anticipado Faenamiento Carne</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="18">
<xs:annotation>
<xs:documentation>IVA Anticipado Carne</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="19">
<xs:annotation>
<xs:documentation>IVA Anticipado Harina</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="23">
<xs:annotation>
<xs:documentation>Impuesto Art. 37 Letras a, b, c</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="24">
<xs:annotation>
<xs:documentation>Impuesto Art. 42 Ley 825/74 Letra a</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="25">
<xs:annotation>
<xs:documentation>Impuesto Art. 42 Letra c</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="26">
<xs:annotation>
<xs:documentation>Impuesto Art. 42 Letra c</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="27">
<xs:annotation>
<xs:documentation>Impuesto Art. 42 Letra d y e</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="28">
<xs:annotation>
<xs:documentation>Impuesto Especifico Diesel</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="29">
<xs:annotation>
<xs:documentation>Recuperacion Impuesto Especifico Diesel Transportistas</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="30">
<xs:annotation>
<xs:documentation>IVA Retenido Legumbres</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="31">
<xs:annotation>
<xs:documentation>IVA Retenido Silvestres</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="32">
<xs:annotation>
<xs:documentation>IVA Retenido Ganado</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="33">
<xs:annotation>
<xs:documentation>IVA Retenido Madera</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="34">
<xs:annotation>
<xs:documentation>IVA Retenido Trigo</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="35">
<xs:annotation>
<xs:documentation>Impuesto Especifico Gasolina</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="36">
<xs:annotation>
<xs:documentation>IVA Retenido Arroz</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="37">
<xs:annotation>
<xs:documentation>IVA Retenido Hidrobiologicas</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="38">
<xs:annotation>
<xs:documentation>IVA Retenido Chatarra</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="39">
<xs:annotation>
<xs:documentation>IVA Retenido PPA</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="40">
<xs:annotation>
<xs:documentation>IVA Retenido Opcional</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="44">
<xs:annotation>
<xs:documentation>Impuesto Art. 37 Letras e, f, g y h</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="45">
<xs:annotation>
<xs:documentation>Impuesto Art. 37 Letra j</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="51"/>
<xs:enumeration value="52"/>
</xs:restriction>
</xs:simpleType>
<xs:attribute name="version" type="xs:decimal" fixed="1.0"/>
<xs:simpleType name="MntImpType">
<xs:annotation>
<xs:documentation>Monto 30 digitos (> cero)</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="30"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PctType">
<xs:annotation>
<xs:documentation>Porcentaje (3 enteros y 2 decimales)</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="5"/>
<xs:fractionDigits value="2"/>
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DoctoType">
<xs:annotation>
<xs:documentation>Tipos de Documentos</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:positiveInteger">
<xs:enumeration value="30"/>
<xs:enumeration value="32"/>
<xs:enumeration value="33"/>
<xs:enumeration value="34"/>
<xs:enumeration value="35"/>
<xs:enumeration value="38"/>
<xs:enumeration value="39"/>
<xs:enumeration value="40"/>
<xs:enumeration value="41"/>
<xs:enumeration value="43"/>
<xs:enumeration value="45"/>
<xs:enumeration value="46"/>
<xs:enumeration value="55"/>
<xs:enumeration value="56"/>
<xs:enumeration value="60"/>
<xs:enumeration value="61"/>
<xs:enumeration value="101"/>
<xs:enumeration value="102"/>
<xs:enumeration value="103"/>
<xs:enumeration value="104"/>
<xs:enumeration value="105"/>
<xs:enumeration value="106"/>
<xs:enumeration value="108"/>
<xs:enumeration value="109"/>
<xs:enumeration value="900"/>
<xs:enumeration value="901"/>
<xs:enumeration value="902"/>
<xs:enumeration value="903"/>
<xs:enumeration value="904"/>
<xs:enumeration value="905"/>
<xs:enumeration value="906"/>
<xs:enumeration value="907"/>
<xs:enumeration value="909"/>
<xs:enumeration value="910"/>
<xs:enumeration value="911"/>
<xs:enumeration value="914"/>
<xs:enumeration value="918"/>
<xs:enumeration value="919"/>
<xs:enumeration value="920"/>
<xs:enumeration value="921"/>
<xs:enumeration value="922"/>
<xs:enumeration value="110"/>
<xs:enumeration value="111"/>
<xs:enumeration value="112"/>
<xs:enumeration value="924"/>
<xs:enumeration value="500"/>
<xs:enumeration value="501"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ValorType">
<xs:annotation>
<xs:documentation>Monto 30 digitos (positivo o negativo)</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer">
<xs:totalDigits value="30"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Periodo">
<xs:annotation>
<xs:documentation>lapso de tiempo. En forma AAAA-MM hasta AAAA-MM</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Inicial" type="xs:gYearMonth">
<xs:annotation>
<xs:documentation>Inicio del Periodo. En formato AAAA-MM</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Final" type="xs:gYearMonth">
<xs:annotation>
<xs:documentation>Final del Periodo. Formato AAAA-MM</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="MontoSinDecType">
<xs:annotation>
<xs:documentation>Monto 30 digitos (mayor o igual a cero)</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:nonNegativeInteger">
<xs:totalDigits value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>