| Line 87... |
Line 87... |
| 87 |
except Exception as ex:
|
87 |
except Exception as ex:
|
| 88 |
print ex
|
88 |
print ex
|
| 89 |
raise LogisticsServiceException(103, "No Logistics partner listed for this destination pincode and the primary warehouse")
|
89 |
raise LogisticsServiceException(103, "No Logistics partner listed for this destination pincode and the primary warehouse")
|
| 90 |
|
90 |
|
| 91 |
def __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price):
|
91 |
def __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price):
|
| 92 |
if serviceable_location_cache.get(6).has_key(destination_pin):
|
- |
|
| 93 |
dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(6).get(destination_pin)
|
- |
|
| 94 |
iscod = iscod and item_selling_price <= 25000
|
- |
|
| 95 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
- |
|
| 96 |
return 6, iscod, otgAvailable
|
- |
|
| 97 |
|
- |
|
| 98 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
92 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
| 99 |
dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(3).get(destination_pin)
|
93 |
dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(3).get(destination_pin)
|
| 100 |
iscod = iscod and item_selling_price <= 25000
|
94 |
iscod = iscod and item_selling_price <= 25000
|
| 101 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
95 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 102 |
return 3, iscod, otgAvailable
|
96 |
return 3, iscod, otgAvailable
|