Whenever all the bonds of any school district have been paid and cancelled upon the records of the school treasurer and there remains in the hands of the county collector or any ex-county collector, the county treasurer, or ex-county treasurer, any balance to the credit of the bond fund of the school township, the county collector or ex-county collector, county treasurer or ex-county treasurer shall pay to the school treasurer the balance of such funds in his hands and the school treasurer shall give his receipt therefor.
105 ILCS 5/19-27