{% extends "base.html" %} {% load i18n custom_filters %} {% load crispy_forms_filters %} {% block title %} {{ _("View Quotation") }} {% endblock title %} {% block content %}

{% trans 'Quotation' %}

{% if estimate.status == 'draft' %} {% trans "Draft" %} {% elif estimate.status == 'in_review' %} {% trans "In Review" %} {% elif estimate.status == 'approved' %} {% trans "Approved" %} {% elif estimate.status == 'completed' %} {% trans "Completed" %} {% elif estimate.status == 'canceled' %} {% trans "Canceled" %} {% endif %}
{% if estimate.status == 'draft' %} {% if perms.django_ledger.change_estimatemodel %} {% endif %} {% elif estimate.status == 'in_review' %} {% if perms.django_ledger.can_approve_estimatemodel %} {% endif %} {% if estimate.can_approve and not request.is_manager %} {% endif %} {% elif estimate.status == 'approved' %} {% if perms.django_ledger.change_estimatemodel %} {% trans 'Send Quotation' %} {% endif %} {% if estimate.sale_orders.first %} {% if perms.django_ledger.add_invoicemodel %} {% trans 'Create Invoice' %} {% endif %} {% if perms.inventory.view_saleorder %} {{ _("Preview Sale Order") }} {% endif %} {% else %} {% if perms.inventory.add_saleorder %} {% trans 'Create Sale Order' %} {% endif %} {% endif %} {% elif estimate.status == 'completed' %} {% if perms.inventory.view_saleorder %} {{ _("Preview Sale Order") }} {% endif %} {% if perms.django_ledger.view_invoicemodel %} {{ _("View Invoice") }} {% endif %} {% endif %} {% if estimate.can_cancel %} {% if perms.django_ledger.change_estimatemodel %} {% endif %} {% endif %}
{% trans 'Quotation Number' %}:

{{ estimate.estimate_number }}

{% trans 'Quotation Date' %}:

{{ estimate.created }}

{% trans 'Customer' %}:

{{ estimate.customer.customer_name }}

{% trans 'Email' %}:

{{ estimate.customer.email }}

{% trans "Quotation Status" %}:
{% if estimate.status == 'draft' %} {% trans "Draft" %} {% elif estimate.status == 'in_review' %} {% trans "In Review" %} {% elif estimate.status == 'approved' %} {% trans "Approved" %} {% elif estimate.status == 'completed' %} {% trans "Completed" %} {% elif estimate.status == 'canceled' %} {% trans "Canceled" %} {% endif %}
{% for item in data.cars %} {% endfor %}
{% trans "Make" %} {% trans "Model" %} {% trans "Year" %} {% trans "VIN" %} {% trans "Quantity" %} {% trans "Unit Price" %} {% trans "Total" %}
{{ item.make }} {{ item.model }} {{ item.year }} {{ item.vin }} {{ item.quantity }} {{ item.unit_price }} {{ item.total }}
{% trans "Discount Amount" %}
{% csrf_token %}
{% trans "Vat" %} ({{ data.vat }}) + {{ data.total_vat_amount|floatformat }}
{% trans "Additional Services" %} {% for service in data.additionals %} + {{ service.name }} - {{ service.price_|floatformat }}
{% endfor %}
{% trans "Grand Total" %} {{ data.grand_total|floatformat }}
{% endblock %} {% block customJS %} {% endblock %}