Subversion Repositories SmartDukaan

Rev

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

Rev 34087 Rev 34098
Line 1916... Line 1916...
1916
    }
1916
    }
1917
 
1917
 
1918
 
1918
 
1919
    @RequestMapping(value = "/getPartnerShortageStockDetail", method = RequestMethod.GET)
1919
    @RequestMapping(value = "/getPartnerShortageStockDetail", method = RequestMethod.GET)
1920
    public String getPartnerShortageStockDetail(HttpServletRequest request,
1920
    public String getPartnerShortageStockDetail(HttpServletRequest request,
1921
                                          @RequestParam(required = false, defaultValue = "") String brand, @RequestParam int fofoId, Model model)
1921
                                                @RequestParam(required = false, defaultValue = "") String brand, @RequestParam int fofoId, Model model)
1922
            throws Exception {
1922
            throws Exception {
1923
 
1923
 
1924
        Map<Integer, Map<Integer, List<SaholicPOItem>>> warehousePoItemAvailabilityMap = saholicInventoryService
1924
        Map<Integer, Map<Integer, List<SaholicPOItem>>> warehousePoItemAvailabilityMap = saholicInventoryService
1925
                .getSaholicPOItems();
1925
                .getSaholicPOItems();
1926
 
1926
 
Line 2138... Line 2138...
2138
 
2138
 
2139
            partnerWarehouseStockAgingSummaryModelList.add(partnerWarehouseStockAgingSummaryModel);
2139
            partnerWarehouseStockAgingSummaryModelList.add(partnerWarehouseStockAgingSummaryModel);
2140
        }
2140
        }
2141
 
2141
 
2142
        List<String> brands = ProfitMandiConstants.BRANDS;
2142
        List<String> brands = ProfitMandiConstants.BRANDS;
2143
        List<String> statusOrder = Arrays.asList("EOL", "SLOWMOVING", "FASTMOVING", "HID", "OTHER");
2143
        List<String> statusOrder = Arrays.asList("SLOWMOVING", "RUNNING", "FASTMOVING", "HID", "OTHER");
2144
        Map<String, List<PartnerWarehouseStockAgingSummaryModel>> brandPartnerWarehouseStockListMap =
2144
        Map<String, List<PartnerWarehouseStockAgingSummaryModel>> brandPartnerWarehouseStockListMap =
2145
                partnerWarehouseStockAgingSummaryModelList.stream().collect(Collectors.groupingBy(
2145
                partnerWarehouseStockAgingSummaryModelList.stream().collect(Collectors.groupingBy(
2146
                        PartnerWarehouseStockAgingSummaryModel::getBrand));
2146
                        PartnerWarehouseStockAgingSummaryModel::getBrand));
2147
 
2147
 
2148
        Map<String, Map<String, List<PartnerWarehouseStockAgingSummaryModel>>> brandStatusWiseStockListMap =
2148
        Map<String, Map<String, List<PartnerWarehouseStockAgingSummaryModel>>> brandStatusWiseStockListMap =