| 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:
|