{% extends 'base.html' %} {% block title %}{{ customer.full_name }} - Customer Details{% endblock %} {% block content %}

{{ customer.full_name }}

Customer ID: {{ customer.customer_id }}

Back to List Edit {% if customer.user %} View as Customer {% endif %}
Account Balance
KES {{ customer.account_balance|floatformat:2 }}
Service Status
{% if service_status %} {% if service_status.status == 'active' %} Active {% elif service_status.status == 'grace_period' %} Grace Period {% elif service_status.status == 'suspended' %} Suspended {% else %} {{ service_status.status|title }} {% endif %} {% else %} No Service {% endif %}
Account Status
{% if customer.is_active %} Active {% else %} Inactive {% endif %}
Customer Information
{{ customer.get_customer_type_display }}
{% if customer.customer_type == 'individual' %}
{{ customer.full_name }}
{% else %}
{{ customer.company_name }}
{{ customer.contact_person_full_name }}
{% endif %}
{{ customer.phone }}
{{ customer.email }}
{{ customer.id_passport|default:"Not provided" }}
{{ customer.kra_pin|default:"Not provided" }}
{{ customer.created_at|date:"M d, Y" }}

{{ customer.physical_address }}
{% if customer.notes %}
{{ customer.notes }}
{% endif %}
{% if recent_payments %}
Recent Payments
{% for payment in recent_payments %} {% endfor %}
Date Amount Method Status Receipt
{{ payment.created_at|date:"M d, Y H:i" }} KES {{ payment.amount|floatformat:2 }} {{ payment.get_payment_method_display }} {{ payment.get_status_display }} {% if payment.mpesa_receipt_number %} {{ payment.mpesa_receipt_number }} {% elif payment.cash_receipt_number %} {{ payment.cash_receipt_number }} {% elif payment.reference_number %} {{ payment.reference_number }} {% else %} - {% endif %}
{% endif %} {% if recent_transactions %}
Recent Balance Transactions
{% for transaction in recent_transactions %} {% endfor %}
Date Type Description Amount Balance After
{{ transaction.created_at|date:"M d, Y H:i" }} {{ transaction.get_transaction_type_display }} {{ transaction.description }} {% if transaction.transaction_type == 'credit' %}+{% else %}-{% endif %}KES {{ transaction.amount|floatformat:2 }} KES {{ transaction.balance_after|floatformat:2 }}
{% endif %}
Service Information
{% if customer.service %}
{{ customer.service.speed_mbps }} Mbps

{{ customer.service.name }}


KES {{ customer.service.price|floatformat:2 }}
Price
{{ customer.service.get_billing_cycle_display }}
Billing
{% if customer.service.fup_gb %}
{{ customer.service.fup_gb }} GB
Fair Usage Policy
{% endif %} {% if service_status.expires_at %}
{{ service_status.expires_at|date:"M d, Y" }}
Service Expires
{% endif %} {% else %}

No service assigned

Assign Service
{% endif %}
PPPoE Credentials
{{ customer.pppoe_username|default:"Not generated" }}
{% if customer.pppoe_password %} {{ customer.pppoe_password }} {% else %} Not generated {% endif %}
{% if customer.router_mac %}
{{ customer.router_mac }}
{% endif %} {% if customer.installation_date %}
{{ customer.installation_date|date:"M d, Y" }}
{% endif %}
Payment Options
Paybill: {% load settings_tags %}{% get_setting 'mpesa' 'business_short_code' as paybill %}{{ paybill|default:"Not configured" }}
Account: {{ customer.customer_id }}
Customer can pay directly via M-Pesa using this paybill number and their Customer ID as account number
Payment Instructions for Customer:
1. Go to M-Pesa menu
2. Select "Lipa na M-Pesa" → "Pay Bill"
3. Enter Paybill Number: {{ paybill|default:"[Not configured]" }}
4. Enter Account Number: {{ customer.customer_id }}
5. Enter Amount and M-Pesa PIN
{% endblock %} {% block extra_js %} {% endblock %}