{% extends 'base.html' %} {% load indonesian_filters %} {% block title %}Delete Sales Order - {{ so.so_number }}{% endblock %} {% block content %}

Delete Sales Order

Cancel
Confirm Sales Order Deletion
⚠️ Warning: This action cannot be undone!

You are about to permanently delete the sales order and all associated data.

Sales Order Information:
SO Number: {{ so.so_number }}
Customer: {{ so.customer.name }}
Order Date: {{ so.order_date|date:"M d, Y" }}
Expected Delivery: {% if so.expected_delivery_date %} {{ so.expected_delivery_date|date:"M d, Y" }} {% else %} - {% endif %}
Status: {% if so.status == 'processing' %} Processing {% elif so.status == 'completed' %} Completed {% elif so.status == 'cancelled' %} Cancelled {% else %} {{ so.get_status_display }} {% endif %}
Items Count: {{ so.items.count }} items
Financial Summary:
Subtotal: {{ so.subtotal|format_rupiah }}
Tax (11%): {{ so.tax_amount|format_rupiah }}
Total Amount: {{ so.total_amount|format_rupiah }}
{% if so.notes %}
Notes:

{{ so.notes|linebreaks }}

{% endif %}

What happens when you delete this sales order:

  • The sales order record will be permanently removed from the database
  • All associated line items will be deleted
  • Customer order history will be affected
  • Financial records may lose order reference
  • This action cannot be reversed
Alternative Actions

Instead of deleting, consider these alternatives:

{% endblock %}