Subversion Repositories SmartDukaan

Rev

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

Rev 36476 Rev 36503
Line 851... Line 851...
851
    public void genDNs(YearMonth yearMonth) throws Exception {
851
    public void genDNs(YearMonth yearMonth) throws Exception {
852
        LOGGER.info("Running genDNs for {}", yearMonth.toString());
852
        LOGGER.info("Running genDNs for {}", yearMonth.toString());
853
        creditNoteService.generateDebitNotesForCancelled(yearMonth);
853
        creditNoteService.generateDebitNotesForCancelled(yearMonth);
854
    }
854
    }
855
 
855
 
-
 
856
    public void genDNsForCNs(List<String> cnNumbers) throws Exception {
-
 
857
        LOGGER.info("Running genDNs for {} explicit CNs", cnNumbers.size());
-
 
858
        creditNoteService.generateDebitNotesForCancelled(cnNumbers);
-
 
859
    }
-
 
860
 
856
    @Autowired
861
    @Autowired
857
    BrandAgeingLimitRepository brandAgeingLimitRepository;
862
    BrandAgeingLimitRepository brandAgeingLimitRepository;
858
 
863
 
859
    @Autowired
864
    @Autowired
860
    AgeingService ageingService;
865
    AgeingService ageingService;
Line 1199... Line 1204...
1199
 
1204
 
1200
    public void test() throws Exception {
1205
    public void test() throws Exception {
1201
 
1206
 
1202
        //System.out.println(pinelabsAuthService.getAccessToken());
1207
        //System.out.println(pinelabsAuthService.getAccessToken());
1203
        //testAffordability();
1208
        //testAffordability();
1204
 
-
 
-
 
1209
        mailOutboxService.processPendingMails();
1205
        //System.out.println(trialFormRepository.selectByEmailOrMobile("9990381568"));
1210
        //System.out.println(trialFormRepository.selectByEmailOrMobile("9990381568"));
1206
        /*CreditBlockedExceptionPartner creditBlockedExceptionPartner = creditBlockedExceptionPartnersRepository.select(175139430);
1211
        /*CreditBlockedExceptionPartner creditBlockedExceptionPartner = creditBlockedExceptionPartnersRepository.select(175139430);
1207
        System.out.println(creditBlockedExceptionPartner);*/
1212
        System.out.println(creditBlockedExceptionPartner);*/
1208
        //this.updatePartnerLimit(175139595);
1213
        //this.updatePartnerLimit(175139595);
1209
        this.fixStuckLimitBlocks(9999);
1214
        //this.fixStuckLimitBlocks(9999);
1210
        //this.regenerateDCInvoices();
1215
        //this.regenerateDCInvoices();
1211
        //this.releaseBlockedLimit();
1216
        //this.releaseBlockedLimit();
1212
        //sdCreditService.resetHardLimit();
1217
        //sdCreditService.resetHardLimit();
1213
        //migrations.migrateSerialInvoiceMap();
1218
        //migrations.migrateSerialInvoiceMap();
1214
        //runOnceTasks.checkRewardsEligibility();
1219
        //runOnceTasks.checkRewardsEligibility();