rename js invoice files, search only in posted invoices