Your Pending Orders

{% if orders %} {% for order in orders %} {% for line in order.Order_Details__c.split('\n') %} {% set item_parts = line.split('|') %}
{{ item_parts[0].strip() }}
{{ item_parts[0].strip() }}
Add-ons: {{ item_parts[1].strip().replace('Add-Ons:', '') }}
Instructions: {{ item_parts[2].strip().replace('Instructions:', '') }}
{{ item_parts[3].strip().replace('Price:', '') }}
{% endfor %} {% endfor %}
{% if orders|length > 1 %}
Summary of All Pending Orders
{% endif %}

Total Sub-Total:

${{ "%.2f"|format(total_subtotal) }}

Total Discount:

${{ "%.2f"|format(total_discount) }}

Total Bill:

${{ "%.2f"|format(total_bill) }}

{% else %}

No pending order details available.

{% endif %} Back