{% extends "base.html" %} {% block content %} {% set payments_locked = (not quote.proposal_confirmed_at) %}

Payment Updates

Quote: #{{ quote.id }} {% if lead_id %} | Lead: #{{ lead_id }}{% endif %}
{% if quote.quote_code %}Quote Code: {{ quote.quote_code }}{% endif %} {% if quote.status and quote.status.name %} | Status: {{ quote.status.name }}{% endif %}
View Quote Back
{% if payments_locked %}
Payments are locked
You can add payment updates only after the proposal is Confirmed (Sent → Confirmed).
Locked
{% endif %}
Quote Amount
₹ {{ indian_amount(quote.total_amount|float) }}
Collected (Excluding Rejected)
₹ {{ indian_amount(collected|float) }}
Remaining
₹ {{ indian_amount(remaining|float) }}
Add Payment Update
Status will be Pending until Finance verifies.
Max available: ₹ {{ indian_amount(remaining|float) }}
{% if payments_locked %}
Proposal confirmation required.
{% elif remaining|float <= 0 %}
Fully collected.
{% 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 payment updates added 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 %}