When the treasurer pays any warrant on which interest is due, he must note on the warrant the amount of interest paid and enter on his account the amount of the interest distinct from the principal.