Subversion Repositories SmartDukaan

Rev

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

Rev 4864 Rev 4868
Line 1896... Line 1896...
1896
    if logistics_info.deliveryTime == -1:
1896
    if logistics_info.deliveryTime == -1:
1897
        raise TransactionServiceException(1, 'Location not serviceable')
1897
        raise TransactionServiceException(1, 'Location not serviceable')
1898
 
1898
 
1899
    # COD services are not available everywhere
1899
    # COD services are not available everywhere
1900
    if order.cod:
1900
    if order.cod:
1901
        if not logistics_client.isCodAllowed(address.pin):
1901
        if not logistics_info.codAllowed:
1902
            raise TransactionServiceException(2, 'COD service not available')
1902
            raise TransactionServiceException(2, 'COD service not available')
1903
 
1903
 
1904
    current_time = datetime.datetime.now()
1904
    current_time = datetime.datetime.now()
1905
    logistics_info.deliveryTime = adjust_delivery_time(current_time, logistics_info.deliveryTime)
1905
    logistics_info.deliveryTime = adjust_delivery_time(current_time, logistics_info.deliveryTime)
1906
    logistics_info.shippingTime = adjust_delivery_time(current_time, logistics_info.shippingTime)
1906
    logistics_info.shippingTime = adjust_delivery_time(current_time, logistics_info.shippingTime)