Subversion Repositories SmartDukaan

Rev

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

Rev 34513 Rev 34569
Line 2258... Line 2258...
2258
        }
2258
        }
2259
 
2259
 
2260
 
2260
 
2261
        List<PartnerWarehouseStockSummaryModel> partnerWarehouseStockSummaryModels = saholicInventoryService.getSaholicAndPartnerStock(fofoId, fofoStore.getWarehouseId());
2261
        List<PartnerWarehouseStockSummaryModel> partnerWarehouseStockSummaryModels = saholicInventoryService.getSaholicAndPartnerStock(fofoId, fofoStore.getWarehouseId());
2262
 
2262
 
-
 
2263
        List<WarehouseIntransitDataModel> warehouseIntransitDataModels = saholicInventoryService.getWarehouseIntransistDataList().stream().filter((x -> x.getWarehouseId() == fofoStore.getWarehouseId())).collect(Collectors.toList());
-
 
2264
 
-
 
2265
        Map<Integer, Long> catalogWiseQtyMap = saholicInventoryService.getWarehouseIntransistDataList().stream()
-
 
2266
                .filter(x -> x.getWarehouseId() == fofoStore.getWarehouseId())
-
 
2267
                .collect(Collectors.groupingBy(
-
 
2268
                        WarehouseIntransitDataModel::getCatalogId,
-
 
2269
                        Collectors.summingLong(WarehouseIntransitDataModel::getQty)
-
 
2270
                ));
-
 
2271
 
2263
        Set<Integer> catalogIds = partnerWarehouseStockSummaryModels.stream().map(x -> x.getCatalogId()).collect(Collectors.toSet());
2272
        Set<Integer> catalogIds = partnerWarehouseStockSummaryModels.stream().map(x -> x.getCatalogId()).collect(Collectors.toSet());
2264
        LOGGER.info("fofoid {} , catalogIds {}", catalogIds, fofoId);
2273
        LOGGER.info("fofoid {} , catalogIds {}", catalogIds, fofoId);
2265
 
2274
 
2266
        List<Integer> catalogsList = new ArrayList<>(catalogIds);
2275
        List<Integer> catalogsList = new ArrayList<>(catalogIds);
2267
 
2276
 
Line 2382... Line 2391...
2382
 
2391
 
2383
        model.addAttribute("brandStatusWiseStockListMap", sortedBrandStatusWiseStockListMap);
2392
        model.addAttribute("brandStatusWiseStockListMap", sortedBrandStatusWiseStockListMap);
2384
        model.addAttribute("pendingIndentsDetailMap", pendingIndentsDetailMap);
2393
        model.addAttribute("pendingIndentsDetailMap", pendingIndentsDetailMap);
2385
        model.addAttribute("brands", finalSortedBrands);
2394
        model.addAttribute("brands", finalSortedBrands);
2386
        model.addAttribute("brandToMtdMap", brandToMtdMap);
2395
        model.addAttribute("brandToMtdMap", brandToMtdMap);
-
 
2396
        model.addAttribute("catalogWiseQtyMap", catalogWiseQtyMap);
2387
        model.addAttribute("brand", brand);
2397
        model.addAttribute("brand", brand);
2388
        model.addAttribute("fofoId", fofoId);
2398
        model.addAttribute("fofoId", fofoId);
2389
        model.addAttribute("customRetailer", customRetailer);
2399
        model.addAttribute("customRetailer", customRetailer);
2390
        model.addAttribute("shortInvest", shortInvest);
2400
        model.addAttribute("shortInvest", shortInvest);
2391
        model.addAttribute("purchaseMtd", purchaseMtd);
2401
        model.addAttribute("purchaseMtd", purchaseMtd);