Subversion Repositories SmartDukaan

Rev

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

Rev 20418 Rev 20419
Line 153... Line 153...
153
 
153
 
154
                        if "approveDetails-ongoing" in str(tr) or "processingDetails-ongoing" in str(tr):
154
                        if "approveDetails-ongoing" in str(tr) or "processingDetails-ongoing" in str(tr):
155
                            status=MStore.ORDER_PLACED
155
                            status=MStore.ORDER_PLACED
156
                        elif "shippingDetails-ongoing" in str(tr):
156
                        elif "shippingDetails-ongoing" in str(tr):
157
                            status = MStore.ORDER_SHIPPED
157
                            status = MStore.ORDER_SHIPPED
158
                            courierTrackAnchor = orderTrackingDetDiv.find('a')
-
 
159
                            trackingUrl = courierTrackAnchor("href")
-
 
160
                            trackingText = courierTrackAnchor.text
-
 
161
                            courierArr = trackingText.split(' : ')
-
 
162
                            updateMap["subOrders.$.trackingUrl"] = trackingUrl
-
 
163
                            updateMap["subOrders.$.trackingNumber"] = courierArr[1]
-
 
164
                            updateMap["subOrders.$.courierName"] = courierArr[0]
-
 
165
                        elif "delivery-complete" in str(tr):
158
                        elif "delivery-complete" in str(tr):
166
                            status = MStore.ORDER_DELIVERED
159
                            status = MStore.ORDER_DELIVERED
167
                            if cashbackStatus == Store.CB_PENDING:
160
                            if cashbackStatus == Store.CB_PENDING:
168
                                cashbackStatus = Store.CB_APPROVED
161
                                cashbackStatus = Store.CB_APPROVED
169
                            closedStatus = True
162
                            closedStatus = True