{% extends "base.html" %} {% block content %}

{{ customer.company_name }}

Customer Code: {{ customer.customer_code }}
Edit Customer Back
Total Enquiries

{{ enquiry_count }}

Total BOQs

{{ boq_count }}

Total Value

{{ "%.2f"|format(total_boq_value) }}

Documents

{{ document_count }}

{% if section == 'overview' %}
Customer Overview
Company {{ customer.company_name }}
Trading Name {{ customer.trading_name or "-" }}
Registration No {{ customer.registration_number or "-" }}
VAT Number {{ customer.vat_number or "-" }}
Address {{ customer.street or "" }}
{{ customer.city or "" }} {{ customer.postal_code or "" }}
{{ customer.province or "" }}
Contact Person {{ customer.contact_name or "-" }}
Email {{ customer.email or "-" }}
Telephone {{ customer.telephone or "-" }}
Summary
Enquiries {{ enquiry_count }}

BOQs {{ boq_count }}

Quotations {{ quotation_count }}

Total Value {{ "%.2f"|format(total_boq_value) }}

Documents {{ document_count }}
{% endif %} {% if section == 'contacts' %}
Contacts
Primary Contact {{ customer.contact_name or "-" }}
Email {{ customer.email or "-" }}
Telephone {{ customer.telephone or "-" }}
Alternative Phone {{ customer.alternative_phone or "-" }}
{% endif %} {% if section == 'enquiries' %}
Enquiries New Enquiry
{% if enquiries %} {% for enquiry in enquiries %} {% endfor %}
Enquiry No Subject Type Status Priority Date
{{ enquiry.enquiry_number }} {{ enquiry.subject }} {{ enquiry.enquiry_type or "-" }} {{ enquiry.status }} {{ enquiry.priority }} {{ enquiry.created_at.strftime('%d %b %Y') }}
{% else %}

No enquiries for this customer.

{% endif %}
{% endif %} {% if section == 'boqs' %}
{% if boqs %} {% for boq in boqs %} {% endfor %}
Quotation No Enquiry Status Total Date
{{ boq.quotation_number }} {{ boq.enquiry.enquiry_number }} {{ boq.status }} {{ "%.2f"|format(boq.grand_total) }} {{ boq.created_at.strftime('%d %b %Y') }}
{% else %}

No BOQs for this customer.

{% endif %}
{% endif %} {% if section == 'quotations' %}
Quotations New Quotation
{% if quotations %} {% for boq in quotations %} {% endfor %}
Quotation No Enquiry Status Total Date
{{ boq.quotation_number }} {{ boq.enquiry.enquiry_number }} {{ boq.status }} {{ "%.2f"|format(boq.grand_total) }} {{ boq.created_at.strftime('%d %b %Y') }}
{% else %}

No quotations for this customer.

{% endif %}
{% endif %} {% if section == 'projects' %}
Projects Coming Soon

Projects module coming soon.

{% endif %} {% if section == 'documents' %}
Documents {{ document_count }}
{% if documents %} {% for doc in documents %} {% endfor %}
Filename Enquiry Uploaded By Date
{{ doc.original_filename }} {{ doc.enquiry.enquiry_number }} {{ doc.uploaded_by or "-" }} {{ doc.uploaded_at.strftime('%d %b %Y') }}
{% else %}

No documents for this customer.

{% endif %}
{% endif %}
{% endblock %}