| Line 46... |
Line 46... |
| 46 |
get_flipkart_inventory_for_Item, get_oos_statuses_for_x_days, \
|
46 |
get_flipkart_inventory_for_Item, get_oos_statuses_for_x_days, \
|
| 47 |
get_all_vendor_item_pricing, get_state_master, update_snapdeal_stock_at_eod, \
|
47 |
get_all_vendor_item_pricing, get_state_master, update_snapdeal_stock_at_eod, \
|
| 48 |
update_flipkart_stock_at_eod, get_wanlc_for_source, \
|
48 |
update_flipkart_stock_at_eod, get_wanlc_for_source, \
|
| 49 |
get_all_available_amazon_inventory, _task_update_item_availability_cache, \
|
49 |
get_all_available_amazon_inventory, _task_update_item_availability_cache, \
|
| 50 |
add_vendor_item_pricing_in_bulk, add_inventory_in_bulk, \
|
50 |
add_vendor_item_pricing_in_bulk, add_inventory_in_bulk, \
|
| 51 |
get_item_pincode_availability
|
51 |
get_item_pincode_availability, get_fofo_availability
|
| 52 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
52 |
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
|
| 53 |
MissedInventoryUpdate, VendorItemMapping
|
53 |
MissedInventoryUpdate, VendorItemMapping
|
| 54 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
54 |
from shop2020.thriftpy.model.v1.inventory.ttypes import \
|
| 55 |
InventoryServiceException, WarehouseType, InventoryType, \
|
55 |
InventoryServiceException, WarehouseType, InventoryType, \
|
| 56 |
AvailableAndReservedStock
|
56 |
AvailableAndReservedStock
|
| Line 983... |
Line 983... |
| 983 |
|
983 |
|
| 984 |
def getItemPincodeAvailability(self, itemPricingMap, pin):
|
984 |
def getItemPincodeAvailability(self, itemPricingMap, pin):
|
| 985 |
try:
|
985 |
try:
|
| 986 |
return get_item_pincode_availability(itemPricingMap, pin)
|
986 |
return get_item_pincode_availability(itemPricingMap, pin)
|
| 987 |
finally:
|
987 |
finally:
|
| - |
|
988 |
close_session()
|
| - |
|
989 |
|
| - |
|
990 |
def getFofoAvailability(self, itemIds):
|
| - |
|
991 |
try:
|
| - |
|
992 |
return get_fofo_availability(itemIds)
|
| - |
|
993 |
finally:
|
| 988 |
close_session()
|
994 |
close_session()
|
| 989 |
|
995 |
|