| Line 445... |
Line 445... |
| 445 |
content += "<h4>Order Id: " + str(order.id) + "</h4>"
|
445 |
content += "<h4>Order Id: " + str(order.id) + "</h4>"
|
| 446 |
content += "<h4>Product: " + str(order.lineitems[0]) + "</h4>"
|
446 |
content += "<h4>Product: " + str(order.lineitems[0]) + "</h4>"
|
| 447 |
content += "<h4>Min Price: " + str(sourcePricing.minPrice) + "</h4>"
|
447 |
content += "<h4>Min Price: " + str(sourcePricing.minPrice) + "</h4>"
|
| 448 |
content += "<h4>Recommended Price: " + str(sourcePricing.recommendedPrice) + "</h4>"
|
448 |
content += "<h4>Recommended Price: " + str(sourcePricing.recommendedPrice) + "</h4>"
|
| 449 |
content += "<h2>Approval Requested for Price: " + str(order.total_amount) + "</h2>"
|
449 |
content += "<h2>Approval Requested for Price: " + str(order.total_amount) + "</h2>"
|
| - |
|
450 |
content += "<h2>Note 1: If this discount price is approved then reply 'Approved' otherwise 'Not Approved' without changing anythig in the Mail.</h2>"
|
| 450 |
content += "<h2><a href='http://support.shop2020.in:8080/Support/price-approval?xszbg=" + base64.b64encode(str(order.id)) + "'>Click here for Approval</a></h2>"
|
451 |
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>"
|
| 451 |
content += "<br><br></body></html>"
|
452 |
content += "<br><br></body></html>"
|
| 452 |
store = get_hotspot_store(order.storeId, "")
|
453 |
store = get_hotspot_store(order.storeId, "")
|
| 453 |
helper_client = HelperClient().get_client()
|
454 |
helper_client = HelperClient().get_client()
|
| 454 |
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", [], [])
|
455 |
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", [], [])
|
| 455 |
session.commit()
|
456 |
session.commit()
|