{% extends "htmx/form_base.html" %} {% block form %} {# Header #}

Inventory Management

Updated {{ last_updated|time:"H:i:s" }} · refreshes every {{ component.refresh_interval }}
{# Catalogs #} {% include "core/basic_elements/catalogs_card.html" %} {# Needs Attention #} {% include "core/basic_elements/alerts_card.html" %} {# Recent Usage & Storage Locations #}
{# Left: Recent Usage Table #}
Recent Usage
Material most recently removed from containers
View All
{% for log in recent_usage %} {% with container=log.source_container batch=log.source_container.batch %} {% endwith %} {% empty %} {% endfor %}
Item Container Amount User When Location
{% include "inventory_management/dashboard_item.html" %} {% foreign_key_link container %} {{ log.amount_removed|floatformat:"-3" }} {{ container.amount_units|default:"" }} {{ log.user.username|default:"--" }} {{ log.created_at|timesince }} ago {{ container.location.name|default:"--" }}
No usage has been logged yet.
{# Right: Storage Locations #}
{# Expiring Soon #}
Expiring Soon
In-stock batches that are expired or expire within {{ expiring_days }} days
View All
{% for batch in expiring_batches %} {% empty %} {% endfor %}
Batch Item Remaining Supplier Expires Status
{% foreign_key_link batch %} {% if batch.batch_number %}· #{{ batch.batch_number }}{% endif %} {% include "inventory_management/dashboard_item.html" %} {% if batch.total_current_amount is not None %} {{ batch.total_current_amount|floatformat:"-3" }} {{ batch.amount_units|default:"" }} {% else %} -- {% endif %} {{ batch.supplier|default:"in-house" }} {{ batch.expiration_date|date:"Y-m-d" }} {% status_badge batch.status_text batch.badge_theme %}
No batches expire within the next {{ expiring_days }} days.
{% endblock %}