Subversion Repositories SmartDukaan

Rev

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

Rev 37846 Rev 37851
Line 1328... Line 1328...
1328
            authfofoIds = new HashSet<>();
1328
            authfofoIds = new HashSet<>();
1329
        }
1329
        }
1330
        Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository.selectActivePartnersByRetailerIds(new ArrayList<>(authfofoIds)).stream().collect(Collectors.groupingBy(
1330
        Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository.selectActivePartnersByRetailerIds(new ArrayList<>(authfofoIds)).stream().collect(Collectors.groupingBy(
1331
                FofoStore::getWarehouseId, Collectors.mapping(FofoStore::getId, Collectors.toList())));
1331
                FofoStore::getWarehouseId, Collectors.mapping(FofoStore::getId, Collectors.toList())));
1332
 
1332
 
-
 
1333
        // Every ACTIVE warehouse the dashboard lists can be opened, even one with no franchise store of its own.
1333
        if (!warehouseIdFofoIdMap.containsKey(7573)) {
1334
        for (Integer activeWarehouseId : billingWarehouseService.getActiveWarehouses().keySet()) {
1334
            warehouseIdFofoIdMap.put(7573, new ArrayList<>());
1335
            warehouseIdFofoIdMap.putIfAbsent(activeWarehouseId, new ArrayList<>());
1335
        }
1336
        }
1336
 
1337
 
1337
        Map<Integer, CustomRetailer> fofoIdAndPartnerMap = retailerService.getFofoRetailers(false);
1338
        Map<Integer, CustomRetailer> fofoIdAndPartnerMap = retailerService.getFofoRetailers(false);
1338
        Map<Integer, PartnerDetailModel> fofoIdAndallValues = adminUser.getPartnersStatDataFromFile();
1339
        Map<Integer, PartnerDetailModel> fofoIdAndallValues = adminUser.getPartnersStatDataFromFile();
1339
        if (fofoIdAndallValues == null) {
1340
        if (fofoIdAndallValues == null) {