Can I assign or change the academic year for fee templates?

Yes. Go to Fee Invoices → Fee Templates, select one or more templates, click Actions → Change Academic Year, choose the academic year, and save.