gobl 0.24.1 → 0.24.3
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.
- checksums.yaml +4 -4
- data/data/addons/br-nfe-v4.json +481 -0
- data/data/addons/br-nfse-v1.json +235 -0
- data/data/addons/co-dian-v2.json +311 -0
- data/data/addons/de-xrechnung-v3.json +16 -0
- data/data/addons/de-zugferd-v2.json +16 -0
- data/data/addons/es-facturae-v3.json +359 -0
- data/data/addons/es-tbai-v1.json +225 -0
- data/data/addons/es-verifactu-v1.json +609 -0
- data/data/addons/eu-en16931-v2017.json +92 -0
- data/data/addons/fr-choruspro-v1.json +260 -0
- data/data/addons/fr-facturx-v1.json +16 -0
- data/data/addons/gr-mydata-v1.json +1495 -0
- data/data/addons/it-sdi-v1.json +1570 -0
- data/data/addons/it-ticket-v1.json +144 -0
- data/data/addons/mx-cfdi-v4.json +908 -0
- data/data/addons/pl-favat-v2.json +235 -0
- data/data/addons/pt-saft-v1.json +950 -0
- data/data/catalogues/cef.json +374 -0
- data/data/catalogues/iso.json +19 -0
- data/data/catalogues/untdid.json +10669 -0
- data/data/currency/iso.json +2378 -0
- data/data/currency/non-iso.json +128 -0
- data/data/schemas/bill/charge.json +125 -0
- data/data/schemas/bill/correction-options.json +54 -0
- data/data/schemas/bill/delivery-details.json +41 -0
- data/data/schemas/bill/delivery.json +412 -0
- data/data/schemas/bill/discount.json +137 -0
- data/data/schemas/bill/invoice.json +423 -0
- data/data/schemas/bill/line.json +433 -0
- data/data/schemas/bill/order.json +401 -0
- data/data/schemas/bill/ordering.json +107 -0
- data/data/schemas/bill/payment-details.json +36 -0
- data/data/schemas/bill/payment.json +424 -0
- data/data/schemas/bill/tax.json +45 -0
- data/data/schemas/bill/totals.json +84 -0
- data/data/schemas/cal/date-time.json +13 -0
- data/data/schemas/cal/date.json +13 -0
- data/data/schemas/cal/period.json +32 -0
- data/data/schemas/cal/time.json +13 -0
- data/data/schemas/cbc/code-map.json +16 -0
- data/data/schemas/cbc/code.json +15 -0
- data/data/schemas/cbc/definition.json +67 -0
- data/data/schemas/cbc/key.json +15 -0
- data/data/schemas/cbc/meta.json +16 -0
- data/data/schemas/cbc/source.json +37 -0
- data/data/schemas/currency/amount.json +32 -0
- data/data/schemas/currency/code.json +734 -0
- data/data/schemas/currency/exchange-rate.json +43 -0
- data/data/schemas/dsig/digest.json +27 -0
- data/data/schemas/dsig/signature.json +12 -0
- data/data/schemas/envelope.json +41 -0
- data/data/schemas/head/header.json +62 -0
- data/data/schemas/head/link.json +42 -0
- data/data/schemas/head/stamp.json +27 -0
- data/data/schemas/i18n/string.json +18 -0
- data/data/schemas/l10n/code.json +13 -0
- data/data/schemas/l10n/iso-country-code.json +1010 -0
- data/data/schemas/l10n/tax-country-code.json +1022 -0
- data/data/schemas/note/message.json +43 -0
- data/data/schemas/num/amount.json +13 -0
- data/data/schemas/num/percentage.json +13 -0
- data/data/schemas/org/address.json +105 -0
- data/data/schemas/org/attachment.json +58 -0
- data/data/schemas/org/coordinates.json +33 -0
- data/data/schemas/org/document-ref.json +117 -0
- data/data/schemas/org/email.json +37 -0
- data/data/schemas/org/identity.json +57 -0
- data/data/schemas/org/image.json +70 -0
- data/data/schemas/org/inbox.json +49 -0
- data/data/schemas/org/item.json +96 -0
- data/data/schemas/org/name.json +59 -0
- data/data/schemas/org/note.json +184 -0
- data/data/schemas/org/party.json +129 -0
- data/data/schemas/org/person.json +90 -0
- data/data/schemas/org/registration.json +66 -0
- data/data/schemas/org/telephone.json +32 -0
- data/data/schemas/org/unit.json +350 -0
- data/data/schemas/org/website.json +38 -0
- data/data/schemas/pay/advance.json +211 -0
- data/data/schemas/pay/instructions.json +245 -0
- data/data/schemas/pay/terms.json +128 -0
- data/data/schemas/regimes/mx/food-vouchers.json +111 -0
- data/data/schemas/regimes/mx/fuel-account-balance.json +179 -0
- data/data/schemas/schema/object.json +12 -0
- data/data/schemas/tax/addon-def.json +288 -0
- data/data/schemas/tax/catalogue-def.json +37 -0
- data/data/schemas/tax/extensions.json +16 -0
- data/data/schemas/tax/identity.json +45 -0
- data/data/schemas/tax/regime-def.json +513 -0
- data/data/schemas/tax/set.json +139 -0
- data/data/schemas/tax/total.json +135 -0
- data/lib/gobl/extensions/tax/addon_helper.rb +37 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +1 -0
- metadata +93 -1
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/bill/line",
|
|
4
|
+
"$ref": "#/$defs/Line",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Line": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"uuid": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"title": "UUID",
|
|
12
|
+
"description": "Universally Unique Identifier."
|
|
13
|
+
},
|
|
14
|
+
"i": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"title": "Index",
|
|
17
|
+
"description": "Line number inside the parent (calculated)",
|
|
18
|
+
"calculated": true
|
|
19
|
+
},
|
|
20
|
+
"quantity": {
|
|
21
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
22
|
+
"title": "Quantity",
|
|
23
|
+
"description": "Number of items"
|
|
24
|
+
},
|
|
25
|
+
"identifier": {
|
|
26
|
+
"$ref": "https://gobl.org/draft-0/org/identity",
|
|
27
|
+
"title": "Identifier",
|
|
28
|
+
"description": "Single identifier provided by the supplier for an object on which the\nline item is based and is not considered a universal identity. Examples\ninclude a subscription number, telephone number, meter point, etc.\nUtilize the label property to provide a description of the identifier."
|
|
29
|
+
},
|
|
30
|
+
"period": {
|
|
31
|
+
"$ref": "https://gobl.org/draft-0/cal/period",
|
|
32
|
+
"title": "Period",
|
|
33
|
+
"description": "A period of time relevant to when the service or item is delivered."
|
|
34
|
+
},
|
|
35
|
+
"order": {
|
|
36
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
37
|
+
"title": "Order Reference",
|
|
38
|
+
"description": "Order reference for a specific line within a purchase order provided by the buyer."
|
|
39
|
+
},
|
|
40
|
+
"cost": {
|
|
41
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
42
|
+
"title": "Cost Reference",
|
|
43
|
+
"description": "Buyer accounting reference cost code to associate with the line."
|
|
44
|
+
},
|
|
45
|
+
"item": {
|
|
46
|
+
"$ref": "https://gobl.org/draft-0/org/item",
|
|
47
|
+
"title": "Item",
|
|
48
|
+
"description": "Details about the item, service or good, that is being sold"
|
|
49
|
+
},
|
|
50
|
+
"breakdown": {
|
|
51
|
+
"items": {
|
|
52
|
+
"$ref": "#/$defs/SubLine"
|
|
53
|
+
},
|
|
54
|
+
"type": "array",
|
|
55
|
+
"title": "Breakdown",
|
|
56
|
+
"description": "Breakdown of the line item for more detailed information. The sum of all lines\nwill be used for the item price."
|
|
57
|
+
},
|
|
58
|
+
"sum": {
|
|
59
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
60
|
+
"title": "Sum",
|
|
61
|
+
"description": "Result of quantity multiplied by the item's price (calculated)",
|
|
62
|
+
"calculated": true
|
|
63
|
+
},
|
|
64
|
+
"discounts": {
|
|
65
|
+
"items": {
|
|
66
|
+
"$ref": "#/$defs/LineDiscount"
|
|
67
|
+
},
|
|
68
|
+
"type": "array",
|
|
69
|
+
"title": "Discounts",
|
|
70
|
+
"description": "Discounts applied to this line"
|
|
71
|
+
},
|
|
72
|
+
"charges": {
|
|
73
|
+
"items": {
|
|
74
|
+
"$ref": "#/$defs/LineCharge"
|
|
75
|
+
},
|
|
76
|
+
"type": "array",
|
|
77
|
+
"title": "Charges",
|
|
78
|
+
"description": "Charges applied to this line"
|
|
79
|
+
},
|
|
80
|
+
"taxes": {
|
|
81
|
+
"$ref": "https://gobl.org/draft-0/tax/set",
|
|
82
|
+
"title": "Taxes",
|
|
83
|
+
"description": "Map of taxes to be applied and used in the invoice totals"
|
|
84
|
+
},
|
|
85
|
+
"total": {
|
|
86
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
87
|
+
"title": "Total",
|
|
88
|
+
"description": "Total line amount after applying discounts to the sum (calculated).",
|
|
89
|
+
"calculated": true
|
|
90
|
+
},
|
|
91
|
+
"substituted": {
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/$defs/SubLine"
|
|
94
|
+
},
|
|
95
|
+
"type": "array",
|
|
96
|
+
"title": "Substituted",
|
|
97
|
+
"description": "List of substituted lines. Useful for deliveries or corrective documents in order\nto indicate to the recipient which of the requested lines are being replaced.\nThis is for purely informative purposes, and will not be used for calculations."
|
|
98
|
+
},
|
|
99
|
+
"seller": {
|
|
100
|
+
"$ref": "https://gobl.org/draft-0/org/party",
|
|
101
|
+
"title": "Seller",
|
|
102
|
+
"description": "Seller of the item if different from the supplier or ordering seller. This can be\nuseful for marketplace or drop-ship scenarios in locations that require the\noriginal seller to be indicated."
|
|
103
|
+
},
|
|
104
|
+
"notes": {
|
|
105
|
+
"items": {
|
|
106
|
+
"$ref": "https://gobl.org/draft-0/org/note"
|
|
107
|
+
},
|
|
108
|
+
"type": "array",
|
|
109
|
+
"title": "Notes",
|
|
110
|
+
"description": "Set of specific notes for this line that may be required for\nclarification."
|
|
111
|
+
},
|
|
112
|
+
"ext": {
|
|
113
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
114
|
+
"title": "Extensions",
|
|
115
|
+
"description": "Extension codes that apply to the line"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": [
|
|
120
|
+
"i",
|
|
121
|
+
"quantity",
|
|
122
|
+
"item"
|
|
123
|
+
],
|
|
124
|
+
"description": "Line is a single row in an invoice."
|
|
125
|
+
},
|
|
126
|
+
"LineCharge": {
|
|
127
|
+
"properties": {
|
|
128
|
+
"key": {
|
|
129
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
130
|
+
"anyOf": [
|
|
131
|
+
{
|
|
132
|
+
"const": "stamp-duty",
|
|
133
|
+
"title": "Stamp Duty"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"const": "outlay",
|
|
137
|
+
"title": "Outlay"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"const": "tax",
|
|
141
|
+
"title": "Tax"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"const": "customs",
|
|
145
|
+
"title": "Customs"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"const": "delivery",
|
|
149
|
+
"title": "Delivery"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"const": "packing",
|
|
153
|
+
"title": "Packing"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"const": "handling",
|
|
157
|
+
"title": "Handling"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"const": "insurance",
|
|
161
|
+
"title": "Insurance"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"const": "storage",
|
|
165
|
+
"title": "Storage"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"const": "admin",
|
|
169
|
+
"title": "Administration"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"const": "cleaning",
|
|
173
|
+
"title": "Cleaning"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
|
|
177
|
+
"title": "Other"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"title": "Key",
|
|
181
|
+
"description": "Key for grouping or identifying charges for tax purposes. A suggested list of\nkeys is provided, but these are for reference only and may be extended by\nthe issuer."
|
|
182
|
+
},
|
|
183
|
+
"code": {
|
|
184
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
185
|
+
"title": "Code",
|
|
186
|
+
"description": "Reference or ID for this charge defined by the issuer"
|
|
187
|
+
},
|
|
188
|
+
"reason": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"title": "Reason",
|
|
191
|
+
"description": "Text description as to why the charge was applied"
|
|
192
|
+
},
|
|
193
|
+
"base": {
|
|
194
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
195
|
+
"title": "Base",
|
|
196
|
+
"description": "Base for percent calculations instead of the line's sum"
|
|
197
|
+
},
|
|
198
|
+
"percent": {
|
|
199
|
+
"$ref": "https://gobl.org/draft-0/num/percentage",
|
|
200
|
+
"title": "Percent",
|
|
201
|
+
"description": "Percentage of base or parent line's sum"
|
|
202
|
+
},
|
|
203
|
+
"quantity": {
|
|
204
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
205
|
+
"title": "Quantity",
|
|
206
|
+
"description": "Quantity of units to apply the charge to when using the rate instead of\nthe line's quantity."
|
|
207
|
+
},
|
|
208
|
+
"unit": {
|
|
209
|
+
"$ref": "https://gobl.org/draft-0/org/unit",
|
|
210
|
+
"title": "Unit",
|
|
211
|
+
"description": "Unit to associate with the quantity when using the rate."
|
|
212
|
+
},
|
|
213
|
+
"rate": {
|
|
214
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
215
|
+
"title": "Rate",
|
|
216
|
+
"description": "Rate defines a price per unit to use instead of the percentage."
|
|
217
|
+
},
|
|
218
|
+
"amount": {
|
|
219
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
220
|
+
"title": "Amount",
|
|
221
|
+
"description": "Fixed or resulting charge amount to apply (calculated if percent present).",
|
|
222
|
+
"calculated": true
|
|
223
|
+
},
|
|
224
|
+
"ext": {
|
|
225
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
226
|
+
"title": "Extensions",
|
|
227
|
+
"description": "Extension codes that apply to the charge"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"type": "object",
|
|
231
|
+
"required": [
|
|
232
|
+
"amount"
|
|
233
|
+
],
|
|
234
|
+
"description": "LineCharge represents an amount added to the line, and will be applied before taxes."
|
|
235
|
+
},
|
|
236
|
+
"LineDiscount": {
|
|
237
|
+
"properties": {
|
|
238
|
+
"key": {
|
|
239
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
240
|
+
"anyOf": [
|
|
241
|
+
{
|
|
242
|
+
"const": "early-completion",
|
|
243
|
+
"title": "Bonus for works ahead of schedule"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"const": "military",
|
|
247
|
+
"title": "Military Discount"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"const": "work-accident",
|
|
251
|
+
"title": "Work Accident Discount"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"const": "special-agreement",
|
|
255
|
+
"title": "Special Agreement Discount"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"const": "production-error",
|
|
259
|
+
"title": "Production Error Discount"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"const": "new-outlet",
|
|
263
|
+
"title": "New Outlet Discount"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"const": "sample",
|
|
267
|
+
"title": "Sample Discount"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"const": "end-of-range",
|
|
271
|
+
"title": "End of Range Discount"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"const": "incoterm",
|
|
275
|
+
"title": "Incoterm Discount"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"const": "pos-threshold",
|
|
279
|
+
"title": "Point of Sale Threshold Discount"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"const": "special-rebate",
|
|
283
|
+
"title": "Special Rebate"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"const": "temporary",
|
|
287
|
+
"title": "Temporary"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"const": "standard",
|
|
291
|
+
"title": "Standard"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"const": "yearly-turnover",
|
|
295
|
+
"title": "Yearly Turnover"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
|
|
299
|
+
"title": "Other"
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"title": "Key",
|
|
303
|
+
"description": "Key for identifying the type of discount being applied."
|
|
304
|
+
},
|
|
305
|
+
"code": {
|
|
306
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
307
|
+
"title": "Code",
|
|
308
|
+
"description": "Code or reference for this discount defined by the issuer"
|
|
309
|
+
},
|
|
310
|
+
"reason": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"title": "Reason",
|
|
313
|
+
"description": "Text description as to why the discount was applied"
|
|
314
|
+
},
|
|
315
|
+
"base": {
|
|
316
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
317
|
+
"title": "Base",
|
|
318
|
+
"description": "Base for percent calculations instead of the line's sum."
|
|
319
|
+
},
|
|
320
|
+
"percent": {
|
|
321
|
+
"$ref": "https://gobl.org/draft-0/num/percentage",
|
|
322
|
+
"title": "Percent",
|
|
323
|
+
"description": "Percentage to apply to the base or line sum to calculate the discount amount"
|
|
324
|
+
},
|
|
325
|
+
"amount": {
|
|
326
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
327
|
+
"title": "Amount",
|
|
328
|
+
"description": "Fixed discount amount to apply (calculated if percent present)",
|
|
329
|
+
"calculated": true
|
|
330
|
+
},
|
|
331
|
+
"ext": {
|
|
332
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
333
|
+
"title": "Extensions",
|
|
334
|
+
"description": "Extension codes that apply to the discount"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"type": "object",
|
|
338
|
+
"required": [
|
|
339
|
+
"amount"
|
|
340
|
+
],
|
|
341
|
+
"description": "LineDiscount represents an amount deducted from the line, and will be applied before taxes."
|
|
342
|
+
},
|
|
343
|
+
"SubLine": {
|
|
344
|
+
"properties": {
|
|
345
|
+
"uuid": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"format": "uuid",
|
|
348
|
+
"title": "UUID",
|
|
349
|
+
"description": "Universally Unique Identifier."
|
|
350
|
+
},
|
|
351
|
+
"i": {
|
|
352
|
+
"type": "integer",
|
|
353
|
+
"title": "Index",
|
|
354
|
+
"description": "Line number inside the parent (calculated)",
|
|
355
|
+
"calculated": true
|
|
356
|
+
},
|
|
357
|
+
"quantity": {
|
|
358
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
359
|
+
"title": "Quantity",
|
|
360
|
+
"description": "Number of items"
|
|
361
|
+
},
|
|
362
|
+
"identifier": {
|
|
363
|
+
"$ref": "https://gobl.org/draft-0/org/identity",
|
|
364
|
+
"title": "Identifier",
|
|
365
|
+
"description": "Single identifier provided by the supplier for an object on which the\nline item is based and is not considered a universal identity. Examples\ninclude a subscription number, telephone number, meter point, etc.\nUtilize the label property to provide a description of the identifier."
|
|
366
|
+
},
|
|
367
|
+
"period": {
|
|
368
|
+
"$ref": "https://gobl.org/draft-0/cal/period",
|
|
369
|
+
"title": "Period",
|
|
370
|
+
"description": "A period of time relevant to when the service or item is delivered."
|
|
371
|
+
},
|
|
372
|
+
"order": {
|
|
373
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
374
|
+
"title": "Order Reference",
|
|
375
|
+
"description": "Order reference for a specific line within a purchase order provided by the buyer."
|
|
376
|
+
},
|
|
377
|
+
"cost": {
|
|
378
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
379
|
+
"title": "Cost Reference",
|
|
380
|
+
"description": "Buyer accounting reference cost code to associate with the line."
|
|
381
|
+
},
|
|
382
|
+
"item": {
|
|
383
|
+
"$ref": "https://gobl.org/draft-0/org/item",
|
|
384
|
+
"title": "Item",
|
|
385
|
+
"description": "Details about the item, service or good, that is being sold"
|
|
386
|
+
},
|
|
387
|
+
"sum": {
|
|
388
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
389
|
+
"title": "Sum",
|
|
390
|
+
"description": "Result of quantity multiplied by the item's price (calculated)",
|
|
391
|
+
"calculated": true
|
|
392
|
+
},
|
|
393
|
+
"discounts": {
|
|
394
|
+
"items": {
|
|
395
|
+
"$ref": "#/$defs/LineDiscount"
|
|
396
|
+
},
|
|
397
|
+
"type": "array",
|
|
398
|
+
"title": "Discounts",
|
|
399
|
+
"description": "Discounts applied to this sub-line"
|
|
400
|
+
},
|
|
401
|
+
"charges": {
|
|
402
|
+
"items": {
|
|
403
|
+
"$ref": "#/$defs/LineCharge"
|
|
404
|
+
},
|
|
405
|
+
"type": "array",
|
|
406
|
+
"title": "Charges",
|
|
407
|
+
"description": "Charges applied to this sub-line"
|
|
408
|
+
},
|
|
409
|
+
"total": {
|
|
410
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
411
|
+
"title": "Total",
|
|
412
|
+
"description": "Total sub-line amount after applying discounts to the sum (calculated).",
|
|
413
|
+
"calculated": true
|
|
414
|
+
},
|
|
415
|
+
"notes": {
|
|
416
|
+
"items": {
|
|
417
|
+
"$ref": "https://gobl.org/draft-0/org/note"
|
|
418
|
+
},
|
|
419
|
+
"type": "array",
|
|
420
|
+
"title": "Notes",
|
|
421
|
+
"description": "Set of specific notes for this sub-line that may be required for\nclarification."
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"type": "object",
|
|
425
|
+
"required": [
|
|
426
|
+
"i",
|
|
427
|
+
"quantity",
|
|
428
|
+
"item"
|
|
429
|
+
],
|
|
430
|
+
"description": "SubLine provides a simplified line that can be embedded inside other lines to provide a more detailed breakdown of the items being sold or substituted."
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|