Subversion Repositories SmartDukaan

Rev

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

Rev 4506 Rev 4515
Line 1098... Line 1098...
1098
        order.received_return_timestamp = datetime.datetime.now()
1098
        order.received_return_timestamp = datetime.datetime.now()
1099
        session.commit()
1099
        session.commit()
1100
    elif order.status == OrderStatus.RTO_IN_TRANSIT :
1100
    elif order.status == OrderStatus.RTO_IN_TRANSIT :
1101
        if receiveCondition == 0:
1101
        if receiveCondition == 0:
1102
            order.status = OrderStatus.RTO_RECEIVED_PRESTINE
1102
            order.status = OrderStatus.RTO_RECEIVED_PRESTINE
1103
            order.statusDescription = "RTO package received"
1103
            order.statusDescription = "Returned to origin"
1104
        elif receiveCondition == 1:
1104
        elif receiveCondition == 1:
1105
            order.status = OrderStatus.RTO_RECEIVED_DAMAGED
1105
            order.status = OrderStatus.RTO_RECEIVED_DAMAGED
1106
            order.statusDescription = "RTO received damaged"
1106
            order.statusDescription = "RTO received damaged"
1107
        elif receiveCondition == 2:
1107
        elif receiveCondition == 2:
1108
            order.status = OrderStatus.RTO_LOST_IN_TRANSIT
1108
            order.status = OrderStatus.RTO_LOST_IN_TRANSIT