| Line 169... |
Line 169... |
| 169 |
|
169 |
|
| 170 |
if pickUp == PickUpType.COURIER:
|
170 |
if pickUp == PickUpType.COURIER:
|
| 171 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, weight, type, billingWarehouseId)
|
171 |
delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, weight, type, billingWarehouseId)
|
| 172 |
else:
|
172 |
else:
|
| 173 |
#if pickUp == PickUpType.RUNNER or pickUp == PickUpType.SELF:
|
173 |
#if pickUp == PickUpType.RUNNER or pickUp == PickUpType.SELF:
|
| 174 |
delivery_estimate = _DeliveryEstimateObject(get_provider_for_pickup_type(pickUp), 0, 0, False, False)
|
174 |
delivery_estimate = _DeliveryEstimateObject(0, 0, get_provider_for_pickup_type(pickUp), False, False)
|
| 175 |
if delivery_estimate is None:
|
175 |
if delivery_estimate is None:
|
| 176 |
raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
|
176 |
raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
|
| 177 |
|
177 |
|
| 178 |
|
178 |
|
| 179 |
## 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.
|
179 |
## 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.
|