Subversion Repositories SmartDukaan

Rev

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

Rev 5595 Rev 5692
Line 117... Line 117...
117
            client = CatalogClient().get_client()
117
            client = CatalogClient().get_client()
118
            fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice = client.getItemAvailabilityAtLocation(itemId)
118
            fulfilmentWarehouseId, expected_delay, billingWarehouseId, sellingPrice = client.getItemAvailabilityAtLocation(itemId)
119
        except Exception as ex:
119
        except Exception as ex:
120
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
120
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this item.")
121
        
121
        
122
        delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, None, type)
122
        delivery_estimate = get_logistics_estimation(destination_pin, sellingPrice, type)
123
        if delivery_estimate is None:
123
        if delivery_estimate is None:
124
            raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
124
            raise LogisticsServiceException(104, "Unable to fetch delivery estimate for this pincode.")
125
                
125
                
126
        
126
        
127
        ## 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. 
127
        ## 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.