{% extends 'layout/default.html' %} {% load i18n %} {% load querystring %} {% block title %}{% translate "List Quote" %}{% endblock %} {% block addcss %} {% endblock %} {% block breadcumbheading %} {% if lead == 1 %} {% translate "Manage Lead Quotes" %} {% else %} {% translate "Manage Quotes" %} {% endif %} {% endblock %} {% block breadcumbfirst %} Manage {% if lead == 1 %} Lead {% endif %} Quotes {% endblock %} {% block breadcumbaddmore %}
| ID (VER) | Customer | Status | Total | Notify Admin | {%if request.user.role != 4 %}Notify Customer | Notify Broker | Quote PDF | Quote By | Actions | {% endif%}|||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{quotation.id}} ({{quotation.latest_version}}) | {% if quotation.customer %} {{ quotation.customer }}(Customer) {% else %} {{ quotation.lead }}(Lead) {% endif %} | {% if quotation.get_status_display == 'Accepted' %} Approved {% elif quotation.get_status_display == 'Admin Approved' and quotation.sent_mail_admin == 1 %} Approved Admin {% elif quotation.get_status_display == 'Rejected' and quotation.sent_mail_admin == 1 %} Rejected {% elif quotation.sent_mail_admin == 1 and quotation.admin_response_mail != 1 %} Pending Admin Approval {% elif quotation.get_status_display == 'Sented' %} Pending Approval {% elif quotation.get_status_display == 'Converted Invoice'%} Invoiced {% elif quotation.get_status_display == 'Accepted' %} Approved {% elif quotation.get_status_display == 'Rejected' %} Rejected {% else %} {{quotation.get_status_display}} {% endif %} {% if quotation.get_status_display == 'Rejected' %} {% if quotation.reject_reason != None %} {{ quotation.reject_reason }} {% else %} - {% endif %} {% endif %} | {{quotation.total_amount}} | {% if quotation.required_send_to_admin == 1 %}{% else %} | - | {% endif %} {% if quotation.status == 5 and quotation.sent_mail_admin == 1 %}{% elif quotation.sent_mail_admin != 1 and quotation.required_send_to_admin == 1 %} | - | - | {% elif quotation.sent_mail_admin == 1 and quotation.sent_mail_customer != 1 %}- | - | {% elif quotation.status == 4 %}- | - | {% else %}{% endif %} | {% if quotation.pdf_file %} {% endif %} |
{% if quotation.quote_by %} {{ quotation.quote_by.userinfo.first_name }} {{ quotation.quote_by.userinfo.last_name }} {% else %} - {% endif %}
{% if quotation.quote_date %} {{quotation.quote_date|date:"d-m-Y"}} {% endif %} |
{% if quotation.status == 2 %} {% if quotation.customer is not None %} Add Invoice {% else %} Convert Lead To Customer {% endif %} {% elif quotation.status <= 2 or quotation.status == 5 or quotation.sent_mail_admin == 1 and quotation.admin_response_mail != 1 %} Select {% else %} Select {% endif %} |