Whenever a board of education of a district has received moneys transferred to it, by the governing body or bodies of the municipality or municipalities comprising the district, from unappropriated surplus revenue, or from unappropriated anticipated receipts, of the municipality or municipalities, the board of education shall, subject to the provisions of section 18A:22-46, apply the moneys so received, so far as the same shall be sufficient:
said board may, subject to the provisions of said section, apply the whole or any part of said moneys, not in excess of $50,000.00 in any one year, to the retirement of bonds maturing in any year or years subsequent to said school fiscal year, with the approval of the director of the division of local finance in the department of community affairs and the commissioner of education and the consent of the bondholders.
N.J.S. § 18A:22-45