From cedb0f9d5b8c8bac54dd7984ef478943d58fecf8 Mon Sep 17 00:00:00 2001 From: Grzegorz Lisowski Date: Tue, 23 Apr 2024 16:51:27 +0200 Subject: [PATCH] Add examples for different tax rates --- regimes/pl/examples/invoice-tax-exempt.yaml | 42 ++++++++ .../examples/invoice-tax-not-applicable.yaml | 42 ++++++++ regimes/pl/examples/invoice-taxi.yaml | 42 ++++++++ regimes/pl/examples/invoice-zero.yaml | 42 ++++++++ .../pl/examples/out/invoice-tax-exempt.json | 99 +++++++++++++++++ .../out/invoice-tax-not-applicable.json | 99 +++++++++++++++++ regimes/pl/examples/out/invoice-taxi.json | 101 ++++++++++++++++++ regimes/pl/examples/out/invoice-zero.json | 101 ++++++++++++++++++ 8 files changed, 568 insertions(+) create mode 100644 regimes/pl/examples/invoice-tax-exempt.yaml create mode 100644 regimes/pl/examples/invoice-tax-not-applicable.yaml create mode 100644 regimes/pl/examples/invoice-taxi.yaml create mode 100644 regimes/pl/examples/invoice-zero.yaml create mode 100644 regimes/pl/examples/out/invoice-tax-exempt.json create mode 100644 regimes/pl/examples/out/invoice-tax-not-applicable.json create mode 100644 regimes/pl/examples/out/invoice-taxi.json create mode 100644 regimes/pl/examples/out/invoice-zero.json diff --git a/regimes/pl/examples/invoice-tax-exempt.yaml b/regimes/pl/examples/invoice-tax-exempt.yaml new file mode 100644 index 00000000..54ed6f0e --- /dev/null +++ b/regimes/pl/examples/invoice-tax-exempt.yaml @@ -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: "billing@example.com" + 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 diff --git a/regimes/pl/examples/invoice-tax-not-applicable.yaml b/regimes/pl/examples/invoice-tax-not-applicable.yaml new file mode 100644 index 00000000..16c2aa44 --- /dev/null +++ b/regimes/pl/examples/invoice-tax-not-applicable.yaml @@ -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: "billing@example.com" + 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 diff --git a/regimes/pl/examples/invoice-taxi.yaml b/regimes/pl/examples/invoice-taxi.yaml new file mode 100644 index 00000000..8d97650b --- /dev/null +++ b/regimes/pl/examples/invoice-taxi.yaml @@ -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: "billing@example.com" + 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 diff --git a/regimes/pl/examples/invoice-zero.yaml b/regimes/pl/examples/invoice-zero.yaml new file mode 100644 index 00000000..acc194e9 --- /dev/null +++ b/regimes/pl/examples/invoice-zero.yaml @@ -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: "billing@example.com" + 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 diff --git a/regimes/pl/examples/out/invoice-tax-exempt.json b/regimes/pl/examples/out/invoice-tax-exempt.json new file mode 100644 index 00000000..fbd66248 --- /dev/null +++ b/regimes/pl/examples/out/invoice-tax-exempt.json @@ -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": "billing@example.com" + } + ] + }, + "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" + } + } +} diff --git a/regimes/pl/examples/out/invoice-tax-not-applicable.json b/regimes/pl/examples/out/invoice-tax-not-applicable.json new file mode 100644 index 00000000..73ada0f7 --- /dev/null +++ b/regimes/pl/examples/out/invoice-tax-not-applicable.json @@ -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": "billing@example.com" + } + ] + }, + "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" + } + } +} diff --git a/regimes/pl/examples/out/invoice-taxi.json b/regimes/pl/examples/out/invoice-taxi.json new file mode 100644 index 00000000..6ae70122 --- /dev/null +++ b/regimes/pl/examples/out/invoice-taxi.json @@ -0,0 +1,101 @@ +{ + "$schema": "https://gobl.org/draft-0/envelope", + "head": { + "uuid": "f2b1ec78-00b4-11ef-8c13-52f0b4d06139", + "dig": { + "alg": "sha256", + "val": "8a137d24a0395bfb0d01bb987e8ed3175dc73305e49e9cee9d2c34b382983d3b" + }, + "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": "billing@example.com" + } + ] + }, + "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": "Transport service", + "price": "1.00", + "unit": "trip" + }, + "sum": "1.00", + "taxes": [ + { + "cat": "VAT", + "rate": "special", + "percent": "4.0%" + } + ], + "total": "1.00" + } + ], + "totals": { + "sum": "1.00", + "total": "1.00", + "taxes": { + "categories": [ + { + "code": "VAT", + "rates": [ + { + "key": "special", + "base": "1.00", + "percent": "4.0%", + "amount": "0.04" + } + ], + "amount": "0.04" + } + ], + "sum": "0.04" + }, + "tax": "0.04", + "total_with_tax": "1.04", + "payable": "1.04" + } + } +} diff --git a/regimes/pl/examples/out/invoice-zero.json b/regimes/pl/examples/out/invoice-zero.json new file mode 100644 index 00000000..2a54d185 --- /dev/null +++ b/regimes/pl/examples/out/invoice-zero.json @@ -0,0 +1,101 @@ +{ + "$schema": "https://gobl.org/draft-0/envelope", + "head": { + "uuid": "2a943e2a-00b5-11ef-815a-52f0b4d06139", + "dig": { + "alg": "sha256", + "val": "5a35a7e0497b07e40aeecc41953cede39d62019448ad14fcbeb3741b1b6b14dc" + }, + "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": "billing@example.com" + } + ] + }, + "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": "Transport of computer equipment for educational institutions", + "price": "1.00", + "unit": "trip" + }, + "sum": "1.00", + "taxes": [ + { + "cat": "VAT", + "rate": "zero", + "percent": "0.0%" + } + ], + "total": "1.00" + } + ], + "totals": { + "sum": "1.00", + "total": "1.00", + "taxes": { + "categories": [ + { + "code": "VAT", + "rates": [ + { + "key": "zero", + "base": "1.00", + "percent": "0.0%", + "amount": "0.00" + } + ], + "amount": "0.00" + } + ], + "sum": "0.00" + }, + "tax": "0.00", + "total_with_tax": "1.00", + "payable": "1.00" + } + } +}