select the last modified milestone details for invoice function