| Line 247... |
Line 247... |
| 247 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
247 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 248 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
248 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 249 |
return 6, iscod, otgAvailable
|
249 |
return 6, iscod, otgAvailable
|
| 250 |
'''
|
250 |
'''
|
| 251 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
251 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
| 252 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(3).get(destination_pin)
|
252 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(3).get(destination_pin)
|
| 253 |
if item_selling_price <= providerPrepaidLimit:
|
253 |
if item_selling_price <= providerPrepaidLimit:
|
| 254 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
254 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 255 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
255 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 256 |
return 3, iscod, otgAvailable
|
256 |
return 3, iscod, otgAvailable
|
| 257 |
|
257 |
|
| 258 |
if billingWarehouseId not in [12,13] and serviceable_location_cache.has_key(7) and serviceable_location_cache.get(7).has_key(destination_pin):
|
258 |
if billingWarehouseId not in [12,13] and serviceable_location_cache.has_key(7) and serviceable_location_cache.get(7).has_key(destination_pin):
|
| 259 |
if item_selling_price < 3000 and serviceable_location_cache.get(1).has_key(destination_pin):
|
259 |
if item_selling_price < 3000 and serviceable_location_cache.get(1).has_key(destination_pin):
|
| 260 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
260 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 261 |
if item_selling_price <= providerPrepaidLimit:
|
261 |
if item_selling_price <= providerPrepaidLimit:
|
| 262 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
262 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 263 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
263 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 264 |
return 1, iscod, otgAvailable
|
264 |
return 1, iscod, otgAvailable
|
| 265 |
else:
|
265 |
else:
|
| 266 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(7).get(destination_pin)
|
266 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(7).get(destination_pin)
|
| 267 |
if item_selling_price <= providerPrepaidLimit:
|
267 |
if item_selling_price <= providerPrepaidLimit:
|
| 268 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
268 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 269 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
269 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 270 |
return 7, iscod, otgAvailable
|
270 |
return 7, iscod, otgAvailable
|
| 271 |
|
271 |
|
| 272 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
272 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
| 273 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit = serviceable_location_cache.get(1).get(destination_pin)
|
273 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 274 |
if item_selling_price <= providerPrepaidLimit:
|
274 |
if item_selling_price <= providerPrepaidLimit:
|
| 275 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
275 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 276 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
276 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 277 |
return 1, iscod, otgAvailable
|
277 |
return 1, iscod, otgAvailable
|
| 278 |
|
278 |
|