Subversion Repositories SmartDukaan

Rev

Rev 37991 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37991 Rev 38009
Line 844... Line 844...
844
    public void sendCreditNote(YearMonth yearMonth, boolean dryRun) throws Exception {
844
    public void sendCreditNote(YearMonth yearMonth, boolean dryRun) throws Exception {
845
        LOGGER.info("Running SendCreditNote for {} (dryRun={})", yearMonth.toString(), dryRun);
845
        LOGGER.info("Running SendCreditNote for {} (dryRun={})", yearMonth.toString(), dryRun);
846
        creditNoteService.issueMonthlyMarginsCN(yearMonth, dryRun);
846
        creditNoteService.issueMonthlyMarginsCN(yearMonth, dryRun);
847
    }
847
    }
848
 
848
 
849
    public void corrMarginCNs(YearMonth yearMonth, boolean dryRun) throws Exception {
-
 
850
        LOGGER.info("Running corrMarginCNs for {} (dryRun={})", yearMonth.toString(), dryRun);
-
 
851
        creditNoteService.issueCorrectiveMarginCNs(yearMonth, dryRun);
-
 
852
    }
-
 
853
 
-
 
854
    public void cancelMarginDnIrns(YearMonth yearMonth, boolean dryRun) throws Exception {
-
 
855
        LOGGER.info("Running cancelMarginDnIrns for {} (dryRun={})", yearMonth.toString(), dryRun);
-
 
856
        creditNoteService.cancelMarginDnIrns(yearMonth, dryRun);
-
 
857
    }
-
 
858
 
-
 
859
    public void regenMarginIrns(YearMonth yearMonth, boolean dryRun) throws Exception {
-
 
860
        LOGGER.info("Running regenMarginIrns for {} (dryRun={})", yearMonth.toString(), dryRun);
-
 
861
        creditNoteService.regenerateMarginIrns(yearMonth, dryRun);
-
 
862
    }
-
 
863
 
-
 
864
    @Autowired
849
    @Autowired
865
    com.spice.profitmandi.service.catalog.ModelHotDealService modelHotDealService;
850
    com.spice.profitmandi.service.catalog.ModelHotDealService modelHotDealService;
866
 
851
 
867
    public void genDNs(YearMonth yearMonth) throws Exception {
-
 
868
        LOGGER.info("Running genDNs for {}", yearMonth.toString());
-
 
869
        creditNoteService.generateDebitNotesForCancelled(yearMonth);
-
 
870
    }
-
 
871
 
-
 
872
    public void genDNsForCNs(List<String> cnNumbers) throws Exception {
-
 
873
        LOGGER.info("Running genDNs for {} explicit CNs", cnNumbers.size());
-
 
874
        creditNoteService.generateDebitNotesForCancelled(cnNumbers);
-
 
875
    }
-
 
876
 
-
 
877
    @Autowired
852
    @Autowired
878
    BrandAgeingLimitRepository brandAgeingLimitRepository;
853
    BrandAgeingLimitRepository brandAgeingLimitRepository;
879
 
854
 
880
    @Autowired
855
    @Autowired
881
    AgeingService ageingService;
856
    AgeingService ageingService;