| Line 247... |
Line 247... |
| 247 |
if item_selling_price <= providerPrepaidLimit:
|
247 |
if item_selling_price <= providerPrepaidLimit:
|
| 248 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
248 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 249 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
249 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 250 |
return 6, iscod, otgAvailable
|
250 |
return 6, iscod, otgAvailable
|
| 251 |
'''
|
251 |
'''
|
| 252 |
if serviceable_location_cache.get(3).has_key(destination_pin):
|
252 |
if serviceable_location_cache.has_key(3) and serviceable_location_cache.get(3).has_key(destination_pin):
|
| 253 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(3).get(destination_pin)
|
253 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(3).get(destination_pin)
|
| 254 |
if item_selling_price <= providerPrepaidLimit:
|
254 |
if item_selling_price <= providerPrepaidLimit:
|
| 255 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
255 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 256 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
256 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 257 |
return 3, iscod, otgAvailable
|
257 |
return 3, iscod, otgAvailable
|
| 258 |
|
258 |
|
| 259 |
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 billingWarehouseId not in [12,13] and serviceable_location_cache.has_key(7) and serviceable_location_cache.get(7).has_key(destination_pin):
|
| 260 |
if item_selling_price < 3000 and serviceable_location_cache.get(1).has_key(destination_pin):
|
260 |
if item_selling_price < 3000 and serviceable_location_cache.has_key(1) and serviceable_location_cache.get(1).has_key(destination_pin):
|
| 261 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
261 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 262 |
if item_selling_price <= providerPrepaidLimit:
|
262 |
if item_selling_price <= providerPrepaidLimit:
|
| 263 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
263 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 264 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
264 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 265 |
return 1, iscod, otgAvailable
|
265 |
return 1, iscod, otgAvailable
|
| Line 267... |
Line 267... |
| 267 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(7).get(destination_pin)
|
267 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(7).get(destination_pin)
|
| 268 |
if item_selling_price <= providerPrepaidLimit:
|
268 |
if item_selling_price <= providerPrepaidLimit:
|
| 269 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
269 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 270 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
270 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 271 |
return 7, iscod, otgAvailable
|
271 |
return 7, iscod, otgAvailable
|
| - |
|
272 |
|
| - |
|
273 |
if billingWarehouseId not in [12,13] and serviceable_location_cache.has_key(46) and serviceable_location_cache.get(46).has_key(destination_pin):
|
| - |
|
274 |
if item_selling_price < 3000 and serviceable_location_cache.has_key(1) and serviceable_location_cache.get(1).has_key(destination_pin):
|
| - |
|
275 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| - |
|
276 |
if item_selling_price <= providerPrepaidLimit:
|
| - |
|
277 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| - |
|
278 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| - |
|
279 |
return 1, iscod, otgAvailable
|
| - |
|
280 |
else:
|
| - |
|
281 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(46).get(destination_pin)
|
| - |
|
282 |
if item_selling_price <= providerPrepaidLimit:
|
| - |
|
283 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| - |
|
284 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| - |
|
285 |
return 46, iscod, otgAvailable
|
| 272 |
|
286 |
|
| 273 |
if serviceable_location_cache.get(1).has_key(destination_pin):
|
287 |
if serviceable_location_cache.has_key(1) and serviceable_location_cache.get(1).has_key(destination_pin):
|
| 274 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
288 |
dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(1).get(destination_pin)
|
| 275 |
if item_selling_price <= providerPrepaidLimit:
|
289 |
if item_selling_price <= providerPrepaidLimit:
|
| 276 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
290 |
iscod = iscod and item_selling_price <= websiteCodLimit
|
| 277 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
291 |
otgAvailable = otgAvailable and item_selling_price >= 2000
|
| 278 |
return 1, iscod, otgAvailable
|
292 |
return 1, iscod, otgAvailable
|