| Line 100... |
Line 100... |
| 100 |
def __get_logistics_provider_for_destination_pincode(type, destination_pin, item_selling_price):
|
100 |
def __get_logistics_provider_for_destination_pincode(type, destination_pin, item_selling_price):
|
| 101 |
if ncr_pincodes.__contains__(destination_pin) and item_selling_price <= 20000:
|
101 |
if ncr_pincodes.__contains__(destination_pin) and item_selling_price <= 20000:
|
| 102 |
return 3, True
|
102 |
return 3, True
|
| 103 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
103 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
| 104 |
dest_code, exp, iscod, station_type = serviceable_location_cache.get(3).get(destination_pin)
|
104 |
dest_code, exp, iscod, station_type = serviceable_location_cache.get(3).get(destination_pin)
|
| 105 |
iscod = iscod and item_selling_price <= 10000
|
105 |
iscod = iscod and item_selling_price <= 9600
|
| 106 |
return 3, iscod
|
106 |
return 3, iscod
|
| 107 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
107 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
| 108 |
dest_code, exp, iscod, station_type = serviceable_location_cache.get(1).get(destination_pin)
|
108 |
dest_code, exp, iscod, station_type = serviceable_location_cache.get(1).get(destination_pin)
|
| 109 |
iscod = iscod and item_selling_price <= 10000
|
109 |
iscod = iscod and item_selling_price <= 9600
|
| 110 |
return 1, iscod
|
110 |
return 1, iscod
|
| 111 |
else:
|
111 |
else:
|
| 112 |
return None, False
|
112 |
return None, False
|
| 113 |
|
113 |
|
| 114 |
def get_destination_code(providerId, pinCode):
|
114 |
def get_destination_code(providerId, pinCode):
|