| Line 536... |
Line 536... |
| 536 |
content += "<h2>Note 1: If this discount price is approved then reply 'Approved' otherwise 'Not Approved' without changing anythig in the Mail.</h2>"
|
536 |
content += "<h2>Note 1: If this discount price is approved then reply 'Approved' otherwise 'Not Approved' without changing anythig in the Mail.</h2>"
|
| 537 |
content += "<h2>Note 2: For Quick approval using browser <a href='http://support.shop2020.in:8080/Support/price-approval?xszbg=" + base64.b64encode(str(order.id)) + "'>Click Here</a></h2>"
|
537 |
content += "<h2>Note 2: For Quick approval using browser <a href='http://support.shop2020.in:8080/Support/price-approval?xszbg=" + base64.b64encode(str(order.id)) + "'>Click Here</a></h2>"
|
| 538 |
content += "<br><br></body></html>"
|
538 |
content += "<br><br></body></html>"
|
| 539 |
store = get_hotspot_store(order.storeId, "")
|
539 |
store = get_hotspot_store(order.storeId, "")
|
| 540 |
helper_client = HelperClient().get_client()
|
540 |
helper_client = HelperClient().get_client()
|
| 541 |
helper_client.saveUserEmailForSending(store.approvalEmail.split(';'), "", "Price approval requested for " + str(order.lineitems[0]) + " order Id " + str(order.id) + " in store " + store.hotspotId , content, str(transaction_id), "PriceApproval", [], [], order.source)
|
541 |
helper_client.saveUserEmailForSending(store.approvalEmail.split(';'), "", "Price approval requested for " + str(order.lineitems[0]) + " order Id " + str(order.id) + " in store " + store.hotspotId , content, str(transaction_id), "PriceApproval", [], [], 1)
|
| 542 |
session.commit()
|
542 |
session.commit()
|
| 543 |
else:
|
543 |
else:
|
| 544 |
order.otg = False
|
544 |
order.otg = False
|
| 545 |
session.commit()
|
545 |
session.commit()
|
| 546 |
except Exception as e:
|
546 |
except Exception as e:
|
| Line 626... |
Line 626... |
| 626 |
advance_amount = orders[0].advanceAmount
|
626 |
advance_amount = orders[0].advanceAmount
|
| 627 |
saddress = ""
|
627 |
saddress = ""
|
| 628 |
bcc = []
|
628 |
bcc = []
|
| 629 |
if advance_amount > 0:
|
629 |
if advance_amount > 0:
|
| 630 |
store = get_hotspot_store(orders[0].storeId, "")
|
630 |
store = get_hotspot_store(orders[0].storeId, "")
|
| 631 |
bcc = bcc + store.approvalEmail.split(';') + [store.email, "rajveer.singh@shop2020.in", "rajneesh.arora@shop2020.in", "kshitij.sood@shop2020.in", "amit.sirohi@shop2020.in"]
|
631 |
bcc = bcc + store.approvalEmail.split(';') + [store.email, "amit.gupta@shop2020.in", "rajneesh.arora@shop2020.in", "amit.sirohi@shop2020.in"]
|
| 632 |
saddress += " at our store " + __get_hotspot_store_address_html(store)
|
632 |
saddress += " at our store " + __get_hotspot_store_address_html(store)
|
| 633 |
otgLink = ""
|
633 |
otgLink = ""
|
| 634 |
inOrderOtg = "<div>On Time Guarantee<br><span style=color:red>We pay if we delay</span></div>"
|
634 |
inOrderOtg = "<div>On Time Guarantee<br><span style=color:red>We pay if we delay</span></div>"
|
| 635 |
if len(transaction.orders) == 1:
|
635 |
if len(transaction.orders) == 1:
|
| 636 |
inOrderOtg = ""
|
636 |
inOrderOtg = ""
|