| Line 527... |
Line 527... |
| 527 |
orders = transaction.orders
|
527 |
orders = transaction.orders
|
| 528 |
advance_amount = orders[0].advanceAmount
|
528 |
advance_amount = orders[0].advanceAmount
|
| 529 |
saddress = ""
|
529 |
saddress = ""
|
| 530 |
bcc = []
|
530 |
bcc = []
|
| 531 |
if advance_amount > 0:
|
531 |
if advance_amount > 0:
|
| 532 |
store = get_hotspot_store(orders[0].storeId)
|
532 |
store = get_hotspot_store(orders[0].storeId, "")
|
| 533 |
bcc = bcc + [store.email, store.approvalEmail.split(';'), "rajveer.singh@shop2020.in", "rajneesh.arora@shop2020.in", "anupam.singh@shop2020.in", "amit.sirohi@shop2020.in", ]
|
533 |
bcc = bcc + store.approvalEmail.split(';') + [store.email, "rajveer.singh@shop2020.in", "rajneesh.arora@shop2020.in", "anupam.singh@shop2020.in", "amit.sirohi@shop2020.in"]
|
| 534 |
saddress += " at" + __get_hotspot_store_address_html(store, "")
|
534 |
saddress += " at our store " + __get_hotspot_store_address_html(store)
|
| 535 |
otgLink = ""
|
535 |
otgLink = ""
|
| 536 |
inOrderOtg = "<div>On Time Guarantee<br><span style=color:red>We pay if we delay</span></div>"
|
536 |
inOrderOtg = "<div>On Time Guarantee<br><span style=color:red>We pay if we delay</span></div>"
|
| 537 |
if len(transaction.orders) == 1:
|
537 |
if len(transaction.orders) == 1:
|
| 538 |
inOrderOtg = ""
|
538 |
inOrderOtg = ""
|
| 539 |
if transaction.orders[0].otg :
|
539 |
if transaction.orders[0].otg :
|
| Line 2763... |
Line 2763... |
| 2763 |
address = address + "PIN " + order.customer_pincode + "\n"
|
2763 |
address = address + "PIN " + order.customer_pincode + "\n"
|
| 2764 |
address = address + "Phone: " + order.customer_mobilenumber
|
2764 |
address = address + "Phone: " + order.customer_mobilenumber
|
| 2765 |
return address
|
2765 |
return address
|
| 2766 |
|
2766 |
|
| 2767 |
def __get_order_address_html(order):
|
2767 |
def __get_order_address_html(order):
|
| 2768 |
address = order.customer_name + "<br>" + order.customer_address1 + "<br>"
|
2768 |
address = order.customer_name + ", " + order.customer_address1 + ", "
|
| 2769 |
if order.customer_address2:
|
2769 |
if order.customer_address2:
|
| 2770 |
address = address + order.customer_address2 + "<br>"
|
2770 |
address = address + order.customer_address2 + ", "
|
| 2771 |
address = address + order.customer_city + "<br>"
|
2771 |
address = address + order.customer_city + ", "
|
| 2772 |
address = address + order.customer_state + "<br>"
|
2772 |
address = address + order.customer_state + ", "
|
| 2773 |
address = address + "PIN " + order.customer_pincode + "<br>"
|
2773 |
address = address + "PIN " + order.customer_pincode + "."
|
| 2774 |
address = address + "Phone: " + order.customer_mobilenumber
|
- |
|
| 2775 |
return address
|
2774 |
return address
|
| 2776 |
|
2775 |
|
| 2777 |
def __get_store_address(store):
|
2776 |
def __get_store_address(store):
|
| 2778 |
address = store.name + "\n" + store.line1 + "\n"
|
2777 |
address = store.name + "\n" + store.line1 + "\n"
|
| 2779 |
if store.line2:
|
2778 |
if store.line2:
|
| Line 2797... |
Line 2796... |
| 2797 |
address = address + "Phone - " + store.phone + "<br>"
|
2796 |
address = address + "Phone - " + store.phone + "<br>"
|
| 2798 |
address = address + "Store timings - 7 days: 11AM to 8PM (7 days)<br>"
|
2797 |
address = address + "Store timings - 7 days: 11AM to 8PM (7 days)<br>"
|
| 2799 |
return address
|
2798 |
return address
|
| 2800 |
|
2799 |
|
| 2801 |
def __get_hotspot_store_address_html(store):
|
2800 |
def __get_hotspot_store_address_html(store):
|
| 2802 |
address = store.name + "<br>" + store.line1 + "<br>"
|
2801 |
address = store.name + ", " + store.line1 + ", "
|
| 2803 |
if store.line2:
|
2802 |
if store.line2:
|
| 2804 |
address = address + store.line2 + "<br>"
|
2803 |
address = address + store.line2 + ", "
|
| 2805 |
address = address + store.city + "<br>"
|
2804 |
address = address + store.city + ", "
|
| 2806 |
address = address + store.state + "<br>"
|
2805 |
address = address + store.state + ", "
|
| 2807 |
address = address + "PIN - " + store.pin + "<br>"
|
2806 |
address = address + "PIN - " + store.pin
|
| 2808 |
if store.phone:
|
- |
|
| 2809 |
address = address + "Phone - " + store.phone + "<br>"
|
- |
|
| 2810 |
return address
|
2807 |
return address
|
| 2811 |
|
2808 |
|
| 2812 |
def __generate_return_advice(order, warehouse, provider, filename):
|
2809 |
def __generate_return_advice(order, warehouse, provider, filename):
|
| 2813 |
if warehouse.id == 7:
|
2810 |
if warehouse.id == 7:
|
| 2814 |
executive = 'Shiv Kumar'
|
2811 |
executive = 'Shiv Kumar'
|