-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates: pl: add templates for InsERT's software issued invoices
InsERT is one of the most popular Polish accounting software company. They have two very common softwares: 1. Subiekt nexo 2. Subiekt GT Add 2 templates to parse invoices generated by above softwares. Those templates are software-specific so they have priority set to 3. This allows parsing a lot invoices issued in Poland. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
- Loading branch information
Rafał Miłecki
committed
Oct 1, 2022
1 parent
f00c1b9
commit b0f6ce1
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
src/invoice2data/extract/templates/pl/pl.insert.subiekt-gt.yml
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,43 @@ | ||
# SPDX-License-Identifier: MIT | ||
keywords: | ||
- 'Miejsce wystawienia:' | ||
- 'Data wystawienia:' | ||
- 'Sprzedawca:' | ||
- 'Nabywca:' | ||
- 'według stawki VAT' | ||
- 'Razem do zapłaty:' | ||
- 'Wystawił\(a\)' | ||
- 'Odebrał\(a\)' | ||
- 'Podpis osoby upoważnionej' | ||
fields: | ||
issuer: | ||
parser: regex | ||
regex: Sprzedawca:.*\n(.*?)\s{3,} | ||
vatin: | ||
parser: regex | ||
regex: NIP:\s+(\d{10}) | ||
type: int | ||
group: first | ||
date: | ||
parser: regex | ||
regex: | ||
- Data wystawienia:\n.*(\d{2}\.\d{2}\.\d{4}) | ||
- Data wystawienia:\n.*(\d{4}-\d{2}-\d{2}) | ||
type: date | ||
invoice_number: | ||
parser: regex | ||
regex: Faktura VAT\s+(.*?)\s+oryginał | ||
amount: | ||
parser: regex | ||
regex: Razem do zapłaty:\s+([\d\s]+,[\d][\d]) | ||
type: float | ||
nrb: | ||
parser: regex | ||
regex: PLN:\s+([0-9]{2}(?:\s?[0-9]{4}){6}) | ||
options: | ||
currency: PLN | ||
date_formats: | ||
- '%d.%m.%Y' | ||
- '%Y-%m-%d' | ||
decimal_separator: ',' | ||
priority: 3 |
33 changes: 33 additions & 0 deletions
33
src/invoice2data/extract/templates/pl/pl.insert.subiekt-nexo.yml
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,33 @@ | ||
# SPDX-License-Identifier: MIT | ||
keywords: | ||
- 'InsERT nexo' | ||
fields: | ||
issuer: | ||
parser: regex | ||
regex: Sprzedawca.*\n(.*?)\s{3,} | ||
vatin: | ||
parser: regex | ||
regex: NIP:\s+(\d{10}) | ||
type: int | ||
group: first | ||
date: | ||
parser: regex | ||
regex: Data wystawienia\s+(\d{2}-\d{2}-\d{4}) | ||
type: date | ||
invoice_number: | ||
parser: regex | ||
regex: Faktura VAT sprzedaży\s+(.*) | ||
group: first | ||
amount: | ||
parser: regex | ||
regex: Razem do zapłaty:\s+([\d\s]+,[\d][\d]) | ||
type: float | ||
nrb: | ||
parser: regex | ||
regex: PL\s+([0-9]{2}(?:\s?[0-9]{4}){6}) | ||
options: | ||
currency: PLN | ||
date_formats: | ||
- '%d-%m-%Y' | ||
decimal_separator: ',' | ||
priority: 3 |