{% extends 'base.html' %} {% load static %} {% block title %}Delete Repayment{% endblock %} {% block content %}

🗑️ Delete Repayment - {{ repayment.receipt_number }}

⚠️ Warning: This action cannot be undone. Deleting this repayment will:
  • Remove the repayment record permanently
  • Delete the associated receipt
  • Recalculate the loan's outstanding balance
  • Update the loan status if necessary
Repayment Details
{% if repayment.mpesa_transaction_id %} {% endif %}
Receipt Number {{ repayment.receipt_number }}
Amount KES {{ repayment.amount|floatformat:2 }}
Payment Method {{ repayment.get_payment_method_display }}
Payment Date {{ repayment.payment_date|date:"M d, Y H:i" }}
M-Pesa Transaction ID {{ repayment.mpesa_transaction_id }}
Loan Information
Loan Number {{ repayment.loan.loan_number }}
Borrower {{ repayment.loan.borrower.get_full_name }}
Current Outstanding KES {{ repayment.loan.outstanding_balance|floatformat:2 }}
After Deletion KES {{ repayment.loan.outstanding_balance|add:repayment.amount|floatformat:2 }}
Confirmation
{% csrf_token %}

Are you sure you want to delete this repayment?

{% endblock %}