Subversion Repositories SmartDukaan

Rev

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

Rev 30714 Rev 30716
Line 636... Line 636...
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
 
640
 
641
							if (fofoCatalogResponse.getCatalogId() == 1023372) {
641
							if (fofoCatalogResponse.getCatalogId() == 1023522) {
642
								logger.info("currentAvailabilityMap --> {}", map);
642
								logger.info("currentAvailabilityMap --> {}", map);
643
								logger.info("currentAvailability --> {}", currentAvailability);
643
								logger.info("currentAvailability --> {}", currentAvailability);
644
								logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
644
								logger.info("currentAvailabilitySum --> {}", currentAvailability.stream()
645
										.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
645
										.collect(Collectors.summingInt(SaholicCISTable::getNetAvailability)));
646
							}
646
							}
647
 
647
 
648
							for (SaholicPOItem saholicPOItem : poItemAvailability) {
648
							for (SaholicPOItem saholicPOItem : poItemAvailability) {
649
								if (fofoCatalogResponse.getCatalogId() == 1023372) {
649
								if (fofoCatalogResponse.getCatalogId() == 1023522) {
650
									logger.info("SaholicPoItem {}", saholicPOItem);
650
									logger.info("SaholicPoItem {}", saholicPOItem);
651
									logger.info("Warehouse From - {}", map.get(saholicPOItem.getWarehouseFrom()));
651
									logger.info("Warehouse From - {}", map.get(saholicPOItem.getWarehouseFrom()));
652
								}
652
								}
653
								if (map.containsKey(saholicPOItem.getWarehouseFrom())) {
653
								if (map.containsKey(saholicPOItem.getWarehouseFrom())) {
654
									map.get(saholicPOItem.getWarehouseFrom())
654
									map.get(saholicPOItem.getWarehouseFrom())