Subversion Repositories SmartDukaan

Rev

Rev 22147 | Rev 22238 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22147 Rev 22237
Line 285... Line 285...
285
                            return 1, True, otg
285
                            return 1, True, otg
286
                        else:
286
                        else:
287
                            return 2, False, otg
287
                            return 2, False, otg
288
            
288
            
289
    else:
289
    else:
290
        provider = 1 if blueDartServiceable else 2
290
        if blueDartServiceable:
-
 
291
            provider=1
291
        dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(provider).get(destination_pin)
292
        elif aramexServiceable:
-
 
293
            provider=2
-
 
294
        else:
-
 
295
            provider = None
-
 
296
            
-
 
297
        if provider:
292
        if item_selling_price <= providerPrepaidLimit:
298
            if item_selling_price <= providerPrepaidLimit:
-
 
299
                dest_code, exp, iscod, otgAvailable, websiteCodLimit, storeCodLimit, providerPrepaidLimit, providerCodLimit = serviceable_location_cache.get(provider).get(destination_pin)
293
            iscod = iscod and item_selling_price <= websiteCodLimit
300
                iscod = iscod and item_selling_price <= websiteCodLimit
294
            return provider, iscod, otg
301
                return provider, iscod, otg
295
            
302
            
296
    
303
    
297
    return None, False, False
304
    return None, False, False
298
 
305
 
299
def __getStateByPin(destination_pin):
306
def __getStateByPin(destination_pin):