| Line 716... |
Line 716... |
| 716 |
<td> Rs. $total_amount</td>\
|
716 |
<td> Rs. $total_amount</td>\
|
| 717 |
</tr>\
|
717 |
</tr>\
|
| 718 |
</table>\
|
718 |
</table>\
|
| 719 |
</div>"
|
719 |
</div>"
|
| 720 |
|
720 |
|
| - |
|
721 |
html_footer = html_footer + "Note:- With the onset of dense fog in North India, it severely hits the operations of our courier partners. We would like to mention that our deliveries might be slightly delayed. We look forward to your support and understanding with regards to anticipated delays.<br>"
|
| 721 |
|
722 |
|
| 722 |
store_address = ""
|
723 |
store_address = ""
|
| 723 |
if orders[0].pickupStoreId:
|
724 |
if orders[0].pickupStoreId:
|
| 724 |
store = LogisticsClient().get_client().getPickupStore(orders[0].pickupStoreId)
|
725 |
store = LogisticsClient().get_client().getPickupStore(orders[0].pickupStoreId)
|
| 725 |
store_address = __get_store_address_html(store)
|
726 |
store_address = __get_store_address_html(store)
|
| Line 2302... |
Line 2303... |
| 2302 |
'pickup_request_no' : pickup_number,
|
2303 |
'pickup_request_no' : pickup_number,
|
| 2303 |
'customer_address' : __get_order_address(order),
|
2304 |
'customer_address' : __get_order_address(order),
|
| 2304 |
'source_name' : source_name}
|
2305 |
'source_name' : source_name}
|
| 2305 |
print message
|
2306 |
print message
|
| 2306 |
__generate_return_advice(order, warehouse, provider, filename)
|
2307 |
__generate_return_advice(order, warehouse, provider, filename)
|
| - |
|
2308 |
if order.source in [OrderSource.WEBSITE, OrderSource.AMAZON]:
|
| 2307 |
mail(help_user, help_password, [to_addr], subject, message, [get_attachment_part(filename)])
|
2309 |
mail(help_user, help_password, [to_addr], subject, message, [get_attachment_part(filename)])
|
| 2308 |
order.pickupRequestNo = pickup_number
|
2310 |
order.pickupRequestNo = pickup_number
|
| 2309 |
if order.status == OrderStatus.RET_PICKUP_REQUEST_RAISED:
|
2311 |
if order.status == OrderStatus.RET_PICKUP_REQUEST_RAISED:
|
| 2310 |
order.status = OrderStatus.RET_PICKUP_CONFIRMED
|
2312 |
order.status = OrderStatus.RET_PICKUP_CONFIRMED
|
| 2311 |
order.statusDescription = "RETURN pick up confirmed"
|
2313 |
order.statusDescription = "RETURN pick up confirmed"
|
| 2312 |
else:
|
2314 |
else:
|