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

Invoice Payments

Invoice: #{{ invoice.id }} • {{ invoice.invoice_no }} • Quote: #{{ invoice.quote_id }}
View Invoice Back
Invoice Amount
₹ {{ indian_amount(invoice.total_amount|float) }}
Collected (Excluding Rejected)
₹ {{ indian_amount(collected|float) }}
Remaining
₹ {{ indian_amount(remaining|float) }}
{% if invoice.status != "Paid" and invoice.status != "Cancelled" %}
Add Payment
Status will be Pending until Finance verifies.
Max available: ₹ {{ indian_amount(remaining|float) }}
{% endif %}
Payment History
Total Entries: {{ payments|length }}
{% if payments|length == 0 %} {% else %} {% for p in payments %} {% endfor %} {% endif %}
Date Amount Type Reference Status Finance
No payments yet.
{{ p.payment_date.strftime("%d-%b-%Y") if p.payment_date else "" }} ₹ {{ indian_amount(p.amount|float) }} {{ p.transfer_type }} {{ p.reference or "-" }} {% if p.status == "Pending" %} Pending {% elif p.status == "Verified" %} Verified {% else %} Rejected {% endif %} {% if p.status != "Pending" %}
At: {{ p.verified_at.strftime("%d-%b-%Y %H:%M") if p.verified_at else "-" }}
Remarks: {{ p.finance_remarks or "-" }}
{% else %} Waiting for verification {% endif %}
{% endblock %}