Subversion Repositories SmartDukaan

Rev

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

Rev 7425 Rev 7442
Line 106... Line 106...
106
        dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(1).get(destination_pin)
106
        dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(1).get(destination_pin)
107
        iscod = iscod and item_selling_price <= 9600
107
        iscod = iscod and item_selling_price <= 9600
108
        otgAvailable = otgAvailable and item_selling_price >= 2000
108
        otgAvailable = otgAvailable and item_selling_price >= 2000
109
        return 1, iscod, otgAvailable
109
        return 1, iscod, otgAvailable
110
    else:
110
    else:
111
        return None, False    
111
        return None, False, False    
112
 
112
 
113
def get_destination_code(providerId, pinCode):
113
def get_destination_code(providerId, pinCode):
114
    serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
114
    serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
115
    return serviceableLocationDetail.dest_code
115
    return serviceableLocationDetail.dest_code
116
    
116