invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

Does it work for scanned PDF's ?

Open pavankalyan066 opened this issue 2 years ago • 1 comments

Unable to match all required fields. The required fields are: ['date', 'amount', 'invoice_number', 'issuer']. Output contains the following fields: ['date', 'currency', 'issuer'].

My template: [InvoiceTemplate([('issuer', 'Honeywell Int. SDN. BHD'), ('keywords', ['Honeywell']), ('fields', OrderedDict([('date', 'DATE OF TASK\\n(\\d{2}-\\w{A-Z}\\d{2})')])), ('options', OrderedDict([('remove_whitespace', True)])), ('template_name', 'sing.gb.airline.yml'), ('exclude_keywords', [])])]

Could Anyone Please Help to fix my issue! Thank you.

pavankalyan066 avatar Feb 25 '22 06:02 pavankalyan066

can you share your input file and template?

bosd avatar Apr 11 '22 21:04 bosd

Your template (YML file) contains regex for date but that isn't enough. It's required to also extract amount and invoice_number.

Please edit your template (YML file) and add amount and invoice_number with correct RegEx-es.

rmilecki avatar Sep 30 '22 12:09 rmilecki