{% extends "base.html" %} {% block title %}{{ customer.full_name }} - Customer Details - AsapLoads POS{% endblock %} {% block header_title %}Customer Details{% endblock %} {% block content %}
Customer Information

{{ customer.full_name }}

Customer ID: {{ customer.id }}

{% if customer.email %}
Email: {{ customer.email }}
{% endif %} {% if customer.phone %}
Phone: {{ customer.phone }}
{% endif %} {% if customer.full_address %}
Address: {{ customer.full_address }}
{% endif %}
Branch: {{ customer.branch.name }}
Created: {{ customer.created_at|date:"M d, Y" }}
{% if customer.notes %}
Notes:

{{ customer.notes }}

{% endif %}
Sales Summary
{{ sales_summary.total_sales }}
Total Sales
${{ sales_summary.total_amount|floatformat:2 }}
Total Amount
${{ sales_summary.paid_amount|floatformat:2 }}
Paid Amount
${{ sales_summary.pending_amount|floatformat:2 }}
Pending Amount
Recent Sales
New Sale
{% if sales %}
{% for sale in sales %} {% endfor %}
Invoice # Date Amount Status Actions
{{ sale.invoice_number }} {{ sale.created_at|date:"M d, Y H:i" }} ${{ sale.total_amount|floatformat:2 }} {{ sale.payment_status|title }}
{% else %}
No sales found for this customer. Create a new sale.
{% endif %}
{% endblock %}