{% 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.django_ledger.delete_customermodel %} {% endif %}
{% if perms.django_ledger.change_customermodel %} {{_("Update")}} {% 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 }}
{% 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 }} {{ CURRENCY }} {{ estimate.created }}

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

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