{% extends "base.html" %} {% block title %}Proposals Sent{% endblock %} {% block header %}Proposals Sent{% endblock %} {% block content %}
Total Proposals
{{ items|length }}
Confirmed
{{ items | selectattr('proposal_confirmed_at') | list | length }}
PI Generated
{{ latest_pi_by_quote|length if latest_pi_by_quote else 0 }}
Invoice Generated
{{ latest_invoice_by_quote|length if latest_invoice_by_quote else 0 }}
Filters & Search
Search proposals by quote, company, GST, jobcard, or workflow status.
Reset
{% for q in items %} {% set latest_pi = latest_pi_by_quote.get(q.id) %} {% set pi_exists = latest_pi is not none %} {% set pi_pending = (q.pi_request_status == "Pending") %} {% set latest_inv = (latest_invoice_by_quote.get(q.id) if latest_invoice_by_quote is defined else none) %} {% set inv_exists = latest_inv is not none %} {% set inv_pending = (q.invoice_request_status == "Pending") %} {% set inv_approved = (q.invoice_request_status == "Approved") %} {% set ops_jobcard = (jobcard_by_quote.get(q.id) if jobcard_by_quote is defined else none) %} {% endfor %} {% if items|length == 0 %} {% endif %}
Quote Opportunity Total Proposal PI Status Invoice Status Operations Actions
{{ q.quote_code }}
Version {{ q.version }}
{{ q.opportunity.title if q.opportunity else '—' }}
{{ q.opportunity.company if q.opportunity else '—' }}
{% set curr = currency_map.get((q.currency or "INR").upper(), q.currency or "INR") %}
{{ curr }} {{ indian_amount(q.total_amount or q.total or 0) }}
GST : {{ curr }} {{ indian_amount(q.tax or 0) }}
{% if q.proposal_confirmed_at %}
Confirmed
{{ q.proposal_confirmed_at.strftime("%d %b %Y") }}
{% else %}
Awaiting Confirmation
Payments Locked
{% endif %}
{% if pi_exists %}
PI Generated
{{ latest_pi.pi_no }}
{% elif pi_pending %}
PI Requested
{% else %}
Not Requested
{% endif %}
{% if inv_exists %}
Invoice Generated
{{ latest_inv.invoice_no }}
{% elif inv_pending %}
Invoice Requested
{% else %}
Not Requested
{% endif %}
{% if ops_jobcard %}
{{ ops_jobcard.jobcard_code }}
{% elif q.ops_assignment_status == "Pending Jobcard" %}
Pending Jobcard
{% else %}
Not Assigned
{% endif %}
Proposal {% if not q.proposal_confirmed_at %}
{% else %} Payments {% if ops_jobcard %} Jobcard {% elif current_user.has_perm("operations.jobcard.assign_ops") %} Assign Ops {% endif %} {% if (not pi_exists) and (not pi_pending) and current_user.has_perm("proforma.request") %}
{% endif %} {% if pi_exists and current_user.has_perm("proforma.view") %} View PI {% endif %} {% if pi_exists and (not inv_exists) and (not inv_pending) and current_user.has_perm("invoices.request") %}
{% endif %} {% if inv_exists and current_user.has_perm("invoices.view") %} Invoice {% endif %} {% endif %}
No Sent Proposals Found
Try adjusting filters or create a new proposal.
{% endblock %}