{% extends 'base.html' %} {% load indonesian_filters %} {% block title %}Delete Purchase Order - {{ po.po_number }}{% endblock %} {% block content %}

Delete Purchase Order

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

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

Purchase Order Information:
PO Number: {{ po.po_number }}
Supplier: {{ po.supplier.name }}
Order Date: {{ po.order_date|date:"M d, Y" }}
Expected Delivery: {% if po.expected_delivery_date %} {{ po.expected_delivery_date|date:"M d, Y" }} {% else %} - {% endif %}
Status: {% if po.status == 'ordered' %} Ordered {% elif po.status == 'completed' %} Completed {% elif po.status == 'cancelled' %} Cancelled {% else %} {{ po.get_status_display }} {% endif %}
Items Count: {{ po.items.count }} items
Financial Summary:
Subtotal: {{ po.subtotal|format_rupiah }}
Tax Amount: {{ po.tax_amount|format_rupiah }}
Total Amount: {{ po.total_amount|format_rupiah }}
{% if po.notes %}
Notes:

{{ po.notes|linebreaks }}

{% endif %}

What happens when you delete this purchase order:

  • The purchase order record will be permanently removed from the database
  • All associated line items will be deleted
  • Related goods receipts may lose PO reference
  • Historical data will be preserved where possible
  • This action cannot be reversed
Alternative Actions

Instead of deleting, consider these alternatives:

{% if po.status == 'ordered' %} Approve Order {% endif %}
{% endblock %}