| Line 244... |
Line 244... |
| 244 |
#As of now we are dealing with Aramex and Bluedart. i.e. 1 and 2 and we have just one location i.e. gurgaon will generailise this
|
244 |
#As of now we are dealing with Aramex and Bluedart. i.e. 1 and 2 and we have just one location i.e. gurgaon will generailise this
|
| 245 |
#Once bandwidth is available these things will be derived through improved logic.
|
245 |
#Once bandwidth is available these things will be derived through improved logic.
|
| 246 |
#As of now otg is set to False
|
246 |
#As of now otg is set to False
|
| 247 |
otg=False
|
247 |
otg=False
|
| 248 |
aramexServiceable = serviceable_location_cache.has_key(2) and serviceable_location_cache.get(2).has_key(destination_pin)
|
248 |
aramexServiceable = serviceable_location_cache.has_key(2) and serviceable_location_cache.get(2).has_key(destination_pin)
|
| 249 |
blueDartServiceable = serviceable_location_cache.has_key(1) and serviceable_location_cache.get(1).has_key(destination_pin)
|
249 |
#blueDartServiceable = serviceable_location_cache.has_key(1) and serviceable_location_cache.get(1).has_key(destination_pin)
|
| - |
|
250 |
#Bluedart is temporarily not serviceable
|
| - |
|
251 |
blueDartServiceable = False
|
| 250 |
if blueDartServiceable and aramexServiceable:
|
252 |
if blueDartServiceable and aramexServiceable:
|
| 251 |
state = __getStateByPin(destination_pin)
|
253 |
state = __getStateByPin(destination_pin)
|
| 252 |
if state is None:
|
254 |
if state is None:
|
| 253 |
state = 'DELHI'
|
255 |
state = 'DELHI'
|
| 254 |
#Prioritise Bluedart in Gujarat and Rajasthan
|
256 |
#Prioritise Bluedart in Gujarat and Rajasthan
|