| Line 257... |
Line 257... |
| 257 |
model.addAttribute("fofoStore", customRetailer);
|
257 |
model.addAttribute("fofoStore", customRetailer);
|
| 258 |
model.addAttribute("partnerType", partnerType);
|
258 |
model.addAttribute("partnerType", partnerType);
|
| 259 |
model.addAttribute("hasGift", fofoUser.hasGift(fofoId));
|
259 |
model.addAttribute("hasGift", fofoUser.hasGift(fofoId));
|
| 260 |
model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
|
260 |
model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
|
| 261 |
|
261 |
|
| 262 |
model.addAttribute("brandStockPrices", fofoUser.getBrandStockPrices(fofoId));
|
262 |
model.addAttribute("brandStockPrices", fofoUser.getBrandStockPrices(fofoId, false));
|
| 263 |
model.addAttribute("salesMap", fofoUser.getSales(fofoId));
|
263 |
model.addAttribute("salesMap", fofoUser.getSales(fofoId));
|
| 264 |
model.addAttribute("activatedImeis", inventoryItemRepository.selectCountByActivatedNotSold(fofoId));
|
264 |
model.addAttribute("activatedImeis", inventoryItemRepository.selectCountByActivatedNotSold(fofoId));
|
| 265 |
// this.setInvestments
|
265 |
// this.setInvestments
|
| 266 |
//
|
266 |
//
|
| 267 |
Map<Integer, String> monthValueMap = new HashMap<>();
|
267 |
Map<Integer, String> monthValueMap = new HashMap<>();
|
| Line 411... |
Line 411... |
| 411 |
Map<Integer, Double> accesoriesmtdsale = fofoOrderRepository.selectSumSaleGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(), curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), Optional.of(false));
|
411 |
Map<Integer, Double> accesoriesmtdsale = fofoOrderRepository.selectSumSaleGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(), curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), Optional.of(false));
|
| 412 |
|
412 |
|
| 413 |
Double accesoriesStock = currentInventorySnapshotRepository.selectSumStockGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(), Optional.of(false)).get(loginDetails.getFofoId());
|
413 |
Double accesoriesStock = currentInventorySnapshotRepository.selectSumStockGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(), Optional.of(false)).get(loginDetails.getFofoId());
|
| 414 |
|
414 |
|
| 415 |
model.addAttribute("accesoriesStock", String.format("%.0f", accesoriesStock));
|
415 |
model.addAttribute("accesoriesStock", String.format("%.0f", accesoriesStock));
|
| 416 |
model.addAttribute("brandStockPrices", fofoUser.getBrandStockPrices(loginDetails.getFofoId()));
|
416 |
model.addAttribute("brandStockPrices", fofoUser.getBrandStockPrices(loginDetails.getFofoId(), false));
|
| 417 |
model.addAttribute("salesMap", fofoUser.getSales(loginDetails.getFofoId()));
|
417 |
model.addAttribute("salesMap", fofoUser.getSales(loginDetails.getFofoId()));
|
| 418 |
ChartModel cm = fofoUser.getBrandChart(loginDetails.getFofoId());
|
418 |
ChartModel cm = fofoUser.getBrandChart(loginDetails.getFofoId());
|
| 419 |
|
419 |
|
| 420 |
LOGGER.info("chartMap" + gson.toJson(cm));
|
420 |
LOGGER.info("chartMap" + gson.toJson(cm));
|
| 421 |
model.addAttribute("chartMap", gson.toJson(cm));
|
421 |
model.addAttribute("chartMap", gson.toJson(cm));
|