Subversion Repositories SmartDukaan

Rev

Rev 36457 | Rev 36459 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36457 Rev 36458
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
 
-
 
4323
 
4321
 
4324
            }
4322
            }
4325
 
4323
 
4326
        }
4324
        }
4327
        String messageText = this.getMessageForDueDateExtend(defaultLoans);
4325
        String messageText = this.getMessageForDueDateExtend(defaultLoans);
4328
        this.sendMailOfHtmlFormat(googleMailSender, new String[]{"dilbag.singh@smartdukaan.com"}, messageText, null, subject);
4326
        this.sendMailOfHtmlFormat(googleMailSender, new String[]{"puneet.wahi@smartdukaan.com", "rahul.latwal@smartdukaan.com", "dilbag.singh@smartdukaan.com"}, messageText, null, subject);
4329
 
4327
 
4330
        for (Loan defaultLoan : defaultLoans) {
4328
        for (Loan defaultLoan : defaultLoans) {
4331
            double principal = defaultLoan.getPendingAmount().doubleValue();
4329
            double principal = defaultLoan.getPendingAmount().doubleValue();
4332
            double interest = defaultLoan.getInterestAccrued().doubleValue() - defaultLoan.getInterestPaid().doubleValue();
4330
            double interest = defaultLoan.getInterestAccrued().doubleValue() - defaultLoan.getInterestPaid().doubleValue();
4333
            double total = principal + interest;
4331
            double total = principal + interest;