{% extends "base.html" %} {% load static %} {% block title %}Delete {{ object.item_name }} - Inventory{% endblock %} {% block content %}

Delete Inventory Item Confirmation Required

Confirm Item Deletion

Warning: Permanent Deletion

You are about to permanently delete an inventory item. This action cannot be undone and may affect inventory tracking, purchase orders, and historical data.

Item Details
Item Code: {{ object.item_code }}
Item Name: {{ object.item_name }}
Category: {{ object.get_category_display }} {% if object.subcategory %}
{{ object.subcategory }} {% endif %}
Item Type: {{ object.get_item_type_display }}
Manufacturer: {{ object.manufacturer|default:"Not specified" }}
Current Status
Current Stock: {{ object.current_stock }} {{ object.get_unit_of_measure_display }}
Total Value: ${{ object.total_value|floatformat:2 }}
Active Status: {{ object.is_active|yesno:'Active,Inactive' }}
Created: {{ object.created_at|date:"M d, Y" }}
Last Updated: {{ object.updated_at|date:"M d, Y" }}
Impact Assessment
  • Inventory Records: All stock records for this item will be permanently deleted
  • Transaction History: All transaction history for this item will be lost
  • Purchase Orders: May affect existing purchase orders that reference this item
  • Reporting: Historical reports may show incomplete data
  • {% if object.current_stock > 0 %}
  • Current Stock: {{ object.current_stock }} units will be removed from inventory
  • {% endif %} {% if object.controlled_substance %}
  • Controlled Substance: This is a controlled substance - deletion may affect compliance tracking
  • {% endif %}
{% if object.current_stock > 0 %}
Stock Level Warning

This item currently has {{ object.current_stock }} {{ object.get_unit_of_measure_display }} in stock with a total value of ${{ object.total_value|floatformat:2 }}.

Deleting this item will remove all stock from inventory without any transaction record.

{% endif %} {% if object.controlled_substance %}
Controlled Substance Alert

This item is classified as a controlled substance ({{ object.get_dea_schedule_display }}).

Deletion may affect DEA compliance tracking and audit trails. Ensure proper documentation before proceeding.

{% endif %}
{{ stock_locations_count }}
Stock Locations
{{ transaction_count }}
Transactions
{{ purchase_order_count }}
Purchase Orders
{{ adjustment_count }}
Adjustments
Alternative Actions

Consider these alternatives instead of deletion:

  • Archive the item for historical reference
  • Transfer stock to another item
{% csrf_token %}
Deletion Confirmation
{% if object.current_stock > 0 %}
{% endif %} {% if object.controlled_substance %}
{% endif %}
{% if object.current_stock > 0 %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}