Subversion Repositories SmartDukaan

Rev

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

Rev 7967 Rev 7982
Line 330... Line 330...
330
    d = datetime.datetime.now()
330
    d = datetime.datetime.now()
331
    wh = WalletHistoryForCompany()
331
    wh = WalletHistoryForCompany()
332
    wh.walletId = wallet.id
332
    wh.walletId = wallet.id
333
    wh.openingBal = wallet.amount
333
    wh.openingBal = wallet.amount
334
    wh.closingBal = wallet.amount - tamount
334
    wh.closingBal = wallet.amount - tamount
335
    wh.amount = tamount
335
    wh.amount = -tamount
336
    wh.transactionTime = d
336
    wh.transactionTime = d
337
    wh.referenceNumber =  int(d.strftime("%Y%m%d"))
337
    wh.referenceNumber =  int(d.strftime("%Y%m%d"))
338
    wh.description = "Wallet Credited"
338
    wh.description = "Wallet Credited"
339
    wallet.amount = wallet.amount - tamount
339
    wallet.amount = wallet.amount - tamount
340
    session.commit()
340
    session.commit()
341
 
341
 
342
 
342
 
343
    maildata = ""
343
    maildata = ""
344
    mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "anupam.singh@shop2020.in", "j.p.gupta@shop2020.in", "rajneesh.arora@shop2020.in"], "MIS :- Saholic (Date - " + todate.strftime("%d-%m-%Y") + ")   (Wallet Amount - " + str(wallet.amount) + ")    (Total Recharge - " + str(tamount) + ")", maildata, []) 
344
    mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["pardeep.panwar@spiceretail.co.in>", "amit.tyagi@spiceretail.co.in", "rajveer.singh@shop2020.in", "anupam.singh@shop2020.in", "j.p.gupta@shop2020.in", "rajneesh.arora@shop2020.in"], "MIS :- Saholic (Date - " + todate.strftime("%d-%m-%Y") + ")   (Wallet Amount - " + str(wallet.amount) + ")    (Total Recharge - " + str(tamount) + ")", maildata, []) 
345
 
345
 
346
    
346
    
347
if __name__ == '__main__':
347
if __name__ == '__main__':
348
    main()
348
    main()
349
            
349
            
350
350