Subversion Repositories SmartDukaan

Rev

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

Rev 36936 Rev 36993
Line 846... Line 846...
846
    }
846
    }
847
 
847
 
848
    @Autowired
848
    @Autowired
849
    CreditNoteService creditNoteService;
849
    CreditNoteService creditNoteService;
850
 
850
 
851
    public void sendCreditNote(YearMonth yearMonth) throws Exception {
851
    public void sendCreditNote(YearMonth yearMonth, boolean dryRun) throws Exception {
852
        LOGGER.info("Running SendCreditNote for {}", yearMonth.toString());
852
        LOGGER.info("Running SendCreditNote for {} (dryRun={})", yearMonth.toString(), dryRun);
853
        creditNoteService.issueMonthlyMarginsCN(yearMonth);
853
        creditNoteService.issueMonthlyMarginsCN(yearMonth, dryRun);
854
    }
854
    }
855
 
855
 
856
    public void genDNs(YearMonth yearMonth) throws Exception {
856
    public void genDNs(YearMonth yearMonth) throws Exception {
857
        LOGGER.info("Running genDNs for {}", yearMonth.toString());
857
        LOGGER.info("Running genDNs for {}", yearMonth.toString());
858
        creditNoteService.generateDebitNotesForCancelled(yearMonth);
858
        creditNoteService.generateDebitNotesForCancelled(yearMonth);