All demands against the city shall be presented to and audited by the city council in accordance with such regulations as it may by ordinance prescribe; and upon the allowance of a demand, the clerk shall draw a warrant upon the treasurer for it, which warrant shall be countersigned by the mayor and shall specify for what purpose it is drawn and out of which fund it is to be paid.