Subversion Repositories SmartDukaan

Rev

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

Rev 2050 Rev 2219
Line 66... Line 66...
66
    if not t_orders:
66
    if not t_orders:
67
        raise TransactionServiceException(101, "Orders missing from the transaction")
67
        raise TransactionServiceException(101, "Orders missing from the transaction")
68
    transaction = get_new_transaction()
68
    transaction = get_new_transaction()
69
    transaction.customer_id = t_transaction.customer_id 
69
    transaction.customer_id = t_transaction.customer_id 
70
    transaction.shopping_cart_id = t_transaction.shoppingCartid
70
    transaction.shopping_cart_id = t_transaction.shoppingCartid
-
 
71
    transaction.coupon_code = t_transaction.coupon_code
71
 
72
 
72
    for t_order in t_orders:
73
    for t_order in t_orders:
73
        order = create_order(t_order)
74
        order = create_order(t_order)
74
        order.transaction = transaction 
75
        order.transaction = transaction 
75
        for line_item in t_order.lineitems:
76
        for line_item in t_order.lineitems: