Skip to content

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.

2 stored statuses4 visible stateshistory-preserving

Visible stateStored statusWhat makes it appearWhat it means
Not startedopenNo start, no picks, no completed batches.Planned work is still fully editable.
Work in progressopenstartedAt, pick progress, or completed batch activity exists.Execution has started and planning is locked.
BlockedopenisBlocked is true.Work is paused but still open.
DonedoneThe order was completed.Output and costs are recorded; the order is read-only unless safely returned to work in progress.

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.

FromAllowedBlocked
Not startedStart, block, complete, delete, edit plan.-
Work in progressBlock, complete, record output.Return to not started, edit planning fields.
BlockedUnblock, complete if execution is otherwise valid.Treat blocked as a separate stored status.
DoneView history; return to work in progress when the produced stock is still available.Edit, delete, start, block, complete again while still done.

Choose Work in progress from the Production menu on a done order, then confirm Return to work in progress. Ashicore removes the produced stock, returns consumed materials, restores the original ingredient demand and expected output, and puts the order at the end of the open queue. Planning fields remain locked because the order stays execution-started. Completed batches return to pending. Linked make-to-order work keeps its sales-order link and locks sales-line quantity editing again while the order is open.

The change succeeds in full or does nothing. If any produced stock has already been shipped or consumed, Ashicore leaves the order done and shows: “Some produced stock has already been shipped or consumed, so this order can’t return to work in progress.”

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.