gobl 0.20.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/data/regimes/at.json +160 -0
  4. data/data/regimes/be.json +169 -0
  5. data/data/regimes/ca.json +10 -1
  6. data/data/regimes/ch.json +158 -0
  7. data/data/regimes/co.json +179 -169
  8. data/data/regimes/de.json +63 -49
  9. data/data/regimes/el.json +204 -0
  10. data/data/regimes/es.json +84 -557
  11. data/data/regimes/fr.json +57 -52
  12. data/data/regimes/gb.json +67 -50
  13. data/data/regimes/gr.json +591 -0
  14. data/data/regimes/it.json +62 -1298
  15. data/data/regimes/mx.json +38 -627
  16. data/data/regimes/nl.json +63 -50
  17. data/data/regimes/pl.json +161 -101
  18. data/data/regimes/pt.json +44 -365
  19. data/data/regimes/us.json +63 -49
  20. data/lib/generated/gobl/bill/charge.rb +6 -7
  21. data/lib/generated/gobl/bill/correction_options.rb +5 -1
  22. data/lib/generated/gobl/bill/delivery.rb +0 -1
  23. data/lib/generated/gobl/bill/discount.rb +5 -6
  24. data/lib/generated/gobl/bill/invoice.rb +51 -12
  25. data/lib/generated/gobl/bill/line.rb +3 -4
  26. data/lib/generated/gobl/bill/line_charge.rb +0 -1
  27. data/lib/generated/gobl/bill/line_discount.rb +0 -1
  28. data/lib/generated/gobl/bill/ordering.rb +34 -35
  29. data/lib/generated/gobl/bill/outlay.rb +3 -4
  30. data/lib/generated/gobl/bill/payment.rb +0 -1
  31. data/lib/generated/gobl/bill/tax.rb +4 -5
  32. data/lib/generated/gobl/bill/totals.rb +0 -1
  33. data/lib/generated/gobl/cal/date.rb +0 -1
  34. data/lib/generated/gobl/cal/date_time.rb +0 -1
  35. data/lib/generated/gobl/cal/period.rb +0 -1
  36. data/lib/generated/gobl/cbc/code.rb +0 -1
  37. data/lib/generated/gobl/cbc/code_map.rb +0 -1
  38. data/lib/generated/gobl/cbc/key.rb +0 -1
  39. data/lib/generated/gobl/cbc/key_definition.rb +4 -10
  40. data/lib/generated/gobl/cbc/meta.rb +0 -1
  41. data/lib/generated/gobl/cbc/note.rb +0 -1
  42. data/lib/generated/gobl/cbc/value_definition.rb +37 -0
  43. data/lib/generated/gobl/currency/amount.rb +33 -0
  44. data/lib/generated/gobl/currency/code.rb +118 -105
  45. data/lib/generated/gobl/currency/exchange_rate.rb +17 -7
  46. data/lib/generated/gobl/dsig/digest.rb +0 -1
  47. data/lib/generated/gobl/dsig/signature.rb +0 -1
  48. data/lib/generated/gobl/envelope.rb +0 -1
  49. data/lib/generated/gobl/head/header.rb +7 -8
  50. data/lib/generated/gobl/head/link.rb +43 -0
  51. data/lib/generated/gobl/head/stamp.rb +0 -1
  52. data/lib/generated/gobl/i18n/string.rb +0 -1
  53. data/lib/generated/gobl/l10n/code.rb +0 -1
  54. data/lib/generated/gobl/l10n/{country_code.rb → iso_country_code.rb} +3 -4
  55. data/lib/generated/gobl/l10n/tax_country_code.rb +277 -0
  56. data/lib/generated/gobl/note/message.rb +5 -1
  57. data/lib/generated/gobl/org/address.rb +5 -7
  58. data/lib/generated/gobl/org/coordinates.rb +0 -1
  59. data/lib/generated/gobl/org/document_ref.rb +87 -0
  60. data/lib/generated/gobl/org/email.rb +3 -4
  61. data/lib/generated/gobl/org/identity.rb +8 -4
  62. data/lib/generated/gobl/org/image.rb +3 -4
  63. data/lib/generated/gobl/org/inbox.rb +3 -4
  64. data/lib/generated/gobl/org/item.rb +10 -6
  65. data/lib/generated/gobl/org/name.rb +3 -6
  66. data/lib/generated/gobl/org/party.rb +8 -5
  67. data/lib/generated/gobl/org/person.rb +8 -4
  68. data/lib/generated/gobl/org/registration.rb +11 -3
  69. data/lib/generated/gobl/org/telephone.rb +3 -4
  70. data/lib/generated/gobl/org/unit.rb +0 -1
  71. data/lib/generated/gobl/org/website.rb +4 -5
  72. data/lib/generated/gobl/pay/advance.rb +8 -4
  73. data/lib/generated/gobl/pay/card.rb +0 -1
  74. data/lib/generated/gobl/pay/credit_transfer.rb +0 -1
  75. data/lib/generated/gobl/pay/direct_debit.rb +0 -1
  76. data/lib/generated/gobl/pay/due_date.rb +0 -1
  77. data/lib/generated/gobl/pay/instructions.rb +5 -1
  78. data/lib/generated/gobl/pay/online.rb +12 -8
  79. data/lib/generated/gobl/pay/terms.rb +0 -1
  80. data/lib/generated/gobl/regimes/mx/food_vouchers.rb +0 -1
  81. data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +0 -1
  82. data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +0 -1
  83. data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +0 -1
  84. data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +0 -1
  85. data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +0 -2
  86. data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +11 -9
  87. data/lib/generated/gobl/schema/object.rb +0 -1
  88. data/lib/generated/gobl/tax/addon_def.rb +61 -0
  89. data/lib/generated/gobl/tax/{category.rb → category_def.rb} +11 -12
  90. data/lib/generated/gobl/tax/category_total.rb +0 -1
  91. data/lib/generated/gobl/tax/combo.rb +6 -2
  92. data/lib/generated/gobl/tax/correction_definition.rb +1 -2
  93. data/lib/generated/gobl/tax/correction_set.rb +13 -0
  94. data/lib/generated/gobl/tax/extensions.rb +0 -1
  95. data/lib/generated/gobl/tax/identity.rb +13 -19
  96. data/lib/generated/gobl/tax/{rate.rb → rate_def.rb} +11 -17
  97. data/lib/generated/gobl/tax/rate_total.rb +6 -2
  98. data/lib/generated/gobl/tax/rate_total_surcharge.rb +0 -1
  99. data/lib/generated/gobl/tax/{rate_value.rb → rate_value_def.rb} +9 -5
  100. data/lib/generated/gobl/tax/{regime.rb → regime_def.rb} +38 -24
  101. data/lib/generated/gobl/tax/scenario.rb +20 -11
  102. data/lib/generated/gobl/tax/scenario_set.rb +1 -2
  103. data/lib/generated/gobl/tax/set.rb +0 -1
  104. data/lib/generated/gobl/tax/source.rb +1 -2
  105. data/lib/generated/gobl/tax/tag_set.rb +28 -0
  106. data/lib/generated/gobl/tax/total.rb +0 -1
  107. data/lib/gobl/extensions/bill/invoice_helper.rb +6 -36
  108. data/lib/gobl/extensions/envelope_helper.rb +4 -0
  109. data/lib/gobl/version.rb +1 -1
  110. data/lib/gobl.rb +3 -2
  111. metadata +20 -12
  112. data/lib/generated/gobl/bill/document_reference.rb +0 -37
  113. data/lib/generated/gobl/bill/preceding.rb +0 -79
  114. data/lib/generated/gobl/cbc/code_definition.rb +0 -38
  115. data/lib/generated/gobl/uuid/uuid.rb +0 -17
  116. data/lib/gobl/extensions/bill/scenario_summary.rb +0 -25
