{% extends "base.html" %} {% block content %}
{% set total_count = invoices|length %} {% set paid_count = invoices|selectattr("payment_status", "equalto", "PAID")|list|length %} {% set partial_count = invoices|selectattr("payment_status", "equalto", "PARTIAL")|list|length %} {% set overdue_count = invoices|selectattr("payment_status", "equalto", "OVERDUE")|list|length %}
Total Invoices
{{ total_count }}
All invoices in current view
Paid
{{ paid_count }}
Fully settled invoices
Partial
{{ partial_count }}
Partially paid invoices
Overdue
{{ overdue_count }}
Require immediate attention
Clear
Invoice Listing

Review invoice type, campaign mapping, payment state, and totals.

{% for inv in invoices %} {% set p = inv.payment_status or inv.status %} {% else %} {% endfor %}
Invoice # Type Brand Campaign Issue Date Due Date Status Total Actions
{{ inv.invoice_number }} {{ inv.invoice_type or inv.type or "-" }} {{ inv.brand.name if inv.brand else '-' }} {% if inv.campaign %} {{ inv.campaign.title }} {% else %} - {% endif %} {{ inv.issue_date }} {{ inv.due_date or '-' }} {% if p in ["PAID","Paid"] %} Paid {% elif p in ["PARTIAL","Partial"] %} Partial {% elif p in ["OVERDUE","Overdue"] %} Overdue {% else %} {{ p or "-" }} {% endif %} ₹ {{ "%.2f"|format(inv.total_amount or 0) }} View
No invoices found
Try changing the filter or create a new invoice record.
{% endblock %}