{% extends "base.html" %} {% block title %}Pipeline • Crystal Nexus{% endblock %} {% block header %}Pipeline{% endblock %} {% block content %}
Sales Pipeline

Pipeline Board

Track opportunities, review quote status, monitor overdue deals, and move opportunities stage-wise.
Filters
Narrow down opportunities by owner, stage, quote status or close date.
Clear Filters
{% if filters.search or filters.stage_id or filters.owner_id or filters.quote_status or filters.close_month or filters.close_year or filters.overdue %} Filters Applied {% endif %}
Total Opportunities
{{ summary.total_opportunities }}
Matching current filters
Expected Value
₹ {{ indian_amount(summary.total_value) }}
Total expected opportunity value
Overdue
{{ summary.overdue_count }}
Needs follow-up
Without Quote
{{ summary.without_quote_count }}
Quote not created yet
Kanban View
Scroll horizontally to view all stages. Use Move to shift opportunity stage.
{{ stages|length }} Stage(s) {{ summary.total_opportunities }} Opportunity(s)
{% for s in stages %}
{{ s.name }} {{ s.probability }}% probability
{{ s.name }}
{{ grouped[s.id]|length }}
{% for o in grouped[s.id] %} {% set is_closed = (s.name in closed_stage_names) %} {% set is_overdue = (o.expected_close_date and o.expected_close_date < today and not is_closed) %} {% set has_quote = (o.quotes.count() > 0) %}
{{ o.title }}
{{ o.opp_code }} • {{ o.company or '—' }}
{% if is_overdue %} Overdue {% elif has_quote %} Quoted {% else %} No Quote {% endif %}
Owner
{{ o.owner.name if o.owner else '—' }}
Value
{% if o.expected_value %} ₹ {{ o.expected_value }} {% else %} — {% endif %}
Close Date
{% if o.expected_close_date %} {{ o.expected_close_date.strftime("%d %b %Y") }} {% else %} — {% endif %}
Quote
{% if has_quote %} Available {% else %} Pending {% endif %}
{% if o.lead %} {% endif %}
{% if not has_quote %} Create Quote {% else %} View Quotes {% endif %}
{% endfor %} {% if grouped[s.id]|length == 0 %}
No opportunities
New opportunities in this stage will appear here.
{% endif %}
{% endfor %}
{% endblock %}