{% extends "core/base.html" %} {% load static %} {% block title %}{{ customer.name }} — Customer Profile{% endblock %} {% block topbar_title %}Customer Profile{% endblock %} {% block content %}
{{ customer.name }}
{% if customer.phone %}
{{ customer.phone }}
{% endif %} {% if customer.email %}
{{ customer.email }}
{% endif %}
  • Total Orders {{ customer.total_orders }}
  • Total Spent {{ currency_symbol }}{{ customer.total_spent|floatformat:2 }}
  • Outstanding {{ currency_symbol }}{{ customer.outstanding_balance|floatformat:2 }}
  • {% if customer.address %}
  • Address
    {{ customer.address }}
  • {% endif %}
{% if credit_orders %}
Outstanding Balances
{% for o in credit_orders %} {% endfor %}
Order #DateTotalBalance
{{ o.order_number }} {{ o.created_at|date:"d M Y" }} {{ currency_symbol }}{{ o.final_amount|floatformat:2 }} {{ currency_symbol }}{{ o.balance_amount|floatformat:2 }} Pay
{% endif %}
Order History
{% if orders %} {% for o in orders %} {% endfor %}
Order #DateTotalStatus
{{ o.order_number }} {{ o.created_at|date:"d M Y" }} {{ currency_symbol }}{{ o.final_amount|floatformat:2 }} {% if o.payment_status == 'full' %}Paid {% elif o.payment_status == 'partial' %}Partial {% else %}Credit{% endif %}
{% else %}
No orders yet.
{% endif %}
{% endblock %}