Subversion Repositories SmartDukaan

Rev

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

Rev 28971 Rev 28974
Line 781... Line 781...
781
		}
781
		}
782
		LOGGER.info("Cashbacks for Recharge processed Successfully");
782
		LOGGER.info("Cashbacks for Recharge processed Successfully");
783
	}
783
	}
784
	
784
	
785
	public void rollOutUpgardedMargins() {
785
	public void rollOutUpgardedMargins() {
-
 
786
		List<Integer> fofoIds = Arrays.asList(175138968, 175138957, 175138952, 175138934);
786
		List<FofoStore> stores = fofoStoreRepository.selectActiveStores();
787
		List<FofoStore> stores = fofoStoreRepository.selectActiveStores();
787
		for(FofoStore store : stores) {
788
		for(FofoStore store : stores) {
-
 
789
			if(fofoIds.contains(store.getId())) {
788
			int fofoId = store.getId();
790
				int fofoId = store.getId();
789
			PartnerType yesterdayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now().minusDays(1));
791
				PartnerType yesterdayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now().minusDays(1));
790
			PartnerType todayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now());
792
				PartnerType todayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now());
791
			if(!yesterdayPartnerType.equals(todayPartnerType)) {
793
				if(!yesterdayPartnerType.equals(todayPartnerType)) {
792
				LOGGER.info("Partner Type has been changed for code {}", store.getCode());
794
					LOGGER.info("Partner Type has been changed for code {}", store.getCode());
-
 
795
				}
793
			}
796
			}
794
		}
797
		}
795
	}
798
	}
796
 
799
 
797
	private class SaleRoles {
800
	private class SaleRoles {