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

{% if commit %}Recovery Complete{% else %}Preview — No Changes Made{% endif %}

{% if commit %}Recovered{% else %}Would recover{% endif %}: {{ recovered }}  |  Already existed: {{ skipped }}  |  Failed/No match: {{ errors }}
{% for r in results %} {% endfor %}
DateTransIDNameAmount StatusDetail
{{ r.date }} {{ r.trans_id }} {{ r.name }} KES {{ r.amount }} {{ r.status }} {% if r.status == 'success' %}Receipt: {{ r.receipt }} | Loan: {{ r.loan }} {% elif r.status == 'would_recover' %}Borrower: {{ r.borrower }} | Loan: {{ r.loan }} {% elif r.status == 'no_borrower' %}BillRef {{ r.bill_ref }} not matched {% elif r.status == 'no_loan' %}{{ r.borrower }} has no active loan {% else %}{{ r.message }}{% endif %}
{% if not commit and recovered > 0 %}
{% csrf_token %}
{% endif %} Back
{% endblock %}