{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Inventory Management{% endblock %} {% block body_class %}inventory-page{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{{ ui.button('Admin Dashboard', '/admin', 'secondary') }} {{ ui.button('Help Center', '/help-center', 'secondary') }}
After major product changes, regenerate and download your personal inventory CSV from AI CSV Agent. If data is missing after an app update, use Bulk Import with your last downloaded CSV to recover products.
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Products

Total products: {{ total_products or 0 }}
{% for item in products %} {% set p = item.product %}
{{ p.name }} | Type: {{ (p.item_type or "product")|title }} | Selling: {{ currency_symbol }}{{ "%.2f"|format(p.price or 0) }} | Buying: {{ currency_symbol }}{{ "%.2f"|format(p.buying_price or 0) }} | Stock: {{ p.stock }}
Fund source: {% if item.fund_breakdown %} {% for fund in item.fund_breakdown %} {{ fund.fund_source|title }}: {{ fund.quantity }} unit(s) at {{ currency_symbol }}{{ "%.2f"|format(fund.buying_price or 0) }} {% endfor %} {% else %} {{ (p.fund_source or "business")|title }} {% endif %}
{% else %}

No products found.

{% endfor %}
{% endblock %}