{% 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' %} {% trans 'Print' %} {% 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 %}
{% trans "Make" %} {% trans "Model" %} {% trans "Year" %} {% trans "VIN" %} {% trans "Quantity" %} {% trans "Unit Price" %} {% trans "Total" %}
{{ data.car.id_car_make }} {{ data.car.id_car_model }} {{ data.car.year }} {{ data.car.vin }} 1 {{ data.car.marked_price }} {{ data.car.marked_price }}
{% trans "Discount Amount" %} {% if estimate.is_draft %}
{% csrf_token %}
{% else %} {{ data.discount_amount }} {% endif %}
{% trans "Vat" %} ({{ data.vat_rate }}) + {{ data.vat_amount }}
{% trans "Additional Services" %} {% for service in data.additional_services.services %} + {{ service.0.name }} - {{ service.0.price_|floatformat }}
{% endfor %} {% if estimate.is_draft %} {% endif %}
{% trans "Grand Total" %} {{ data.grand_total|floatformat }}
{% endblock %} {% block customJS %} {% endblock %}