| Line 7... |
Line 7... |
| 7 |
from shop2020.clients.InventoryClient import InventoryClient
|
7 |
from shop2020.clients.InventoryClient import InventoryClient
|
| 8 |
from shop2020.config.client.ConfigClient import ConfigClient
|
8 |
from shop2020.config.client.ConfigClient import ConfigClient
|
| 9 |
from shop2020.logistics.service.impl import DataAccessor
|
9 |
from shop2020.logistics.service.impl import DataAccessor
|
| 10 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate, \
|
10 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate, \
|
| 11 |
to_t_provider, to_t_pickup_store
|
11 |
to_t_provider, to_t_pickup_store
|
| - |
|
12 |
#Start:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
|
| 12 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB, \
|
13 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB, \
|
| 13 |
get_shipment_info, initialize, get_logistics_estimation, get_provider, \
|
14 |
get_shipment_info, initialize, get_logistics_estimation, get_provider, \
|
| 14 |
get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
|
15 |
get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
|
| 15 |
get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
|
16 |
get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
|
| 16 |
get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
|
17 |
get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
|
| 17 |
add_pincode, store_shipment_info, adjust_delivery_time,\
|
18 |
add_pincode, store_shipment_info, adjust_delivery_time,\
|
| 18 |
get_min_advance_amount, add_new_awbs
|
19 |
get_min_advance_amount, add_new_awbs, get_Serviceable_Location_As_Per_ProviderId_And_Pincode, run_Complete_Update_For_Pincode
|
| - |
|
20 |
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
|
| 19 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
21 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
|
| 20 |
LogisticsServiceException, DeliveryType, PickUpType
|
22 |
LogisticsServiceException, DeliveryType, PickUpType
|
| 21 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
23 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 22 |
import datetime
|
24 |
import datetime
|
| 23 |
import math
|
25 |
import math
|
| Line 372... |
Line 374... |
| 372 |
|
374 |
|
| 373 |
def addNewAwbs(self, providerId, isCod, awbs):
|
375 |
def addNewAwbs(self, providerId, isCod, awbs):
|
| 374 |
try:
|
376 |
try:
|
| 375 |
return add_new_awbs(providerId, isCod, awbs)
|
377 |
return add_new_awbs(providerId, isCod, awbs)
|
| 376 |
finally:
|
378 |
finally:
|
| 377 |
close_session()
|
- |
|
| 378 |
|
379 |
close_session()
|
| - |
|
380 |
#Start:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
|
| - |
|
381 |
def getServiceableLocationAsPerProviderIdAndPincode(self, providerId, pincode):
|
| - |
|
382 |
try:
|
| - |
|
383 |
return get_Serviceable_Location_As_Per_ProviderId_And_Pincode(providerId, pincode)
|
| - |
|
384 |
finally:
|
| - |
|
385 |
close_session()
|
| - |
|
386 |
def runCompleteUpdateForPincode(self):
|
| - |
|
387 |
try:
|
| - |
|
388 |
run_Complete_Update_For_Pincode()
|
| - |
|
389 |
finally:
|
| - |
|
390 |
close_session()
|
| - |
|
391 |
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
|
| - |
|
392 |
|
| 379 |
|
393 |
|