{% extends "base.html" %} {% block title %}Quotes • Crystal Nexus{% endblock %} {% block header %}Quotes{% endblock %} {% block content %} {% macro money(v) -%} {%- if v is none -%} 0.00 {%- else -%} {%- set s = v|string -%} {%- set s = s|replace(",", "") -%} {%- if s == "" -%} 0.00 {%- else -%} {{ indian_amount(s|float) }} {%- endif -%} {%- endif -%} {%- endmacro %} {% set total_quotes = pagination.total or 0 %} {% set draft_count = namespace(value=0) %} {% set pending_count = namespace(value=0) %} {% set approved_count = namespace(value=0) %} {% set sent_count = namespace(value=0) %} {% for q in pagination.items %} {% set status_name = q.status.name if q.status else "" %} {% if status_name == "Draft" %} {% set draft_count.value = draft_count.value + 1 %} {% elif status_name == "Pending Approval" %} {% set pending_count.value = pending_count.value + 1 %} {% elif status_name == "Approved" %} {% set approved_count.value = approved_count.value + 1 %} {% elif status_name in ("Sent", "Selected") %} {% set sent_count.value = sent_count.value + 1 %} {% endif %} {% endfor %}
Sales / Quotations

Quotes

View latest quote version per opportunity, track approval status, and open quote actions quickly.
Total Records

{{ total_quotes }}

On This Page

{{ pagination.items|length }}

Visible quote records
Draft

{{ draft_count.value }}

Editable quotations
Pending Approval

{{ pending_count.value }}

Awaiting approval
Approved / Sent

{{ approved_count.value + sent_count.value }}

Ready or in progress
Reset
{% for q in pagination.items %} {% set status_name = q.status.name if q.status else "" %} {% set editable = status_name in ("Draft","Rejected") %} {% set opp_owner = q.opportunity.owner if q.opportunity and q.opportunity.owner else none %} {% endfor %} {% if pagination.total == 0 %} {% endif %}
Quote Opportunity Status Owner Total Updated Actions
{{ q.quote_code }}
V{{ q.version }} {% if not editable %} {% else %} {% endif %}
{% if q.opportunity %}
{{ q.opportunity.opp_code }} • {{ q.opportunity.title }}
{{ q.opportunity.company or "—" }}
{% else %} — {% endif %}
{% if status_name == "Approved" %} {{ status_name }} {% elif status_name == "Pending Approval" %} {{ status_name }} {% elif status_name == "Rejected" %} {{ status_name }} {% elif status_name == "Sent" %} {{ status_name }} {% elif status_name == "Selected" %} {{ status_name }} {% elif status_name == "Draft" %} {{ status_name }} {% else %} {{ status_name or "—" }} {% endif %} {% if opp_owner %}
{{ opp_owner.name }}
{% if opp_owner.email %}
{{ opp_owner.email }}
{% endif %} {% elif q.created_by %}
{{ q.created_by.name }}
{% if q.created_by.email %}
{{ q.created_by.email }}
{% endif %} {% else %} — {% endif %}
{{ q.currency or "INR" }} {{ money(q.total_amount or q.total) }}
{% if q.tax %}
Tax: {{ money(q.tax) }}
{% endif %}
{{ q.updated_at.strftime("%d %b %Y") if q.updated_at else "—" }}
{{ q.updated_at.strftime("%I:%M %p") if q.updated_at else "" }}
{% if editable %} {% endif %} {% if q.opportunity %} {% endif %}
No quotes found
Try changing the filters or search keyword.
{% if pagination.pages > 1 %} {% endif %}
{% endblock %}