data/data/regimes/es.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gobl.org/draft-0/tax/regime",
2
+ "$schema": "https://gobl.org/draft-0/tax/regime-def",
3
3
  "name": {
4
4
  "en": "Spain",
5
5
  "es": "España"
@@ -9,600 +9,152 @@
9
9
  "currency": "EUR",
10
10
  "tags": [
11
11
  {
12
- "key": "simplified",
13
- "name": {
14
- "de": "Vereinfachte Rechnung",
15
- "en": "Simplified Invoice",
16
- "es": "Factura Simplificada",
17
- "it": "Fattura Semplificata"
18
- },
19
- "desc": {
20
- "de": "Wird für B2C-Transaktionen verwendet, wenn die Kundendaten nicht verfügbar sind. Bitte wenden Sie sich an die örtlichen Behörden, um die Grenzwerte zu ermitteln.",
21
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
22
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
23
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
24
- }
25
- },
26
- {
27
- "key": "reverse-charge",
28
- "name": {
29
- "de": "Umkehr der Steuerschuld",
30
- "en": "Reverse Charge",
31
- "es": "Inversión del Sujeto Pasivo",
32
- "it": "Inversione del soggetto passivo"
33
- }
34
- },
35
- {
36
- "key": "self-billed",
37
- "name": {
38
- "de": "Rechnung durch den Leistungsempfänger",
39
- "en": "Self-billed",
40
- "es": "Facturación por el destinatario",
41
- "it": "Autofattura"
42
- }
43
- },
44
- {
45
- "key": "customer-rates",
46
- "name": {
47
- "de": "Kundensätze",
48
- "en": "Customer rates",
49
- "es": "Tarifas aplicables al destinatario",
50
- "it": "Aliquote applicabili al destinatario"
51
- }
52
- },
53
- {
54
- "key": "partial",
55
- "name": {
56
- "de": "Teilweise",
57
- "en": "Partial",
58
- "es": "Parcial",
59
- "it": "Parziale"
60
- }
61
- },
62
- {
63
- "key": "copy",
64
- "name": {
65
- "en": "Copy",
66
- "es": "Copia"
67
- }
68
- },
69
- {
70
- "key": "summary",
71
- "name": {
72
- "en": "Summary",
73
- "es": "Recapitulativa"
74
- }
75
- },
76
- {
77
- "key": "simplified-scheme",
78
- "name": {
79
- "en": "Simplified tax scheme",
80
- "es": "Contribuyente en régimen simplificado"
81
- }
82
- },
83
- {
84
- "key": "facturae",
85
- "name": {
86
- "en": "FacturaE",
87
- "es": "FacturaE"
88
- },
89
- "desc": {
90
- "en": "Invoice must comply with the FacturaE standard.",
91
- "es": "La factura debe cumplir con el estándar FacturaE."
92
- }
93
- },
94
- {
95
- "key": "ticketbai",
96
- "name": {
97
- "en": "TicketBAI",
98
- "es": "TicketBAI"
99
- },
100
- "desc": {
101
- "en": "Invoice must comply with the TicketBAI specifications.",
102
- "es": "La factura debe cumplir con el estándar TicketBAI."
103
- }
104
- },
105
- {
106
- "key": "travel-agency",
107
- "name": {
108
- "en": "Special scheme for travel agencies",
109
- "es": "Régimen especial de las agencias de viajes"
110
- }
111
- },
112
- {
113
- "key": "second-hand-goods",
114
- "name": {
115
- "en": "Special scheme for second-hand goods",
116
- "es": "Régimen especial de los bienes usados"
117
- }
118
- },
119
- {
120
- "key": "art",
121
- "name": {
122
- "en": "Special scheme of works of art",
123
- "es": "Régimen especial de los objetos de arte"
124
- }
125
- },
126
- {
127
- "key": "antiques",
128
- "name": {
129
- "en": "Special scheme of antiques and collectables",
130
- "es": "Régimen especial de las antigüedades y objetos de colección"
131
- }
132
- },
133
- {
134
- "key": "cash-basis",
135
- "name": {
136
- "en": "Special scheme on cash basis",
137
- "es": "Régimen especial del criterio de caja"
138
- }
139
- }
140
- ],
141
- "identity_types": [
142
- {
143
- "key": "fiscal",
144
- "name": {
145
- "en": "National Tax Identity",
146
- "es": "Número de Identificación Fiscal"
147
- },
148
- "map": {
149
- "ticketbai-id-type": "02"
150
- }
151
- },
152
- {
153
- "key": "passport",
154
- "name": {
155
- "en": "Passport",
156
- "es": "Pasaporte"
157
- },
158
- "map": {
159
- "ticketbai-id-type": "03"
160
- }
161
- },
162
- {
163
- "key": "foreign",
164
- "name": {
165
- "en": "National ID Card or similar from a foreign country",
166
- "es": "Documento oficial de identificación expedido por el país o territorio de residencia"
167
- },
168
- "map": {
169
- "ticketbai-id-type": "04"
170
- }
171
- },
172
- {
173
- "key": "resident",
174
- "name": {
175
- "en": "Residential permit",
176
- "es": "Certificado de residencia"
177
- },
178
- "map": {
179
- "ticketbai-id-type": "05"
180
- }
181
- },
182
- {
183
- "key": "other",
184
- "name": {
185
- "en": "An other type of source not listed",
186
- "es": "Otro documento probatorio"
187
- },
188
- "map": {
189
- "ticketbai-id-type": "06"
190
- }
191
- }
192
- ],
193
- "extensions": [
194
- {
195
- "key": "es-facturae-correction",
196
- "name": {
197
- "en": "FacturaE Change",
198
- "es": "Cambio de FacturaE"
199
- },
200
- "desc": {
201
- "en": "FacturaE requires a specific and single code that explains why the previous invoice is being corrected.",
202
- "es": "FacturaE requiere un código específico y único que explique por qué se está corrigiendo la factura anterior."
203
- },
204
- "codes": [
205
- {
206
- "code": "01",
207
- "name": {
208
- "en": "Invoice code",
209
- "es": "Número de la factura"
210
- }
211
- },
212
- {
213
- "code": "02",
214
- "name": {
215
- "en": "Invoice series",
216
- "es": "Serie de la factura"
217
- }
218
- },
219
- {
220
- "code": "03",
221
- "name": {
222
- "en": "Issue date",
223
- "es": "Fecha expedición"
224
- }
225
- },
226
- {
227
- "code": "04",
228
- "name": {
229
- "en": "Name and surnames/Corporate name - Issuer (Sender)",
230
- "es": "Nombre y apellidos/Razón Social-Emisor"
231
- }
232
- },
233
- {
234
- "code": "05",
235
- "name": {
236
- "en": "Name and surnames/Corporate name - Receiver",
237
- "es": "Nombre y apellidos/Razón Social-Receptor"
238
- }
239
- },
240
- {
241
- "code": "06",
242
- "name": {
243
- "en": "Issuer's Tax Identification Number",
244
- "es": "Identificación fiscal Emisor/obligado"
245
- }
246
- },
247
- {
248
- "code": "07",
249
- "name": {
250
- "en": "Receiver's Tax Identification Number",
251
- "es": "Identificación fiscal Receptor"
252
- }
253
- },
254
- {
255
- "code": "08",
256
- "name": {
257
- "en": "Supplier's address",
258
- "es": "Domicilio Emisor/Obligado"
259
- }
260
- },
261
- {
262
- "code": "09",
263
- "name": {
264
- "en": "Customer's address",
265
- "es": "Domicilio Receptor"
266
- }
267
- },
12
+ "schema": "bill/invoice",
13
+ "list": [
268
14
  {
269
- "code": "10",
15
+ "key": "simplified",
270
16
  "name": {
271
- "en": "Item line",
272
- "es": "Detalle Operación"
17
+ "de": "Vereinfachte Rechnung",
18
+ "en": "Simplified Invoice",
19
+ "es": "Factura Simplificada",
20
+ "it": "Fattura Semplificata"
21
+ },
22
+ "desc": {
23
+ "de": "Wird für B2C-Transaktionen verwendet, wenn die Kundendaten nicht verfügbar sind. Bitte wenden Sie sich an die örtlichen Behörden, um die Grenzwerte zu ermitteln.",
24
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
25
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
26
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
273
27
  }
274
28
  },
275
29
  {
276
- "code": "11",
30
+ "key": "reverse-charge",
277
31
  "name": {
278
- "en": "Applicable Tax Rate",
279
- "es": "Porcentaje impositivo a aplicar"
32
+ "de": "Umkehr der Steuerschuld",
33
+ "en": "Reverse Charge",
34
+ "es": "Inversión del Sujeto Pasivo",
35
+ "it": "Inversione del soggetto passivo"
280
36
  }
281
37
  },
282
38
  {
283
- "code": "12",
39
+ "key": "self-billed",
284
40
  "name": {
285
- "en": "Applicable Tax Amount",
286
- "es": "Cuota tributaria a aplicar"
41
+ "de": "Rechnung durch den Leistungsempfänger",
42
+ "en": "Self-billed",
43
+ "es": "Facturación por el destinatario",
44
+ "it": "Autofattura"
287
45
  }
288
46
  },
289
47
  {
290
- "code": "13",
48
+ "key": "customer-rates",
291
49
  "name": {
292
- "en": "Applicable Date/Period",
293
- "es": "Fecha/Periodo a aplicar"
50
+ "de": "Kundensätze",
51
+ "en": "Customer rates",
52
+ "es": "Tarifas aplicables al destinatario",
53
+ "it": "Aliquote applicabili al destinatario"
294
54
  }
295
55
  },
296
56
  {
297
- "code": "14",
57
+ "key": "partial",
298
58
  "name": {
299
- "en": "Invoice Class",
300
- "es": "Clase de factura"
59
+ "de": "Teilweise",
60
+ "en": "Partial",
61
+ "es": "Parcial",
62
+ "it": "Parziale"
301
63
  }
302
64
  },
303
65
  {
304
- "code": "15",
66
+ "key": "copy",
305
67
  "name": {
306
- "en": "Legal literals",
307
- "es": "Literales legales"
68
+ "en": "Copy",
69
+ "es": "Copia"
308
70
  }
309
71
  },
310
72
  {
311
- "code": "16",
73
+ "key": "summary",
312
74
  "name": {
313
- "en": "Taxable Base",
314
- "es": "Base imponible"
75
+ "en": "Summary",
76
+ "es": "Recapitulativa"
315
77
  }
316
78
  },
317
79
  {
318
- "code": "80",
80
+ "key": "simplified-scheme",
319
81
  "name": {
320
- "en": "Calculation of tax outputs",
321
- "es": "Cálculo de cuotas repercutidas"
82
+ "en": "Simplified tax scheme",
83
+ "es": "Contribuyente en régimen simplificado"
322
84
  }
323
85
  },
324
86
  {
325
- "code": "81",
87
+ "key": "travel-agency",
326
88
  "name": {
327
- "en": "Calculation of tax inputs",
328
- "es": "Cálculo de cuotas retenidas"
89
+ "en": "Special scheme for travel agencies",
90
+ "es": "Régimen especial de las agencias de viajes"
329
91
  }
330
92
  },
331
93
  {
332
- "code": "82",
94
+ "key": "second-hand-goods",
333
95
  "name": {
334
- "en": "Taxable Base modified due to return of packages and packaging materials",
335
- "es": "Base imponible modificada por devolución de envases / embalajes"
96
+ "en": "Special scheme for second-hand goods",
97
+ "es": "Régimen especial de los bienes usados"
336
98
  }
337
99
  },
338
100
  {
339
- "code": "83",
101
+ "key": "art",
340
102
  "name": {
341
- "en": "Taxable Base modified due to discounts and rebates",
342
- "es": "Base imponible modificada por descuentos y bonificaciones"
103
+ "en": "Special scheme of works of art",
104
+ "es": "Régimen especial de los objetos de arte"
343
105
  }
344
106
  },
345
107
  {
346
- "code": "84",
108
+ "key": "antiques",
347
109
  "name": {
348
- "en": "Taxable Base modified due to firm court ruling or administrative decision",
349
- "es": "Base imponible modificada por resolución firme, judicial o administrativa"
110
+ "en": "Special scheme of antiques and collectables",
111
+ "es": "Régimen especial de las antigüedades y objetos de colección"
350
112
  }
351
113
  },
352
114
  {
353
- "code": "85",
115
+ "key": "cash-basis",
354
116
  "name": {
355
- "en": "Taxable Base modified due to unpaid outputs where there is a judgement opening insolvency proceedings",
356
- "es": "Base imponible modificada cuotas repercutidas no satisfechas. Auto de declaración de concurso"
117
+ "en": "Special scheme on cash basis",
118
+ "es": "Régimen especial del criterio de caja"
357
119
  }
358
120
  }
359
121
  ]
122
+ }
123
+ ],
124
+ "identity_keys": [
125
+ {
126
+ "key": "passport",
127
+ "name": {
128
+ "en": "Passport",
129
+ "es": "Pasaporte"
130
+ }
360
131
  },
361
132
  {
362
- "key": "es-tbai-product",
133
+ "key": "foreign",
363
134
  "name": {
364
- "en": "TicketBAI Product Key",
365
- "es": "Clave de Producto TicketBAI"
366
- },
367
- "desc": {
368
- "en": "Product keys are used by TicketBAI to differentiate between -exported- goods\nand services. It may be useful to classify all products regardless of wether\nthey are exported or not.\n\nThere is an additional exception case for goods that are resold without modification\nwhen the supplier is in the simplified tax regime. For must purposes this special\ncase can be ignored."
369
- },
370
- "keys": [
371
- {
372
- "key": "goods",
373
- "name": {
374
- "en": "Delivery of goods",
375
- "es": "Entrega de bienes"
376
- }
377
- },
378
- {
379
- "key": "services",
380
- "name": {
381
- "en": "Provision of services",
382
- "es": "Prestacion de servicios"
383
- }
384
- },
385
- {
386
- "key": "resale",
387
- "name": {
388
- "en": "Resale of goods without modification by vendor in the simplified regime",
389
- "es": "Reventa de bienes sin modificación por vendedor en regimen simplificado"
390
- }
391
- }
392
- ]
135
+ "en": "National ID Card or similar from a foreign country",
136
+ "es": "Documento oficial de identificación expedido por el país o territorio de residencia"
137
+ }
393
138
  },
394
139
  {
395
- "key": "es-tbai-exemption",
140
+ "key": "resident",
396
141
  "name": {
397
- "en": "TicketBAI Exemption code",
398
- "es": "Código de Exención de TicketBAI"
399
- },
400
- "desc": {
401
- "en": "Codes used by TicketBAI for both \"exempt\" and \"not-subject\"\ntransactions. In the TicketBAI format these are separated,\nbut in order to simplify GOBL and be more closely aligned with\nother countries we've combined them into one."
402
- },
403
- "codes": [
404
- {
405
- "code": "E1",
406
- "name": {
407
- "en": "Exempt: pursuant to Article 20 of the Foral VAT Law",
408
- "es": "Exenta: por el artículo 20 de la Norma Foral del IVA"
409
- }
410
- },
411
- {
412
- "code": "E2",
413
- "name": {
414
- "en": "Exempt: pursuant to Article 21 of the Foral VAT Law",
415
- "es": "Exenta: por el artículo 21 de la Norma Foral del IVA"
416
- }
417
- },
418
- {
419
- "code": "E3",
420
- "name": {
421
- "en": "Exempt: pursuant to Article 22 of the Foral VAT Law",
422
- "es": "Exenta: por el artículo 22 de la Norma Foral del IVA"
423
- }
424
- },
425
- {
426
- "code": "E4",
427
- "name": {
428
- "en": "Exempt: pursuant to Articles 23 and 24 of the Foral VAT Law",
429
- "es": "Exenta: por el artículos 23 y 24 de la Norma Foral del IVA"
430
- }
431
- },
432
- {
433
- "code": "E5",
434
- "name": {
435
- "en": "Exempt: pursuant to Article 25 of the Foral VAT law",
436
- "es": "Exenta: por el artículo 25 de la Norma Foral del IVA"
437
- }
438
- },
439
- {
440
- "code": "E6",
441
- "name": {
442
- "en": "Exempt: pursuant to other reasons",
443
- "es": "Exenta: por otra causa"
444
- }
445
- },
446
- {
447
- "code": "OT",
448
- "name": {
449
- "en": "Not subject: pursuant to Article 7 of the VAT Law. Other cases of non-subject.",
450
- "es": "No sujeto: por el artículo 7 de la Ley del IVA. Otros supuestos de no sujeción."
451
- }
452
- },
453
- {
454
- "code": "RL",
455
- "name": {
456
- "en": "Not subject: pursuant to localization rules.",
457
- "es": "No sujeto: por reglas de localización."
458
- }
459
- }
460
- ]
142
+ "en": "Residential permit",
143
+ "es": "Certificado de residencia"
144
+ }
461
145
  },
462
146
  {
463
- "key": "es-tbai-correction",
147
+ "key": "other",
464
148
  "name": {
465
- "en": "TicketBAI Rectification Type Code",
466
- "es": "TicketBAI Código de Factura Rectificativa"
467
- },
468
- "desc": {
469
- "en": "Corrected or rectified invoices that need to be sent in the TicketBAI format\nrequire a specific type code to be defined alongside the preceding invoice\ndata."
470
- },
471
- "codes": [
472
- {
473
- "code": "R1",
474
- "name": {
475
- "en": "Rectified invoice: error based on law and Article 80 One, Two and Six of the Provincial Tax Law of VAT",
476
- "es": "Factura rectificativa: error fundado en derecho y Art. 80 Uno, Dos y Seis de la Norma Foral del IVA",
477
- "eu": "Faktura zuzentzailea: zuzenbidean oinarritutako akatsa eta BEZaren Foru Arauaren 80.artikuluko Bat, Bi eta Sei"
478
- }
479
- },
480
- {
481
- "code": "R2",
482
- "name": {
483
- "en": "Rectified invoice: error based on law and Article 80 Three of the Provincial Tax Law of VAT",
484
- "es": "Factura rectificativa: artículo 80 Tres de la Norma Foral del IVA",
485
- "eu": "Faktura zuzentzailea: BEZari buruzko Foru Arauko 80. artikuluko Hiru"
486
- }
487
- },
488
- {
489
- "code": "R3",
490
- "name": {
491
- "en": "Rectified invoice: error based on law and Article 80 Four of the Provincial Tax Law of VAT",
492
- "es": "Factura rectificativa: artículo 80 Cuatro de la Norma Foral del IVA",
493
- "eu": "Faktura zuzentzailea: BEZari buruzko Foru Arauko 80. artikuluko Lau"
494
- }
495
- },
496
- {
497
- "code": "R4",
498
- "name": {
499
- "en": "Rectified invoice: Other",
500
- "es": "Factura rectificativa: Resto",
501
- "eu": "Faktura zuzentzailea: Gainerakoak"
502
- }
503
- },
504
- {
505
- "code": "R5",
506
- "name": {
507
- "en": "Rectified invoice: simplified invoices",
508
- "es": "Factura rectificativa: facturas simplificadas",
509
- "eu": "Faktura zuzentzaile: faktura erraztuetan"
510
- }
511
- }
512
- ]
149
+ "en": "An other type of source not listed",
150
+ "es": "Otro documento probatorio"
151
+ }
513
152
  }
