-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples for different tax rates
- Loading branch information
Showing
8 changed files
with
568 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.