Subversion Repositories SmartDukaan

Rev

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

Rev 33391 Rev 33423
Line 1036... Line 1036...
1036
 
1036
 
1037
    @Autowired
1037
    @Autowired
1038
    WarehouseService warehouseService;
1038
    WarehouseService warehouseService;
1039
 
1039
 
1040
    public void test() throws Exception {
1040
    public void test() throws Exception {
-
 
1041
        sdCreditService.checkLoans();
1041
        /*System.out.println(warehouseService.moveToBad(Arrays.asList("860374066889716",
1042
        /*System.out.println(warehouseService.moveToBad(Arrays.asList("860374066889716",
1042
                "863587077946699",
1043
                "863587077946699",
1043
                "865883067303639",
1044
                "865883067303639",
1044
                "868116066180113",
1045
                "868116066180113",
1045
                "868116066179719")));*/
1046
                "868116066179719")));*/
1046
        System.out.println(warehouseService.moveToGood(Arrays.asList("354814720314877",
1047
        /*System.out.println(warehouseService.moveToGood(Arrays.asList("354814720314877",
1047
                "43356/c21100001116",
1048
                "43356/c21100001116",
1048
                "34850/c21100054629")));
1049
                "34850/c21100054629")));*/
1049
        //this.test1();
1050
        //this.test1();
1050
        //this.processSidbiDeductions();
1051
        //this.processSidbiDeductions();
1051
        /*List<Order> orders = orderRepository.selectByInvoiceNumber("NSDL43328");
1052
        /*List<Order> orders = orderRepository.selectByInvoiceNumber("NSDL43328");
1052
        invoiceService.saveInvoice(orders);*/
1053
        invoiceService.saveInvoice(orders);*/
1053
        /*for ( int fofoId : Arrays.asList(4149607,175138674,175138854,175138934,175138958,175139138,175139150,175139245,175139259,175139306,175139324,175139344,175139346,175139362,175139386,175139395,175139412,175139452,175139455,175139460,175139462,175139463,175139488,175139489,175139499,175139504,175139508,175139511,175139513,175139521,175139524,175139531,175139532,175139557,175139559,175139576,175139603,175139605,175139608,175139612,175139621,175139630,175139638,175139657,175139661,175139690,175139697,175139716,175139731)) {
1054
        /*for ( int fofoId : Arrays.asList(4149607,175138674,175138854,175138934,175138958,175139138,175139150,175139245,175139259,175139306,175139324,175139344,175139346,175139362,175139386,175139395,175139412,175139452,175139455,175139460,175139462,175139463,175139488,175139489,175139499,175139504,175139508,175139511,175139513,175139521,175139524,175139531,175139532,175139557,175139559,175139576,175139603,175139605,175139608,175139612,175139621,175139630,175139638,175139657,175139661,175139690,175139697,175139716,175139731)) {
Line 3826... Line 3827...
3826
                        if (settledAmount >= sanctionRequest.getPendingAmount().doubleValue()) {
3827
                        if (settledAmount >= sanctionRequest.getPendingAmount().doubleValue()) {
3827
                            settledAmount -= sanctionRequest.getPendingAmount().doubleValue();
3828
                            settledAmount -= sanctionRequest.getPendingAmount().doubleValue();
3828
                            sanctionRequest.setPendingAmount(BigDecimal.valueOf(0));
3829
                            sanctionRequest.setPendingAmount(BigDecimal.valueOf(0));
3829
                            this.sendUnholdEmail(orders);
3830
                            this.sendUnholdEmail(orders);
3830
                        } else {
3831
                        } else {
3831
                            settledAmount -= sanctionRequest.getPendingAmount().doubleValue();
3832
                            double pendinAmount = sanctionRequest.getPendingAmount().doubleValue() - settledAmount;
3832
                            sanctionRequest.setPendingAmount(BigDecimal.valueOf(settledAmount));
3833
                            sanctionRequest.setPendingAmount(BigDecimal.valueOf(pendinAmount));
3833
                            break;
3834
                            break;
3834
 
3835
 
3835
                        }
3836
                        }
3836
 
3837
 
3837
                    }
3838
                    }