Subversion Repositories SmartDukaan

Rev

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

Rev 2242 Rev 2339
Line 138... Line 138...
138
    transaction.status = new_status
138
    transaction.status = new_status
139
    transaction.status_message = description
139
    transaction.status_message = description
140
    if new_status == TransactionStatus.FAILED:
140
    if new_status == TransactionStatus.FAILED:
141
        for order in transaction.orders:
141
        for order in transaction.orders:
142
            order.status = OrderStatus.PAYMENT_FAILED
142
            order.status = OrderStatus.PAYMENT_FAILED
-
 
143
            order.statusDescription = "Payment Failed"
143
    elif new_status == TransactionStatus.IN_PROCESS:
144
    elif new_status == TransactionStatus.IN_PROCESS:
144
        for order in transaction.orders:
145
        for order in transaction.orders:
145
            order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
146
            order.status = OrderStatus.SUBMITTED_FOR_PROCESSING
146
            order.statusDescription = "Submitted to warehouse"
147
            order.statusDescription = "Submitted to warehouse"
147
            #After we got payment success, we will set logistics info also 
148
            #After we got payment success, we will set logistics info also