{% extends "base.html" %} {% block title %}{{ t('Reorder Suggestions') }}{% endblock %} {% block content %}

{{ t('Reorder Suggestions') }}

{{ t('Products whose forecast stock is at or below the reorder point. Tick the lines to order and create draft purchase orders, one per vendor.') }}
{% for r in rows %}{% set key = r.product.id ~ '-' ~ r.warehouse.id %}{% set cur = branches[r.warehouse.branch_id].currency if r.warehouse.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Product') }}{{ t('Warehouse') }}{{ t('On Hand') }}{{ t('Forecast') }} {{ t('Per day') }} {{ t('Days of cover') }}{{ t('Reorder point') }}{{ t('On draft POs') }} {{ t('Vendor') }}{{ t('Order') }}
{% if r.qty > 0 %}{% endif %} {{ r.product.code or '' }} {{ nm(r.product) }}
{{ t('Last price') }} {{ r.price|money(cur) }} · {{ t('Lead') }} {{ r.lead }} {{ t('days') }}
{{ r.warehouse.code }} {{ '%g' % r.on_hand }}{{ '%g' % r.forecast }} {{ '%.2f'|format(r.daily) if r.daily else '—' }} {{ '%.0f'|format(r.cover) if r.cover is not none else '—' }} {{ '%g' % (r.point|round(1)) }}{{ ('%g' % r.draft) if r.draft else '' }}
{{ t('Nothing to reorder. Set a reorder level on products, or wait for sales history.') }}
{% if rows and can_write %}
{% endif %}

{{ t('Reorder point = the larger of the product’s reorder level and the units expected to go out during the lead time. The suggested quantity brings stock up to “Reorder up to” on the product, else to the reorder point plus') }} {{ cover_days }} {{ t('days of sales. Forecast already counts open receipts and deliveries; quantities on draft purchase orders are subtracted too.') }}

{% endblock %}