From cacd999f8d5fcd6d7cc85818a6d5df5701855a67 Mon Sep 17 00:00:00 2001 From: bosd Date: Sun, 26 Nov 2023 15:58:11 +0100 Subject: [PATCH] Update nl.kuwait-q8.json --- .../extract/templates/nl/nl.kuwait-q8.json | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/invoice2data/extract/templates/nl/nl.kuwait-q8.json b/src/invoice2data/extract/templates/nl/nl.kuwait-q8.json index 2c8cf1e0..8a304a88 100644 --- a/src/invoice2data/extract/templates/nl/nl.kuwait-q8.json +++ b/src/invoice2data/extract/templates/nl/nl.kuwait-q8.json @@ -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" @@ -34,7 +38,7 @@ }, "partner_zip": { "parser": "regex", - "regex": "2595AR" + "regex": "2595.?AR" }, "partner_city": { "parser": "static", @@ -51,11 +55,11 @@ }, "lines": { "start": "KLANT", - "end": "TOTAAL KLANT", - "line": "\\s+(?P(\\w+(?:\\s\\S+){1,2}))\\s+(?P(\\d+[.]\\d{3,4}))\\s+(?P\\d+[.]\\d{2})\\s+(?P\\d[.]\\d{3,4})\\s+(?P\\d{2}[.]\\d{2})\\s+(?P\\d+[.]\\d{2})", + "end": "\\Z", + "line": "\\s+(?P(\\w+(?:\\s\\S+){0,2}))\\s+(?P\\d+[.]\\d{3,4})\\s+(?P\\d+[.]\\d{3,4})\\s+(?P\\d+[.]\\d{2})\\s+(?P\\d[.]\\d{3,4})\\s+(?P\\d{2}[.]\\d{2})\\s+(?P\\d+[.]\\d{2})", "types": { "qty": "float", - "taxpercent": "float", + "line_tax_percent": "float", "price_unit": "float", "base_price": "float", "price_subtotal": "float" @@ -64,7 +68,7 @@ "keywords": [ "(?i)Kuwait", "FACTUUR NR", - "LIBERTY KAART", + "LIBERTY", "(NEDERLAND)", "NL001250590B01" ], @@ -78,7 +82,11 @@ [ "Euro 95", "E10 (Euro 95)" + ], + [ + "GASOIL - DIESEL", + "Diesel" ] ] } -} \ No newline at end of file +}