Subversion Repositories SmartDukaan

Rev

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

Rev 14270 Rev 14271
Line 211... Line 211...
211
                            findMap = {"orderId": tr['orderId'], "subOrders.merchantSubOrderId": orderId}
211
                            findMap = {"orderId": tr['orderId'], "subOrders.merchantSubOrderId": orderId}
212
                            updateMap = {}
212
                            updateMap = {}
213
                            updateMap["subOrders.$.detailedStatus"] = order['statusDescription']
213
                            updateMap["subOrders.$.detailedStatus"] = order['statusDescription']
214
                            status = self._getStatusFromDetailedStatus(ORDERSTATUS[order['status']]) 
214
                            status = self._getStatusFromDetailedStatus(ORDERSTATUS[order['status']]) 
215
                            closedStatus = status in [Store.ORDER_DELIVERED, Store.ORDER_CANCELLED]
215
                            closedStatus = status in [Store.ORDER_DELIVERED, Store.ORDER_CANCELLED]
-
 
216
                            print "status---", status, order['status']
216
                            updateMap["subOrders.$.status"] = status
217
                            updateMap["subOrders.$.status"] = status
217
                            if closedStatus:
218
                            if closedStatus:
218
                                #if status is closed then change the paybackStatus accordingly
219
                                #if status is closed then change the paybackStatus accordingly
219
                                updateMap["subOrders.$.closed"] = True
220
                                updateMap["subOrders.$.closed"] = True
220
                                if status == Store.ORDER_DELIVERED:
221
                                if status == Store.ORDER_DELIVERED: