-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use credit-note instead of corrective invoices
Poland doesn't have a distinction between credit notes and corrective invoices. Our implementation of invoice correction is closer to what we see in credit notes in other countries. For example we have differential values for line items.
- Loading branch information
Showing
10 changed files
with
138 additions
and
149 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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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,120 @@ | ||
{ | ||
"$schema": "https://gobl.org/draft-0/envelope", | ||
"head": { | ||
"uuid": "8a51fd30-2a27-11ee-be56-0242ac120002", | ||
"dig": { | ||
"alg": "sha256", | ||
"val": "2dfc5c1c3b11a69e10ba47256e5a1655f5c6dfca99ad6b0390a987588020bbb2" | ||
}, | ||
"draft": true | ||
}, | ||
"doc": { | ||
"$schema": "https://gobl.org/draft-0/bill/invoice", | ||
"type": "credit-note", | ||
"series": "CN", | ||
"code": "002", | ||
"issue_date": "2023-12-21", | ||
"currency": "PLN", | ||
"preceding": [ | ||
{ | ||
"type": "standard", | ||
"series": "SAMPLE", | ||
"code": "001", | ||
"issue_date": "2023-12-20", | ||
"reason": "Special Discount", | ||
"stamps": [ | ||
{ | ||
"prv": "ksef-id", | ||
"val": "9876543210-20231220-107FDF72DB53-F7" | ||
} | ||
], | ||
"ext": { | ||
"pl-ksef-effective-date": "2" | ||
} | ||
} | ||
], | ||
"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": "20", | ||
"item": { | ||
"name": "Development services", | ||
"price": "10.00", | ||
"unit": "h" | ||
}, | ||
"sum": "200.00", | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"rate": "standard", | ||
"percent": "23.0%" | ||
} | ||
], | ||
"total": "200.00" | ||
} | ||
], | ||
"totals": { | ||
"sum": "200.00", | ||
"total": "200.00", | ||
"taxes": { | ||
"categories": [ | ||
{ | ||
"code": "VAT", | ||
"rates": [ | ||
{ | ||
"key": "standard", | ||
"base": "200.00", | ||
"percent": "23.0%", | ||
"amount": "46.00" | ||
} | ||
], | ||
"amount": "46.00" | ||
} | ||
], | ||
"sum": "46.00" | ||
}, | ||
"tax": "46.00", | ||
"total_with_tax": "246.00", | ||
"payable": "246.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