"no travelling allowance shall be charged unless it was necessary for the deputy-sheriff to go beyond a distance of one kilometre from his office but when any such allowance is payable it shall be paid for the actual distance travelled in going from and returning to the office"