update fields of invoice