Subversion Repositories SmartDukaan

Rev

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

Rev 10688 Rev 11254
Line 317... Line 317...
317
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this entity.")
317
            raise LogisticsServiceException(103, "Unable to fetch inventory information about this entity.")
318
        
318
        
319
        estimateList = []
319
        estimateList = []
320
 
320
 
321
        for item in items:
321
        for item in items:
-
 
322
            try:
322
            estimationInfo = self.get_logistics_estimation_with_type(item.id, destination_pin, type)
323
                estimationInfo = self.get_logistics_estimation_with_type(item.id, destination_pin, type)
-
 
324
            except Exception as ex:
-
 
325
                estimationInfo = LogisticsInfo()
-
 
326
                estimationInfo.deliveryTime = 0
323
            if item.itemStatus == status.ACTIVE:
327
            if item.itemStatus == status.ACTIVE:
324
                estimateList.append((0, estimationInfo.deliveryTime, "BUY NOW", item.id))
328
                estimateList.append((0, estimationInfo.deliveryTime, "BUY NOW", item.id))
325
            elif item.itemStatus == status.PAUSED:
329
            elif item.itemStatus == status.PAUSED:
326
                estimateList.append((1, estimationInfo.deliveryTime, "NOTIFY ME", item.id))
330
                estimateList.append((1, estimationInfo.deliveryTime, "NOTIFY ME", item.id))
327
            elif item.itemStatus == status.PAUSED_BY_RISK:
331
            elif item.itemStatus == status.PAUSED_BY_RISK: