diff --git a/examples/es/invoice-es-es-only-charges.yaml b/examples/es/invoice-es-es-only-charges.yaml new file mode 100644 index 00000000..689eef53 --- /dev/null +++ b/examples/es/invoice-es-es-only-charges.yaml @@ -0,0 +1,35 @@ +$schema: "https://gobl.org/draft-0/bill/invoice" +$addons: ["es-facturae-v3"] +uuid: "3aea7b56-59d8-4beb-90bd-f8f280d852a0" +currency: "EUR" +issue_date: "2024-11-15" +series: "SAMPLE" +code: "001" + +supplier: + tax_id: + country: "ES" + code: "B98602642" # random + name: "Provide One S.L." + emails: + - addr: "billing@example.com" + addresses: + - num: "42" + street: "Calle Pradillo" + locality: "Madrid" + region: "Madrid" + code: "28002" + country: "ES" + +customer: + tax_id: + country: "ES" + code: "54387763P" + name: "Sample Consumer" + +charges: + - reason: "A charge not related to a product" + amount: "50.00" + taxes: + - cat: VAT + rate: standard diff --git a/examples/es/out/invoice-es-es-only-charges.json b/examples/es/out/invoice-es-es-only-charges.json new file mode 100644 index 00000000..1aaabe91 --- /dev/null +++ b/examples/es/out/invoice-es-es-only-charges.json @@ -0,0 +1,97 @@ +{ + "$schema": "https://gobl.org/draft-0/envelope", + "head": { + "uuid": "8a51fd30-2a27-11ee-be56-0242ac120002", + "dig": { + "alg": "sha256", + "val": "3e611352aff72a27ab67167092eb70ef6dd7a291d9928744567c070368fe0551" + } + }, + "doc": { + "$schema": "https://gobl.org/draft-0/bill/invoice", + "$regime": "ES", + "$addons": [ + "es-facturae-v3" + ], + "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", + "type": "standard", + "series": "SAMPLE", + "code": "001", + "issue_date": "2024-11-15", + "currency": "EUR", + "tax": { + "ext": { + "es-facturae-doc-type": "FC", + "es-facturae-invoice-class": "OO" + } + }, + "supplier": { + "name": "Provide One S.L.", + "tax_id": { + "country": "ES", + "code": "B98602642" + }, + "addresses": [ + { + "num": "42", + "street": "Calle Pradillo", + "locality": "Madrid", + "region": "Madrid", + "code": "28002", + "country": "ES" + } + ], + "emails": [ + { + "addr": "billing@example.com" + } + ] + }, + "customer": { + "name": "Sample Consumer", + "tax_id": { + "country": "ES", + "code": "54387763P" + } + }, + "charges": [ + { + "i": 1, + "reason": "A charge not related to a product", + "amount": "50.00", + "taxes": [ + { + "cat": "VAT", + "rate": "standard", + "percent": "21.0%" + } + ] + } + ], + "totals": { + "sum": "0.00", + "charge": "50.00", + "total": "50.00", + "taxes": { + "categories": [ + { + "code": "VAT", + "rates": [ + { + "key": "standard", + "base": "50.00", + "percent": "21.0%", + "amount": "10.50" + } + ], + "amount": "10.50" + } + ], + "sum": "10.50" + }, + "tax": "10.50", + "total_with_tax": "60.50", + "payable": "60.50" + } + } +} \ No newline at end of file