{% extends "base.html" %} {% block title %}Customers{% endblock %} {% block page_heading %}Customer Management{% endblock %} {% block content %}

➕ Add Customer

👥 Customers

{% for c in customers %} {% set sm = summaries.get(c.id) %} {% else %} {% endfor %}
NamePhoneTypeOrdersSalesOutstanding
{{ c.customer_name }}
{{ c.city or '-' }}
{{ c.phone1 or '-' }}{% if c.phone2 %}
{{ c.phone2 }}{% endif %}
{{ c.customer_type }} {{ sm.orders.order_count if sm else 0 }} {{ '%.2f'|format(sm.orders.total_sales if sm else 0) }} {{ '%.2f'|format(sm.orders.outstanding if sm else 0) }} Open
No customers found.
{% endblock %}