{% extends "base.html" %} {% block title %}Customer Details{% endblock %} {% block page_heading %}Customer Profile{% endblock %} {% block content %}

👤 {{ customer.customer_name }}

← Customers
Orders

{{ totals.order_count or 0 }}

Total Sales

{{ '%.2f'|format(totals.total_sales or 0) }}

Cash Received

{{ '%.2f'|format(totals.received or 0) }}

Outstanding

{{ '%.2f'|format(totals.outstanding or 0) }}

Edit Customer

Add Payment / Refund Note

Link Existing Order

Orders

{% for o in orders %}{% else %}{% endfor %}
IDDateInvoiceItemTotalReceived
{{ o.id }}{{ o.order_date }}{{ o.invoice_no }}{{ o.item_name }}{{ '%.2f'|format(o.total_price or 0) }}{{ '%.2f'|format(o.cash_received or 0) }}
No orders.

Warranty / IMEI Devices

{% for d in devices %}{% else %}{% endfor %}
IMEISerialStatusProduct WarrantyBattery Warranty
{{ d.imei }}{{ d.serial }}{{ d.status }}{{ d.product_warranty_expiry }}{{ d.battery_warranty_expiry }}
No devices.

Transactions

{% for t in transactions %}{% else %}{% endfor %}
DateTypeAmountReasonUser
{{ t.trans_date }}{{ t.trans_type }}{{ '%.2f'|format(t.amount or 0) }}{{ t.reason }}{{ t.created_by }}
No transactions.
{% endblock %}