Personnel in attendance upon court-martial, boards of examination, fitness boards and other necessary duty as prescribed by the Adjutant General shall receive transportation in kind as may be provided for in orders, and the necessary expenses lawfully incurred in the performance of any such duty shall be paid upon proper vouchers duly approved by the officer under whose orders the duty is performed.