gobl 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/regimes/at.json +55 -50
- data/data/regimes/be.json +55 -50
- data/data/regimes/ca.json +1 -1
- data/data/regimes/ch.json +55 -50
- data/data/regimes/co.json +113 -61
- data/data/regimes/de.json +61 -47
- data/data/regimes/el.json +204 -0
- data/data/regimes/es.json +66 -548
- data/data/regimes/fr.json +55 -50
- data/data/regimes/gb.json +59 -50
- data/data/regimes/it.json +60 -1311
- data/data/regimes/mx.json +38 -639
- data/data/regimes/nl.json +55 -50
- data/data/regimes/pl.json +103 -100
- data/data/regimes/pt.json +17 -349
- data/data/regimes/us.json +55 -50
- data/lib/generated/gobl/bill/correction_options.rb +2 -2
- data/lib/generated/gobl/bill/invoice.rb +49 -9
- data/lib/generated/gobl/bill/ordering.rb +34 -34
- data/lib/generated/gobl/bill/tax.rb +0 -5
- data/lib/generated/gobl/cbc/key_definition.rb +4 -9
- data/lib/generated/gobl/cbc/value_definition.rb +37 -0
- data/lib/generated/gobl/head/header.rb +5 -5
- data/lib/generated/gobl/head/link.rb +43 -0
- data/lib/generated/gobl/l10n/{country_code.rb → iso_country_code.rb} +3 -3
- data/lib/generated/gobl/l10n/tax_country_code.rb +277 -0
- data/lib/generated/gobl/org/address.rb +2 -3
- data/lib/generated/gobl/org/document_ref.rb +87 -0
- data/lib/generated/gobl/org/identity.rb +5 -0
- data/lib/generated/gobl/org/item.rb +2 -2
- data/lib/generated/gobl/org/name.rb +0 -2
- data/lib/generated/gobl/org/party.rb +5 -6
- data/lib/generated/gobl/org/person.rb +5 -0
- data/lib/generated/gobl/org/registration.rb +4 -0
- data/lib/generated/gobl/pay/advance.rb +5 -0
- data/lib/generated/gobl/pay/instructions.rb +5 -0
- data/lib/generated/gobl/tax/addon_def.rb +61 -0
- data/lib/generated/gobl/tax/{category.rb → category_def.rb} +11 -11
- data/lib/generated/gobl/tax/combo.rb +5 -0
- data/lib/generated/gobl/tax/correction_definition.rb +1 -1
- data/lib/generated/gobl/tax/correction_set.rb +13 -0
- data/lib/generated/gobl/tax/identity.rb +3 -3
- data/lib/generated/gobl/tax/{rate.rb → rate_def.rb} +11 -16
- data/lib/generated/gobl/tax/rate_total.rb +5 -0
- data/lib/generated/gobl/tax/{rate_value.rb → rate_value_def.rb} +4 -4
- data/lib/generated/gobl/tax/{regime.rb → regime_def.rb} +23 -13
- data/lib/generated/gobl/tax/scenario.rb +20 -10
- data/lib/generated/gobl/tax/scenario_set.rb +1 -1
- data/lib/generated/gobl/tax/source.rb +1 -1
- data/lib/generated/gobl/tax/tag_set.rb +28 -0
- data/lib/gobl/extensions/bill/invoice_helper.rb +6 -36
- data/lib/gobl/extensions/envelope_helper.rb +4 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +3 -2
- metadata +15 -11
- data/lib/generated/gobl/bill/document_reference.rb +0 -36
- data/lib/generated/gobl/bill/preceding.rb +0 -78
- data/lib/generated/gobl/cbc/code_definition.rb +0 -37
- data/lib/gobl/extensions/bill/scenario_summary.rb +0 -25
data/data/regimes/fr.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": "France",
|
5
5
|
"fr": "La France"
|
@@ -12,55 +12,60 @@
|
|
12
12
|
"currency": "EUR",
|
13
13
|
"tags": [
|
14
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
|
-
|
15
|
+
"schema": "bill/invoice",
|
16
|
+
"list": [
|
17
|
+
{
|
18
|
+
"key": "simplified",
|
19
|
+
"name": {
|
20
|
+
"de": "Vereinfachte Rechnung",
|
21
|
+
"en": "Simplified Invoice",
|
22
|
+
"es": "Factura Simplificada",
|
23
|
+
"it": "Fattura Semplificata"
|
24
|
+
},
|
25
|
+
"desc": {
|
26
|
+
"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.",
|
27
|
+
"en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
|
28
|
+
"es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
|
29
|
+
"it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
|
30
|
+
}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"key": "reverse-charge",
|
34
|
+
"name": {
|
35
|
+
"de": "Umkehr der Steuerschuld",
|
36
|
+
"en": "Reverse Charge",
|
37
|
+
"es": "Inversión del Sujeto Pasivo",
|
38
|
+
"it": "Inversione del soggetto passivo"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"key": "self-billed",
|
43
|
+
"name": {
|
44
|
+
"de": "Rechnung durch den Leistungsempfänger",
|
45
|
+
"en": "Self-billed",
|
46
|
+
"es": "Facturación por el destinatario",
|
47
|
+
"it": "Autofattura"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"key": "customer-rates",
|
52
|
+
"name": {
|
53
|
+
"de": "Kundensätze",
|
54
|
+
"en": "Customer rates",
|
55
|
+
"es": "Tarifas aplicables al destinatario",
|
56
|
+
"it": "Aliquote applicabili al destinatario"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"key": "partial",
|
61
|
+
"name": {
|
62
|
+
"de": "Teilweise",
|
63
|
+
"en": "Partial",
|
64
|
+
"es": "Parcial",
|
65
|
+
"it": "Parziale"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
]
|
64
69
|
}
|
65
70
|
],
|
66
71
|
"scenarios": [
|
data/data/regimes/gb.json
CHANGED
@@ -1,62 +1,71 @@
|
|
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": "United Kingdom"
|
5
5
|
},
|
6
6
|
"time_zone": "Europe/London",
|
7
7
|
"country": "GB",
|
8
|
+
"alt_country_codes": [
|
9
|
+
"XI",
|
10
|
+
"XU"
|
11
|
+
],
|
8
12
|
"currency": "GBP",
|
9
13
|
"tags": [
|
10
14
|
{
|
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
|
-
|
15
|
+
"schema": "bill/invoice",
|
16
|
+
"list": [
|
17
|
+
{
|
18
|
+
"key": "simplified",
|
19
|
+
"name": {
|
20
|
+
"de": "Vereinfachte Rechnung",
|
21
|
+
"en": "Simplified Invoice",
|
22
|
+
"es": "Factura Simplificada",
|
23
|
+
"it": "Fattura Semplificata"
|
24
|
+
},
|
25
|
+
"desc": {
|
26
|
+
"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.",
|
27
|
+
"en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
|
28
|
+
"es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
|
29
|
+
"it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
|
30
|
+
}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"key": "reverse-charge",
|
34
|
+
"name": {
|
35
|
+
"de": "Umkehr der Steuerschuld",
|
36
|
+
"en": "Reverse Charge",
|
37
|
+
"es": "Inversión del Sujeto Pasivo",
|
38
|
+
"it": "Inversione del soggetto passivo"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"key": "self-billed",
|
43
|
+
"name": {
|
44
|
+
"de": "Rechnung durch den Leistungsempfänger",
|
45
|
+
"en": "Self-billed",
|
46
|
+
"es": "Facturación por el destinatario",
|
47
|
+
"it": "Autofattura"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"key": "customer-rates",
|
52
|
+
"name": {
|
53
|
+
"de": "Kundensätze",
|
54
|
+
"en": "Customer rates",
|
55
|
+
"es": "Tarifas aplicables al destinatario",
|
56
|
+
"it": "Aliquote applicabili al destinatario"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"key": "partial",
|
61
|
+
"name": {
|
62
|
+
"de": "Teilweise",
|
63
|
+
"en": "Partial",
|
64
|
+
"es": "Parcial",
|
65
|
+
"it": "Parziale"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
]
|
60
69
|
}
|
61
70
|
],
|
62
71
|
"scenarios": [
|