{% extends "pos/base.html" %} {% load static %} {% block stylesheets %} {{ block.super }} {% endblock %} {% block heading %}Item-wise Investment Comparison{% endblock heading %} {% block content %}
Column 2 (Inventory Report Investment) = present_stock × purchase_price per item — same as the general Inventory Report. Column 3 (Warehouse Sum Investment) = sum of that item's stock across all warehouses × purchase_price — same basis as the Warehouse Inventory Report. Column 4 is the gap between them. Sort by Gap to find the biggest contributors first.

{{ totals.items }}

Items Listed

{{ totals.total_inv_inventory|floatformat:0 }}

Total (Inventory Report basis)

{{ totals.total_inv_warehouse|floatformat:0 }}

Total (Warehouse Sum basis)

{{ totals.total_gap|floatformat:0 }}

Net Gap
Inventory Report Warehouse Inventory Report
{% for r in rows %} {% empty %} {% endfor %}
Code Product Company Category Purchase Price Present Stock (units) Warehouse Sum (units) Inventory Report Investment Warehouse Sum Investment Gap
{{ r.product_code }} {{ r.name }} {{ r.company }} {{ r.category }} {{ r.purchase_price|floatformat:2 }} {{ r.present_stock|floatformat:2 }} {{ r.warehouse_qty|floatformat:2 }} {{ r.inv_inventory|floatformat:2 }} {{ r.inv_warehouse|floatformat:2 }} {{ r.gap|floatformat:2 }}

No items found for the current filters.
Grand Totals: {{ totals.total_inv_inventory|floatformat:2 }} {{ totals.total_inv_warehouse|floatformat:2 }} {{ totals.total_gap|floatformat:2 }}
{% endblock %} {% block javascripts %} {{ block.super }} {% endblock %}