It shall be the duty of all state officers who receive a salary to continue to collect the fees or perquisites required of them by any law. Each of said officers shall keep a detailed account of such collections among the official receipts of his office and pay them in full into the state treasury on the first Monday of each month. The payment shall be accompanied by the affidavit of the officer averring that he has collected all fees allowed by law for all work performed by him during the preceding month, and showing the amount thereof.