{ "type": { "purchase_invoice": { "en": [ "Invoice", "Receipt" ], "de": [ "Rechnung", "Quittung" ] }, "purchase_credit_note": { "en": [ "Credit Note" ], "de": [ "Rechnungskorrektur", "Gutschrift" ] }, "purchase_delivery_note": { "en": [ "Delivery Note" ], "de": [ "Lieferschein" ] }, "purchase_order_confirmation": { "en": [ "Order Confirmation" ], "de": [ "Auftragsbestätigung" ] }, "purchase_offer": { "en": [ "Offer" ], "de": [ "Angebot" ] }, "purchase_reverse_invoice": { "en": [], "de": [ "Gutschrift" ] }, "purchase_proforma_invoice": { "en": [ "Proforma" ], "de": [ "Proforma" ] } }, "tax_id": { "en": [ "/(tax[\\. \\-]*id|tin|ssn|ein)(.*? {1,})(?(.{6,15}))( |$)/i", "/(vat[\\. \\-]*id)(.*? {1,})(?([^a-zA-Z]{6,15}))( |$)/i" ], "de": [ "/(Steuern|Steuer[\\. \\-]*Nr|St[\\. \\-]*Nr)(.*? {1,})(?(.{8,15}))( |$)/i", "/(USt[\\. \\-]*Id|Umsatzst.*?Id)(.*? {1,})(?([^a-zA-Z]{8,15}))( |$)/i" ] }, "vat_id": { "en": [ "/(vat[\\. \\-]*id)(.*? {1,})(?([a-zA-Z]{2})(.*?){7,13})( |$)/i" ], "de": [ "/(USt[\\. \\-]*Id|Umsatzst.*?Id)(.*? {1,})(?([a-zA-Z]{2})(.*?){7,13})( |$)/i" ] }, "iban": ["/(IBAN)(.*? {1,})(?([a-zA-Z]{2,}[ 0-9]{14,}))( |$)/i"], "email": ["/(^| )(?([a-zA-Z0-9\\-]+@[a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,}))( |$)/i"], "website": ["/(^| )(?(https:\\/\\/|www\\.)([a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,}))( |$)/i"], "phone": { "en": [ "/(phone)(.*? {1,})(?([+0-9 \\/\\-\\(\\)]*[0-9]+[+0-9 \\/\\-\\(\\)]*){4,})( |[^ 0-9\\/\\(\\)+\\-]|$)/i" ], "de": [ "/(Tel|Rufn)(.*? {1,})(?([+0-9 \\/\\-\\(\\)]*[0-9]+[+0-9 \\/\\-\\(\\)]*){4,})( |[^ 0-9\\/\\(\\)+\\-]|$)/i" ] }, "date_format": [ "Y-m-d", "Y.m.d", "Y/m/d", "d-m-Y", "d.m.Y", "d/m/Y", "m-d-Y", "m.d.Y", "m/d/Y", "M. d.Y", "M. d. Y", "M. d Y", "M. d,Y", "M. d, Y", "M d.Y", "M d. Y", "M d Y", "M d,Y", "M d, Y", "M, d.Y", "M, d. Y", "M, d Y", "M, d,Y", "M, d, Y", "d-m-y", "d.m.y", "d/m/y", "m-d-y", "m.d.y", "m/d/y" ], "bill_no": { "en": [ "/(invoice|inv.*? no)(.*? {1,})(?\\S*?)( |$)/i", "/(#)(?\\S*?)( |$)/i" ], "de": [ "/(rechnungsn|rechnung n|belegn|beleg n)(.*? {1,})(?\\S*?)( |$)/i" ] }, "bill_date": { "en": [ "/(inv.*? )(date.*? )(?.{8,}?)( |$)/i", "/(date.*? )(?.{8,}?)( |$)/i" ], "de": [ "/(rechnungsdat|belegdat|datum)(.*? )(?\\S{8,}?)( |$)/i" ] }, "bill_due": { "en": [ "/(due date.*? )(?\\S{8,}?)( |$)/i", "/(due.*? )(?\\S{8,}?)( |$)/i" ], "de": [ "/(fällig.*? )(?\\S{8,}?)( |$)/i" ] }, "total_net": { "en": [ "/(subtotal|net)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(netto|zwischensumme|betrag exk)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_discount": { "en": [ "/(discount)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(rabatt)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_shipping": { "en": [ "/(fuel|handling|fright|shipping)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(versand|transport|fracht)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_customs": { "en": [ "/(customs)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(Einfuhr)(\\S* )(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_insurance": { "en": [ "/(insurance)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(versicherung)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_surcharge": { "en": [ "/(fee|surcharge)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(gebühr)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "total_tax": { "en": [ "/(VAT|tax)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(USt|Mwst|Umsatzst|Mehrwertst)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i", "/( {1,})(USt|Mwst|Umsatzst|Mehrwertst)(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "tax_rate": { "en": [ "/(VAT|tax)(.*? {1,})(?([0-9]+,*\\.*)+)(?= *%)/i" ], "de": [ "/(USt|Mwst|Umsatzst|Mehrwertst)(.*? {1,})(?([0-9]+,*\\.*)+)(?= *%)/i", "/( {1,})(?([0-9]+,*\\.*)+)(?= *%)(.*?)(USt|Mwst|Umsatzst|Mehrwertst)/i" ] }, "total_gross": { "en": [ "/(total|gross)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ], "de": [ "/(betrag|gesamt|brutto|summe)(.*? {1,})(?([0-9]+,*\\.*)+)(?! *%)/i" ] }, "item_table": { "en": { "headline": { "order": ["no.", "#", "pos"], "number": ["number"], "description": ["description", "name", "service", "product", "item"], "quantity": ["qty", "quantity", "hours"], "price": ["price", "rate"], "unit": ["unit"], "total": ["amount", "total", "gross"], "tax": ["tax"] }, "parts": "/( *)(.+?)(\\s{3,}|$)/i", "row": { "order": "/\\d+/i", "number": "/.*/i", "description": "/.*/i", "quantity": "/[+-]?([0-9]+,*\\.*)+/i", "price": "/[+-]?([0-9]+,*\\.*)+/i", "unit": "/.*/i", "total": "/[+-]?([0-9]+,*\\.*)+/i", "tax": "/[+-]?([0-9]+,*\\.*)+/i" } }, "de": { "headline": { "order": ["Pos", "#", "Position"], "number": ["Nr.", "Nummer"], "description": ["Beschreibung", "Bez", "Bezeichnung", "Leistung", "Produkt", "Artikel", "Name"], "quantity": ["Menge", "Anzahl", "Stunden"], "price": ["Einzel", "Preis", "Preis pro"], "unit": ["Einheit", "Einh"], "total": ["Gesamt", "Brutto", "Summe"], "tax": ["MwSt", "USt", "Steuer"] }, "parts": "/( *)(.+?)(\\s{2,}|$)/i", "row": { "order": "/\\d+/i", "number": "/.*/i", "description": "/.*/i", "quantity": "/[+-]?([0-9]+,*\\.*)+/i", "price": "/[+-]?([0-9]+,*\\.*)+/i", "unit": "/.*/i", "total": "/[+-]?([0-9]+,*\\.*)+/i", "tax": "/[+-]?([0-9]+,*\\.*)+/i" } } } }