{% extends 'base.html' %} {% load static %} {% block title %}Inventory Management - Pharmacy{% endblock %} {% block content %}

{{ inventory_stats.total_items|default:1247 }}

Total Items

{{ inventory_stats.low_stock|default:23 }}

Low Stock Items

{{ inventory_stats.expiring_soon|default:8 }}

Expiring Soon

${{ inventory_stats.total_value|default:245000|floatformat:0 }}

Inventory Value
Inventory Filters
Inventory Items {{ inventory_items.count|default:0 }} items
{% for item in inventory_items %} {% empty %} {% endfor %}
Medication NDC Lot Number Quantity Unit Cost Total Value Expiration Location Status Actions
{{ item.medication.name }}
{{ item.medication.generic_name }} {% if item.medication.controlled_substance %}
Controlled {% endif %}
{{ item.ndc_number }} {{ item.lot_number }}
{{ item.quantity_on_hand }} {{ item.unit_of_measure }}
Min: {{ item.minimum_quantity }}
${{ item.unit_cost|floatformat:2 }} ${{ item.total_value|floatformat:2 }} {{ item.expiration_date|date:"M d, Y" }} {% if item.days_until_expiration <= 30 %}
{{ item.days_until_expiration }} days {% endif %}
{{ item.storage_location|title }} {% if item.is_expired %} Expired {% elif item.is_expiring_soon %} Expiring Soon {% elif item.is_low_stock %} Low Stock {% elif item.is_out_of_stock %} Out of Stock {% else %} In Stock {% endif %}

No inventory items found

Add First Item
{% if inventory_items.has_other_pages %} {% endif %}
{% if inventory_items %}
Bulk Actions
0 items selected
{% endif %}
Recent Inventory Transactions
{% for transaction in recent_transactions %} {% empty %} {% endfor %}
Time Type Medication Quantity User Reference
{{ transaction.timestamp|date:"H:i" }} {{ transaction.transaction_type|title }} {{ transaction.medication.name }} {% if transaction.transaction_type == 'dispensed' or transaction.transaction_type == 'adjustment_out' %} -{{ transaction.quantity }} {% else %} +{{ transaction.quantity }} {% endif %} {{ transaction.unit_of_measure }} {{ transaction.user.get_full_name }} {{ transaction.reference_number|default:"-" }}
No recent transactions
{% endblock %}