| Line 3300... |
Line 3300... |
| 3300 |
|
3300 |
|
| 3301 |
def updateCrmWalletStatus(status,_id,userId,batchId,approvedBy):
|
3301 |
def updateCrmWalletStatus(status,_id,userId,batchId,approvedBy):
|
| 3302 |
if batchId is None:
|
3302 |
if batchId is None:
|
| 3303 |
get_mongo_connection().Dtr.crmrefundwallet.update({'_id':ObjectId(_id),},{"$set":{"status":status,"update_timestamp":to_java_date(datetime.now())}})
|
3303 |
get_mongo_connection().Dtr.crmrefundwallet.update({'_id':ObjectId(_id),},{"$set":{"status":status,"update_timestamp":to_java_date(datetime.now())}})
|
| 3304 |
else:
|
3304 |
else:
|
| - |
|
3305 |
#Batch id should be none to ensure that it does not get override
|
| 3305 |
get_mongo_connection().Dtr.crmrefundwallet.update({'_id':ObjectId(_id),},{"$set":{"status":status,"update_timestamp":to_java_date(datetime.now()),"batchId":batchId,"approved_by":approvedBy}})
|
3306 |
get_mongo_connection().Dtr.crmrefundwallet.update({'_id':ObjectId(_id), 'batchId':None},{"$set":{"status":status,"update_timestamp":to_java_date(datetime.now()),"batchId":batchId,"approved_by":approvedBy}})
|
| 3306 |
|
3307 |
|
| 3307 |
def fetchCrmRefundUsers(status,offset,limit):
|
3308 |
def fetchCrmRefundUsers(status,offset,limit):
|
| 3308 |
if status is not None:
|
3309 |
if status is not None:
|
| 3309 |
cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"status":status}).skip(offset).limit(limit).sort("created_timestamp",-1))
|
3310 |
cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"status":status}).skip(offset).limit(limit).sort("created_timestamp",-1))
|
| 3310 |
else:
|
3311 |
else:
|