{% extends "pos/base.html" %} {% block title %}Delete Deal #{{ deal.installment_no }}{% endblock %} {% block content %}

Confirm Delete

{% if messages %} {% for msg in messages %}
{{ msg }}
{% endfor %} {% endif %} {% if payment_count %}
Cannot Delete — Payments Exist

Deal #{{ deal.installment_no }} has {{ payment_count }} received payment(s).

You must reverse all installment payments (Phase C feature) before this deal can be deleted.

Go Back
{% else %}
Delete Installment Deal #{{ deal.installment_no }}

You are about to permanently delete this deal. The following will be irreversibly reversed:

  • Stock restored — {{ products_count }} product line(s) will be returned to inventory.
  • Customer balance reversed — {{ customer.name|default:"Customer" }}'s ledger entry removed.
  • Bank entry reversed — Down payment of {{ deal.down_payment|floatformat:0 }} removed from bank account.
  • All deal records deleted — Schedule, witnesses, products, and deal header.
Customer: {{ customer.name|default:"—" }}
Plan: {{ deal.plan.plan_name|default:"Custom" }}
Total Price: {{ deal.total_price|floatformat:0 }}
Down Payment: {{ deal.down_payment|floatformat:0 }}
Sale Date: {{ deal.sale_date }}
Duration: {{ deal.duration_months }} months

This action cannot be undone.

Cancel
{% csrf_token %}
{% endif %}
{% endblock %}