|
|
@@ -924,6 +924,15 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void HSBCFIN_textBox(PdfAcroForm form, CommonField commonField, Client client){ |
|
|
private void HSBCFIN_textBox(PdfAcroForm form, CommonField commonField, Client client){ |
|
|
|
|
|
if("Yes".equals(commonField.getOthers().get("maritalStatusSingle"))){ |
|
|
|
|
|
setValueIfPresent(form, "fill_7", "Single"); |
|
|
|
|
|
} |
|
|
|
|
|
if("Yes".equals(commonField.getOthers().get("maritalStatusMarried"))){ |
|
|
|
|
|
setValueIfPresent(form, "fill_7", "Married"); |
|
|
|
|
|
} |
|
|
|
|
|
if("Yes".equals(commonField.getOthers().get("maritalStatusOther"))){ |
|
|
|
|
|
setValueIfPresent(form, "chho", "Other"); |
|
|
|
|
|
} |
|
|
//logger.info("Processing HSBCFIN form (ID: 3)"); |
|
|
//logger.info("Processing HSBCFIN form (ID: 3)"); |
|
|
/* Page1 Start */ |
|
|
/* Page1 Start */ |
|
|
setValueIfPresent(form, "fill_3", StringUtils.trimToEmpty(StringUtils.trimToEmpty(client.getLastname()) + " " + StringUtils.trimToEmpty(client.getFirstname()))); |
|
|
setValueIfPresent(form, "fill_3", StringUtils.trimToEmpty(StringUtils.trimToEmpty(client.getLastname()) + " " + StringUtils.trimToEmpty(client.getFirstname()))); |
|
|
@@ -1409,8 +1418,8 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
setValueIfPresent(form, "1_12_1", commonField.getOthers().get("empPosition")); |
|
|
setValueIfPresent(form, "1_12_1", commonField.getOthers().get("empPosition")); |
|
|
setValueIfPresent(form, "1_12_2", commonField.getOthers().get("empDuties")); |
|
|
setValueIfPresent(form, "1_12_2", commonField.getOthers().get("empDuties")); |
|
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_5", commonField.getTotalAnnualIncome()); |
|
|
|
|
|
if(commonField.getTotalAnnualIncome() != null && !commonField.getTotalAnnualIncome().isBlank()){ |
|
|
|
|
|
|
|
|
setValueIfPresent(form, "1_12_5", formatNum(client.getTotalIncomeCurrent())); |
|
|
|
|
|
if(client.getTotalIncomeCurrent() != null){ |
|
|
setValueIfPresent(form, "1_12_5_usd", "USD"); |
|
|
setValueIfPresent(form, "1_12_5_usd", "USD"); |
|
|
setValueIfPresent(form, "1_12_5_pa", "P.A."); |
|
|
setValueIfPresent(form, "1_12_5_pa", "P.A."); |
|
|
} |
|
|
} |
|
|
@@ -2028,6 +2037,10 @@ public class PdfService extends AbstractBaseEntityService<Pdf, Long, PdfReposito |
|
|
|
|
|
|
|
|
if(consultant.getName() != null){ |
|
|
if(consultant.getName() != null){ |
|
|
setValueIfPresent(form, "BranchName", consultant.getName()); |
|
|
setValueIfPresent(form, "BranchName", consultant.getName()); |
|
|
|
|
|
setValueIfPresent(form, "IntermdeiaryName", consultant.getName()); |
|
|
|
|
|
setValueIfPresent(form, "WitnessName", consultant.getName()); |
|
|
|
|
|
setValueIfPresent(form, "TRName", consultant.getName()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|