| Line 2396... |
Line 2396... |
| 2396 |
userAmountMap[user_id] = value
|
2396 |
userAmountMap[user_id] = value
|
| 2397 |
Mongo.updateCrmWalletStatus(status, _id,user_id,None,None)
|
2397 |
Mongo.updateCrmWalletStatus(status, _id,user_id,None,None)
|
| 2398 |
if refundToWallet(batchId,userAmountMap):
|
2398 |
if refundToWallet(batchId,userAmountMap):
|
| 2399 |
refundType = jsonReq.get('type')
|
2399 |
refundType = jsonReq.get('type')
|
| 2400 |
approved_by = jsonReq.get('approved_by')
|
2400 |
approved_by = jsonReq.get('approved_by')
|
| 2401 |
print approved_by
|
- |
|
| 2402 |
get_mongo_connection().Dtr.refund.insert({"userId": user_id, "batch":batchId, "userAmount":value, "timestamp":datetime.strftime(datetimeNow,"%Y-%m-%d %H:%M:%S"), "type":refundType})
|
2401 |
get_mongo_connection().Dtr.refund.insert({"userId": user_id, "batch":batchId, "userAmount":value, "timestamp":datetime.strftime(datetimeNow,"%Y-%m-%d %H:%M:%S"), "type":refundType})
|
| 2403 |
get_mongo_connection().Dtr.user.update({"userId":user_id}, {"$inc": { "credited": value, refundType:value}}, upsert=True)
|
2402 |
get_mongo_connection().Dtr.user.update({"userId":user_id}, {"$inc": { "credited": value, refundType:value}}, upsert=True)
|
| 2404 |
Mongo.updateCrmWalletStatus(utils.REFUND_ADJUSTMENT_MAP.get(3), _id,user_id,batchId,approved_by)
|
2403 |
Mongo.updateCrmWalletStatus(utils.REFUND_ADJUSTMENT_MAP.get(3), _id,user_id,batchId,approved_by)
|
| 2405 |
print user_id,value
|
2404 |
print user_id,value
|
| 2406 |
Mongo.sendNotification([user_id], 'Batch Credit', 'Cashback Credited for %ss'%(str(refundType)), 'Rs.%s has been added to your wallet'%(value),'url', 'http://api.profittill.com/cashbacks/mine?user_id=%s'%(user_id), '2999-01-01', True, "TRAN_SMS Dear Customer, Cashback Credited for %ss. Rs.%s has been added to your wallet"%(refundType,value))
|
2405 |
Mongo.sendNotification([user_id], 'Batch Credit', 'Cashback Credited for %ss'%(str(refundType)), 'Rs.%s has been added to your wallet'%(value),'url', 'http://api.profittill.com/cashbacks/mine?user_id=%s'%(user_id), '2999-01-01', True, "TRAN_SMS Dear Customer, Cashback Credited for %ss. Rs.%s has been added to your wallet"%(refundType,value))
|