Subversion Repositories SmartDukaan

Rev

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

Rev 19537 Rev 19541
Line 4336... Line 4336...
4336
    
4336
    
4337
    if order.logistics_provider_id == provider_id:
4337
    if order.logistics_provider_id == provider_id:
4338
        raise TransactionServiceException(121, "Provider Id entered by you is same as provider assigned to order.")
4338
        raise TransactionServiceException(121, "Provider Id entered by you is same as provider assigned to order.")
4339
    
4339
    
4340
    logistics_client = LogisticsClient().get_client()
4340
    logistics_client = LogisticsClient().get_client()
4341
    if provider_id != 7:
4341
    if provider_id != 7 and provider_id != 46:
4342
        awb_number = logistics_client.getEmptyAWB(provider_id, order.cod)
4342
        awb_number = logistics_client.getEmptyAWB(provider_id, order.cod)
4343
    order.logistics_provider_id = provider_id
4343
    order.logistics_provider_id = provider_id
4344
    if provider_id != 7:
4344
    if provider_id != 7 and provider_id != 46:
4345
        order.airwaybill_no = awb_number
4345
        order.airwaybill_no = awb_number
4346
        order.tracking_id = awb_number
4346
        order.tracking_id = awb_number
4347
    session.commit()
4347
    session.commit()
4348
 
4348
 
4349
    return order
4349
    return order