Subversion Repositories SmartDukaan

Rev

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

Rev 19264 Rev 19270
Line 270... Line 270...
270
                            closed = False
270
                            closed = False
271
                
271
                
272
                for order in ordersToClone.values():
272
                for order in ordersToClone.values():
273
                    originalOrderId = self.getOriginalOrderId(order['id'], ordersToClone, splitSubOrdersMap)
273
                    originalOrderId = self.getOriginalOrderId(order['id'], ordersToClone, splitSubOrdersMap)
274
                    subOrderToClone = splitSubOrdersMap[originalOrderId].copy()
274
                    subOrderToClone = splitSubOrdersMap[originalOrderId].copy()
275
                    subOrderToClone["merchantSubOrderId"] = order['id']
275
                    subOrderToClone["merchantSubOrderId"] = str(order['id'])
276
                    currentQty = int(order['lineitems'][0]['quantity'])
276
                    currentQty = int(order['lineitems'][0]['quantity'])
277
                    quantity = int(subOrderToClone['quantity'])
277
                    quantity = int(subOrderToClone['quantity'])
278
                    subOrderToClone["detailedStatus"] = order['statusDescription']
278
                    subOrderToClone["detailedStatus"] = order['statusDescription']
279
                    status = self._getStatusFromDetailedStatus(ORDERSTATUS[order['status']]) 
279
                    status = self._getStatusFromDetailedStatus(ORDERSTATUS[order['status']]) 
280
                    closedStatus = status in [Store.ORDER_DELIVERED, Store.ORDER_CANCELLED]
280
                    closedStatus = status in [Store.ORDER_DELIVERED, Store.ORDER_CANCELLED]