Subversion Repositories SmartDukaan

Rev

Rev 23713 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23713 Rev 31041
Line 165... Line 165...
165
            fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice, totalAvailability, weight = client.getItemAvailabilityAtLocation(itemId, self.sourceId, stateId)
165
            fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice, totalAvailability, weight = client.getItemAvailabilityAtLocation(itemId, self.sourceId, stateId)
166
            if totalAvailability <= 0:
166
            if totalAvailability <= 0:
167
                expected_delay = 0
167
                expected_delay = 0
168
                
168
                
169
        except Exception as ex:
169
        except Exception as ex:
-
 
170
            print "Unable to fetch inventory information about this item." + str(itemId), "source id", self.sourceId, stateId
170
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
171
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this item." + str(itemId))
171
        
172
        
172
        if pickUp == PickUpType.COURIER:
173
        if pickUp == PickUpType.COURIER:
173
            delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, weight, type, billingWarehouseId)
174
            delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, weight, type, billingWarehouseId)
174
        else:
175
        else:
175
            delivery_estimate = _DeliveryEstimateObject(0, 0, get_provider_for_pickup_type(pickUp), False, False)
176
            delivery_estimate = _DeliveryEstimateObject(0, 0, get_provider_for_pickup_type(pickUp), False, False)