{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Restock Planning - {{ brand_name }}{% endblock %} {% block body_class %}restock-page{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

Restock Planning

{{ ui.button('Back to Admin', '/admin') }} {{ ui.button('Inventory', '/inventory') }} {{ ui.button('Wholesalers & Suppliers', '/restock/suppliers') }}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Generate Restock Request

The system detects products at or below the threshold, recommends quantities, and selects the best supplier using price, quality, reliability, and lead time.

Low Stock Goods

{% if low_products %}
{% for product in low_products %} {% endfor %}
ProductProduct IDCurrent StockBuying Price
{{ product.name }} {{ product.shop_product_id or product.id }} {{ product.stock }} {{ currency_symbol }}{{ "%.2f"|format(product.buying_price or 0) }}
{% else %}

No low-stock goods found at this threshold.

{% endif %}

Recent Restock Requests

{% if requests %}
{% for request_row in requests %} {% endfor %}
DocumentStatusCreatedAction
{{ request_row.document_code }} {{ request_row.status }} {{ request_row.created_at }} Open
{% else %}

No restock requests created yet.

{% endif %}
{% endblock %}