Subversion Repositories SmartDukaan

Rev

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

Rev 14351 Rev 14356
Line 99... Line 99...
99
                    if "approveDetails-complete" in str(tr):
99
                    if "approveDetails-complete" in str(tr):
100
                        if "processingDetails-complete" in str(tr):
100
                        if "processingDetails-complete" in str(tr):
101
                            if "shippingDetails-complete" in str(tr):
101
                            if "shippingDetails-complete" in str(tr):
102
                                if "delivery-complete" in str(tr):
102
                                if "delivery-complete" in str(tr):
103
                                    status = MStore.ORDER_DELIVERED
103
                                    status = MStore.ORDER_DELIVERED
104
                                    if cashbackStatus == Store.CB_INIT:
104
                                    if cashbackStatus == Store.CB_PENDING:
105
                                        cashbackStatus = Store.CB_APPROVED
105
                                        cashbackStatus = Store.CB_APPROVED
106
                                    closedStatus = True
106
                                    closedStatus = True
107
                                else:     
107
                                else:     
108
                                    status = MStore.ORDER_SHIPPED
108
                                    status = MStore.ORDER_SHIPPED
109
                                    courierTrackAnchor = orderTrackingDetDiv.find('a')
109
                                    courierTrackAnchor = orderTrackingDetDiv.find('a')
Line 120... Line 120...
120
                    elif str(tr) in ["approveDetails-ongoing"]:
120
                    elif str(tr) in ["approveDetails-ongoing"]:
121
                        status=MStore.ORDER_PLACED             
121
                        status=MStore.ORDER_PLACED             
122
                    if "dead" in str(tr):
122
                    if "dead" in str(tr):
123
                        status = MStore.ORDER_CANCELLED
123
                        status = MStore.ORDER_CANCELLED
124
                        closedStatus = True
124
                        closedStatus = True
125
                        if cashbackStatus == Store.CB_INIT:
125
                        if cashbackStatus == Store.CB_PENDING:
126
                            cashbackStatus = Store.CB_CANCELLED
126
                            cashbackStatus = Store.CB_CANCELLED
127
                    
127
                    
128
                    updateMap["subOrders.$.cashBackStatus"] = cashbackStatus
128
                    updateMap["subOrders.$.cashBackStatus"] = cashbackStatus
129
                    updateMap["subOrders.$.status"] = status
129
                    updateMap["subOrders.$.status"] = status
130
                    updateMap["subOrders.$.closed"] = closedStatus
130
                    updateMap["subOrders.$.closed"] = closedStatus