| Line 120... |
Line 120... |
| 120 |
|
120 |
|
| 121 |
def get_logistics_estimation_with_type(self, itemId, destination_pin, type):
|
121 |
def get_logistics_estimation_with_type(self, itemId, destination_pin, type):
|
| 122 |
try:
|
122 |
try:
|
| 123 |
#Get the id and location of actual warehouse that'll be used to fulfil this order.
|
123 |
#Get the id and location of actual warehouse that'll be used to fulfil this order.
|
| 124 |
client = InventoryClient().get_client()
|
124 |
client = InventoryClient().get_client()
|
| 125 |
fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice, totalAvailability = client.getItemAvailabilityAtLocation(itemId, sourceId)
|
125 |
fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice, totalAvailability = client.getItemAvailabilityAtLocation(itemId, self.sourceId)
|
| 126 |
except Exception as ex:
|
126 |
except Exception as ex:
|
| 127 |
raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
|
127 |
raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
|
| 128 |
|
128 |
|
| 129 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, type)
|
129 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, type)
|
| 130 |
if delivery_estimate is None:
|
130 |
if delivery_estimate is None:
|