Subversion Repositories SmartDukaan

Rev

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

Rev 7021 Rev 7022
Line 87... Line 87...
87
    except Exception as ex:
87
    except Exception as ex:
88
        print ex
88
        print ex
89
        raise LogisticsServiceException(103, "No Logistics partner listed for this destination pincode and the primary warehouse")
89
        raise LogisticsServiceException(103, "No Logistics partner listed for this destination pincode and the primary warehouse")
90
 
90
 
91
def __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price):
91
def __get_logistics_provider_for_destination_pincode(destination_pin, item_selling_price):
92
    if serviceable_location_cache.get(6).has_key(destination_pin):
92
    if item_selling_price >= 5000 and item_selling_price <= 10000 and serviceable_location_cache.get(6).has_key(destination_pin):
93
        dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(6).get(destination_pin)
93
        dest_code, exp, iscod, otgAvailable = serviceable_location_cache.get(6).get(destination_pin)
94
        iscod = iscod and item_selling_price <= 25000
94
        iscod = iscod and item_selling_price <= 25000
95
        otgAvailable = otgAvailable and item_selling_price >= 2000
95
        otgAvailable = otgAvailable and item_selling_price >= 2000
96
        return 6, iscod, otgAvailable
96
        return 6, iscod, otgAvailable
97
    
97