map invoices type and status