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/de.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
|
"de": "Deutschland",
|
5
5
|
"en": "Germany"
|
@@ -9,54 +9,68 @@
|
|
9
9
|
"currency": "EUR",
|
10
10
|
"tags": [
|
11
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
|
-
|
12
|
+
"schema": "bill/invoice",
|
13
|
+
"list": [
|
14
|
+
{
|
15
|
+
"key": "simplified",
|
16
|
+
"name": {
|
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."
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"key": "reverse-charge",
|
31
|
+
"name": {
|
32
|
+
"de": "Umkehr der Steuerschuld",
|
33
|
+
"en": "Reverse Charge",
|
34
|
+
"es": "Inversión del Sujeto Pasivo",
|
35
|
+
"it": "Inversione del soggetto passivo"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"key": "self-billed",
|
40
|
+
"name": {
|
41
|
+
"de": "Rechnung durch den Leistungsempfänger",
|
42
|
+
"en": "Self-billed",
|
43
|
+
"es": "Facturación por el destinatario",
|
44
|
+
"it": "Autofattura"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"key": "customer-rates",
|
49
|
+
"name": {
|
50
|
+
"de": "Kundensätze",
|
51
|
+
"en": "Customer rates",
|
52
|
+
"es": "Tarifas aplicables al destinatario",
|
53
|
+
"it": "Aliquote applicabili al destinatario"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"key": "partial",
|
58
|
+
"name": {
|
59
|
+
"de": "Teilweise",
|
60
|
+
"en": "Partial",
|
61
|
+
"es": "Parcial",
|
62
|
+
"it": "Parziale"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
]
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"identity_keys": [
|
53
69
|
{
|
54
|
-
"key": "
|
70
|
+
"key": "de-tax-number",
|
55
71
|
"name": {
|
56
|
-
"de": "
|
57
|
-
"en": "
|
58
|
-
"es": "Parcial",
|
59
|
-
"it": "Parziale"
|
72
|
+
"de": "Steuernummer",
|
73
|
+
"en": "Tax Number"
|
60
74
|
}
|
61
75
|
}
|
62
76
|
],
|
@@ -0,0 +1,204 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/regime-def",
|
3
|
+
"name": {
|
4
|
+
"el": "Ελλάδα",
|
5
|
+
"en": "Greece"
|
6
|
+
},
|
7
|
+
"time_zone": "Europe/Athens",
|
8
|
+
"country": "EL",
|
9
|
+
"alt_country_codes": [
|
10
|
+
"GR"
|
11
|
+
],
|
12
|
+
"currency": "EUR",
|
13
|
+
"calculator_rounding_rule": "round-then-sum",
|
14
|
+
"tags": [
|
15
|
+
{
|
16
|
+
"schema": "bill/invoice",
|
17
|
+
"list": [
|
18
|
+
{
|
19
|
+
"key": "simplified",
|
20
|
+
"name": {
|
21
|
+
"de": "Vereinfachte Rechnung",
|
22
|
+
"en": "Simplified Invoice",
|
23
|
+
"es": "Factura Simplificada",
|
24
|
+
"it": "Fattura Semplificata"
|
25
|
+
},
|
26
|
+
"desc": {
|
27
|
+
"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.",
|
28
|
+
"en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
|
29
|
+
"es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
|
30
|
+
"it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"key": "reverse-charge",
|
35
|
+
"name": {
|
36
|
+
"de": "Umkehr der Steuerschuld",
|
37
|
+
"en": "Reverse Charge",
|
38
|
+
"es": "Inversión del Sujeto Pasivo",
|
39
|
+
"it": "Inversione del soggetto passivo"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"key": "self-billed",
|
44
|
+
"name": {
|
45
|
+
"de": "Rechnung durch den Leistungsempfänger",
|
46
|
+
"en": "Self-billed",
|
47
|
+
"es": "Facturación por el destinatario",
|
48
|
+
"it": "Autofattura"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"key": "customer-rates",
|
53
|
+
"name": {
|
54
|
+
"de": "Kundensätze",
|
55
|
+
"en": "Customer rates",
|
56
|
+
"es": "Tarifas aplicables al destinatario",
|
57
|
+
"it": "Aliquote applicabili al destinatario"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"key": "partial",
|
62
|
+
"name": {
|
63
|
+
"de": "Teilweise",
|
64
|
+
"en": "Partial",
|
65
|
+
"es": "Parcial",
|
66
|
+
"it": "Parziale"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"scenarios": [
|
73
|
+
{
|
74
|
+
"schema": "bill/invoice",
|
75
|
+
"list": [
|
76
|
+
{
|
77
|
+
"tags": [
|
78
|
+
"reverse-charge"
|
79
|
+
],
|
80
|
+
"note": {
|
81
|
+
"key": "legal",
|
82
|
+
"src": "reverse-charge",
|
83
|
+
"text": "Reverse Charge / Αντίστροφη φόρτιση"
|
84
|
+
}
|
85
|
+
}
|
86
|
+
]
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"corrections": [
|
90
|
+
{
|
91
|
+
"schema": "bill/invoice",
|
92
|
+
"types": [
|
93
|
+
"credit-note"
|
94
|
+
],
|
95
|
+
"stamps": [
|
96
|
+
"iapr-mark"
|
97
|
+
]
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"categories": [
|
101
|
+
{
|
102
|
+
"code": "VAT",
|
103
|
+
"name": {
|
104
|
+
"el": "ΦΠΑ",
|
105
|
+
"en": "VAT"
|
106
|
+
},
|
107
|
+
"title": {
|
108
|
+
"el": "Φόρος προστιθέμενης αξίας",
|
109
|
+
"en": "Value Added Tax"
|
110
|
+
},
|
111
|
+
"rates": [
|
112
|
+
{
|
113
|
+
"key": "standard",
|
114
|
+
"name": {
|
115
|
+
"el": "Κανονικός συντελεστής",
|
116
|
+
"en": "Standard rate"
|
117
|
+
},
|
118
|
+
"values": [
|
119
|
+
{
|
120
|
+
"percent": "24%"
|
121
|
+
}
|
122
|
+
]
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"key": "reduced",
|
126
|
+
"name": {
|
127
|
+
"el": "Μειωμένος συντελεστής",
|
128
|
+
"en": "Reduced rate"
|
129
|
+
},
|
130
|
+
"values": [
|
131
|
+
{
|
132
|
+
"percent": "13%"
|
133
|
+
}
|
134
|
+
]
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"key": "super-reduced",
|
138
|
+
"name": {
|
139
|
+
"el": "Υπερμειωμένος συντελεστής",
|
140
|
+
"en": "Super-reduced rate"
|
141
|
+
},
|
142
|
+
"values": [
|
143
|
+
{
|
144
|
+
"percent": "6%"
|
145
|
+
}
|
146
|
+
]
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"key": "standard+island",
|
150
|
+
"name": {
|
151
|
+
"el": "Κανονικός συντελεστής (Νησί)",
|
152
|
+
"en": "Standard rate (Island)"
|
153
|
+
},
|
154
|
+
"values": [
|
155
|
+
{
|
156
|
+
"percent": "17%"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"key": "reduced+island",
|
162
|
+
"name": {
|
163
|
+
"el": "Μειωμένος συντελεστής (Νησί)",
|
164
|
+
"en": "Reduced rate (Island)"
|
165
|
+
},
|
166
|
+
"values": [
|
167
|
+
{
|
168
|
+
"percent": "9%"
|
169
|
+
}
|
170
|
+
]
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"key": "super-reduced+island",
|
174
|
+
"name": {
|
175
|
+
"el": "Υπερμειωμένος συντελεστής (Νησί)",
|
176
|
+
"en": "Super-reduced rate (Island)"
|
177
|
+
},
|
178
|
+
"values": [
|
179
|
+
{
|
180
|
+
"percent": "4%"
|
181
|
+
}
|
182
|
+
]
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"key": "exempt",
|
186
|
+
"name": {
|
187
|
+
"el": "Απαλλαγή",
|
188
|
+
"en": "Exempt"
|
189
|
+
},
|
190
|
+
"exempt": true
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"sources": [
|
194
|
+
{
|
195
|
+
"title": {
|
196
|
+
"el": "Φόρος Προστιθέμενης Αξίας/Φόρος Αγαθών και Υπηρεσιών (ΦΠΑ/GST) (1976-2023)",
|
197
|
+
"en": "Value Added Tax/Goods and Services Tax (VAT/GST) (1976-2023)"
|
198
|
+
},
|
199
|
+
"url": "https://www.oecd.org/tax/tax-policy/tax-database/"
|
200
|
+
}
|
201
|
+
]
|
202
|
+
}
|
203
|
+
]
|
204
|
+
}
|