forked from invoice-x/invoice2data
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
223 additions
and
36 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
src/invoice2data/extract/templates/be/be.accor.invest.ibis.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,73 @@ | ||
issuer: Accor Invest Belgium nv SA | ||
fields: | ||
amount: | ||
parser: regex | ||
regex: Total to pay EUR\s+(\d?.?\d{1,4},\d{2}) | ||
type: float | ||
amount_tax: | ||
parser: regex | ||
regex: \d{2}[%]\s+\w\s+\d{1,4}[,]\d{2}\s+(\d{1,4}[,]\d{2}) | ||
type: float | ||
amount_untaxed: | ||
parser: regex | ||
regex: \d{2}[%]\s+\w\s+(\d{1,4}[,]\d{2})\s+\d{1,4}[,]\d{2} | ||
type: float | ||
date: | ||
parser: regex | ||
regex: '\w+\S\s(\d{1,2}[/]\d{1,2}[/]\d{4})\n' | ||
type: date | ||
date_due: | ||
parser: regex | ||
regex: '\w+\S\s(\d{1,2}[/]\d{1,2}[/]\d{4})\n' | ||
type: date | ||
invoice_number: | ||
parser: regex | ||
regex: Our ref[.]\s[:](.*)\s[(] | ||
iban: | ||
parser: regex | ||
regex: '[A-Z]{2}\d{2}?\w{4}?\d{4}?\d{4}?\d{0,2}' | ||
bic: | ||
parser: regex | ||
regex: '(?i)BIC[:]\s+(\w{8,11})' | ||
static_vat: BE0673923435 | ||
partner_website: | ||
parser: static | ||
value: all.accor.com | ||
partner_name: | ||
parser: static | ||
value: Accor Invest Belgium nv SA | ||
country_code: | ||
parser: static | ||
value: be | ||
partner_zip: | ||
parser: static | ||
value: B-1000 | ||
partner_city: | ||
parser: regex | ||
regex: Brussel | ||
partner_street: | ||
parser: static | ||
value: Square de Meeus 35 | ||
narration: | ||
parser: regex | ||
regex: Ibis\s+\S+ | ||
lines: | ||
start: Datum\s\S\s+Omschrijving | ||
end: (?i)Totaal\ste | ||
line: (?P<name>(\d+[-]\d+[-]\w+(?:\s+\S+){1,8}))\s+(?P<qty>\d+)\s+(?P<price_subtotal>\d+[,]\d{2}) | ||
types: | ||
qty: float | ||
price_unit: float | ||
price_subtotal: float | ||
taxpercent: float | ||
keywords: | ||
- (?i)Accor | ||
- 'BE\s0673\s923' | ||
- 'Factuur' | ||
options: | ||
currency: EUR | ||
languages: | ||
- nl | ||
- be | ||
- en | ||
decimal_separator: ',' |
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,15 +1,37 @@ | ||
issuer: Namecheap, Inc. | ||
fields: | ||
amount: Ordertotal\$(\d+\.\d+) | ||
amount: | ||
parser: regex | ||
regex: TOTAL\s+[$](\d+\.\d+) | ||
type: float | ||
date: | ||
- Orderdate(\d+\\d+\\d{2}) | ||
parser: regex | ||
regex: Order\sDate\s+[:]\s+(\d+.\d+.\d{4}) | ||
type: date | ||
invoice_number: | ||
- Ordernumber(\d+) | ||
parser: regex | ||
regex: Order\sNumber\s+[:]\s(\d+) | ||
partner_website: | ||
parser: static | ||
value: namecheap.com | ||
partner_name: | ||
parser: static | ||
value: Namecheap, Inc. | ||
partner_city: | ||
parser: regex | ||
regex: Phoenix | ||
partner_street: | ||
parser: static | ||
value: East Washington Street 305 | ||
partner_email: | ||
parser: static | ||
value: [email protected] | ||
country_code: | ||
parser: static | ||
value: US | ||
keywords: | ||
- NameSilo | ||
- 0818922 | ||
- (?i)NameCheap | ||
- RECEIPT | ||
options: | ||
remove_whitespace: true | ||
remove_whitespace: false | ||
currency: USD | ||
date_formats: | ||
- '%Y-%m-%d' |
60 changes: 60 additions & 0 deletions
60
src/invoice2data/extract/templates/com/com.nl.lenovo.digitalriver.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,60 @@ | ||
issuer: Digital River Ireland, Ltd. | ||
fields: | ||
amount: | ||
parser: regex | ||
regex: Totaal [(]EUR[)]\s+(\d?.?\d{1,4}[,]\d{2}) | ||
type: float | ||
amount_tax: | ||
parser: regex | ||
regex: Totale btw-kosten\s+(\d?.?\d{1,4}[,]\d{2}) | ||
type: float | ||
date: | ||
parser: regex | ||
regex: 'Factuurdatum\s+(\d{1,2}[.]\d{1,2}[.]\d{4})' | ||
type: date | ||
invoice_number: | ||
parser: regex | ||
regex: Factuurnummer\s+(\d+) | ||
iban: | ||
parser: regex | ||
regex: '[A-Z]{2}\d{2}?\w{4}?\d{4}?\d{4}?\d{0,2}' | ||
bic: | ||
parser: regex | ||
regex: '(?i)BIC[:]\s+(\w{8,11})' | ||
static_vat: NL815471166B01 | ||
partner_website: | ||
parser: static | ||
value: lenovo.com | ||
partner_name: | ||
parser: static | ||
value: Digital River Ireland, Ltd. | ||
country_code: | ||
parser: static | ||
value: ie | ||
partner_city: | ||
parser: regex | ||
regex: Dublin | ||
partner_street: | ||
parser: static | ||
value: Park Lane | ||
narration: | ||
parser: regex | ||
regex: Volgnummer factuur:\s+\S+ | ||
lines: | ||
start: Productbeschrijving | ||
end: (?i)Producttotaal | ||
line: (?P<name>(\w+(?:\s+\S+){1,8}))\s+(?P<qty>\d)\s+(?P<price_subtotal>\d?[.]?\d+[,]\d{2}) | ||
types: | ||
qty: float | ||
price_unit: float | ||
price_subtotal: float | ||
taxpercent: float | ||
keywords: | ||
- (?i)Digital\sRiver | ||
- 'NL815471166B01' | ||
- 'Factuur' | ||
options: | ||
currency: EUR | ||
languages: | ||
- nl | ||
decimal_separator: ',' |
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 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,16 +1,19 @@ | ||
# SPDX-License-Identifier: MIT | ||
issuer: Vodafone Libertel B.V. | ||
fields: | ||
amount: Totaal te betalen\s+.\s(\d+,\d{2}) | ||
amount_untaxed: Totaal exclusief btw\s+(\d+.\d{2}) | ||
date: Datum\s+(\d{1,2} \w{3,9}\s\d{4}) | ||
date_due: Dit bedrag wordt omstreeks (\d{1,2}\s\w{3,8}\s\d{4}) | ||
invoice_number: Rekeningnummer.\s+(\d+) | ||
static_vat: NL800755133B01 | ||
keywords: | ||
- NL800755133B01 | ||
options: | ||
currency: EUR | ||
languages: | ||
- nl | ||
decimal_separator: ',' | ||
# SPDX-License-Identifier: MIT | ||
issuer: Vodafone Libertel B.V. | ||
fields: | ||
amount: Totaal te betalen\s+.\s(\d+,\d{2}) | ||
amount_untaxed: Totaal exclusief btw\s+(\d+.\d{2}) | ||
date: Datum\s+(\d{1,2} \w{3,9}\s\d{4}) | ||
date_due: Dit bedrag wordt omstreeks (\d{1,2}\s\w{3,8}\s\d{4}) | ||
invoice_number: Rekeningnummer.\s+(\d+) | ||
static_vat: NL800755133B01 | ||
country_code: | ||
parser: static | ||
value: nl | ||
keywords: | ||
- NL800755133B01 | ||
options: | ||
currency: EUR | ||
languages: | ||
- nl | ||
decimal_separator: ',' |
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