{% extends "core/base.html" %} {% load currency_filters %} {% 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 {% money customer.total_spent %}
  • Outstanding {% money customer.outstanding_balance %}
  • {% 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" }} {% money o.final_amount %} {% money o.balance_amount %} Pay
{% endif %}
Order History
{% if orders %} {% for o in orders %} {% endfor %}
Order #DateTotalStatus
{{ o.order_number }} {{ o.created_at|date:"d M Y" }} {% money o.final_amount %} {% if o.payment_status == 'full' %}Paid {% elif o.payment_status == 'partial' %}Partial {% else %}Credit{% endif %}
{% else %}
No orders yet.
{% endif %}
{% endblock %}