{% extends 'base.html' %} {% load humanize %} {% block title %}Customers - Ghana Wholesale{% endblock %} {% block content %}

Customers

POS Dashboard
Clear
All Customers
{{ customers.count }} customers
{% for customer in customers %} {% empty %} {% endfor %}
Customer Code Name Phone Type Credit Limit Balance Available Status Actions
{{ customer.customer_code }} {{ customer.name }} {{ customer.phone }} {{ customer.get_customer_type_display }} GH₵ {{ customer.credit_limit|floatformat:2 }} {% if customer.credit_balance > 0 %} GH₵ {{ customer.credit_balance|floatformat:2 }} {% else %} GH₵ 0.00 {% endif %} GH₵ {{ customer.available_credit|floatformat:2 }} {% if customer.is_active %} Active {% else %} Inactive {% endif %}

No customers found

Total Customers

{{ customers.count }}

Active

{{ customers.filter.is_active.count }}

Credit Customers

{{ customers.filter.credit_limit__gt=0.count }}

Total Credit Balance

{% with total_balance=customers.aggregate(total=Sum('credit_balance')).total %} GH₵ {{ total_balance|default:0|floatformat:2 }} {% endwith %}

{% endblock %}