{% extends 'core/base.html' %} {% load static %} {% block title %}Customers — SwiftPOS{% endblock %} {% block topbar_title %}Customers{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
| Name | Phone | Orders | Total Spent | Outstanding | ||
|---|---|---|---|---|---|---|
| {{ c.name }} | {{ c.phone|default:"—" }} | {{ c.email|default:"—" }} | {{ c.total_orders }} | {{ currency_symbol }}{{ c.total_spent|floatformat:2 }} | {% if c.outstanding_balance > 0 %} {{ currency_symbol }}{{ c.outstanding_balance|floatformat:2 }} {% else %} Clear {% endif %} | View Edit |
| Customer | Phone | Orders | Total Owed | Action |
|---|---|---|---|---|
| {{ c.customer_name|default:"Anonymous" }} | {{ c.customer_phone|default:"—" }} | {{ c.orders_count }} | {{ currency_symbol }}{{ c.total_owed|floatformat:2 }} | History |
| Order # | Customer | Date | Total | Paid | Balance | Status | |
|---|---|---|---|---|---|---|---|
| {{ o.order_number }} | {{ o.customer_name|default:"—" }} | {{ o.created_at|date:"d M Y" }} | {{ currency_symbol }}{{ o.final_amount|floatformat:2 }} | {{ currency_symbol }}{{ o.amount_paid|floatformat:2 }} | {{ currency_symbol }}{{ o.balance_amount|floatformat:2 }} | {% if o.payment_status == 'credit' %}Credit {% else %}Partial{% endif %} |
| Order # | Customer | Phone | Date Paid | Amount | Method | |
|---|---|---|---|---|---|---|
| {{ o.order_number }} | {{ o.customer_name }} | {{ o.customer_phone|default:"—" }} | {{ o.updated_at|date:"d M Y" }} | {{ currency_symbol }}{{ o.final_amount|floatformat:2 }} | {{ o.get_payment_method_display }} | View |