analysis of invoices