Skip to content

Commit

Permalink
Add examples for different tax rates
Browse files Browse the repository at this point in the history
  • Loading branch information
noplisu committed Apr 23, 2024
1 parent e8af047 commit cedb0f9
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 0 deletions.
42 changes: 42 additions & 0 deletions regimes/pl/examples/invoice-tax-exempt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
$schema: "https://gobl.org/draft-0/bill/invoice"
currency: "PLN"
issue_date: "2023-12-20"
code: "SAMPLE-001"

supplier:
tax_id:
country: "PL"
code: "9876543210"
name: "Provide One S.L."
emails:
- addr: "[email protected]"
addresses:
- num: "42"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

customer:
tax_id:
country: "PL"
code: "1234567788"
name: "Sample Consumer"
addresses:
- num: "43"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

lines:
- quantity: 1
item:
name: "Development services"
price: "1.00"
unit: "h"
taxes:
- cat: VAT
rate: exempt
42 changes: 42 additions & 0 deletions regimes/pl/examples/invoice-tax-not-applicable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
$schema: "https://gobl.org/draft-0/bill/invoice"
currency: "PLN"
issue_date: "2023-12-20"
code: "SAMPLE-001"

supplier:
tax_id:
country: "PL"
code: "9876543210"
name: "Provide One S.L."
emails:
- addr: "[email protected]"
addresses:
- num: "42"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

customer:
tax_id:
country: "PL"
code: "1234567788"
name: "Sample Consumer"
addresses:
- num: "43"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

lines:
- quantity: 1
item:
name: "Development services"
price: "1.00"
unit: "h"
taxes:
- cat: VAT
rate: np
42 changes: 42 additions & 0 deletions regimes/pl/examples/invoice-taxi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
$schema: "https://gobl.org/draft-0/bill/invoice"
currency: "PLN"
issue_date: "2023-12-20"
code: "SAMPLE-001"

supplier:
tax_id:
country: "PL"
code: "9876543210"
name: "Provide One S.L."
emails:
- addr: "[email protected]"
addresses:
- num: "42"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

customer:
tax_id:
country: "PL"
code: "1234567788"
name: "Sample Consumer"
addresses:
- num: "43"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

lines:
- quantity: 1
item:
name: "Transport service"
price: "1.00"
unit: "trip"
taxes:
- cat: VAT
rate: special
42 changes: 42 additions & 0 deletions regimes/pl/examples/invoice-zero.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
$schema: "https://gobl.org/draft-0/bill/invoice"
currency: "PLN"
issue_date: "2023-12-20"
code: "SAMPLE-001"

supplier:
tax_id:
country: "PL"
code: "9876543210"
name: "Provide One S.L."
emails:
- addr: "[email protected]"
addresses:
- num: "42"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

customer:
tax_id:
country: "PL"
code: "1234567788"
name: "Sample Consumer"
addresses:
- num: "43"
street: "Calle Pradillo"
locality: "Madrid"
region: "Madrid"
code: "00-015"
country: "PL"

lines:
- quantity: 1
item:
name: "Transport of computer equipment for educational institutions"
price: "1.00"
unit: "trip"
taxes:
- cat: VAT
rate: zero
99 changes: 99 additions & 0 deletions regimes/pl/examples/out/invoice-tax-exempt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"$schema": "https://gobl.org/draft-0/envelope",
"head": {
"uuid": "2198b2c0-00b4-11ef-a729-52f0b4d06139",
"dig": {
"alg": "sha256",
"val": "481fcf5c2a1dd733b368318359b9df03aa09cef17925c12e3c59f8b8723011c4"
},
"draft": true
},
"doc": {
"$schema": "https://gobl.org/draft-0/bill/invoice",
"type": "standard",
"code": "SAMPLE-001",
"issue_date": "2023-12-20",
"currency": "PLN",
"supplier": {
"name": "Provide One S.L.",
"tax_id": {
"country": "PL",
"code": "9876543210"
},
"addresses": [
{
"num": "42",
"street": "Calle Pradillo",
"locality": "Madrid",
"region": "Madrid",
"code": "00-015",
"country": "PL"
}
],
"emails": [
{
"addr": "[email protected]"
}
]
},
"customer": {
"name": "Sample Consumer",
"tax_id": {
"country": "PL",
"code": "1234567788"
},
"addresses": [
{
"num": "43",
"street": "Calle Pradillo",
"locality": "Madrid",
"region": "Madrid",
"code": "00-015",
"country": "PL"
}
]
},
"lines": [
{
"i": 1,
"quantity": "1",
"item": {
"name": "Development services",
"price": "1.00",
"unit": "h"
},
"sum": "1.00",
"taxes": [
{
"cat": "VAT",
"rate": "exempt"
}
],
"total": "1.00"
}
],
"totals": {
"sum": "1.00",
"total": "1.00",
"taxes": {
"categories": [
{
"code": "VAT",
"rates": [
{
"key": "exempt",
"base": "1.00",
"amount": "0.00"
}
],
"amount": "0.00"
}
],
"sum": "0.00"
},
"tax": "0.00",
"total_with_tax": "1.00",
"payable": "1.00"
}
}
}
99 changes: 99 additions & 0 deletions regimes/pl/examples/out/invoice-tax-not-applicable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"$schema": "https://gobl.org/draft-0/envelope",
"head": {
"uuid": "e060a49c-00b4-11ef-9596-52f0b4d06139",
"dig": {
"alg": "sha256",
"val": "dbfa6fa5b7e0c15a787974337459c744a357aa1ab8dac9460e8100e777128158"
},
"draft": true
},
"doc": {
"$schema": "https://gobl.org/draft-0/bill/invoice",
"type": "standard",
"code": "SAMPLE-001",
"issue_date": "2023-12-20",
"currency": "PLN",
"supplier": {
"name": "Provide One S.L.",
"tax_id": {
"country": "PL",
"code": "9876543210"
},
"addresses": [
{
"num": "42",
"street": "Calle Pradillo",
"locality": "Madrid",
"region": "Madrid",
"code": "00-015",
"country": "PL"
}
],
"emails": [
{
"addr": "[email protected]"
}
]
},
"customer": {
"name": "Sample Consumer",
"tax_id": {
"country": "PL",
"code": "1234567788"
},
"addresses": [
{
"num": "43",
"street": "Calle Pradillo",
"locality": "Madrid",
"region": "Madrid",
"code": "00-015",
"country": "PL"
}
]
},
"lines": [
{
"i": 1,
"quantity": "1",
"item": {
"name": "Development services",
"price": "1.00",
"unit": "h"
},
"sum": "1.00",
"taxes": [
{
"cat": "VAT",
"rate": "np"
}
],
"total": "1.00"
}
],
"totals": {
"sum": "1.00",
"total": "1.00",
"taxes": {
"categories": [
{
"code": "VAT",
"rates": [
{
"key": "np",
"base": "1.00",
"amount": "0.00"
}
],
"amount": "0.00"
}
],
"sum": "0.00"
},
"tax": "0.00",
"total_with_tax": "1.00",
"payable": "1.00"
}
}
}
Loading

0 comments on commit cedb0f9

Please sign in to comment.