The enforcement agency shall determine the cost of the work to be done for which the applicant desires a permit, and shall be guided by approved estimating practices. The enforcement agency shall keep a permanent account of all fees received under this chapter, the names of the persons upon whose account the same were paid, the date and the amount thereof, and the location of the building or premises to which they relate. All fees received shall be paid into the treasury of the city or county.