Nightly stock sync

{% if replay %}

House blend went from {{ replay.before[0][2] }} units to {{ rows[0][2] }}. Its reorder point is {{ rows[0][3] }}.

What happened on replay?

The first sync applied {{ replay.first }} newer SKU revisions. Running the same supplier file a second time changed {{ replay.second }} rows. This run used a temporary copy of the inventory.

{% else %}

The supplier counted two bags of house blend. The shop had eight on file. Replay the feed twice to see what lands on the reorder list.

{% endif %}

{{ 'Inventory after replay' if replay else 'Scheduled inventory' }}

{% if not replay %}

Daily at 06:00 UTC · {% if last %}Last completed {{ last.strftime('%Y-%m-%d %H:%M %Z') }}{% else %}Awaiting the first run{% endif %}

{% endif %} {% for sku,name,quantity,threshold in rows %} {% endfor %}
ProductOn handReorder pointAction
{{ name }}{{ sku }}{{ quantity }}{{ threshold }}{{ 'Reorder' if quantity <= threshold else 'Hold' }}