| Line 1834... |
Line 1834... |
| 1834 |
.collect(Collectors.groupingBy(InStockBrandFofoIdModel::getFofoId,
|
1834 |
.collect(Collectors.groupingBy(InStockBrandFofoIdModel::getFofoId,
|
| 1835 |
Collectors.groupingBy(InStockBrandFofoIdModel::getBrand,
|
1835 |
Collectors.groupingBy(InStockBrandFofoIdModel::getBrand,
|
| 1836 |
Collectors.summingDouble(InStockBrandFofoIdModel::getAmount))));
|
1836 |
Collectors.summingDouble(InStockBrandFofoIdModel::getAmount))));
|
| 1837 |
|
1837 |
|
| 1838 |
pendingIndent = transactionService.getInTransitOrders(fofoIdList).stream()
|
1838 |
pendingIndent = transactionService.getInTransitOrders(fofoIdList).stream()
|
| 1839 |
.filter(x -> x.getLineItem().getItem().equals("10006"))
|
1839 |
.filter(x -> x.getLineItem().getItem().getCategoryId() == 10006)
|
| 1840 |
.collect(Collectors.groupingBy(x -> x.getRetailerId(),
|
1840 |
.collect(Collectors.groupingBy(x -> x.getRetailerId(),
|
| 1841 |
Collectors.groupingBy(y -> y.getLineItem().getBrand(),
|
1841 |
Collectors.groupingBy(y -> y.getLineItem().getBrand(),
|
| 1842 |
Collectors.summingDouble(y -> (double) y.getTotalAmount()))));
|
1842 |
Collectors.summingDouble(y -> (double) y.getTotalAmount()))));
|
| 1843 |
|
1843 |
|
| 1844 |
grnPendingOrders = orderRepository.selectPendingGrnOrders(fofoIdList).stream()
|
1844 |
grnPendingOrders = orderRepository.selectPendingGrnOrders(fofoIdList).stream()
|
| 1845 |
.filter(x -> x.getLineItem().getItem().equals("10006"))
|
1845 |
.filter(x -> x.getLineItem().getItem().getCategoryId() == 10006)
|
| 1846 |
.collect(Collectors.groupingBy(x -> x.getRetailerId(),
|
1846 |
.collect(Collectors.groupingBy(x -> x.getRetailerId(),
|
| 1847 |
Collectors.groupingBy(y -> y.getLineItem().getBrand(),
|
1847 |
Collectors.groupingBy(y -> y.getLineItem().getBrand(),
|
| 1848 |
Collectors.summingDouble(y -> (double) y.getTotalAmount()))));
|
1848 |
Collectors.summingDouble(y -> (double) y.getTotalAmount()))));
|
| 1849 |
|
1849 |
|
| 1850 |
inStockAccessTv = currentInventorySnapshotRepository.selectSumInStockAccessoriesAndTv(fofoIdList).stream()
|
1850 |
inStockAccessTv = currentInventorySnapshotRepository.selectSumInStockAccessoriesAndTv(fofoIdList).stream()
|
| Line 1858... |
Line 1858... |
| 1858 |
|
1858 |
|
| 1859 |
}
|
1859 |
}
|
| 1860 |
|
1860 |
|
| 1861 |
model.addAttribute("customRetailers", customRetailers);
|
1861 |
model.addAttribute("customRetailers", customRetailers);
|
| 1862 |
|
1862 |
|
| 1863 |
LOGGER.info("partnerDailyInvestmentMap" + partnerDailyInvestmentMap);
|
1863 |
LOGGER.info("pendingIndent" + pendingIndent);
|
| 1864 |
|
1864 |
|
| 1865 |
model.addAttribute("partnerDailyInvestmentMap", partnerDailyInvestmentMap);
|
1865 |
model.addAttribute("partnerDailyInvestmentMap", partnerDailyInvestmentMap);
|
| 1866 |
|
1866 |
|
| 1867 |
LOGGER.info("inStockBrandModel" + inStockBrandModel);
|
1867 |
LOGGER.info("grnPendingOrders" + grnPendingOrders);
|
| 1868 |
|
1868 |
|
| 1869 |
model.addAttribute("brands", brands);
|
1869 |
model.addAttribute("brands", brands);
|
| 1870 |
|
1870 |
|
| 1871 |
model.addAttribute("brandAmountLimit", Brand_Amount_Limit);
|
1871 |
model.addAttribute("brandAmountLimit", Brand_Amount_Limit);
|
| 1872 |
model.addAttribute("inStockBrandModel", inStockBrandModel);
|
1872 |
model.addAttribute("inStockBrandModel", inStockBrandModel);
|