Subversion Repositories SmartDukaan

Rev

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

Rev 4711 Rev 4803
Line 119... Line 119...
119
            continue
119
            continue
120
        if type == DeliveryType.PREPAID and exp:
120
        if type == DeliveryType.PREPAID and exp:
121
            ret_provider_list.append(provider_id)
121
            ret_provider_list.append(provider_id)
122
        if type == DeliveryType.COD and cod:
122
        if type == DeliveryType.COD and cod:
123
            ret_provider_list.append(provider_id)
123
            ret_provider_list.append(provider_id)
-
 
124
    #FIXME As per ticket location from where only Aramex is servicing, should not be given to Aramex.
124
    if len(ret_provider_list) == 1:
125
    if len(ret_provider_list) == 1:
-
 
126
        if ret_provider_list.__contains__(1):
125
        return ret_provider_list[0]
127
            return ret_provider_list[0]
-
 
128
        else
-
 
129
            return None
126
    elif len(ret_provider_list) == 0:
130
    elif len(ret_provider_list) == 0:
127
        return None
131
        return None
128
    elif destination_provider_allocation_cache.has_key(destination_pin):
132
    elif destination_provider_allocation_cache.has_key(destination_pin):
129
        if item_selling_price < 10000:
133
        if item_selling_price < 10000:
130
            return destination_provider_allocation_cache.get(destination_pin)[0]
134
            return destination_provider_allocation_cache.get(destination_pin)[0]