Subversion Repositories SmartDukaan

Rev

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

Rev 32610 Rev 32682
Line 998... Line 998...
998
    }
998
    }
999
 
999
 
1000
    @Autowired
1000
    @Autowired
1001
    PurchaseReturnService purchaseReturnService;
1001
    PurchaseReturnService purchaseReturnService;
1002
 
1002
 
-
 
1003
    @Autowired
-
 
1004
    JavaMailSender javaMailSender;
-
 
1005
 
1003
    public void test() throws Exception {
1006
    public void test() throws Exception {
-
 
1007
        sendMailOfHtmlFormat(javaMailSender, new String[]{"amit.gupta@smartdukaan.com"}, "hello", null, "Hello");
1004
        //Create return
1008
        //Create return
1005
        //this.updatePartnerLimit();
1009
        //this.updatePartnerLimit();
1006
        //creditNoteService.sendCnMails(YearMonth.now().minusMonths(2));
1010
        //creditNoteService.sendCnMails(YearMonth.now().minusMonths(2));
1007
        orderService.createMissingScratchOffers();
1011
        orderService.createMissingScratchOffers();
1008
 
1012
 
Line 3636... Line 3640...
3636
 
3640
 
3637
                            creditAccount.setAvailableAmount(sdCreditRequirement.getAvailableLimit().floatValue());
3641
                            creditAccount.setAvailableAmount(sdCreditRequirement.getAvailableLimit().floatValue());
3638
                            creditAccount.setUpdatedOn(LocalDateTime.now());
3642
                            creditAccount.setUpdatedOn(LocalDateTime.now());
3639
 
3643
 
3640
                            loan.setPendingAmount(BigDecimal.ZERO);
3644
                            loan.setPendingAmount(BigDecimal.ZERO);
-
 
3645
                            loan.setSettledOn(LocalDateTime.now());
3641
 
3646
 
3642
                        } else if (principalAmount < 0) {
3647
                        } else if (principalAmount < 0) {
3643
 
3648
 
3644
                            settledLoanStatement(LoanReferenceType.PRINCIPAL, BigDecimal.valueOf(userWalletAmount), loan.getFofoId(), loan.getId(), "Amount adjusted against loan", LocalDateTime.now());
3649
                            settledLoanStatement(LoanReferenceType.PRINCIPAL, BigDecimal.valueOf(userWalletAmount), loan.getFofoId(), loan.getId(), "Amount adjusted against loan", LocalDateTime.now());
3645
 
3650