Subversion Repositories SmartDukaan

Rev

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

Rev 5885 Rev 5886
Line 2707... Line 2707...
2707
    type = DeliveryType.PREPAID
2707
    type = DeliveryType.PREPAID
2708
    if order.cod:
2708
    if order.cod:
2709
        type = DeliveryType.COD
2709
        type = DeliveryType.COD
2710
 
2710
 
2711
    logistics_client = LogisticsClient().get_client()
2711
    logistics_client = LogisticsClient().get_client()
2712
    logistics_info = logistics_client.getLogisticsEstimation(order.lineitems[0].item_id, address.pin, type, PickUpType.COURIER)
2712
    logistics_info = logistics_client.getLogisticsEstimation(order.lineitems[0].item_id, address.pin, type)
2713
 
2713
 
2714
    # Check for new estimate. Raise exception if new address is not serviceable
2714
    # Check for new estimate. Raise exception if new address is not serviceable
2715
    if logistics_info.deliveryTime == -1:
2715
    if logistics_info.deliveryTime == -1:
2716
        raise TransactionServiceException(1, 'Location not serviceable')
2716
        raise TransactionServiceException(1, 'Location not serviceable')
2717
 
2717