| Line 34... |
Line 34... |
| 34 |
get_last_n_day_sale_for_item, add_or_update_amazon_fba_inventory, add_update_hold_inventory,\
|
34 |
get_last_n_day_sale_for_item, add_or_update_amazon_fba_inventory, add_update_hold_inventory,\
|
| 35 |
get_amazon_fba_inventory,get_all_amazon_fba_inventory, get_oursgood_warehouseids_for_location, \
|
35 |
get_amazon_fba_inventory,get_all_amazon_fba_inventory, get_oursgood_warehouseids_for_location, \
|
| 36 |
get_holdinventorydetail_forItem_forWarehouseId_exceptsource, get_snapdeal_inventory_for_item, \
|
36 |
get_holdinventorydetail_forItem_forWarehouseId_exceptsource, get_snapdeal_inventory_for_item, \
|
| 37 |
add_or_update_snapdeal_inventor_for_item, get_nlc_for_warehouse,get_snapdeal_inventory_snapshot, \
|
37 |
add_or_update_snapdeal_inventor_for_item, get_nlc_for_warehouse,get_snapdeal_inventory_snapshot, \
|
| 38 |
get_held_inventory_map_for_item, get_hold_inventory_details, add_or_update_flipkart_inventory_snapshot, \
|
38 |
get_held_inventory_map_for_item, get_hold_inventory_details, add_or_update_flipkart_inventory_snapshot, \
|
| 39 |
get_flipkart_inventory_snapshot
|
39 |
get_flipkart_inventory_snapshot, get_flipkart_inventory_for_Item
|
| 40 |
|
40 |
|
| 41 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
41 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
| 42 |
MissedInventoryUpdate, VendorItemMapping
|
42 |
MissedInventoryUpdate, VendorItemMapping
|
| 43 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
43 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
| 44 |
InventoryServiceException, WarehouseType, InventoryType, \
|
44 |
InventoryServiceException, WarehouseType, InventoryType, \
|
| Line 866... |
Line 866... |
| 866 |
def getFlipkartInventorySnapshot(self):
|
866 |
def getFlipkartInventorySnapshot(self):
|
| 867 |
try:
|
867 |
try:
|
| 868 |
return [to_t_flipkart_inventory_snapshot(snapshot) for snapshot in get_flipkart_inventory_snapshot()]
|
868 |
return [to_t_flipkart_inventory_snapshot(snapshot) for snapshot in get_flipkart_inventory_snapshot()]
|
| 869 |
finally:
|
869 |
finally:
|
| 870 |
close_session()
|
870 |
close_session()
|
| - |
|
871 |
|
| - |
|
872 |
def getFlipkartlInventoryForItem(self,item_id):
|
| 871 |
|
873 |
try:
|
| - |
|
874 |
return to_t_flipkart_inventory_snapshot(get_flipkart_inventory_for_Item(item_id))
|
| - |
|
875 |
finally:
|
| - |
|
876 |
close_session()
|
| 872 |
|
877 |
|
| 873 |
|
878 |
|