Subversion Repositories SmartDukaan

Rev

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

Rev 13033 Rev 13034
Line 3480... Line 3480...
3480
            if "Saved Successfully" in resp:
3480
            if "Saved Successfully" in resp:
3481
                cs.pushedToOcr = True
3481
                cs.pushedToOcr = True
3482
                cs.pushedAt = datetime.datetime.now()
3482
                cs.pushedAt = datetime.datetime.now()
3483
                session.commit()
3483
                session.commit()
3484
            elif "Error in Saving Data" in resp:
3484
            elif "Error in Saving Data" in resp:
3485
                mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing store collection to OCR", resp, [])
3485
                mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing store collection to OCR", resp, [])
3486
            else: 
3486
            else: 
3487
                mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing store collection to OCR", resp, [])
3487
                mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["kshitij.sood@shop2020.in", "amit.gupta@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing store collection to OCR", resp, [])
3488
    except:
3488
    except:
3489
        print "Problem while pushing to ocr"
3489
        print "Problem while pushing to ocr"
3490
 
3490
 
3491
def __push_collection_to_hotspot(order, type, storeOrder = False):
3491
def __push_collection_to_hotspot(order, type, storeOrder = False):
3492
    try:
3492
    try:
Line 6053... Line 6053...
6053
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
6053
    wh.referenceNumber =  get_next_invoice_number(OrderType.WALLETCREDIT)
6054
    wh.description = "Wallet Credited"
6054
    wh.description = "Wallet Credited"
6055
    
6055
    
6056
    wallet.amount += amount
6056
    wallet.amount += amount
6057
    session.commit()
6057
    session.commit()
6058
    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.", "", [], [], [])
6058
    mail("cnc.center@shop2020.in", "5h0p2o2o", [ "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.", "", [], [], [])
6059
    return wallet.amount
6059
    return wallet.amount
6060
 
6060
 
6061
def get_wallet_balance_for_company(companyId):
6061
def get_wallet_balance_for_company(companyId):
6062
    return WalletForCompany.get_by(companyId = companyId).amount
6062
    return WalletForCompany.get_by(companyId = companyId).amount
6063
 
6063