| Line 107... |
Line 107... |
| 107 |
|
107 |
|
| 108 |
for(Long physicalWarehouseId : PHYSICAL_WAREHOUSES ){
|
108 |
for(Long physicalWarehouseId : PHYSICAL_WAREHOUSES ){
|
| 109 |
if(!client.isAlive()){
|
109 |
if(!client.isAlive()){
|
| 110 |
client = whClient.getClient();
|
110 |
client = whClient.getClient();
|
| 111 |
}
|
111 |
}
|
| 112 |
serializedInventoryAvailability = client.getCurrentSerializedInventoryByScans(physicalWarehouseId);
|
112 |
//serializedInventoryAvailability = client.getCurrentSerializedInventoryByScans(physicalWarehouseId);
|
| 113 |
nonSerializedInventoryAvailability = client.getCurrentNonSerializedInventoryByScans(physicalWarehouseId);
|
113 |
nonSerializedInventoryAvailability = client.getCurrentNonSerializedInventoryByScans(physicalWarehouseId);
|
| 114 |
|
114 |
|
| 115 |
for(InventoryAvailability availability : serializedInventoryAvailability){
|
115 |
for(InventoryAvailability availability : serializedInventoryAvailability){
|
| 116 |
if(inventoryAvailabilityMap.containsKey(availability.getItemId())){
|
116 |
if(inventoryAvailabilityMap.containsKey(availability.getItemId())){
|
| 117 |
InventoryAvailability invAvailbility = inventoryAvailabilityMap.get(availability.getItemId());
|
117 |
InventoryAvailability invAvailbility = inventoryAvailabilityMap.get(availability.getItemId());
|
| Line 183... |
Line 183... |
| 183 |
double invAge = 0.0;
|
183 |
double invAge = 0.0;
|
| 184 |
|
184 |
|
| 185 |
boolean breakInner = false;
|
185 |
boolean breakInner = false;
|
| 186 |
|
186 |
|
| 187 |
for(InvAgeConsiderItems invItem : invAgeConsiderItems){
|
187 |
for(InvAgeConsiderItems invItem : invAgeConsiderItems){
|
| - |
|
188 |
|
| - |
|
189 |
System.out.println("Inventory Item " + invItem.getId() + " Current Quantity : "+invItem.getCurrentQuantity());
|
| 188 |
invAge = invItem.getAge();
|
190 |
invAge = invItem.getAge();
|
| 189 |
if(stockQuantity == invItem.getCurrentQuantity()){
|
191 |
if(stockQuantity == invItem.getCurrentQuantity()){
|
| 190 |
breakInner = true;
|
192 |
breakInner = true;
|
| 191 |
}
|
193 |
}
|
| 192 |
if(stockQuantity > invItem.getCurrentQuantity()){
|
194 |
if(stockQuantity > invItem.getCurrentQuantity()){
|