{% extends "base.html" %} {% block title %}Quote Versions • {{ opp.opp_code }}{% endblock %} {% block header %}Quotes{% endblock %} {% block content %} {% set latest_version = quotes[0].version if quotes|length > 0 else None %}
{{ opp.opp_code }} • {{ opp.company or '—' }}

All Quote Versions

{{ opp.title }}
Back
{% for q in quotes %} {% set is_latest = (q.version == latest_version) %} {% endfor %} {% if quotes|length == 0 %} {% endif %}
Quote Status Estimated Closure Subtotal GST Total Updated Action
{{ q.quote_code }} {% if is_latest %} Latest {% endif %}
Version {{ q.version }} {% if q.created_by %} • by {{ q.created_by.name }} {% endif %}
{% if q.status %} {% set s = q.status.name %} {% if s == "Draft" %} Draft {% elif s == "Pending Approval" %} Pending {% elif s == "Approved" %} Approved {% elif s == "Selected" %} Selected {% elif s == "Sent" %} Sent {% elif s == "Rejected" %} Rejected {% else %} {{ s }} {% endif %} {% else %} — {% endif %} {% if q.estimated_closure_date %} {{ q.estimated_closure_date.strftime("%d %b %Y") }} {% else %} — {% endif %} {{ q.subtotal or 0 }} {{ q.tax or 0 }} {{ q.total_amount or q.total or 0 }} {{ q.updated_at.strftime("%d %b %Y, %I:%M %p") if q.updated_at else "—" }}
{% if q.status and q.status.name in ("Draft","Rejected") %} {% endif %}
No quote versions found.
{% endblock %}