{% 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 Movements'} ] %} {{ page_header( icon_class='fas fa-exchange-alt', title_text='Stock Movements', subtitle_text='View inventory movement history', breadcrumbs=breadcrumbs, actions_html='Record Movement' if (current_user.is_admin or has_permission('manage_stock_movements')) else None ) }}
| {{ _('Date') }} | {{ _('Item') }} | {{ _('Warehouse') }} | {{ _('Type') }} | {{ _('Quantity') }} | {{ _('Reference') }} | {{ _('Reason') }} | {{ _('User') }} |
|---|---|---|---|---|---|---|---|
| {{ movement.moved_at.strftime('%Y-%m-%d %H:%M') if movement.moved_at else '—' }} | {{ movement.stock_item.name }} ({{ movement.stock_item.sku }}) | {{ movement.warehouse.code }} | {{ movement.movement_type }} | {{ '+' if movement.quantity > 0 else '' }}{{ movement.quantity }} | {% if movement.reference_type and movement.reference_id %} {% if movement.reference_type == 'invoice' %} Invoice #{{ movement.reference_id }} {% elif movement.reference_type == 'quote' %} Quote #{{ movement.reference_id }} {% else %} {{ movement.reference_type }} #{{ movement.reference_id }} {% endif %} {% else %} — {% endif %} | {{ movement.reason or '—' }} | {{ movement.moved_by_user.username if movement.moved_by_user else '—' }} |
| {{ _('No stock movements found.') }} | |||||||