Subversion Repositories SmartDukaan

Rev

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

Rev 33904 Rev 33928
Line 843... Line 843...
843
    BrandAgeingLimitRepository brandAgeingLimitRepository;
843
    BrandAgeingLimitRepository brandAgeingLimitRepository;
844
 
844
 
845
    @Autowired
845
    @Autowired
846
    AgeingService ageingService;
846
    AgeingService ageingService;
847
 
847
 
-
 
848
    @Autowired
-
 
849
    RbmTargetService rbmTargetService;
-
 
850
 
848
    public void sendMailForAgeingAlert() throws Exception {
851
    public void sendMailForAgeingAlert() throws Exception {
849
        //brandAgeingLimitRepository.selectAll();
852
        //brandAgeingLimitRepository.selectAll();
850
        Map<String, AgeingModel> ageingModelMap = ageingService.getAllAgeingForSecondary();
853
        Map<String, AgeingModel> ageingModelMap = ageingService.getAllAgeingForSecondary();
851
 
854
 
852
        System.out.println(ageingModelMap.size());
855
        System.out.println(ageingModelMap.size());
Line 1052... Line 1055...
1052
    GstProService gstProService;
1055
    GstProService gstProService;
1053
 
1056
 
1054
    @Autowired
1057
    @Autowired
1055
    WarehouseProviderRepository warehouseProviderRepository;
1058
    WarehouseProviderRepository warehouseProviderRepository;
1056
    public void test() throws Exception {
1059
    public void test() throws Exception {
-
 
1060
 
-
 
1061
        this.persistRbmTodayTargets();
1057
        //Should return 22792
1062
        //Should return 22792
1058
        System.out.println(sdCreditService.getLimitFromTransactionId(1156356));
-
 
-
 
1063
 
1059
        //sdCreditService.createLoan(175139262,76000,0,"Amount added for loan adjustment");
1064
        //sdCreditService.createLoan(175139262,76000,0,"Amount added for loan adjustment");
1060
        //this.checkfocusedModelInPartnerStock();
1065
        //this.checkfocusedModelInPartnerStock();
1061
       // List<SDCreditRequirement> sdCreditRequirements = sdCreditRequirementRepository.selectAll();
1066
       // List<SDCreditRequirement> sdCreditRequirements = sdCreditRequirementRepository.selectAll();
1062
        /*for (SDCreditRequirement sdCreditRequirement : sdCreditRequirements) {
1067
        /*for (SDCreditRequirement sdCreditRequirement : sdCreditRequirements) {
1063
            long utilizationAmount = sdCreditService.getUtilizationAmount(sdCreditRequirement.getFofoId());
1068
            long utilizationAmount = sdCreditService.getUtilizationAmount(sdCreditRequirement.getFofoId());
Line 1652... Line 1657...
1652
        }
1657
        }
1653
        return partnerIdSalesHeadersMap;
1658
        return partnerIdSalesHeadersMap;
1654
 
1659
 
1655
    }
1660
    }
1656
 
1661
 
-
 
1662
    public void persistRbmTodayTargets() throws Exception{
-
 
1663
        rbmTargetService.setMovementWiseRbmTargets();
-
 
1664
    }
-
 
1665
 
1657
    public void sendPartnerInvestmentDetails() throws Exception {
1666
    public void sendPartnerInvestmentDetails() throws Exception {
1658
        this.sendPartnerInvestmentDetails(null);
1667
        this.sendPartnerInvestmentDetails(null);
1659
    }
1668
    }
1660
 
1669
 
1661
    public void sendAgeingReport(String... sendTo) throws Exception {
1670
    public void sendAgeingReport(String... sendTo) throws Exception {