Any officer of this state who receives a salary may, when the duties of his office will best permit, be absent from the state not more than one (1) month in any one (1) year without any deduction from his salary; but the state treasurer, the secretary of state, and auditor of public accounts shall, while absent, leave their offices so attended as to produce no injury to persons having business in said offices. If any officer who receives a salary shall be absent from the state without the consent of the governor for a longer time than one (1) month in any one (1) year, he shall be subject to a pro rata deduction from his salary for the length of time he shall be absent more than one (1) month; and, on his return, before he shall be entitled to any warrant on the treasury for his salary or any part thereof thereafter accruing, he shall make oath to the number of days he shall have been absent beyond one month and file the same in the office of the auditor of public accounts; and it shall be the duty of the auditor to deduct twice the number of days so sworn to from the time for which the salary of such officer may be estimated.