| Line 35... |
Line 35... |
| 35 |
get_search_result_count, get_pending_orders_inventory, get_product_notifications, \
|
35 |
get_search_result_count, get_pending_orders_inventory, get_product_notifications, \
|
| 36 |
get_product_notification_request_count, add_inventory, \
|
36 |
get_product_notification_request_count, add_inventory, \
|
| 37 |
get_all_similar_items_catalog_ids, add_similar_item_catalog_id, \
|
37 |
get_all_similar_items_catalog_ids, add_similar_item_catalog_id, \
|
| 38 |
delete_similar_item_catalog_id, add_authorization_log_for_item, \
|
38 |
delete_similar_item_catalog_id, add_authorization_log_for_item, \
|
| 39 |
get_thrift_item_list, get_all_brands, add_bad_inventory, \
|
39 |
get_thrift_item_list, get_all_brands, add_bad_inventory, \
|
| 40 |
mark_missed_inventory_updates_as_processed, \
|
40 |
mark_missed_inventory_updates_as_processed, update_vendor_string, \
|
| 41 |
get_item_keys_to_be_processed, reset_availability, get_shipping_locations,\
|
41 |
get_item_keys_to_be_processed, reset_availability, get_shipping_locations,\
|
| 42 |
get_coming_soon, get_coming_soon_catalog_ids, get_coming_soon_count,\
|
42 |
get_coming_soon, get_coming_soon_catalog_ids, get_coming_soon_count,\
|
| 43 |
initialize, get_inventory_snapshot, clear_item_availability_cache, \
|
43 |
initialize, get_inventory_snapshot, clear_item_availability_cache, \
|
| 44 |
reset_availability_for_warehouse, get_clearance_sale_catalog_ids, \
|
44 |
reset_availability_for_warehouse, get_clearance_sale_catalog_ids, \
|
| 45 |
add_update_voucher_for_item, delete_voucher_for_item, get_voucher_amount, \
|
45 |
add_update_voucher_for_item, delete_voucher_for_item, get_voucher_amount, \
|
| Line 1282... |
Line 1282... |
| 1282 |
"""
|
1282 |
"""
|
| 1283 |
try:
|
1283 |
try:
|
| 1284 |
return get_clearance_sale_catalog_ids()
|
1284 |
return get_clearance_sale_catalog_ids()
|
| 1285 |
finally:
|
1285 |
finally:
|
| 1286 |
close_session()
|
1286 |
close_session()
|
| - |
|
1287 |
|
| - |
|
1288 |
def updateVendorString(self, warehouseId, vendorString):
|
| - |
|
1289 |
"""
|
| - |
|
1290 |
Parameters:
|
| - |
|
1291 |
- warehouseId
|
| - |
|
1292 |
- vendorString
|
| - |
|
1293 |
"""
|
| - |
|
1294 |
try:
|
| - |
|
1295 |
update_vendor_string(warehouseId, vendorString)
|
| - |
|
1296 |
finally:
|
| - |
|
1297 |
close_session()
|
| 1287 |
|
1298 |
|
| 1288 |
def is_valid(item):
|
1299 |
def is_valid(item):
|
| 1289 |
if item.status in [status.ACTIVE, status.PAUSED, status.PAUSED_BY_RISK]:
|
1300 |
if item.status in [status.ACTIVE, status.PAUSED, status.PAUSED_BY_RISK]:
|
| 1290 |
if item.startDate:
|
1301 |
if item.startDate:
|
| 1291 |
return not(datetime.datetime.now() < item.startDate or item.sellingPrice == 0)
|
1302 |
return not(datetime.datetime.now() < item.startDate or item.sellingPrice == 0)
|