The council shall provide by laws that all moneys due the municipality or any department thereof shall be paid directly to the treasurer and no moneys shall be collected by departments or officials therein as a part of the duties of the department, except as provided in this title.