Subversion Repositories SmartDukaan

Rev

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

Rev 25589 Rev 25734
Line 557... Line 557...
557
		 * .collect(Collectors.groupingBy(o->o.getLineItem().getItemId(),
557
		 * .collect(Collectors.groupingBy(o->o.getLineItem().getItemId(),
558
		 * Collectors.toList()));
558
		 * Collectors.toList()));
559
		 */
559
		 */
560
 
560
 
561
		Map<String, Integer> lineItemWhQtyMap = allInProcessOrders.stream()
561
		Map<String, Integer> lineItemWhQtyMap = allInProcessOrders.stream()
562
				.collect(Collectors.groupingBy(y -> y.getLineItem().getItemId() + "-" + y.getWarehouseId(),
562
				.collect(Collectors.groupingBy(y -> y.getLineItem().getItemId() + "-" + y.getFulfilmentWarehouseId(),
563
						Collectors.summingInt(y -> y.getLineItem().getQuantity())));
563
						Collectors.summingInt(y -> y.getLineItem().getQuantity())));
564
 
564
 
565
		/*
565
		/*
566
		 * itemReservedMap.forEach((itemId, reserved)->{
566
		 * itemReservedMap.forEach((itemId, reserved)->{
567
		 * if(lineItemQtyMap.containsKey(itemId)) { int orderedQty =
567
		 * if(lineItemQtyMap.containsKey(itemId)) { int orderedQty =
Line 684... Line 684...
684
			System.out.printf("%d\t%s\t%b\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(), 
684
			System.out.printf("%d\t%s\t%b\t%s\t%s\t%s\t%d\t%d\t%d%n", fofoStore.getId(), fofoStore.getCode(), 
685
					fofoStore.isActive(), address.getName(), address.getCity(), address.getState(), uw.getAmount(), calculated, 
685
					fofoStore.isActive(), address.getName(), address.getCity(), address.getState(), uw.getAmount(), calculated, 
686
					uw.getAmount() - calculated);
686
					uw.getAmount() - calculated);
687
		}
687
		}
688
	}
688
	}
-
 
689
	
-
 
690
	public void changeWarehouse() throws Exception {
-
 
691
		transactionService.moveWarehouses();
-
 
692
	}
689
}
693
}
690
 
694
 
691
//7015845171
695
//7015845171
692
696