{% extends "base.html" %} {% load i18n static crispy_forms_filters custom_filters %} {% block title %} {{ _("View Customer") }} {% endblock title %} {% block content %} {% include 'modal/delete_modal.html' %}

{% trans 'Customer details' %}

{% if perms.inventory.change_customer %} {{ _("Update") }} {% endif %}
{% if perms.inventory.delete_customer %}
{% endif %}
{% if customer.image %}{% endif %}

{{ customer.full_name }}

{{ customer.created|timesince }}

{% trans 'Invoices' %}

{{ invoices.count }}

{% trans 'Quotations' %}

{{ estimates.count }}

{% trans 'Default Address' %}

{{ _("Address") }}

{{ customer.address }}

{% trans 'Email' %}
{{ customer.email }}
{% trans 'Phone Number' %}
{{ customer.phone_number }}
{% if perms.inventory.change_customer %} {% endif %} {% for note in customer_notes %} {% endfor %}
{{ _("Note") }} {{ _("Date") }}
{{ note.note }} {{ note.created }}

{{ _("Related") }} ({{ total }})

{% for estimate in estimates %} {% endfor %} {% for invoice in invoices %} {% endfor %}
{% trans 'Type'|upper %} {% trans 'Total'|upper %} {% trans 'Payment Status'|upper %} {% trans 'Date'|upper %}

{{ _("Quotation") }}-{{ estimate.estimate_number }}

{{ estimate.revenue_estimate|currency_format }} {{ estimate.created }}

{{ _("Invoice") }}-{{ invoice.invoice_number }}

{{ invoice.amount_paid|currency_format }} {% if invoice.is_paid %} {{ _("Paid") }} {% endif %} {{ invoice.created }}
{% include 'partials/pagination.html' %}
{% endblock %}