| Line 313... |
Line 313... |
| 313 |
double totalBrandFeeCollection = brandFeeCollections.stream().mapToDouble(x -> x.getCollectedAmount()).sum() + brandFeeCollection.getCollectedAmount();
|
313 |
double totalBrandFeeCollection = brandFeeCollections.stream().mapToDouble(x -> x.getCollectedAmount()).sum() + brandFeeCollection.getCollectedAmount();
|
| 314 |
LOGGER.info("agreedBrandeFee -" + agreedBrandFee);
|
314 |
LOGGER.info("agreedBrandeFee -" + agreedBrandFee);
|
| 315 |
LOGGER.info("totalBrandFeeCollection -" + totalBrandFeeCollection);
|
315 |
LOGGER.info("totalBrandFeeCollection -" + totalBrandFeeCollection);
|
| 316 |
boolean b = agreedBrandFee == totalBrandFeeCollection && loiForm.getLoiSignOtp() != null;
|
316 |
boolean b = agreedBrandFee == totalBrandFeeCollection && loiForm.getLoiSignOtp() != null;
|
| 317 |
if (brandFeeCollection.getPaymentStatus().equals(FeePaymentStatus.REJECT)) {
|
317 |
if (brandFeeCollection.getPaymentStatus().equals(FeePaymentStatus.REJECT)) {
|
| 318 |
loiFormService.sendPaymentApprovalMail(brandFeeCollection);
|
318 |
loiFormService.sendPaymentStatusMailToLoiFiller(brandFeeCollection);
|
| 319 |
model.addAttribute("response1", mvcResponseSender.createResponseString(false));
|
319 |
model.addAttribute("response1", mvcResponseSender.createResponseString(false));
|
| 320 |
} else {
|
320 |
} else {
|
| 321 |
loiFormService.sendPaymentApprovalMail(brandFeeCollection);
|
321 |
loiFormService.sendPaymentStatusMailToLoiFiller(brandFeeCollection);
|
| 322 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
322 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
| 323 |
}
|
323 |
}
|
| 324 |
if (agreedBrandFee == totalBrandFeeCollection && loiForm.getLoiSignOtp() != null) {
|
324 |
if (agreedBrandFee == totalBrandFeeCollection && loiForm.getLoiSignOtp() != null) {
|
| 325 |
loiForm.setStatus(LoiStatus.PRE_ONBOARDING_DONE);
|
325 |
loiForm.setStatus(LoiStatus.PRE_ONBOARDING_DONE);
|
| 326 |
}
|
326 |
}
|