Subversion Repositories SmartDukaan

Rev

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

Rev 16832 Rev 16833
Line 1553... Line 1553...
1553
        message2 = "User Pay Out Price:- "+ str(appOffer.user_payout) + "\n" + "Actual Pay Out:- "+ str(payout)
1553
        message2 = "User Pay Out Price:- "+ str(appOffer.user_payout) + "\n" + "Actual Pay Out:- "+ str(payout)
1554
        m.setTextBody(message2)
1554
        m.setTextBody(message2)
1555
    m.send()
1555
    m.send()
1556
        
1556
        
1557
def rejectCashback(orderId, subOrderId):
1557
def rejectCashback(orderId, subOrderId):
1558
    cashBack = get_mongo_connection().Dtr.MerchantOrder.update({"orderId":orderId, "subOrders.merchantSubOrderId":subOrderId}, 
1558
    cashBack = get_mongo_connection().Dtr.merchantOrder.update({"orderId":orderId, "subOrders.merchantSubOrderId":subOrderId}, 
1559
                                                               {"$set":{"subOrders.$.cashBackStatus":CB_REJECTED}})
1559
                                                               {"$set":{"subOrders.$.cashBackStatus":CB_REJECTED}})
1560
    print cashBack
1560
    print cashBack
1561
        
1561
        
1562
 
1562
 
1563
    
1563