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

Customer Details: {{ customer.name }}

Back to List
Customer Information
Customer Code: {{ customer.code }}
Customer Name: {{ customer.name }}
Contact Person: {{ customer.contact_person|default:"-" }}
Email: {% if customer.email %} {{ customer.email }} {% else %} - {% endif %}
Phone: {{ customer.phone|default:"-" }}
Tax ID: {{ customer.tax_id|default:"-" }}
Status: {% if customer.is_active %} Active {% else %} Inactive {% endif %}
Created: {{ customer.created_at|date:"M d, Y H:i" }}
Last Updated: {{ customer.updated_at|date:"M d, Y H:i" }}
{% if customer.address %}
Address:

{{ customer.address|linebreaks }}

{% endif %} {% if customer.payment_terms %}
Payment Terms:

{{ customer.payment_terms|linebreaks }}

{% endif %}
{% if sales_orders %}
Recent Sales Orders
{% for order in sales_orders %} {% endfor %}
Order Number Order Date Total Amount Status Actions
{{ order.so_number }} {{ order.order_date|date:"M d, Y" }} {{ order.total_amount|format_rupiah }} {{ order.get_status_display }} View
{% endif %}
Customer Statistics
{{ total_orders }}
Total Orders
{{ total_value|format_rupiah:0 }}
Total Value
{{ pending_orders }}
Pending Orders
{% endblock %}