Subversion Repositories SmartDukaan

Rev

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

Rev 10298 Rev 10399
Line 5675... Line 5675...
5675
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
5675
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
5676
    wh.description = "Wallet Credited"
5676
    wh.description = "Wallet Credited"
5677
    
5677
    
5678
    wallet.amount += amount
5678
    wallet.amount += amount
5679
    session.commit()
5679
    session.commit()
5680
    mail("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "kshitij.sood@shop2020.in", "Ashwani.Kumar@spiceretail.co.in","parveen.mittal@spiceretail.co.in","pardeep.panwar@spiceretail.co.in","adarsh.verma@spiceretail.co.in","j.p.gupta@shop2020.in", "rajneesh.arora@shop2020.in", "amit.tyagi@spiceretail.co.in"] , company.name + " wallet topped up by " +  str(amount) + " rupees.", "", [], [], [])
5680
    mail("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "kshitij.sood@shop2020.in", "digamber.chauhan@spiceretail.co.in","parveen.mittal@spiceretail.co.in","pardeep.panwar@spiceretail.co.in","adarsh.verma@spiceretail.co.in","j.p.gupta@shop2020.in", "rajneesh.arora@shop2020.in", "amit.tyagi@spiceretail.co.in"] , company.name + " wallet topped up by " +  str(amount) + " rupees.", "", [], [], [])
5681
    return wallet.amount
5681
    return wallet.amount
5682
 
5682
 
5683
def get_wallet_balance_for_company(companyId):
5683
def get_wallet_balance_for_company(companyId):
5684
    return WalletForCompany.get_by(companyId = companyId).amount
5684
    return WalletForCompany.get_by(companyId = companyId).amount
5685
 
5685