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

{{ object.item_name }} {{ object.item_code }} - Inventory Item Details

Item Information

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 }}
Unit of Measure: {{ object.get_unit_of_measure_display }}
Package Size: {{ object.package_size }} {{ object.get_unit_of_measure_display }}{{ object.package_size|pluralize }}
Manufacturer: {{ object.manufacturer|default:"Not specified" }}
Model Number: {{ object.model_number|default:"Not specified" }}
Part Number: {{ object.part_number|default:"Not specified" }}
UPC Code: {{ object.upc_code|default:"Not specified" }}
Unit Cost: ${{ object.unit_cost }}
List Price: ${{ object.list_price }}
{% if object.description %}
Description
{{ object.description }}
{% endif %}
Item Features
Active Item
Inventory Tracked
Serial Number Tracking
Lot Number Tracking
Has Expiration Date
Controlled Substance
{% if object.fda_approved or object.controlled_substance or object.dea_schedule %}
Regulatory Information
{% if object.fda_approved %}
FDA Approved
{% endif %} {% if object.controlled_substance %}
Controlled Substance
{% if object.dea_schedule %} {{ object.get_dea_schedule_display }} {% endif %}
{% endif %}
{% endif %} {% if object.clinical_use or object.contraindications %}
Clinical Information
{% if object.clinical_use %}
Clinical Use:
{{ object.clinical_use }}
{% endif %} {% if object.contraindications %}
Contraindications:
{{ object.contraindications }}
{% endif %}
{% endif %}

Stock Information

{{ object.current_stock }}
Current Stock
{{ object.reorder_point }}
Reorder Point
{{ object.reorder_quantity }}
Reorder Quantity
${{ object.total_value|floatformat:2 }}
Total Value
{% if object.needs_reorder %}
Reorder Required

Current stock ({{ object.current_stock }}) is at or below the reorder point ({{ object.reorder_point }}). Consider placing a new order.

{% endif %} {% if object.inventory_stocks.exists %}
{% for stock in object.inventory_stocks.all %} {% endfor %}
Location Lot Number Quantity Expiration Quality Status Actions
{{ stock.location.name }} {{ stock.lot_number|default:"-" }} {{ stock.quantity_on_hand }} {% if stock.quantity_reserved > 0 %}
({{ stock.quantity_reserved }} reserved) {% endif %}
{% if stock.expiration_date %} {% if stock.is_expired %} {{ stock.expiration_date|date:"M d, Y" }}
Expired {% elif stock.days_to_expiry <= 30 %} {{ stock.expiration_date|date:"M d, Y" }}
{{ stock.days_to_expiry }} days {% else %} {{ stock.expiration_date|date:"M d, Y" }} {% endif %} {% else %} No expiration {% endif %}
{{ stock.get_quality_status_display }}
{% else %}

No stock records found for this item.

Add Initial Stock
{% endif %}

Recent Transactions

{% if recent_transactions %}
{% for transaction in recent_transactions %}
{{ transaction.transaction_date|date:"M d" }}
{{ transaction.get_transaction_type_display }} {{ transaction.quantity_change|floatformat:0 }}
{{ transaction.location.name }} {% if transaction.reference_number %} • Ref: {{ transaction.reference_number }} {% endif %}
{% if transaction.notes %}
{{ transaction.notes|truncatechars:100 }}
{% endif %}
{% endfor %}
{% else %}

No recent transactions for this item.

{% endif %}

Quick Actions

Edit Item Add Stock Adjust Stock {% if object.needs_reorder %} Create Purchase Order {% endif %}

Storage Requirements

{% if object.storage_temperature_min or object.storage_temperature_max or object.storage_requirements %} {% if object.storage_temperature_min or object.storage_temperature_max %} {% endif %} {% if object.storage_humidity_min or object.storage_humidity_max %} {% endif %} {% if object.shelf_life_days %} {% endif %}
Temperature: {% if object.storage_temperature_min and object.storage_temperature_max %} {{ object.storage_temperature_min }}°C to {{ object.storage_temperature_max }}°C {% elif object.storage_temperature_min %} Above {{ object.storage_temperature_min }}°C {% elif object.storage_temperature_max %} Below {{ object.storage_temperature_max }}°C {% endif %}
Humidity: {% if object.storage_humidity_min and object.storage_humidity_max %} {{ object.storage_humidity_min }}% to {{ object.storage_humidity_max }}% {% elif object.storage_humidity_min %} Above {{ object.storage_humidity_min }}% {% elif object.storage_humidity_max %} Below {{ object.storage_humidity_max }}% {% endif %}
Shelf Life: {{ object.shelf_life_days }} days
{% if object.storage_requirements %}
Special Requirements:
{{ object.storage_requirements }}
{% endif %} {% else %}

No special storage requirements specified.

{% endif %}

Supplier Information

{% if object.primary_supplier %}
{{ object.primary_supplier.name }}
Primary Supplier
View Details
{% if object.primary_supplier.contact_email %}
{{ object.primary_supplier.contact_email }}
{% endif %} {% if object.primary_supplier.contact_phone %}
{{ object.primary_supplier.contact_phone }}
{% endif %} {% else %}

No primary supplier assigned.

Assign Supplier
{% endif %}

Item History

Created: {{ object.created_at|date:"M d, Y H:i" }} {% if object.created_by %}
by {{ object.created_by.get_full_name }} {% endif %}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
{% if object.notes %}
Notes:
{{ object.notes }}
{% endif %}
{% endblock %} {% block js %} {% endblock %}