{% extends "base.html" %} {% block content %}

My Dashboard

A quick snapshot for {{ month_value }} ({{ my_role or "User" }}).
Revenue (MTD)
₹ {{ indian_amount(revenue_mtd|float) }}
Invoices this month: {{ invoices_mtd }}
Outstanding (All)
₹ {{ indian_amount(outstanding_total|float) }}
Top overdue shown below
{% if my_role != "AM" %}
Leads (MTD)
{{ leads_mtd }}
Opportunities (MTD): {{ opps_mtd }}
Qualified Opps (MTD)
{{ qualified_opps_mtd }}
Qualified = stage/probability rule
{% else %}
Active Clients
{{ active_clients }}
Dormant risk: {{ dormant_risk }}
Inactive Clients
{{ inactive_accounts }}
Based on last invoice date
{% endif %}
Top Overdue
Highest days outstanding
{% if overdue_top|length == 0 %} {% else %} {% for r in overdue_top %} {% endfor %} {% endif %}
Invoice Client Remaining Days
No outstanding invoices 🎉
#{{ r.invoice.id }} {{ r.client_name }} ₹ {{ indian_amount(r.remaining|float) }} {{ r.days_outstanding }}
Pending Payment Verifications
Payments waiting for finance action
{% if pending_payments|length == 0 %} {% else %} {% for p in pending_payments %} {% endfor %} {% endif %}
Invoice Date Type Amount
No pending payments.
#{{ p.invoice_id }} {{ p.payment_date.strftime("%d-%b-%Y") if p.payment_date else "-" }} {{ p.transfer_type }} ₹ {{ indian_amount(p.amount|float) }}
Note: Finance queue page is for finance users; this section shows pending items linked to you.
Margin Flags ({{ threshold }}% threshold)
Projects created in selected month
{% if flagged_projects|length == 0 %} {% else %} {% for r in flagged_projects %} {% endfor %} {% endif %}
Project Contract Margin %
No flagged projects.
#{{ r.project.id }} — {{ r.project.name }} ₹ {{ indian_amount(r.contract_value|float) }} {{ "%.2f"|format(r.margin_percent|float) }}%
{% if my_role == "AM" %}
Account Health
Top risk clients first
{% if am_clients|length == 0 %} {% else %} {% for r in am_clients %} {% endfor %} {% endif %}
Client Last Invoice Status
No mapped clients found.
{{ r.client.company_name }} {{ r.last_invoice_date.strftime("%d-%b-%Y") if r.last_invoice_date else "-" }} {% if r.status == "Dormant Risk" %} {{ r.status }} {% elif r.status == "Inactive" %} {{ r.status }} {% else %} {{ r.status }} {% endif %}
{% endif %}
{% endblock %}