Subversion Repositories SmartDukaan

Rev

Rev 21141 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21141 Rev 21143
Line 118... Line 118...
118
    shipment_cost_detail = tc.getCostDetailForLogisticsTxnId(logisticsTxnId)
118
    shipment_cost_detail = tc.getCostDetailForLogisticsTxnId(logisticsTxnId)
119
    return shipment_cost_detail
119
    return shipment_cost_detail
120
    
120
    
121
 
121
 
122
def generate_awb(orders_list):
122
def generate_awb(orders_list):
123
    print "******",len(orders_list)
-
 
124
    print "******",orders_list[0].__dict__
-
 
125
    try:
123
    try:
126
        if not isinstance(orders_list, list) or not orders_list:
124
        if not isinstance(orders_list, list) or not orders_list:
127
            raise ValueError("Expecting list of orders")
125
            raise ValueError("Expecting list of orders")
128
        consignee = get_client().factory.create('ns2:Consignee')
126
        consignee = get_client().factory.create('ns2:Consignee')
129
        consignee = clean_address(orders_list[0], consignee)
127
        consignee = clean_address(orders_list[0], consignee)