Subversion Repositories SmartDukaan

Rev

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

Rev 35524 Rev 35530
Line 698... Line 698...
698
    }
698
    }
699
 
699
 
700
    public void rollOutUpgardedMarginsNextMonth(List<Integer> fofoIds) throws Exception {
700
    public void rollOutUpgardedMarginsNextMonth(List<Integer> fofoIds) throws Exception {
701
        LocalDate startOfPreviousMonth = LocalDate.now().with(ChronoField.DAY_OF_MONTH, 1).minusMonths(1);
701
        LocalDate startOfPreviousMonth = LocalDate.now().with(ChronoField.DAY_OF_MONTH, 1).minusMonths(1);
702
        List<FofoStore> stores;
702
        List<FofoStore> stores;
703
        if (fofoIds != null && !fofoIds.isEmpty()) {
703
        if (fofoIds == null || fofoIds.isEmpty()) {
704
            stores = fofoStoreRepository.selectActiveStores();
704
            stores = fofoStoreRepository.selectActiveStores();
705
        } else {
705
        } else {
706
            stores = fofoStoreRepository.selectByRetailerIds(fofoIds);
706
            stores = fofoStoreRepository.selectByRetailerIds(fofoIds);
707
        }
707
        }
708
        for (FofoStore store : stores) {
708
        for (FofoStore store : stores) {