{% extends 'core/base.html' %} {% load static %} {% block title %}Stock History - SwiftPOS{% endblock %} {% block topbar_title %} Inventory - Stock History {% endblock %} {% block content %}
{% if messages %} {% for message in messages %}
{% if message.tags == 'success' %} {% elif message.tags == 'error' or message.tags == 'danger' %} {% elif message.tags == 'warning' %} {% else %} {% endif %}
{{ message }}
{% endfor %} {% endif %}
Stock Adjustment History
Track all restocks, reductions, and manual corrections.
Back to products
Reset
{% if page_obj %} {% for adj in page_obj %} {% endfor %} {% else %} {% endif %}
Date Product SKU Type Change Before After By Reason
{{ adj.created_at|date:"Y-m-d" }}
{{ adj.created_at|time:"H:i" }}
{{ adj.product.name }} {{ adj.product.sku }} {% if adj.adjustment_type == 'restock' %} Restock {% elif adj.adjustment_type == 'reduce' %} Reduce {% elif adj.adjustment_type == 'adjustment' %} Manual Adjustment {% elif adj.adjustment_type == 'damage' %} Damage/Loss {% elif adj.adjustment_type == 'return' %} Return to Stock {% endif %} {% if adj.quantity > 0 %} +{{ adj.quantity }} {% else %} {{ adj.quantity }} {% endif %} {{ adj.product.stock_quantity|add:"-adj.quantity" }} {{ adj.product.stock_quantity }} {{ adj.performed_by|default:"-" }} {{ adj.reason|default:"-" }}
No stock adjustments recorded.
{% if page_obj.has_other_pages %}
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}
{% endif %}
{% endblock %}