| Line 320... |
Line 320... |
| 320 |
}
|
320 |
}
|
| 321 |
|
321 |
|
| 322 |
|
322 |
|
| 323 |
@RequestMapping(value = "/getPricing", method = RequestMethod.GET)
|
323 |
@RequestMapping(value = "/getPricing", method = RequestMethod.GET)
|
| 324 |
public String getPricing(HttpServletRequest request, @RequestParam int vendorId, @RequestParam int itemId, @RequestParam LocalDate onDate, Model model) throws Exception {
|
324 |
public String getPricing(HttpServletRequest request, @RequestParam int vendorId, @RequestParam int itemId, @RequestParam LocalDate onDate, Model model) throws Exception {
|
| 325 |
List<Integer> checkRequiredCategoryId = Arrays.asList(10006, 10010);
|
325 |
List<Integer> checkRequiredCategoryId = Arrays.asList(10006);
|
| 326 |
List<String> checkRequiredCategoryGroup = Arrays.asList("Handset", "Tablets");
|
326 |
List<String> checkRequiredCategoryGroup = Arrays.asList("Handset");
|
| 327 |
Item item = itemRepository.selectById(itemId);
|
327 |
Item item = itemRepository.selectById(itemId);
|
| 328 |
List<String> brandsIgnoreToCheckCategory = Arrays.asList("Dummy", "Live Demo");
|
328 |
List<String> brandsIgnoreToCheckCategory = Arrays.asList("Dummy", "Live Demo");
|
| 329 |
if (!brandsIgnoreToCheckCategory.contains(item.getBrand())) {
|
329 |
if (!brandsIgnoreToCheckCategory.contains(item.getBrand())) {
|
| 330 |
if (checkRequiredCategoryId.contains(item.getCategoryId()) || checkRequiredCategoryGroup.contains(item.getProductGroup())) {
|
330 |
if (checkRequiredCategoryId.contains(item.getCategoryId()) || checkRequiredCategoryGroup.contains(item.getProductGroup())) {
|
| 331 |
CategorisedCatalog categorisedCatalog = categorisedCatalogRepository.getCurrentCatalogMovement(item.getCatalogItemId());
|
331 |
CategorisedCatalog categorisedCatalog = categorisedCatalogRepository.getCurrentCatalogMovement(item.getCatalogItemId());
|