Subversion Repositories SmartDukaan

Rev

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

Rev 19484 Rev 19485
Line 2408... Line 2408...
2408
        elif status == utils.REFUND_ADJUSTMENT_MAP.get(2):
2408
        elif status == utils.REFUND_ADJUSTMENT_MAP.get(2):
2409
            Mongo.updateCrmWalletStatus(status, _id,user_id,None)
2409
            Mongo.updateCrmWalletStatus(status, _id,user_id,None)
2410
            resp.body = "{\"result\":\"success\"}"
2410
            resp.body = "{\"result\":\"success\"}"
2411
        else:
2411
        else:
2412
            resp.body = "{\"result\":\"failed\"}"
2412
            resp.body = "{\"result\":\"failed\"}"
-
 
2413
            
-
 
2414
class DetailsBatchId():
-
 
2415
    def on_get(self,req,resp):
-
 
2416
        batchId = req.get_param('batchId')
-
 
2417
        userRefundDetails = Mongo.fetchCrmRefundByBatchId(batchId)        
-
 
2418
        if userRefundDetails is not None:
-
 
2419
            resp.body = dumps(userRefundDetails)
-
 
2420
        else:
-
 
2421
            resp.body ="{}"
2413
                            
2422
                        
2414
def main():
2423
def main():
2415
    a = RetailerDetail()
2424
    a = RetailerDetail()
2416
    retailer = a.getNotActiveRetailer()
2425
    retailer = a.getNotActiveRetailer()
2417
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
2426
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
2418
    print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')
2427
    print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')