Commit 280623e7 authored by Pratik Shrivastava's avatar Pratik Shrivastava

feat: dynamically change fees structure according the class of the student

parent f28064a2
...@@ -53,7 +53,12 @@ public class TemplateService { ...@@ -53,7 +53,12 @@ public class TemplateService {
context.setVariable("givenYear", Integer.parseInt(givenYear)); context.setVariable("givenYear", Integer.parseInt(givenYear));
context.setVariable("showSignature", true); context.setVariable("showSignature", true);
return templateEngine.process("AdmissionConfirmationFormListTemplate", context); context.setVariable("fees", FEES_STRUCTURE.getFeesStructure(
admissionFormData.getSchool(),
admissionFormData.getAdmissionClass(),
false));
return templateEngine.process("NewAdmissionConfirmationFormListTemplate", context);
} }
public String generateSpecialAdmissionConfirmationFormTemplate( public String generateSpecialAdmissionConfirmationFormTemplate(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment