{% extends "base.html" %} {% load i18n custom_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.invoicemodel_set.first %} {{ _("View Invoice")}} {% endif %} {% if estimate.status == 'draft' %} {% trans 'Send Quotation' %} {% elif estimate.status == 'in_review' %} {% elif estimate.status == 'approved' %} {% if estimate.sale_orders.first %} {% trans 'Create Invoice' %} {% else %} {% trans 'Create Sale Order' %} {% comment %} {% trans 'Preview Sale Order' %} {% endcomment %} {% endif %} {% elif estimate.status == 'in_review' %} {% trans 'Preview' %} {% 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 "Vat" %} ({{data.vat|percentage}}) + {{data.total_vat_amount|floatformat}} {{ CURRENCY }}
{% trans "Discount Amount" %} - {{data.total_discount|floatformat}} {{ CURRENCY }}
{% trans "Additional Services" %} {% for service in data.additionals %} + {{service.name}} - {{service.price_|floatformat}} {{ CURRENCY }}
{% endfor %}
{% trans "Grand Total" %} {{data.grand_total|floatformat}} {{ CURRENCY }}
{% endblock %} {% block customJS %} {% endblock %}