{% extends 'base.html' %} {% load static %} {% block content %}
Delete Expense #{{ object.reference }}
Warning!

You are about to permanently delete this expense. This action cannot be undone. The following information will be permanently removed:

  • Expense details and items
  • Associated attachments and files
  • Audit history and activity logs
Expense Details
Reference:
{{ object.reference }}
Date:
{{ object.date|date:"M d, Y" }}
Category:
{{ object.category }}
Status:
{{ object.get_status_display }}
Total Amount:
${{ object.total_amount|floatformat:2|intcomma }}
Items:
{{ object.items.count }}
{% if object.description %}
Description:
{{ object.description|linebreaksbr }}
{% endif %}
Items to be Deleted
{% for item in object.items.all %} {% empty %} {% endfor %}
# Description Qty Unit Price Amount
{{ forloop.counter }} {{ item.description }} {{ item.quantity|floatformat:2|intcomma }} {{ item.unit|default:'' }} ${{ item.unit_price|floatformat:2|intcomma }} ${{ item.amount|floatformat:2|intcomma }}
No items found
{% if object.attachments.exists %}
Note: This expense has {{ object.attachments.count }} attachment(s) that will also be deleted.
{% endif %}
{% csrf_token %}
Cancel
{% endblock %}