Drafts and auto-save

A draft is your in-progress version of today's replenishment. Stokk saves it as you type so you don't lose work if you close the tab or switch devices.

Auto-save

Every quantity change is debounced and written to the server. A coloured-dot indicator beside the footer shows the state:

  • Draft saved (green) — your last edit is on the server.
  • Saving… (amber, pulsing) — a save is in flight, or you've just edited and the debounce timer is running.
  • Save failed (red) — the last save errored. The next edit will trigger another retry; hover the dot for the error detail.

Hover the indicator at any time for "last saved 12s ago" so you know exactly how fresh the server's copy is.

What's in a draft

Only the quantities you change. The original system recommendation, forecast, and stock numbers come from the nightly run and stay immutable in the draft. That way you can always see what you overrode.

Discarding a draft

The footer has a red Cancel order button that throws away the entire draft. Use it if you want to start clean — the next nightly run will produce a fresh draft from current state.

When does the draft regenerate?

A new draft is created automatically each morning by the replenishment job. Overnight stock movements, new forecast results, or supplier-level changes are reflected in the new draft. Your previous day's confirmed order is unaffected.