It shall be the duty of the county attorney, whenever he shall receive any money in his official capacity, to give to the person paying the same a duplicate receipt, one of which shall be filed by such person with the county clerk.