Subversion Repositories SmartDukaan

Rev

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

Rev 32145 Rev 32147
Line 768... Line 768...
768
 
768
 
769
    public void processSchemeOut(List<String> invoiceNumbers) throws Exception {
769
    public void processSchemeOut(List<String> invoiceNumbers) throws Exception {
770
        for (String invoiceNumber : invoiceNumbers) {
770
        for (String invoiceNumber : invoiceNumbers) {
771
            System.out.println("Invoice Number - " + invoiceNumber);
771
            System.out.println("Invoice Number - " + invoiceNumber);
772
            FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
772
            FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
773
            //orderService.reverseScheme(fofoOrder);1
773
            //orderService.reverseScheme(fofoOrder);
774
            schemeService.processSchemeOut(fofoOrder.getId(), fofoOrder.getFofoId());
774
            schemeService.processSchemeOut(fofoOrder.getId(), fofoOrder.getFofoId());
775
        }
775
        }
776
    }
776
    }
777
 
777
 
778
    public void processSchemeIn(List<String> invoiceNumbers) throws Exception {
778
    public void processSchemeIn(List<String> invoiceNumbers) throws Exception {
Line 1132... Line 1132...
1132
    PurchaseReturnItemRepository purchaseReturnItemRepository;
1132
    PurchaseReturnItemRepository purchaseReturnItemRepository;
1133
 
1133
 
1134
    @Autowired
1134
    @Autowired
1135
    BrandRegionMappingRepository brandRegionMappingRepository;
1135
    BrandRegionMappingRepository brandRegionMappingRepository;
1136
 
1136
 
1137
    public void test() throws Exception {
-
 
1138
        /*System.out.println("Starting test");
-
 
1139
        //processScheme(LocalDate.of(2023,05, 02).atStartOfDay(), LocalDate.of(2023, 05, 6).atStartOfDay(), false);
-
 
1140
        //
-
 
1141
        for (String inv : Arrays.asList("DLWE066/2966", "UPBLY175/1014", "UPSRP547/16", "UPSBL299/2620", "UPSML508/76", "UPBLY175/1015", "UPBLY175/1013", "UPMTR498/377", "UPBUD432/122", "UPAZM132/1443", "UPETH173/2124", "HRGN516/139", "UPSRP547/36", "UPCDL116/1172", "UPSRP547/42", "RJAMR522/36", "RJBHW525/16", "HRRHK424/78", "HRRHK424/81", "HRRHK424/84", "HRRHK424/85", "HRRHK424/83", "HRRHK424/77", "HRRHK424/76", "HRRHK424/75", "HRRHK424/73", "HRRHK424/74", "HRRHK424/45", "HRKA135/3528", "HRKN025/4479", "UPAZM132/1460", "UPBSR530/51", "HRKN093/1434", "HRRHK424/80", "HRKA153/3823", "HRFB402/534", "UPETH173/2232", "HRGN516/140", "UPGBN590/10", "RJJHU440/113", "HRKN148/828", "HRPHK245/617", "HRKA256/170", "UPBSR608/4", "RJBHW445/3", "UPSJP484/169", "UPSJP484/169", "UPSRP455/600", "UPSRP455/599", "RJJU518/546", "HRKN184/669", "UPMTR498/447", "UPAMH419/232", "UPMZR448/392", "HRPW604/24", "UPSML508/126", "HRMWT562/38", "HRKA395/221", "UKAL569/69", "UPMZR448/324", "UPMTR532/153", "UPMTR532/193", "HRKN025/4630")) {
1137
    @Autowired StandAlone standAlone;
1142
            System.out.println("Invoice - " + inv);
-
 
1143
            orderService.reverseScheme(fofoOrderRepository.selectByInvoiceNumber(inv));
-
 
1144
        }*/
-
 
1145
 
1138
 
-
 
1139
    public void test() throws Exception {
1146
        try {
1140
        try {
1147
            this.processRechargeCashback();
1141
            standAlone.checkOppoImeiStatus();
1148
        } catch (Throwable e) {
1142
        } catch (Throwable e) {
1149
            throw new Exception(e);
1143
            throw new Exception(e);
1150
        }
1144
        }
1151
 
1145
 
1152
        //this.sendMailForSamsungRebilling();
1146
        //this.sendMailForSamsungRebilling();
Line 4492... Line 4486...
4492
        }
4486
        }
4493
 
4487
 
4494
    }
4488
    }
4495
 
4489
 
4496
 
4490
 
4497
}
-
 
4498
// 2284'
-
 
4499
4491
}
-
 
4492
4500
4493