It is the duty of the city treasurer to perform such duties in the collection of taxes, license fees, or assessments as are prescribed by law or ordinance.