{% extends "base.html" %} {% load static %} {% block title %}Delete Payment {{ object.payment_number }} - {{ block.super }}{% endblock %} {% block content %}
You are about to permanently delete this payment record. This action cannot be undone and will affect billing calculations.
| Payment Number: | {{ object.payment_number }} |
| Patient: | {{ object.medical_bill.patient.get_full_name }} |
| Bill Number: | {{ object.medical_bill.bill_number }} |
| Payment Date: | {{ object.payment_date|date:"M d, Y" }} |
| Payment Amount: | ${{ object.payment_amount|floatformat:2 }} |
| Payment Method: | {{ object.get_payment_method_display }} |
| Status: | {% if object.status == 'PENDING' %} Pending {% elif object.status == 'PROCESSING' %} Processing {% elif object.status == 'COMPLETED' %} Completed {% elif object.status == 'FAILED' %} Failed {% elif object.status == 'REFUNDED' %} Refunded {% endif %} |
| Reference: | {{ object.reference_number|default:"-" }} |
This payment has been processed and completed. Deleting it may cause:
Recommendation: Consider creating a refund or adjustment instead of deleting the payment.
This payment has already been refunded and cannot be deleted. Refunded payments must be retained for audit and reconciliation purposes.