Skip to content

Commit

Permalink
Adding example case
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Nov 15, 2024
1 parent 885e076 commit 44f825c
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
35 changes: 35 additions & 0 deletions examples/es/invoice-es-es-only-charges.yaml
Original file line number Diff line number Diff line change
@@ -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: "[email protected]"
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
97 changes: 97 additions & 0 deletions examples/es/out/invoice-es-es-only-charges.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
}
]
},
"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"
}
}
}

0 comments on commit 44f825c

Please sign in to comment.