{% extends 'base.html' %} {% load humanize %} {% block title %}Delete Loan - Haven Grazuri Investment Limited{% endblock %} {% block content %}

Move Loan to Deleted

Soft delete loan {{ loan.loan_number }} (can be restored later)

⚠️

Soft Delete Warning

This will move the loan to the deleted loans section. The loan can be restored later if needed.

Loan to be Moved to Deleted

Loan Number
{{ loan.loan_number }}
Borrower
{{ loan.borrower.get_full_name }}
Principal Amount
KES {{ loan.principal_amount|floatformat:2 }}
Total Amount
KES {{ loan.total_amount|floatformat:2 }}
Status
{{ loan.get_status_display }}
Disbursement Date
{{ loan.disbursement_date|date:"Y-m-d" }}
{% if loan.repayments.exists %}
⚠️

Loan Has Repayments

This loan has {{ loan.repayments.count }} repayment record(s). Moving this loan to deleted will preserve all repayment data.

{% endif %}

Confirm Soft Deletion

Are you sure you want to move this loan to deleted loans? This action will:

  • Move the loan to the deleted loans section
  • Hide the loan from active loan listings
  • {% if loan.repayments.exists %}
  • Preserve all {{ loan.repayments.count }} repayment record(s)
  • Preserve all associated receipts
  • {% endif %}
  • Allow the loan to be restored later
{% csrf_token %}
Cancel
{% endblock %}