{% extends "base.html" %} {% block title %}Orders List{% endblock %} {% block content %} {% if session.get('role') == 'admin' and edit_row %}
โœ๏ธ

Edit Old Order

This edit screen is only for old single-item orders. For new sales, use the new multi-product/service invoice system.
โŒ Cancel
{% elif session.get('role') == 'admin' %}
๐Ÿงพ

Create New Invoice

The old single-order form has been removed. Click below to add multiple products and services in one invoice.

โž• Open New Multi-Item Invoice
{% endif %}
๐Ÿ“Š

Export Orders to Excel

๐Ÿ”

Search & Filter Orders

๐Ÿ”„ Clear
๐Ÿ“ฆ

Orders List

{% if session.get('role') == 'admin' %} {% endif %} {% for row in orders %} {% if session.get('role') == 'admin' %} {% endif %} {% else %} {% endfor %}
ID Date Invoice Order ID Item Serial IMEI Contact Via Store Qty Total Cash WarrantyActions
#{{ row.id }} {{ row.order_date }} {{ row.invoice_no }} {{ row.order_id }} {{ row.item_name }} {{ row.serial }} {{ row.imei }} {{ row.contact1 }} {{ row.order_via }} {{ row.store }} {{ row.qty }} Rs. {{ "{:,.2f}".format(row.total_price) }} {% if row.cash_received == 0 %} Pending {% else %} Rs. {{ "{:,.2f}".format(row.cash_received) }} {% endif %} {{ row.product_warranty_days }}d / {{ row.battery_warranty_days }}d
๐Ÿ“ญ

No orders found

{% for row in orders %}
Order #{{ row.id }} Invoice: {{ row.invoice_no }}
๐Ÿ“… Date {{ row.order_date }}
๐Ÿ”– Order ID {{ row.order_id }}
๐Ÿ“ฑ Item {{ row.item_name }}
๐Ÿ”ข Serial {{ row.serial }}
๐Ÿ“ฑ IMEI {{ row.imei }}
๐Ÿ“ž Contact {{ row.contact1 }}
๐Ÿ›’ Order Via {{ row.order_via }}
๐Ÿช Store {{ row.store }}
๐Ÿ”ข Quantity {{ row.qty }}
๐Ÿ’ฐ Total Price Rs. {{ "{:,.2f}".format(row.total_price) }}
๐Ÿ’ต Cash Received {% if row.cash_received == 0 %} Pending {% else %} Rs. {{ "{:,.2f}".format(row.cash_received) }} {% endif %}
๐Ÿ’ธ Cost Rs. {{ "{:,.2f}".format(row.cost) }}
๐Ÿ›ก๏ธ Warranty Product: {{ row.product_warranty_days }}d | Battery: {{ row.battery_warranty_days }}d
{% if session.get('role') == 'admin' %} {% endif %}
{% else %}
๐Ÿ“ญ

No orders found

{% endfor %}
{% endblock %}