Subversion Repositories SmartDukaan

Rev

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

Rev 7188 Rev 7209
Line 240... Line 240...
240
        resp = response.read()
240
        resp = response.read()
241
        conn.close()
241
        conn.close()
242
        print resp
242
        print resp
243
 
243
 
244
    maildata += "</tbody></table></body></html>"
244
    maildata += "</tbody></table></body></html>"
245
    mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "anupam.singh@shop2020.in"], "MIS   (Date - " + todate.strftime("%d-%m-%Y") + ")   (Wallet Amount - " + str(wamount) + ")    (Total Recharge - " + str(trecharge) + ")", maildata, [], [], [])
245
    mail_html("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"], "MIS   (Date - " + todate.strftime("%d-%m-%Y") + ")   (Wallet Amount - " + str(wamount) + ")    (Total Recharge - " + str(trecharge) + ")", maildata, [])
246
 
246
 
247
def topup_company_wallet(companyId, amount):
247
def topup_company_wallet(companyId, amount):
248
    wallet = WalletForCompany.query.filter(WalletForCompany.id == companyId).with_lockmode("update").one()
248
    wallet = WalletForCompany.query.filter(WalletForCompany.id == companyId).with_lockmode("update").one()
249
 
249
 
250
    wh = WalletHistoryForCompany()
250
    wh = WalletHistoryForCompany()