Subversion Repositories SmartDukaan

Rev

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

Rev 7730 Rev 7739
Line 3456... Line 3456...
3456
    if order.cod:
3456
    if order.cod:
3457
        if not logistics_info.codAllowed:
3457
        if not logistics_info.codAllowed:
3458
            raise TransactionServiceException(2, 'COD service not available')
3458
            raise TransactionServiceException(2, 'COD service not available')
3459
 
3459
 
3460
    if logistics_info.providerId != order.logistics_provider_id:
3460
    if logistics_info.providerId != order.logistics_provider_id:
3461
        #logistics_info = logistics_client.getLogisticsInfo(address.pin, order.lineitems[0].item_id, type, PickUpType.COURIER)
3461
        logistics_info.airway_billno = logistics_client.getEmptyAWB(logistics_info.providerId, deliveryType)
3462
        order.tracking_id = logistics_info.airway_billno
3462
        order.tracking_id = logistics_info.airway_billno
3463
        order.airwaybill_no = logistics_info.airway_billno
3463
        order.airwaybill_no = logistics_info.airway_billno
3464
        order.logistics_provider_id = logistics_info.providerId
3464
        order.logistics_provider_id = logistics_info.providerId
3465
        current_time = datetime.datetime.now()
3465
        current_time = datetime.datetime.now()
3466
        logistics_info.deliveryTime = adjust_delivery_time(current_time, logistics_info.deliveryTime)
3466
        logistics_info.deliveryTime = adjust_delivery_time(current_time, logistics_info.deliveryTime)