{% load mathfilters %} {% load custom_tags %} {% load humanize %} {% load countries %} {% if detail.loan_status == status.Disbursed or detail.loan_status == status.Closed %}
| SN | SCHEDULE DATE | INSTALLMENT | PRINCIPAL | INTEREST | PAID | SCHEDULE BALANCE | PRINCIPAL BALANCE | BALANCE | Action |
|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {{ sched.payment_date }} | {{ sched.installment|floatformat:2|intcomma }} | {{ sched.principal_paid|floatformat:2|intcomma }} | {{ sched.interest_paid|floatformat:2|intcomma }} | {{ sched.installment|sub:sched.schedule_balance|floatformat:2|intcomma }} | {{ sched.schedule_balance|floatformat:2|intcomma }} | {{ sched.remaining_balance|floatformat:2|intcomma }} | {{ payable|sub:sched.total_installment|floatformat:2|intcomma }} | {% if sched.pay == 1 %} {% elif sched.pay == 0 %} {% else %} {% endif %} |