Subversion Repositories SmartDukaan

Rev

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

Rev 4439 Rev 4442
Line 124... Line 124...
124
    if len(ret_provider_list) == 1:
124
    if len(ret_provider_list) == 1:
125
        return ret_provider_list[0]
125
        return ret_provider_list[0]
126
    elif len(ret_provider_list) == 0:
126
    elif len(ret_provider_list) == 0:
127
        return None
127
        return None
128
    elif destination_provider_allocation_cache.has_key(destination_pin):
128
    elif destination_provider_allocation_cache.has_key(destination_pin):
129
        if item_selling_price < 10000:
129
        if item_selling_price < 5000:
130
            return destination_provider_allocation_cache.get(destination_pin)[0]
130
            return destination_provider_allocation_cache.get(destination_pin)[0]
131
        else:
131
        else:
132
            return destination_provider_allocation_cache.get(destination_pin)[1]
132
            return destination_provider_allocation_cache.get(destination_pin)[1]
133
    else:
133
    else:
134
        raise LogisticsServiceException(101, "No provider assigned for pincode: " + str(destination_pin))
134
        raise LogisticsServiceException(101, "No provider assigned for pincode: " + str(destination_pin))