| Line 4315... |
Line 4315... |
| 4315 |
}
|
4315 |
}
|
| 4316 |
}
|
4316 |
}
|
| 4317 |
if (!filteredRows.isEmpty()) {
|
4317 |
if (!filteredRows.isEmpty()) {
|
| 4318 |
String[] email = new String[]{storeGuyEntry.getKey(),"neeraj.gupta@smartdukaan.com"};
|
4318 |
String[] email = new String[]{storeGuyEntry.getKey(),"neeraj.gupta@smartdukaan.com"};
|
| 4319 |
String messageText = this.getMessageForDueDateExtend(filteredRows);
|
4319 |
String messageText = this.getMessageForDueDateExtend(filteredRows);
|
| 4320 |
this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, subject);
|
4320 |
// this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, subject);
|
| - |
|
4321 |
mailOutboxService.queueMailWithAttachmentsViaGoogle(email, null, null, "Default Partners", messageText, true, "ScheduledTasks.sendDefaultLoanAlert", null);
|
| - |
|
4322 |
|
| 4321 |
|
4323 |
|
| 4322 |
}
|
4324 |
}
|
| 4323 |
|
4325 |
|
| 4324 |
}
|
4326 |
}
|
| 4325 |
String messageText = this.getMessageForDueDateExtend(defaultLoans);
|
4327 |
String messageText = this.getMessageForDueDateExtend(defaultLoans);
|
| 4326 |
this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com", "rahul.latwal@smartdukaan.com", "dilbag.singh@smartdukaan.com"}, messageText, null, subject);
|
4328 |
this.sendMailOfHtmlFormat(googleMailSender, new String[]{"dilbag.singh@smartdukaan.com"}, messageText, null, subject);
|
| 4327 |
|
4329 |
|
| 4328 |
for (Loan defaultLoan : defaultLoans) {
|
4330 |
for (Loan defaultLoan : defaultLoans) {
|
| 4329 |
double principal = defaultLoan.getPendingAmount().doubleValue();
|
4331 |
double principal = defaultLoan.getPendingAmount().doubleValue();
|
| 4330 |
double interest = defaultLoan.getInterestAccrued().doubleValue() - defaultLoan.getInterestPaid().doubleValue();
|
4332 |
double interest = defaultLoan.getInterestAccrued().doubleValue() - defaultLoan.getInterestPaid().doubleValue();
|
| 4331 |
double total = principal + interest;
|
4333 |
double total = principal + interest;
|