{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Inventory', 'url': url_for('inventory.list_stock_items')}, {'text': 'Stock Levels', 'url': url_for('inventory.stock_levels')}, {'text': warehouse.code} ] %} {{ page_header( icon_class='fas fa-list-ul', title_text='Stock Levels - ' + warehouse.code, subtitle_text=warehouse.name, breadcrumbs=breadcrumbs ) }}
{% for stock in stock_levels %} {% else %} {% endfor %}
{{ _('Item') }} {{ _('SKU') }} {{ _('Category') }} {{ _('Quantity On Hand') }} {{ _('Quantity Reserved') }} {{ _('Available') }} {{ _('Reorder Point') }} {{ _('Status') }}
{{ stock.stock_item.name }} {{ stock.stock_item.sku }} {{ stock.stock_item.category or '—' }} {{ stock.quantity_on_hand }} {{ stock.quantity_reserved }} {{ stock.quantity_available }} {{ stock.stock_item.reorder_point or '—' }} {% if stock.stock_item.reorder_point and stock.quantity_on_hand < stock.stock_item.reorder_point %} {{ _('Low Stock') }} {% elif stock.quantity_available < 0 %} {{ _('Oversold') }} {% else %} {{ _('OK') }} {% endif %}
{{ _('No stock items found in this warehouse.') }}
{% endblock %}