Any enlisted member on the retired list recalled to active duty who during such active duty is advanced to a higher grade or rating under a permanent or temporary appointment or promotion shall, upon relief from active duty be advanced on the retired list to the highest grade or rating held while on active duty. In case the appointment or promotion was temporary the advancement on the retired list shall be made only to such grade or rating in which the member served satisfactorily on active duty.