{% load mathfilters %} {% load custom_tags %} {% load humanize %} {% load countries %} {% if detail.loan_status == status.Disbursed or detail.loan_status == status.Closed %} {% for sched in schedule %} {% endfor %}
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 %}
{% elif detail.loan_status == status.WrittenOff %}

LOAN WRITTEN OFF AS A BAD DEBT

{% elif detail.loan_status == status.WrittenOff %}

LOAN WRITTEN OFF AS A BAD DEBT

{% elif detail.loan_status == status.ToppedUp %}

LOAN TOPPED AND CLOSED

{% elif detail.loan_status == status.Rejected %}

LOAN APPLICATION REJECTED

{% else %}

LOAN NOT YET DISBURSED

{% endif %}