Subversion Repositories SmartDukaan

Rev

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

Rev 30711 Rev 30712
Line 635... Line 635...
635
						}
635
						}
636
 
636
 
637
						Map<Integer, SaholicCISTable> map = currentAvailability.stream()
637
						Map<Integer, SaholicCISTable> map = currentAvailability.stream()
638
								.collect(Collectors.toMap(SaholicCISTable::getWarehouseFrom, x -> x));
638
								.collect(Collectors.toMap(SaholicCISTable::getWarehouseFrom, x -> x));
639
						if (poItemAvailability != null) {
639
						if (poItemAvailability != null) {
-
 
640
 
-
 
641
							if (fofoCatalogResponse.getCatalogId() == 1022520) {
-
 
642
								logger.info("currentAvailabilityMap --> {}", map);
-
 
643
								logger.info("currentAvailability --> {}", currentAvailability);
-
 
644
								logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
-
 
645
										.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
-
 
646
							}
-
 
647
 
640
							for (SaholicPOItem saholicPOItem : poItemAvailability) {
648
							for (SaholicPOItem saholicPOItem : poItemAvailability) {
-
 
649
								if (fofoCatalogResponse.getCatalogId() == 1022520) {
-
 
650
									logger.info("SaholicPoItem {}", saholicPOItem);
-
 
651
									logger.info("Warehouse From - {}", map.get(saholicPOItem.getWarehouseFrom()));
-
 
652
								}
641
								if (map.containsKey(saholicPOItem.getWarehouseFrom())) {
653
								if (map.containsKey(saholicPOItem.getWarehouseFrom())) {
642
									map.get(saholicPOItem.getWarehouseFrom())
654
									map.get(saholicPOItem.getWarehouseFrom())
643
											.setPopendingQty(saholicPOItem.getUnfulfilledQty());
655
											.setPopendingQty(saholicPOItem.getUnfulfilledQty());
644
								} else {
656
								} else {
645
									SaholicCISTable saholicCISTable = new SaholicCISTable();
657
									SaholicCISTable saholicCISTable = new SaholicCISTable();
Line 656... Line 668...
656
							}
668
							}
657
						}
669
						}
658
						fdi.setSaholicCISTableList(new ArrayList<>(map.values()));
670
						fdi.setSaholicCISTableList(new ArrayList<>(map.values()));
659
						String poColor = "grey";
671
						String poColor = "grey";
660
						boolean active = false;
672
						boolean active = false;
661
						if (fofoCatalogResponse.getCatalogId() == 1022520) {
-
 
662
							logger.info("currentAvailabilityMap --> {}", map);
-
 
663
							logger.info("currentAvailability --> {}", currentAvailability);
-
 
664
							logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
-
 
665
									.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
-
 
666
						}
-
 
667
						if (currentAvailability != null && currentAvailability.stream()
673
						if (currentAvailability != null && currentAvailability.stream()
668
								.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)) > 0) {
674
								.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)) > 0) {
669
							poColor = "green";
675
							poColor = "green";
670
							modelColorClass = "green";
676
							modelColorClass = "green";
671
						} else if (poItemAvailability != null && poItemAvailability.stream()
677
						} else if (poItemAvailability != null && poItemAvailability.stream()