-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into refactor-loader
- Loading branch information
Showing
15 changed files
with
221 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
""" | ||
Interface for fields parsers. | ||
|
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
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 |
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
Oops, something went wrong.