Subversion Repositories SmartDukaan

Rev

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

Rev 31259 Rev 31464
Line 307... Line 307...
307
		Map<String, Object> map = new HashMap<>();
307
		Map<String, Object> map = new HashMap<>();
308
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
308
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
309
		Map<Integer, CustomRetailer> crm = null;
309
		Map<Integer, CustomRetailer> crm = null;
310
		Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
310
		Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
311
 
311
 
312
		Set<Integer> fofoIds = csService.getAuthFofoIds(email);
312
		Set<Integer> fofoIds = csService.getAuthFofoIds(email, true);
313
 
313
 
314
		if (warehouseId != 0) {
314
		if (warehouseId != 0) {
315
 
315
 
316
			fofoIds = fofoStoreRepository.selectPartnerByfofoIdAndWarehouse(new ArrayList<>(fofoIds), warehouseId)
316
			fofoIds = fofoStoreRepository.selectPartnerByfofoIdAndWarehouse(new ArrayList<>(fofoIds), warehouseId)
317
					.stream().map(x -> x).collect(Collectors.toSet());
317
					.stream().map(x -> x).collect(Collectors.toSet());
Line 472... Line 472...
472
			long stockValue = 0;
472
			long stockValue = 0;
473
			long stockQty = 0;
473
			long stockQty = 0;
474
			long pendingIndent = 0;
474
			long pendingIndent = 0;
475
			long tertiary = 0;
475
			long tertiary = 0;
476
 
476
 
477
			Set<Integer> fofoIds = csService.getAuthFofoIds(email);
477
			Set<Integer> fofoIds = csService.getAuthFofoIds(email, true);
478
 
478
 
479
			if (fofoIds != null && fofoIds.size() > 0) {
479
			if (fofoIds != null && fofoIds.size() > 0) {
480
				Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
480
				Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
481
						.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
481
						.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
482
						.collect(Collectors.groupingBy(FofoStore::getWarehouseId,
482
						.collect(Collectors.groupingBy(FofoStore::getWarehouseId,