| Line 515... |
Line 515... |
| 515 |
wamt = int(dit2[0])- int(dit[0])
|
515 |
wamt = int(dit2[0])- int(dit[0])
|
| 516 |
wallet.amount = wamt
|
516 |
wallet.amount = wamt
|
| 517 |
session.commit()
|
517 |
session.commit()
|
| 518 |
|
518 |
|
| 519 |
maildata += "</tbody></table></body></html>"
|
519 |
maildata += "</tbody></table></body></html>"
|
| 520 |
mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "sachin.tyagi@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"], "MIS :- SpiceRetail (Date - " + todate.strftime("%d-%m-%Y") + ") (Wallet Amount - " + str(wallet.amount) + ") (Total Recharge - " + str(trecharge) + ")", maildata, [])
|
520 |
mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["kshitij.sood@shop2020.in","pardeep.panwar@spiceretail.co.in","adarsh.verma@spiceretail.co.in","j.p.gupta@shop2020.in", "amit.tyagi@spiceretail.co.in"], "MIS :- SpiceRetail (Date - " + todate.strftime("%d-%m-%Y") + ") (Wallet Amount - " + str(wallet.amount) + ") (Total Recharge - " + str(trecharge) + ")", maildata, [])
|
| 521 |
try:
|
521 |
try:
|
| 522 |
push_recharge_collection_to_ocr()
|
522 |
push_recharge_collection_to_ocr()
|
| 523 |
except:
|
523 |
except:
|
| 524 |
mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", "", [])
|
524 |
mail_html("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "rajneesh.arora@shop2020.in"], "Problem while pushing recharge collection to OCR", "", [])
|
| 525 |
finally:
|
525 |
finally:
|
| Line 596... |
Line 596... |
| 596 |
wh.referenceNumber = get_next_invoice_number(OrderType.WALLETCREDIT)
|
596 |
wh.referenceNumber = get_next_invoice_number(OrderType.WALLETCREDIT)
|
| 597 |
wh.description = "Wallet Credited"
|
597 |
wh.description = "Wallet Credited"
|
| 598 |
|
598 |
|
| 599 |
wallet.amount += amount
|
599 |
wallet.amount += amount
|
| 600 |
session.commit()
|
600 |
session.commit()
|
| 601 |
mail("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in", "sachin.tyagi@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.", "", [], [], [])
|
601 |
mail("cnc.center@shop2020.in", "5h0p2o2o", ["anikendra.das@saholic.com", "kshitij.sood@shop2020.in","pardeep.panwar@spiceretail.co.in","adarsh.verma@spiceretail.co.in","j.p.gupta@shop2020.in", "amit.gupta@shop2020.in", "amit.tyagi@spiceretail.co.in"] , company.name + " wallet topped up by " + str(amount) + " rupees.", "", [], [], [])
|
| 602 |
|
602 |
|
| 603 |
def compute_website_recharge_collection(cdate, oldBalance, newBalance):
|
603 |
def compute_website_recharge_collection(cdate, oldBalance, newBalance):
|
| 604 |
startTime = datetime.datetime(cdate.year, cdate.month, cdate.day)
|
604 |
startTime = datetime.datetime(cdate.year, cdate.month, cdate.day)
|
| 605 |
endTime = startTime + timedelta(days=1)
|
605 |
endTime = startTime + timedelta(days=1)
|
| 606 |
tamount = 0
|
606 |
tamount = 0
|