| Line 201... |
Line 201... |
| 201 |
if(availability.get(thriftItem.getId())!=null){
|
201 |
if(availability.get(thriftItem.getId())!=null){
|
| 202 |
ItemInventory iteminventory = availability.get(thriftItem.getId());
|
202 |
ItemInventory iteminventory = availability.get(thriftItem.getId());
|
| 203 |
Map<Long,Long> itemavailability = new HashMap<Long,Long>();
|
203 |
Map<Long,Long> itemavailability = new HashMap<Long,Long>();
|
| 204 |
itemavailability = iteminventory.getAvailability();
|
204 |
itemavailability = iteminventory.getAvailability();
|
| 205 |
if (thriftItem.isIsWarehousePreferenceSticky() && thriftItem.getPreferredVendor()!=0){
|
205 |
if (thriftItem.isIsWarehousePreferenceSticky() && thriftItem.getPreferredVendor()!=0){
|
| 206 |
//System.out.println("Item id "+thriftItem.getId()+".Found prefered vendor and warehouse is marked sticky (Calculating availability)"+thriftItem.getPreferredVendor());
|
206 |
System.out.println("Item id "+thriftItem.getId()+".Found prefered vendor and warehouse is marked sticky (Calculating availability)"+thriftItem.getPreferredVendor());
|
| 207 |
vendor_warehouses = inventoryClient.getWarehouses(WarehouseType.THIRD_PARTY,InventoryType.GOOD , thriftItem.getPreferredVendor(), 0, 0);
|
207 |
vendor_warehouses = inventoryClient.getWarehouses(WarehouseType.THIRD_PARTY,InventoryType.GOOD , thriftItem.getPreferredVendor(), 0, 0);
|
| 208 |
vendor_warehouses.addAll(ours_warehouses);
|
208 |
vendor_warehouses.addAll(ours_warehouses);
|
| 209 |
for (Warehouse warehouse:vendor_warehouses){
|
209 |
for (Warehouse warehouse:vendor_warehouses){
|
| 210 |
System.out.println("Warehouse is "+warehouse.getId());
|
210 |
System.out.println("Warehouse is "+warehouse.getId());
|
| 211 |
if(warehouse.getBillingWarehouseId()!=7){
|
211 |
if(warehouse.getBillingWarehouseId()!=7){
|