Subversion Repositories SmartDukaan

Rev

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

Rev 30693 Rev 30711
Line 656... Line 656...
656
							}
656
							}
657
						}
657
						}
658
						fdi.setSaholicCISTableList(new ArrayList<>(map.values()));
658
						fdi.setSaholicCISTableList(new ArrayList<>(map.values()));
659
						String poColor = "grey";
659
						String poColor = "grey";
660
						boolean active = false;
660
						boolean active = false;
661
						/*if (fofoCatalogResponse.getCatalogId() == 1023216) {
661
						if (fofoCatalogResponse.getCatalogId() == 1022520) {
662
							logger.info("currentAvailabilityMap --> {}", map);
662
							logger.info("currentAvailabilityMap --> {}", map);
663
							logger.info("currentAvailability --> {}", currentAvailability);
663
							logger.info("currentAvailability --> {}", currentAvailability);
664
							logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
664
							logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
665
									.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
665
									.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
666
						}*/
666
						}
667
						if (currentAvailability != null && currentAvailability.stream()
667
						if (currentAvailability != null && currentAvailability.stream()
668
								.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)) > 0) {
668
								.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)) > 0) {
669
							poColor = "green";
669
							poColor = "green";
670
							modelColorClass = "green";
670
							modelColorClass = "green";
671
						} else if (poItemAvailability != null && poItemAvailability.stream()
671
						} else if (poItemAvailability != null && poItemAvailability.stream()
Line 713... Line 713...
713
								item = itemRepository.selectById(itemId);
713
								item = itemRepository.selectById(itemId);
714
							} catch (Exception e) {
714
							} catch (Exception e) {
715
								e.printStackTrace();
715
								e.printStackTrace();
716
								continue;
716
								continue;
717
							}
717
							}
718
							// In case its tampered glass moq should be 5
718
							// In case its tampered glass moq should be
719
							if (item.getCategoryId() == 10020) {
719
							if (item.getCategoryId() == 10020) {
720
								fdi.setMinBuyQuantity(5);
720
								fdi.setMinBuyQuantity(5);
721
							}
721
							}
722
						}
722
						}
723
						fdi.setQuantityStep(1);
723
						fdi.setQuantityStep(1);