{% extends "pos/base.html" %} {% load humanize %} {% block title %}{{ area.area_name }} — Workshop{% endblock %} {% block content %}
{# ── Breadcrumb ── #} {# ── Page Header ── #}

{{ area.area_name }}

{{ company_type }} Area ID: {{ area.t_id }}
Edit
{# ── Summary Cards ── #}
{{ customer_data|length }}
Linked Customers
{% with total=0 %} {{ customer_data|length }} {% endwith %}
Total Invoices
{% for item in customer_data %} {% if forloop.first %}{{ item.total_billed|floatformat:0|intcomma }}{% endif %} {% endfor %}
Total Billed
{% with total_bal=0 %} {% for item in customer_data %} {% endfor %} — {% endwith %}
Total Outstanding
{# ── Customers Table ── #}
Linked Customers
{{ customer_data|length }} customer(s)
{% if customer_data %} {% for item in customer_data %} {% endfor %} {% else %} {% endif %}
Customer Name Mobile Invoices Total Billed Received Balance
{{ item.customer.name }} {% if item.customer.address %}
{{ item.customer.address }}
{% endif %}
{{ item.customer.mobile|default:"—" }} {{ item.invoice_count }} {{ item.total_billed|floatformat:0|intcomma }} {{ item.total_received|floatformat:0|intcomma }} {% if item.balance > 0 %} {{ item.balance|floatformat:0|intcomma }} {% elif item.balance == 0 %} Settled {% else %} {{ item.balance|floatformat:0|intcomma }} {% endif %}
No customers linked to this company yet.
Go to Customer and set Area = {{ area.area_name }} (ID: {{ area.t_id }})
{% endblock %}