update invoices