| Line 129... |
Line 129... |
| 129 |
|
129 |
|
| 130 |
def get_ignored_warehouses(item_id):
|
130 |
def get_ignored_warehouses(item_id):
|
| 131 |
warehouses = []
|
131 |
warehouses = []
|
| 132 |
#No item availability cache for Hotspot Specific Store
|
132 |
#No item availability cache for Hotspot Specific Store
|
| 133 |
#No virtual is allowed
|
133 |
#No virtual is allowed
|
| 134 |
hotspotPhysicalWarehouses = [7678, 7681]
|
134 |
# hotspotPhysicalWarehouses = [7678, 7681]
|
| 135 |
hotspotVendorWarehouses = Warehouse.query.filter(Warehouse.billingWarehouseId.in_(hotspotPhysicalWarehouses)).filter(Warehouse.inventoryType=='GOOD').all()
|
135 |
# hotspotVendorWarehouses = Warehouse.query.filter(Warehouse.billingWarehouseId.in_(hotspotPhysicalWarehouses)).filter(Warehouse.inventoryType=='GOOD').all()
|
| 136 |
for warehouse in hotspotVendorWarehouses:
|
136 |
# for warehouse in hotspotVendorWarehouses:
|
| 137 |
warehouses.append(warehouse.id)
|
137 |
# warehouses.append(warehouse.id)
|
| 138 |
Ignored_inventory_items = IgnoredInventoryUpdateItems.query.filter_by(item_id=item_id).all()
|
138 |
Ignored_inventory_items = IgnoredInventoryUpdateItems.query.filter_by(item_id=item_id).all()
|
| 139 |
for Ignored_inventory_item in Ignored_inventory_items:
|
139 |
for Ignored_inventory_item in Ignored_inventory_items:
|
| 140 |
warehouses.append(Ignored_inventory_item.warehouse_id)
|
140 |
warehouses.append(Ignored_inventory_item.warehouse_id)
|
| 141 |
return warehouses
|
141 |
return warehouses
|
| 142 |
|
142 |
|