{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Inventory', 'url': url_for('inventory.list_stock_items')}, {'text': 'Reports', 'url': url_for('inventory.reports_dashboard')}, {'text': 'Movement History'} ] %} {{ page_header( icon_class='fas fa-history', title_text='Movement History Report', subtitle_text='Detailed inventory movement log', breadcrumbs=breadcrumbs ) }}
| {{ _('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 }} {% elif movement.reference_type == 'purchase_order' %} PO #{{ 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 movements found.') }} | |||||||