{% 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 Items'} ] %} {{ page_header( icon_class='fas fa-cubes', title_text='Stock Items', subtitle_text='Manage your inventory items', breadcrumbs=breadcrumbs, actions_html='Create Stock Item' if (current_user.is_admin or has_permission('manage_stock_items')) else None ) }}
{% for item in items %} {% else %} {% endfor %}
{{ _('SKU') }} {{ _('Name') }} {{ _('Category') }} {{ _('Unit') }} {{ _('Total Qty') }} {{ _('Available') }} {{ _('Status') }} {{ _('Actions') }}
{{ item.sku }} {{ item.name }} {{ item.category or '—' }} {{ item.unit }} {% if item.is_trackable %} {{ item.total_quantity_on_hand or 0 }} {% else %} N/A {% endif %} {% if item.is_trackable %} {{ item.total_quantity_available or 0 }} {% if item.is_low_stock %} {% endif %} {% else %} N/A {% endif %} {% if item.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %} {% if current_user.is_admin or has_permission('manage_stock_items') %} {% endif %}
{{ _('No stock items found.') }}
{% endblock %}