Customer Orders

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
Total Orders: {{ orders|length }}
Orders List
{% if orders %}
{% for order in orders %} {% endfor %}
Order No Date Customer Phone Items Status Amount Actions
#{{ order.order_no }} {{ order.order_date }} {{ order.customer_name }} {% if order.customer_phone %} {{ order.customer_phone }} {% else %} N/A {% endif %} {{ order.item_count }} items {% if order.status == 'Pending' %} {{ order.status }} {% elif order.status == 'Processing' %} {{ order.status }} {% elif order.status == 'In Progress' %} {{ order.status }} {% elif order.status == 'Completed' %} {{ order.status }} {% elif order.status == 'Partial' %} {{ order.status }} {% else %} {{ order.status }} {% endif %} Rs. {{ "{:,.0f}".format(order.total_amount) }}
{% else %}
No orders found
{% if search %}

Try adjusting your search terms

Show All Orders {% else %}

Start by creating your first customer order

Create First Order {% endif %}
{% endif %}