{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': 'Inventory', 'url': url_for('inventory.list_stock_items')}, {'text': 'Adjustments'} ] %} {{ page_header( icon_class='fas fa-edit', title_text='Stock Adjustments', subtitle_text='View stock adjustments and corrections', breadcrumbs=breadcrumbs, actions_html='New Adjustment' if (current_user.is_admin or has_permission('manage_stock_movements')) else None ) }}
{% for adjustment in adjustments %} {% else %} {% endfor %}
{{ _('Date') }} {{ _('Item') }} {{ _('Warehouse') }} {{ _('Quantity') }} {{ _('Reason') }} {{ _('User') }}
{{ adjustment.moved_at.strftime('%Y-%m-%d %H:%M') if adjustment.moved_at else '—' }} {{ adjustment.stock_item.name }} ({{ adjustment.stock_item.sku }}) {{ adjustment.warehouse.code }} {{ '+' if adjustment.quantity > 0 else '' }}{{ adjustment.quantity }} {{ adjustment.reason or '—' }} {{ adjustment.moved_by_user.username if adjustment.moved_by_user else '—' }}
{{ _('No adjustments found.') }}
{% endblock %}