{% extends "base.html" %} {% block title %}Collections & Aging{% endblock %} {% block header %}Collections & Aging{% endblock %} {% block content %} {% set cluster_label = (cluster.name if cluster else "All Clusters") %}
Cluster: {{ cluster_label }}
Period: {{ start_date }} to {{ end_date }}
Total Outstanding
{{ indian_amount(total_outstanding or 0) }}
Unpaid/partially paid invoices (based on remaining amount).
60+ Days Exposure
{{ indian_amount(exposure_60 or 0) }}
Cashflow risk from invoices overdue > 60 days.
Aging Buckets
0–30: {{ buckets['0-30']|length }} 31–60: {{ buckets['31-60']|length }} 61–90: {{ buckets['61-90']|length }} 90+: {{ buckets['90+']|length }}
Buckets are based on Today − Due Date (Due Date defaults to invoice date if missing).
Top 10 Overdue
{% for r in top_overdue %} {% endfor %} {% if top_overdue|length == 0 %} {% endif %}
Invoice Days Remaining
{{ r.invoice.invoice_no }}
{{ r.invoice.client.company_name if r.invoice.client else '' }}
{{ r.days_outstanding }} {{ indian_amount(r.remaining or 0) }}
No overdue invoices
Invoice Aging Detail
Includes only invoices with remaining amount > 0
{% for r in rows %} {% endfor %} {% if rows|length == 0 %} {% endif %}
Invoice Client Due Date Days Outstanding Remaining Responsible Bucket
{{ r.invoice.invoice_no }}
{{ r.invoice.invoice_date }}
{{ r.invoice.client.company_name if r.invoice.client else "—" }} {{ r.due_date }} {{ r.days_outstanding }} {{ indian_amount(r.remaining or 0) }} {{ r.responsible }} {% if r.bucket == '0-30' %} 0–30 {% elif r.bucket == '31-60' %} 31–60 {% elif r.bucket == '61-90' %} 61–90 {% else %} 90+ {% endif %}
No outstanding invoices found for this month
{% endblock %}