| Line 37... |
Line 37... |
| 37 |
get_holdinventorydetail_forItem_forWarehouseId_exceptsource, get_snapdeal_inventory_for_item, \
|
37 |
get_holdinventorydetail_forItem_forWarehouseId_exceptsource, get_snapdeal_inventory_for_item, \
|
| 38 |
add_or_update_snapdeal_inventor_for_item, get_nlc_for_warehouse,get_snapdeal_inventory_snapshot, \
|
38 |
add_or_update_snapdeal_inventor_for_item, get_nlc_for_warehouse,get_snapdeal_inventory_snapshot, \
|
| 39 |
get_held_inventory_map_for_item, get_hold_inventory_details, add_or_update_flipkart_inventory_snapshot, \
|
39 |
get_held_inventory_map_for_item, get_hold_inventory_details, add_or_update_flipkart_inventory_snapshot, \
|
| 40 |
get_flipkart_inventory_snapshot, get_flipkart_inventory_for_Item, get_oos_statuses_for_x_days, \
|
40 |
get_flipkart_inventory_snapshot, get_flipkart_inventory_for_Item, get_oos_statuses_for_x_days, \
|
| 41 |
get_all_vendor_item_pricing, get_state_master, update_snapdeal_stock_at_eod, update_flipkart_stock_at_eod, \
|
41 |
get_all_vendor_item_pricing, get_state_master, update_snapdeal_stock_at_eod, update_flipkart_stock_at_eod, \
|
| 42 |
get_wanlc_for_source, get_all_available_amazon_inventory
|
42 |
get_wanlc_for_source, get_all_available_amazon_inventory, _task_update_item_availability_cache
|
| 43 |
|
43 |
|
| 44 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
44 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
| 45 |
MissedInventoryUpdate, VendorItemMapping
|
45 |
MissedInventoryUpdate, VendorItemMapping
|
| 46 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
46 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
| 47 |
InventoryServiceException, WarehouseType, InventoryType, \
|
47 |
InventoryServiceException, WarehouseType, InventoryType, \
|
| Line 949... |
Line 949... |
| 949 |
for inventory in all_inventory:
|
949 |
for inventory in all_inventory:
|
| 950 |
amazoninventory.append(to_t_amazon_fba_inventory_snapshot((inventory)))
|
950 |
amazoninventory.append(to_t_amazon_fba_inventory_snapshot((inventory)))
|
| 951 |
return amazoninventory
|
951 |
return amazoninventory
|
| 952 |
finally:
|
952 |
finally:
|
| 953 |
close_session()
|
953 |
close_session()
|
| - |
|
954 |
|
| - |
|
955 |
def updateItemAvailabilityForItemIds(self,itemIds):
|
| - |
|
956 |
try:
|
| - |
|
957 |
return _task_update_item_availability_cache(itemIds)
|
| - |
|
958 |
except:
|
| - |
|
959 |
return False
|
| - |
|
960 |
finally:
|
| - |
|
961 |
close_session()
|
| 954 |
|
962 |
|
| 955 |
|
963 |
|
| 956 |
|
964 |
|
| 957 |
|
965 |
|
| 958 |
|
966 |
|