| Line 444... |
Line 444... |
| 444 |
content += "<h2>Max Price: " + str(sourcePricing.maxPrice) + "</h2>"
|
444 |
content += "<h2>Max Price: " + str(sourcePricing.maxPrice) + "</h2>"
|
| 445 |
content += "<h2>Recommended Price: " + str(sourcePricing.recommendedPrice) + "</h2>"
|
445 |
content += "<h2>Recommended Price: " + str(sourcePricing.recommendedPrice) + "</h2>"
|
| 446 |
content += "<h2>Approval Requested for Price: " + str(order.total_amount) + "</h2>"
|
446 |
content += "<h2>Approval Requested for Price: " + str(order.total_amount) + "</h2>"
|
| 447 |
content += "<h3>Please click on link below to approve the order</h3>"
|
447 |
content += "<h3>Please click on link below to approve the order</h3>"
|
| 448 |
content += "<a href='http://support.shop2020.in:8080/Support/price-approval?xszbg=" + base64.b64encode(str(order.id)) + "'>Click here for Approval</a>"
|
448 |
content += "<a href='http://support.shop2020.in:8080/Support/price-approval?xszbg=" + base64.b64encode(str(order.id)) + "'>Click here for Approval</a>"
|
| 449 |
content += "</body></html>"
|
449 |
content += "<br><br></body></html>"
|
| 450 |
store = get_hotspot_store(order.storeId, "")
|
450 |
store = get_hotspot_store(order.storeId, "")
|
| 451 |
helper_client = HelperClient().get_client()
|
451 |
helper_client = HelperClient().get_client()
|
| 452 |
helper_client.saveUserEmailForSending(store.approvalEmail.split(';'), "", "Price approval requested for " + str(order.lineitems[0]) + " in store " + store.hotspotId , content, str(transaction_id), "PriceApproval", [], [])
|
452 |
helper_client.saveUserEmailForSending(store.approvalEmail.split(';'), "", "Price approval requested for " + str(order.lineitems[0]) + " in store " + store.hotspotId , content, str(transaction_id), "PriceApproval", [], [])
|
| 453 |
|
453 |
|
| 454 |
except Exception as e:
|
454 |
except Exception as e:
|