In case of an appeal from the judgment of the board of supervisors in the matter of an assessment, the appeal shall not delay the collection of taxes due by the assessment as approved. If such taxes be collected before a final disposition of the appeal, and the judgment be in favor of the person appealing, in whole or in part, as to the matter in dispute, any money improperly collected from him for taxes, as shown by the judgment, shall be refunded to him by the state and county respectively, if they have received the money; and, if it shall not have been paid over, the tax collector receiving it shall refund it to him. His claim, if against the state, shall be audited by the auditor, and a warrant issued for the amount after the auditor shall have submitted the matter to the attorney general, and obtained his opinion that it is a legal demand against the state; and the board of supervisors shall, after such allowance by the auditor, audit and allow the claim of the party against the county. If the case be decided in favor of the party appealing while the collector is proceeding with the collection of taxes, he shall conform his action to the judgment.