Skip to content

Commit

Permalink
Update nl.kuwait-q8.json
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Nov 26, 2023
1 parent ea62833 commit cacd999
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/invoice2data/extract/templates/nl/nl.kuwait-q8.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"parser": "regex",
"regex": "[A-Z]{2}\\d{2}?\\w{4}?\\d{4}?\\d{4}?\\d{0,2}"
},
"payment_reference": {
"parser": "regex",
"regex": "NLN\\d{7}"
},
"telephone": {
"parser": "static",
"value": "+31703152650"
Expand All @@ -34,7 +38,7 @@
},
"partner_zip": {
"parser": "regex",
"regex": "2595AR"
"regex": "2595.?AR"
},
"partner_city": {
"parser": "static",
Expand All @@ -51,11 +55,11 @@
},
"lines": {
"start": "KLANT",
"end": "TOTAAL KLANT",
"line": "\\s+(?P<name>(\\w+(?:\\s\\S+){1,2}))\\s+(?P<base_price>(\\d+[.]\\d{3,4}))\\s+(?P<qty>\\d+[.]\\d{2})\\s+(?P<price_unit>\\d[.]\\d{3,4})\\s+(?P<taxpercent>\\d{2}[.]\\d{2})\\s+(?P<price_subtotal>\\d+[.]\\d{2})",
"end": "\\Z",
"line": "\\s+(?P<name>(\\w+(?:\\s\\S+){0,2}))\\s+(?P<base_price>\\d+[.]\\d{3,4})\\s+(?P<discount_price>\\d+[.]\\d{3,4})\\s+(?P<qty>\\d+[.]\\d{2})\\s+(?P<price_unit>\\d[.]\\d{3,4})\\s+(?P<line_tax_percent>\\d{2}[.]\\d{2})\\s+(?P<price_subtotal>\\d+[.]\\d{2})",
"types": {
"qty": "float",
"taxpercent": "float",
"line_tax_percent": "float",
"price_unit": "float",
"base_price": "float",
"price_subtotal": "float"
Expand All @@ -64,7 +68,7 @@
"keywords": [
"(?i)Kuwait",
"FACTUUR NR",
"LIBERTY KAART",
"LIBERTY",
"(NEDERLAND)",
"NL001250590B01"
],
Expand All @@ -78,7 +82,11 @@
[
"Euro 95",
"E10 (Euro 95)"
],
[
"GASOIL - DIESEL",
"Diesel"
]
]
}
}
}

0 comments on commit cacd999

Please sign in to comment.