Subversion Repositories SmartDukaan

Rev

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

Rev 35115 Rev 35132
Line 1125... Line 1125...
1125
        });
1125
        });
1126
 
1126
 
1127
    }
1127
    }
1128
 
1128
 
1129
    public void test() throws Exception {
1129
    public void test() throws Exception {
1130
        runOnceTasks.checkRewardsEligibility();
1130
        //runOnceTasks.checkRewardsEligibility();
-
 
1131
        runOnceTasks.migrateLimit();
1131
        System.exit(0);
1132
        System.exit(0);
1132
        //purSaleService.moreThen10DaysEgedStockReport();
1133
        //purSaleService.moreThen10DaysEgedStockReport();
1133
        //System.out.println(schemeService.testRedis(1, 2L));
1134
        //System.out.println(schemeService.testRedis(1, 2L));
1134
        //System.out.println(schemeService.testRedis(1, null));
1135
        //System.out.println(schemeService.testRedis(1, null));
1135
       // abmReportSender.sendAbmSmartCartReport();
1136
       // abmReportSender.sendAbmSmartCartReport();
Line 4049... Line 4050...
4049
                if(attachment1 != null){
4050
                if(attachment1 != null){
4050
                    Utils.sendMailWithAttachments(googleMailSender, email, null, null, "Partner Credit Report", messageText, true, attachment1);
4051
                    Utils.sendMailWithAttachments(googleMailSender, email, null, null, "Partner Credit Report", messageText, true, attachment1);
4051
                }else {
4052
                }else {
4052
                this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, "Due Date Cross");
4053
                this.sendMailOfHtmlFormat(googleMailSender, email, messageText, null, "Due Date Cross");
4053
 
4054
 
4054
                }
-
 
4055
 
-
 
4056
 
-
 
4057
 
-
 
4058
            }
4055
            }
4059
 
4056
 
4060
        }
4057
        }
4061
 
4058
 
-
 
4059
        }
-
 
4060
 
4062
        String messageText = this.getMessageForDueDateCross(dueDateCrossLoans);
4061
        String messageText = this.getMessageForDueDateCross(dueDateCrossLoans);
4063
        ByteArrayOutputStream byteArrayOutputStream = this.generateLoanCsv(allActiveLoans);
4062
        ByteArrayOutputStream byteArrayOutputStream = this.generateLoanCsv(allActiveLoans);
4064
        Utils.Attachment attachment = null;
4063
        Utils.Attachment attachment = null;
4065
        if(byteArrayOutputStream != null){
4064
        if(byteArrayOutputStream != null){
4066
            attachment  = new Utils.Attachment("partnner-credit.csv", new ByteArrayResource(byteArrayOutputStream.toByteArray()));
4065
            attachment  = new Utils.Attachment("partnner-credit.csv", new ByteArrayResource(byteArrayOutputStream.toByteArray()));