No sum shall be advanced from the treasury from any municipality or county in this state for the purpose of defraying the expenses of any officer or employee of such municipality or county while traveling or remaining beyond the limits of such municipality or county unless the same shall first be allowed by a resolution adopted by the governing body of such municipality or county, which said resolution shall state the purpose and object of such proposed visit.