| Line 291... |
Line 291... |
| 291 |
@RequestParam(name = ProfitMandiConstants.ITEM_ID) int itemId, Model model)
|
291 |
@RequestParam(name = ProfitMandiConstants.ITEM_ID) int itemId, Model model)
|
| 292 |
throws ProfitMandiBusinessException {
|
292 |
throws ProfitMandiBusinessException {
|
| 293 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
293 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 294 |
CustomCurrentInventorySnapshot customCurrentInventorySnapshot = inventoryService.checkItemAvailability(itemId,
|
294 |
CustomCurrentInventorySnapshot customCurrentInventorySnapshot = inventoryService.checkItemAvailability(itemId,
|
| 295 |
loginDetails.getFofoId());
|
295 |
loginDetails.getFofoId());
|
| 296 |
customCurrentInventorySnapshot
|
296 |
/*customCurrentInventorySnapshot
|
| 297 |
.setIconUrl(Utils.getIconUrl(customCurrentInventorySnapshot.getCatalogItemId(), host, port, webapp));
|
297 |
.setIconUrl(Utils.getIconUrl(customCurrentInventorySnapshot.getCatalogItemId(), host, port, webapp));*/
|
| 298 |
model.addAttribute("currentInventorySnapshot", new Gson().toJson(customCurrentInventorySnapshot));
|
298 |
model.addAttribute("currentInventorySnapshot", new Gson().toJson(customCurrentInventorySnapshot));
|
| 299 |
return "current-item-availability";
|
299 |
return "current-item-availability";
|
| 300 |
|
300 |
|
| 301 |
}
|
301 |
}
|
| 302 |
|
302 |
|