Commit 89440c68 authored by Pratik Shrivastava's avatar Pratik Shrivastava Committed by Deep Dey

feat: add special admission API and add field validation in admin-submit API

parent 5b1b9568
...@@ -89,8 +89,13 @@ public class AdmissionFormController { ...@@ -89,8 +89,13 @@ public class AdmissionFormController {
@RequestPart(value = "candidateImage", required = false) MultipartFile candidateImage, @RequestPart(value = "candidateImage", required = false) MultipartFile candidateImage,
@RequestPart(value = "fatherImage", required = false) MultipartFile fatherImage, @RequestPart(value = "fatherImage", required = false) MultipartFile fatherImage,
@RequestPart(value = "motherImage", required = false) MultipartFile motherImage @RequestPart(value = "motherImage", required = false) MultipartFile motherImage
) throws Exception { ) throws Exception {
admissionFormDAOController.validateAdmissionFormDataForAdminSubmit(admissionFormData);
admissionFormData.setFilledByAdmin(true);
if (!admissionFormDAOController if (!admissionFormDAOController
.addNewAdmissionData(admissionFormData)) { .addNewAdmissionData(admissionFormData)) {
throw new Exception("Form Submission Failed"); throw new Exception("Form Submission Failed");
...@@ -157,6 +162,57 @@ public class AdmissionFormController { ...@@ -157,6 +162,57 @@ public class AdmissionFormController {
HttpStatus.OK); HttpStatus.OK);
} }
@GetMapping(
value = "/admission-form/set-special-admission-interview",
produces = MediaType.APPLICATION_JSON_VALUE
)
@ApiResponses(value = {
@ApiResponse(code = 200, message = "SUCCESS"),
@ApiResponse(code = 400, message = "FAILED"),
@ApiResponse(code = 500, message = "Exception Occurred")
})
@ApiOperation(value = "")
public Object setSpecialAdmissionInterview(
HttpServletRequest request,
@RequestHeader("apikey") String apiKey,
@RequestParam(defaultValue = "") String formIds,
@RequestParam("admissionDate") String admissionDate,
@RequestParam("admissionTime") String admissionTime
) throws Exception {
List<Long> formIdList = Stream.of(formIds.split(","))
.map(Long::valueOf)
.toList();
if (formIdList.isEmpty()) {
throw new Exception("Provide formIds to schedule interview");
}
AtomicBoolean partiallyFailed = new AtomicBoolean(false);
formIdList.forEach(formId -> {
try {
if (!admissionFormDAOController
.updateSpecialAdmissionDateTime(formId, admissionDate, admissionTime)) {
partiallyFailed.set(true);
}
} catch (Exception e) {
partiallyFailed.set(true);
}
});
if (partiallyFailed.get()) {
throw new Exception("For Some of the forms failed to schedule admission");
}
return new ResponseEntity<>(
new GeneralResponse(
true,
AppConstants.RESPONSE_SUCCESS_STATUS_CODE,
"Admission Date and Time Set Successfully",
null
),
HttpStatus.OK);
}
@GetMapping( @GetMapping(
value = "/admission-form/set-admission-interview", value = "/admission-form/set-admission-interview",
produces = MediaType.APPLICATION_JSON_VALUE produces = MediaType.APPLICATION_JSON_VALUE
......
...@@ -202,6 +202,40 @@ public class AdmissionFormDAOController { ...@@ -202,6 +202,40 @@ public class AdmissionFormDAOController {
return updated; return updated;
} }
public boolean updateSpecialAdmissionDateTime(
Long id,
String interactionDate,
String interactionTime
) throws Exception {
boolean updated = admissionFormDataRepository
.updateAdmissionDateTime(id, interactionDate, interactionTime);
if (updated) {
AdmissionFormData data = this.admissionFormDataRepository.getAdmissionFormDataById(id);
String emailBody = this.templateService
.generateSpecialAdmissionConfirmationFormTemplate(data);
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
String[] bcc = BCC_LM_BOYS;
if (!data.getSchool().equals("La Martiniere for Boys")) {
bcc = BCC_LM_GIRLS;
}
this.emailService.sendHtmlEmail(
data.getFatherEmail(),
bcc,
"ADMISSION APPOINTMENT | " + data.getSchool().toUpperCase(),
emailBody,
pdfStream
);
}
return updated;
}
public AdmissionFormCount getAdmissionFormCount() { public AdmissionFormCount getAdmissionFormCount() {
return admissionFormDataRepository.getAdmissionFormCount(); return admissionFormDataRepository.getAdmissionFormCount();
} }
...@@ -247,4 +281,37 @@ public class AdmissionFormDAOController { ...@@ -247,4 +281,37 @@ public class AdmissionFormDAOController {
return out.toByteArray(); return out.toByteArray();
} }
public void validateAdmissionFormDataForAdminSubmit(AdmissionFormData formData) {
if (formData.getSchool() == null || formData.getSchool().isEmpty()) {
throw new IllegalArgumentException("School is missing");
}
if (formData.getCategory() == null || formData.getCategory().isEmpty()) {
throw new IllegalArgumentException("Category is missing");
}
if (formData.getFullName() == null || formData.getFullName().isEmpty()) {
throw new IllegalArgumentException("Full Name is missing");
}
if (formData.getAdmissionClass() == null || formData.getAdmissionClass().isEmpty()) {
throw new IllegalArgumentException("Admission Class is missing");
}
if (formData.getDateOfBirth() == null || formData.getDateOfBirth().isEmpty()) {
throw new IllegalArgumentException("Date of Birth is missing");
}
if (formData.getFatherName() == null || formData.getFatherName().isEmpty()) {
throw new IllegalArgumentException("Father's Name is missing");
}
if (formData.getFatherEmail() == null || formData.getFatherEmail().isEmpty()) {
throw new IllegalArgumentException("Father's Email is missing");
}
if (formData.getFatherMobile() == null || formData.getFatherMobile().isEmpty()) {
throw new IllegalArgumentException("Father's Mobile is missing");
}
if (formData.getCorrespondenceAddress() == null || formData.getCorrespondenceAddress().isEmpty()) {
throw new IllegalArgumentException("Correspondence Address is missing");
}
if (formData.getHomeAddress() == null || formData.getHomeAddress().isEmpty()) {
throw new IllegalArgumentException("Home Address is missing");
}
}
} }
...@@ -54,6 +54,8 @@ public class AdmissionFormDataRepository { ...@@ -54,6 +54,8 @@ public class AdmissionFormDataRepository {
// end newly added fields // end newly added fields
"candidate_image_name, " + "candidate_image_name, " +
"father_image_name, " + "father_image_name, " +
"filled_by_admin, " +
"existing, " +
"mother_image_name) " + "mother_image_name) " +
"VALUES (:school, :category, :fullName, :admissionClass, " + "VALUES (:school, :category, :fullName, :admissionClass, " +
":dateOfBirth, :nationality, :religion, :motherTongue, :community, " + ":dateOfBirth, :nationality, :religion, :motherTongue, :community, " +
...@@ -81,6 +83,8 @@ public class AdmissionFormDataRepository { ...@@ -81,6 +83,8 @@ public class AdmissionFormDataRepository {
// end newly added fields // end newly added fields
":candidateImageName, " + ":candidateImageName, " +
":fatherImageName, " + ":fatherImageName, " +
":filledByAdmin, " +
":existing, " +
":motherImageName)"; ":motherImageName)";
try { try {
...@@ -141,6 +145,8 @@ public class AdmissionFormDataRepository { ...@@ -141,6 +145,8 @@ public class AdmissionFormDataRepository {
params.addValue("candidateImageName", formData.getCandidateImageName()); params.addValue("candidateImageName", formData.getCandidateImageName());
params.addValue("fatherImageName", formData.getFatherImageName()); params.addValue("fatherImageName", formData.getFatherImageName());
params.addValue("motherImageName", formData.getMotherImageName()); params.addValue("motherImageName", formData.getMotherImageName());
params.addValue("filledByAdmin", formData.isFilledByAdmin());
params.addValue("existing", formData.isExisting());
KeyHolder keyHolder = new GeneratedKeyHolder(); KeyHolder keyHolder = new GeneratedKeyHolder();
int cnt = namedParameterJdbcTemplate.update(sql, params, keyHolder); int cnt = namedParameterJdbcTemplate.update(sql, params, keyHolder);
......
package com.example.LaMartin.admission.enums;
import lombok.Getter;
import java.util.List;
import static com.example.LaMartin.constants.NameConstants.LMB_SCHOOL;
import static com.example.LaMartin.constants.NameConstants .LMG_SCHOOL;
@Getter
public enum FEES_STRUCTURE {
// Lamartiniere Boys
LMB_EX_LN (LMB_SCHOOL, "Lower Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_LN (LMB_SCHOOL, "Lower Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_UN (LMB_SCHOOL, "Upper Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_UN (LMB_SCHOOL, "Upper Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_KG (LMB_SCHOOL, "Kindergarten", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_KG (LMB_SCHOOL, "Kindergarten", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_C1 (LMB_SCHOOL, "Class 1", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_C1 (LMB_SCHOOL, "Class 1", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_C2 (LMB_SCHOOL, "Class 2", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C2 (LMB_SCHOOL, "Class 2", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C3 (LMB_SCHOOL, "Class 3", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C3 (LMB_SCHOOL, "Class 3", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C4 (LMB_SCHOOL, "Class 4", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C4 (LMB_SCHOOL, "Class 4", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C5 (LMB_SCHOOL, "Class 5", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C5 (LMB_SCHOOL, "Class 5", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C6 (LMB_SCHOOL, "Class 6", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C6 (LMB_SCHOOL, "Class 6", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C7 (LMB_SCHOOL, "Class 7", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C7 (LMB_SCHOOL, "Class 7", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C8 (LMB_SCHOOL, "Class 8", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C8 (LMB_SCHOOL, "Class 8", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C9 (LMB_SCHOOL, "Class 9", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C9 (LMB_SCHOOL, "Class 9", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C10 (LMB_SCHOOL, "Class 10", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C10 (LMB_SCHOOL, "Class 10", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C11 (LMB_SCHOOL, "Class 11", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C11 (LMB_SCHOOL, "Class 11", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C12 (LMB_SCHOOL, "Class 12", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C12 (LMB_SCHOOL, "Class 12", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
// Lamartiniere Girls
LMG_EX_LN (LMG_SCHOOL, "Lower Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_LN (LMG_SCHOOL, "Lower Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_UN (LMG_SCHOOL, "Upper Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_UN (LMG_SCHOOL, "Upper Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_KG (LMG_SCHOOL, "Kindergarten", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_KG (LMG_SCHOOL, "Kindergarten", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_C1 (LMG_SCHOOL, "Class 1", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_C1 (LMG_SCHOOL, "Class 1", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_C2 (LMG_SCHOOL, "Class 2", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C2 (LMG_SCHOOL, "Class 2", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C3 (LMG_SCHOOL, "Class 3", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C3 (LMG_SCHOOL, "Class 3", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C4 (LMG_SCHOOL, "Class 4", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C4 (LMG_SCHOOL, "Class 4", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C5 (LMG_SCHOOL, "Class 5", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C5 (LMG_SCHOOL, "Class 5", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C6 (LMG_SCHOOL, "Class 6", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C6 (LMG_SCHOOL, "Class 6", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C7 (LMG_SCHOOL, "Class 7", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C7 (LMG_SCHOOL, "Class 7", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C8 (LMG_SCHOOL, "Class 8", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C8 (LMG_SCHOOL, "Class 8", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C9 (LMG_SCHOOL, "Class 9", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C9 (LMG_SCHOOL, "Class 9", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C10 (LMG_SCHOOL, "Class 10", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C10 (LMG_SCHOOL, "Class 10", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C11 (LMG_SCHOOL, "Class 11", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C11 (LMG_SCHOOL, "Class 11", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C12 (LMG_SCHOOL, "Class 12", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C12 (LMG_SCHOOL, "Class 12", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00"));
private final String schoolName;
private final String className;
private final boolean existing;
private final List<String> fees;
FEES_STRUCTURE(String schoolName, String className, boolean existing, List<String> fees) {
this.schoolName = schoolName;
this.className = className;
this.existing = existing;
this.fees = fees;
}
public static List<String> getFeesStructure (
String schoolName,
String className,
boolean existing
) {
for (FEES_STRUCTURE structure : FEES_STRUCTURE.values()) {
if (structure.getSchoolName().equals(schoolName)
&& structure.getClassName().equals(className)
&& structure.isExisting() == existing) {
return structure.getFees();
}
}
return null;
}
}
\ No newline at end of file
...@@ -106,4 +106,7 @@ public class AdmissionFormData { ...@@ -106,4 +106,7 @@ public class AdmissionFormData {
private String admissionTime; private String admissionTime;
private boolean duplicateFatherEmail; private boolean duplicateFatherEmail;
private boolean filledByAdmin;
private boolean existing;
} }
package com.example.LaMartin.common.service; package com.example.LaMartin.common.service;
import com.example.LaMartin.admission.enums.FEES_STRUCTURE;
import com.example.LaMartin.admission.model.AdmissionFormData; import com.example.LaMartin.admission.model.AdmissionFormData;
import com.example.LaMartin.config.Settings; import com.example.LaMartin.config.Settings;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -55,6 +56,31 @@ public class TemplateService { ...@@ -55,6 +56,31 @@ public class TemplateService {
return templateEngine.process("AdmissionConfirmationFormListTemplate", context); return templateEngine.process("AdmissionConfirmationFormListTemplate", context);
} }
public String generateSpecialAdmissionConfirmationFormTemplate(
@NotNull AdmissionFormData admissionFormData
) {
LocalDate date = LocalDate.parse(admissionFormData.getAdmissionDate());
String givenYear = String.valueOf(associationYear);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
admissionFormData.setAdmissionDate(date.format(formatter));
Context context = new Context();
context.setVariable("admissionFormList", List.of(admissionFormData));
context.setVariable("serverPath", settings.getStaticServerPath());
context.setVariable("currentDate", LocalDate.now().format(formatter));
context.setVariable("givenYear", Integer.parseInt(givenYear));
context.setVariable("showSignature", true);
context.setVariable("fees", FEES_STRUCTURE.getFeesStructure(
admissionFormData.getSchool(),
admissionFormData.getAdmissionClass(),
false));
return templateEngine.process("SpecialAdmissionConfirmationFormListTemplate", context);
}
// TODO: remove logic // TODO: remove logic
// public String generateAdmissionConfirmationFormTemplatePdf(@NotNull AdmissionFormData admissionFormData) { // public String generateAdmissionConfirmationFormTemplatePdf(@NotNull AdmissionFormData admissionFormData) {
// LocalDate date = LocalDate.parse(admissionFormData.getAdmissionDate()); // LocalDate date = LocalDate.parse(admissionFormData.getAdmissionDate());
......
package com.example.LaMartin.constants;
public class NameConstants {
public static final String LMB_SCHOOL = "La Martiniere for Boys";
public static final String LMG_SCHOOL = "La Martiniere for Girls";
}
ALTER TABLE admission_form_data
ADD COLUMN filled_by_admin BOOLEAN DEFAULT false;
ALTER TABLE admission_form_data
ADD COLUMN existing BOOLEAN DEFAULT false;
\ No newline at end of file
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<title>Intimation for Admission</title>
<style>
* {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12px;
}
body {
margin: 0px 20px;
}
.header,
.content,
.footer {
text-align: center;
position: relative;
width: 100%;
}
.content {
text-align: justify;
}
.left,
.center,
.right {
display: inline-block;
}
.left {
position: absolute !important;
left: 0 !important;
}
.right {
position: absolute !important;
right: 0 !important;
}
.middle {
margin: 0 auto;
text-align: center;
}
.header img {
height: 80px;
}
.content {
margin-top: 10px;
}
.content p {
margin: 5px 0;
}
.content b {
font-weight: bold;
}
.account-details,
.fee-details {
width: 100%;
margin-top: 20px;
border-collapse: collapse;
}
.account-details td,
.fee-details td,
.fee-details th {
border: 1px solid black;
padding: 5px;
text-align: left;
}
.fee-details th {
text-align: center;
}
.signature {
margin-top: 40px;
text-align: left;
}
.signature img {
width: 18%;
height: 18%;
}
.page-break { page-break-after: always; }
</style>
</head>
<body>
<div class="container" th:each="admissionForm : ${admissionFormList}">
<div class="header">
<div class="left">
<h4>Supriyo Dhar, HRM, MBA, LLB<br />Secretary</h4>
</div>
<div class="center">
<img th:src="@{${serverPath + 'static/la-martin-logo.png'}}" alt="Logo" height="110px" />
</div>
<div class="right">
<h2>La Martiniere</h2>
</div>
</div>
<div class="content page-break">
<div class="left">
<p><b>To,</b><br />
<b th:text="${admissionForm.fatherName}">Pratik Shrivastava</b>
<span th:if="${admissionForm.motherName != null}">
/ <b th:text="${admissionForm.motherName}"></b>
</span>
</p>
</div>
<div class="right">
<p><b th:text="${currentDate}">17/07/2024</b></p>
</div>
<br />
<br />
<br />
<div class="middle">
<strong>Sub: <u>Intimation for Provisional Admission subject to Interaction/ Interview with Principal.</u></strong>
</div>
<p>Dear Parent/s,</p>
<br />
<p>
We are pleased to inform you that your
<span th:if="${admissionForm.school == 'La Martiniere for Boys'}">
<span>son </span>
</span>
<span th:if="${admissionForm.school == 'La Martiniere for Girls'}">
<span>daughter </span>
</span>
<b th:text="${admissionForm.fullName}"></b>
has been
granted admission to <b th:text="${admissionForm.admissionClass}"></b> for the year <span th:text="(${givenYear + 1}) + ' - ' + (${givenYear + 2})">2025 - 2026</span>, subject to Interaction/Interview with Principal.
</p>
<b> BOTH PARENTS AND CANDIDATE MUST ATTEND THE INTERACTION.</b>
<p>
Please contact the
<strong>
Principal's office of
<span th:text="${admissionForm.school}"></span>
<span th:if="${admissionForm.school == 'La Martiniere for Boys'}">
<span>11, Dr. U.N. Brahmachari Street, Kolkata - 700 017,</span>
</span>
<span th:if="${admissionForm.school == 'La Martiniere for Girls'}">
<span>14, Sarojini Naidu Sarani, Kolkata - 700 017,</span>
</span>
</strong> in person, along with a printout of this letter on <b><span th:text="${admissionForm.admissionDate}"></span> at <span th:text="${admissionForm.admissionTime}"></span></b> for necessary formalities.</p>
<p>Parents willing to pay the full year fee may do so, or pay quarterly by way of Pay Order favouring <b>&quot;La
Martiniere Calcutta&quot;</b> or bank transfer, at the time of admission.</p>
<p>For the <b>1<sup>st</sup> Quarter (April to June <span th:text="(${givenYear + 1})"></span>)</b>, parents are to pay <b><span th:text="${fees}"></span></b> towards Tuition Fees, Session Fees,
Infrastructure Development Fees, Admission Fees, Building Development Fees and Security Deposit
(refundable). The amount may be transferred directly to the following account.</p>
<br />
<p><b><u>Penalty of Rs.5000/- will be levied if fees not paid on the due date.</u></b></p>
<table class="account-details">
<tr>
<td>Account Name</td>
<td> La Martiniere, Calcutta</td>
</tr>
<tr>
<td>Account Number</td>
<td> 031201001229</td>
</tr>
<tr>
<td>Bank Name</td>
<td> ICICI Bank, Gorky Terrace</td>
</tr>
<tr>
<td>Account Type</td>
<td> Savings</td>
</tr>
<tr>
<td>RTGS/NEFT/IFS Code</td>
<td> ICIC0000312</td>
</tr>
</table>
<br />
<p>Please email the enclosed format to lmcao@rediffmail.com for confirmation of your payment and also bring a hard copy while visiting Principal's Office.</p>
<table class="fee-details">
<tr>
<th>Quarters</th>
<th>Amount</th>
<th>Date of Payment</th>
</tr>
<tr>
<td>1<sup>st</sup> Quarter (April to June <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. <span th:text="${fees.get(0)}"></span></td>
<td>On the date of admission</td>
</tr>
<tr>
<td>2<sup>nd</sup> Quarter (July to Sept. <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. <span th:text="${fees.get(1)}"></span></td>
<td>1<sup>st</sup> to 5<sup>th</sup> July, <span th:text="(${givenYear + 1})"></span></td>
</tr>
<tr>
<td>3<sup>rd</sup> Quarter (Oct to Dec. <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. <span th:text="${fees.get(2)}"></span></td>
<td>1<sup>st</sup> to 5<sup>th</sup> Oct. <span th:text="(${givenYear + 1})"></span></td>
</tr>
<tr>
<td>4<sup>th</sup> Quarter (Jan to March <span th:text="(${givenYear + 2})"></span>)</td>
<td>Rs. <span th:text="${fees.get(3)}"></span></td>
<td>6<sup>th</sup> to 11<sup>th</sup> Jan <span th:text="(${givenYear + 2})"></span></td>
</tr>
<tr>
<td><b>Total</b></td>
<td colspan="2"><b>Rs <span th:text="${fees.get(4)}"></span></b></td>
</tr>
</table>
<div class="signature">
<p style="margin-bottom: 10px;">Yours faithfully,</p>
<span th:if="${showSignature == true}">
<img th:src="@{${serverPath + 'static/signature.png'}}" width="70px" alt=""/>
</span>
<span th:if="${showSignature == false}">
<br/>
<br/>
<br/>
</span>
<p><b>SUPRIYO DHAR</b><br />Secretary<br />La Martiniere, Kolkata</p>
</div>
<div class="footer" style="margin-top: 10px;">
<div class="left">
<p>11 Dr. U.N. Brahmachari Street<br />Kolkata - 700 017 (INDIA)</p>
</div>
<div class="center">
<p>+91-33-4040-6600/01<br />22890112(D)</p>
</div>
<div class="right">
<p>secretary@lamartiniere.co<br />lamartiniere.co</p>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
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