514
153
  ],
515
154
  "scenarios": [
516
155
  {
517
156
  "schema": "bill/invoice",
518
157
  "list": [
519
- {
520
- "type": [
521
- "standard",
522
- "corrective",
523
- "credit-note",
524
- "debit-note"
525
- ],
526
- "codes": {
527
- "facturae-invoice-document-type": "FC"
528
- }
529
- },
530
- {
531
- "tags": [
532
- "simplified"
533
- ],
534
- "codes": {
535
- "facturae-invoice-document-type": "FA"
536
- }
537
- },
538
- {
539
- "tags": [
540
- "self-billed"
541
- ],
542
- "codes": {
543
- "facturae-invoice-document-type": "AF"
544
- }
545
- },
546
- {
547
- "type": [
548
- "standard"
549
- ],
550
- "codes": {
551
- "facturae-invoice-class": "OO"
552
- }
553
- },
554
- {
555
- "type": [
556
- "corrective",
557
- "credit-note",
558
- "debit-note"
559
- ],
560
- "codes": {
561
- "facturae-invoice-class": "OR"
562
- }
563
- },
564
- {
565
- "tags": [
566
- "summary"
567
- ],
568
- "codes": {
569
- "facturae-invoice-class": "OC"
570
- }
571
- },
572
- {
573
- "type": [
574
- "standard"
575
- ],
576
- "tags": [
577
- "copy"
578
- ],
579
- "codes": {
580
- "facturae-invoice-class": "CO"
581
- }
582
- },
583
- {
584
- "type": [
585
- "corrective"
586
- ],
587
- "tags": [
588
- "copy"
589
- ],
590
- "codes": {
591
- "facturae-invoice-class": "CR"
592
- }
593
- },
594
- {
595
- "type": [
596
- "standard"
597
- ],
598
- "tags": [
599
- "copy",
600
- "summary"
601
- ],
602
- "codes": {
603
- "facturae-invoice-class": "CC"
604
- }
605
- },
606
158
  {
607
159
  "tags": [
608
160
  "reverse-charge"
@@ -690,13 +242,9 @@
690
242
  {
691
243
  "schema": "bill/invoice",
692
244
  "types": [
693
- "corrective",
694
245
  "credit-note",
246
+ "corrective",
695
247
  "debit-note"
696
- ],
697
- "extensions": [
698
- "es-facturae-correction",
699
- "es-tbai-correction"
700
248
  ]
701
249
  }
702
250
  ],
@@ -721,9 +269,6 @@
721
269
  "en": "Zero Rate",
722
270
  "es": "Tipo Cero"
723
271
  },
724
- "desc": {
725
- "en": "May be applied to exports and intra-community supplies."
726
- },
727
272
  "values": [
728
273
  {
729
274
  "percent": "0.0%"
@@ -855,18 +400,9 @@
855
400
  "en": "Exempt",
856
401
  "es": "Exenta"
857
402
  },
858
- "exempt": true,
859
- "extensions": [
860
- "es-tbai-exemption"
861
- ]
403
+ "exempt": true
862
404
  }
863
- ],
864
- "extensions": [
865
- "es-tbai-product"
866
- ],
867
- "map": {
868
- "facturae-tax-type-code": "01"
869
- }
405
+ ]
870
406
  },
871
407
  {
872
408
  "code": "IGIC",
@@ -915,10 +451,7 @@
915
451
  }
916
452
  ]
917
453
  }
918
- ],
919
- "map": {
920
- "facturae-tax-type-code": "03"
921
- }
454
+ ]
922
455
  },
923
456
  {
924
457
  "code": "IPSI",
@@ -929,9 +462,6 @@
929
462
  "title": {
930
463
  "en": "Production, Services, and Import Tax",
931
464
  "es": "Impuesto sobre la Producción, los Servicios y la Importación"
932
- },
933
- "map": {
934
- "facturae-tax-type-code": "02"
935
465
  }
936
466
  },
937
467
  {
@@ -1010,10 +540,7 @@
1010
540
  }
1011
541
  ]
1012
542
  }
1013
- ],
1014
- "map": {
1015
- "facturae-tax-type-code": "04"
1016
- }
543
+ ]
1017
544
  }
1018
545
  ]
1019
546
  }