Subversion Repositories SmartDukaan

Rev

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

Rev 16968 Rev 16969
Line 479... Line 479...
479
                                            updateMap["subOrders.$.closeAt"] = datetime.strftime(closeAt,"%Y-%m-%d %H:%M:%S")
479
                                            updateMap["subOrders.$.closeAt"] = datetime.strftime(closeAt,"%Y-%m-%d %H:%M:%S")
480
                                        else:
480
                                        else:
481
                                            closeAt = datetime.strptime(closeAt,"%Y-%m-%d %H:%M:%S")
481
                                            closeAt = datetime.strptime(closeAt,"%Y-%m-%d %H:%M:%S")
482
                                            if datetime.now() > closeAt:
482
                                            if datetime.now() > closeAt:
483
                                                closedStatus = True
483
                                                closedStatus = True
-
 
484
                                    #Close if not applicable suborders are not closed
-
 
485
                                    if utils.fromTimeStamp(order['createdOnInt'] + 35*86400*1000) < datetime.now() and subOrder['cashBackStatus']==utils.CB_NA:
-
 
486
                                        closedStatus=True   
484
                                            
487
                                            
485
                                            
488
                                            
486
                                    if closedStatus:
489
                                    if closedStatus:
487
                                        #if status is closed then change the paybackStatus accordingly
490
                                        #if status is closed then change the paybackStatus accordingly
488
                                        updateMap["subOrders.$.closed"] = True
491
                                        updateMap["subOrders.$.closed"] = True