Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up tax categories #267

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 39 additions & 11 deletions data/regimes/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,30 +89,42 @@
]
},
{
"key": "pl-ksef-vat-zero",
"key": "pl-ksef-vat-region",
"name": {
"en": "Zero VAT Extensions for KSeF"
"en": "Region VAT Extensions for KSeF"
},
"keys": [
"codes": [
{
"key": "wdt",
"code": "EU",
"name": {
"en": "WDT",
"pl": "WDT"
"en": "EU",
"pl": "EU"
},
"desc": {
"en": "Intra-EU Transactions",
"pl": "Transakcje wewnątrzwspólnotowe"
}
},
{
"key": "domestic",
"code": "domestic",
"name": {
"en": "Domestic",
"pl": "Krajowy"
},
"desc": {
"en": "Domestic trade",
"pl": "Handel wewnątrzkrajowy."
}
},
{
"key": "export",
"code": "non-EU",
"name": {
"en": "Export",
"pl": "Eksport"
"en": "non-EU",
"pl": "Poza UE"
},
"desc": {
"en": "Trading with countries outside the EU",
"pl": "Handel z krajami z poza Unii Europejskiej"
}
}
]
Expand Down Expand Up @@ -428,7 +440,7 @@
}
],
"extensions": [
"pl-ksef-vat-zero"
"pl-ksef-vat-region"
]
},
{
Expand All @@ -445,9 +457,25 @@
"en": "Special Rate",
"pl": "Stawka Specjalna"
},
"values": [
{
"percent": "4.0%"
}
],
"extensions": [
"pl-ksef-vat-special"
]
},
{
"key": "np",
"name": {
"en": "Not pursuant",
"pl": "Niepodlegające opodatkowaniu"
},
"exempt": true,
"extensions": [
"pl-ksef-vat-region"
]
}
]
}
Expand Down
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"
}
}
}
Loading
Loading