The production lifecycle
Manufacturing has two layers of state. The database stores open or done; the UI shows a derived production state so operators can see whether open work is not started, blocked, or in progress.
Explore Each State
Section titled “Explore Each State”Select a state to see what it allows and where the order can move next.
| Visible state | Stored status | What makes it appear | What it means |
|---|---|---|---|
| Not started | open | No start, no picks, no completed batches. | Planned work is still fully editable. |
| Work in progress | open | startedAt, pick progress, or completed batch activity exists. | Execution has started and planning is locked. |
| Blocked | open | isBlocked is true. | Work is paused but still open. |
| Done | done | The order was completed. | Production history is terminal and read-only. |
What Happens When You Complete
Section titled “What Happens When You Complete”Completing a discrete order usually performs the whole execution write in one action: pick remaining materials, calculate actual material cost, absorb operation cost, create the finished output lot, record output-to-input consumption, close the order, clear its queue rank, and rerank open work.
Batch orders close batch rows. Partially complete records a chosen number of whole batches and leaves the order open. Done closes all remaining planned batch output.
Valid And Invalid Transitions
Section titled “Valid And Invalid Transitions”| From | Allowed | Blocked |
|---|---|---|
| Not started | Start, block, complete, delete, edit plan. | - |
| Work in progress | Block, complete, record output. | Return to not started, edit planning fields. |
| Blocked | Unblock, complete if execution is otherwise valid. | Treat blocked as a separate stored status. |
| Done | View history. | Edit, delete, start, block, complete again. |
Why Can’t I Delete This Order?
Section titled “Why Can’t I Delete This Order?”Open orders can be soft-deleted while no production output has been recorded. Deleting releases reversible picked stock and open demand. Once output exists, the order is preserved as production history and delete is blocked.