Subversion Repositories SmartDukaan

Rev

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

Rev 9607 Rev 9633
Line 5669... Line 5669...
5669
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
5669
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
5670
    wh.description = "Wallet Credited"
5670
    wh.description = "Wallet Credited"
5671
    
5671
    
5672
    wallet.amount += amount
5672
    wallet.amount += amount
5673
    session.commit()
5673
    session.commit()
5674
    mail("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "anupam.singh@shop2020.in", "Ashwani.Kumar@spiceretail.co.in","parveen.mittal@spiceretail.co.in","pardeep.panwar@spiceretail.co.in","gagan.sharma@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.", "", [], [], [])
5674
    mail("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "anupam.singh@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.", "", [], [], [])
5675
    return wallet.amount
5675
    return wallet.amount
5676
 
5676
 
5677
def get_wallet_balance_for_company(companyId):
5677
def get_wallet_balance_for_company(companyId):
5678
    return WalletForCompany.get_by(companyId = companyId).amount
5678
    return WalletForCompany.get_by(companyId = companyId).amount
5679
 
5679
 
Line 6422... Line 6422...
6422
    return item_ordercount    
6422
    return item_ordercount    
6423
 
6423
 
6424
    
6424
    
6425
 
6425
 
6426
if __name__ == '__main__':
6426
if __name__ == '__main__':
6427
    print get_orders_by_mobile_number("9650889334")
-
 
6428
6427
    print get_orders_by_mobile_number("9650889334")
-
 
6428