Subversion Repositories SmartDukaan

Rev

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

Rev 23711 Rev 23712
Line 174... Line 174...
174
        else:
174
        else:
175
            delivery_estimate = _DeliveryEstimateObject(0, 0, get_provider_for_pickup_type(pickUp), False, False)
175
            delivery_estimate = _DeliveryEstimateObject(0, 0, get_provider_for_pickup_type(pickUp), False, False)
176
        if delivery_estimate is None:
176
        if delivery_estimate is None:
177
            raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
177
            raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
178
                
178
                
179
        print "destination", destination_pin, "stateId"
179
        print "destination", destination_pin, "stateId", stateId
180
        if stateId != -1:
180
        if stateId != -1:
181
            if destination_pin in [132001, 136027, 132114, 131001, 132103]:
181
            if destination_pin in [132001, 136027, 132114, 131001, 132103]:
182
                delivery_estimate.provider_id = 48
182
                delivery_estimate.provider_id = 48
183
        
183
        
184
        # # Commented below part as we have only Delhi as warehouse city. If we will add some more warehouses in different cities, this could be  useful. 
184
        # # Commented below part as we have only Delhi as warehouse city. If we will add some more warehouses in different cities, this could be  useful.