| Line 1218... |
Line 1218... |
| 1218 |
Map<Long, ItemInventory> itemInventoryMap = new HashMap<Long, ItemInventory>();
|
1218 |
Map<Long, ItemInventory> itemInventoryMap = new HashMap<Long, ItemInventory>();
|
| 1219 |
ItemInventory warehousedata;
|
1219 |
ItemInventory warehousedata;
|
| 1220 |
if(thriftItemInventory != null) {
|
1220 |
if(thriftItemInventory != null) {
|
| 1221 |
Map<Long, Long> availabilityMap = thriftItemInventory.getAvailability();
|
1221 |
Map<Long, Long> availabilityMap = thriftItemInventory.getAvailability();
|
| 1222 |
Map<Long, Long> reservedMap = thriftItemInventory.getReserved();
|
1222 |
Map<Long, Long> reservedMap = thriftItemInventory.getReserved();
|
| - |
|
1223 |
Map<Long, Long> heldMap = thriftItemInventory.getHeld();
|
| 1223 |
for(Entry<Long, Long> availability : availabilityMap.entrySet()) {
|
1224 |
for(Entry<Long, Long> availability : availabilityMap.entrySet()) {
|
| 1224 |
warehousedata = new ItemInventory();
|
1225 |
warehousedata = new ItemInventory();
|
| 1225 |
warehousedata.setWarehouseId(availability.getKey());
|
1226 |
warehousedata.setWarehouseId(availability.getKey());
|
| 1226 |
warehousedata.setAvailability(availability.getValue());
|
1227 |
warehousedata.setAvailability(availability.getValue());
|
| 1227 |
warehousedata.setReserved(reservedMap.get(availability.getKey()));
|
1228 |
warehousedata.setReserved(reservedMap.get(availability.getKey()));
|
| - |
|
1229 |
warehousedata.setHeld(heldMap.get(availability.getKey()));
|
| - |
|
1230 |
|
| 1228 |
itemInventoryMap.put(warehousedata.getWarehouseId(), warehousedata);
|
1231 |
itemInventoryMap.put(warehousedata.getWarehouseId(), warehousedata);
|
| 1229 |
}
|
1232 |
}
|
| 1230 |
}
|
1233 |
}
|
| 1231 |
else {
|
1234 |
else {
|
| 1232 |
itemInventoryMap = null;
|
1235 |
itemInventoryMap = null;
|