# Build runs

Pick, complete, cancel, and reverse build cycles on a work order. The three modes, the inventory ledger, and what each phase does.

import Term from '~/components/Term.astro';
import { Aside } from '@astrojs/starlight/components';
import DocUpdated from '~/components/DocUpdated.astro';

In Assemblified, a <Term def="build-run">build run</Term> is one cycle of <Term def="pick">picking</Term> materials and completing the build. Every work order can have many build runs over its life. Each run identifies itself with a short ID like `#BR-00042`.

Build runs live on the **Build runs & QC** tab. The table there lists every run with its mode (Standard or Rework), direction, status, what it picked and produced, its Shopify sync state, and the dates it started and completed. Each row carries its own next-step button and a **⋯** menu.

<Aside type="note" title="Build runs need the Enhanced plan">
On a store without it, the Build runs card names the tier and offers one way to upgrade. Everything
else on the work order still works.
</Aside>

## On this page

- The three modes
- Starting a build run
- The pick → complete cycle
- Cancel vs. reverse
- Reversing every build at once
- The inventory ledger
- Multi-item builds
- Whole-unit consumption
- The readiness banner
- Pre-pick warnings
- Recorded production runs

## The three modes

Every build run asks **"What should this run do?"** once, at the start, with three answers. The mode is fixed for the life of the run.

| Mode | Pick + complete | QC | Output produced |
|---|---|---|---|
| **Pick only** | Two-step: pick now, complete later as a separate action. | Optional, added afterwards. | At completion, immediately. |
| **Pick and complete** | One-shot: pick and complete in the same action. | Optional, added afterwards. | Immediately at the end of the action. |
| **Pick, complete and send to QC** | One-shot: pick and complete in the same action. | Expected. The run waits for a review. | Deferred — output only lands in pre-assembled stock once a QC review approves it. |

A merchant guide that walks all three modes side-by-side lives at [work-order flows](/guides/work-order-flows/).

## Starting a build run

**Start build run** sits in the Build runs card's heading row, and it is also the work order's primary button while there is work left to do. In `draft` it is disabled with **Mark the work order ready first** beside it; on a completed or cancelled work order it is gone.

The dialog, **Start a build run**, asks for:

- **What should this run do?** — one of the three modes above.
- **Production location** — taken from the work order. A change here is saved on the work order when you start the run; **Cancel** saves nothing. The same goes for each material's **From** location in the preview.
- **Items to build** — a tick and a quantity per item, each one showing "*N* of *M* still to build". An item with nothing left to build cannot be ticked, and a quantity above what remains is refused on the spot.
- **Note** — anything worth recording about this run.

Under that, a live preview table — **What this run will consume** — lists every material the run would take: **Material · SKU · Consumed · Shortage · From**. It refreshes as you change the items and quantities.

If any material would go into negative inventory, a **readiness banner** appears at the top of the dialog — and whether you can still start depends on the *Allow negative inventory* setting. See [The readiness banner](#the-readiness-banner) and [Pre-pick warnings](#pre-pick-warnings) below.

One primary button, **Start build run**, fires the run.

**One start at a time per work order.** While a build run of a work order is being started, a second start of the same work order — from another tab, or a colleague — is refused with *"Another build-run action on this work order is still talking to Shopify. Wait for it to finish, then try again."* Nothing is written; try again a moment later. Edits to the work order's plan made during that moment get the same answer.

**Up to 250 inventory lines per run.** Each step of a run (the pick, the completion, a cancel or a reverse) reaches Shopify as one change that either applies completely or not at all, and Shopify accepts at most 250 lines in one change. A line is one material at one location, so a recipe with 64 components picked from one location is 64 lines, however many units you build. A disassembly counts the finished good plus every material it gives back. A run that would need more is refused before anything happens: *"This run moves 260 inventory lines in Shopify; one run can move at most 250. Nothing was changed. Start the run for fewer items."* Tick fewer items and start the rest in a second run.

## The pick → complete cycle

A build run goes through these states:

```text
picking ─complete──> built ─reverse─> reversed
   │
   ├─cancel──> cancelled
```

- **`picking`** — the run has reserved (or "committed") the materials but hasn't consumed them yet. Materials are no longer "available" but still on the books locally. In **Pick and complete** and **Pick, complete and send to QC**, the run only stays in `picking` momentarily before transitioning to `built`.
- **`built`** — the materials have been consumed (`committed → consumed` in the ledger), and the produced units have either landed in pre-assembled stock (the first two modes) or are awaiting QC (the third).
- **`cancelled`** — you cancelled the pick before completing. Reserved materials go back to available stock; nothing is consumed; nothing is produced.
- **`reversed`** — you reversed a built run. Materials go back from `consumed` to available; produced output is rolled back; the work order's built quantity for the run's items drops.

You can't transition out of `built` except by reversing. You can't transition out of `cancelled` or `reversed` at all.

The row's next-step button follows this: **Complete** while the run is picking, then **Review** (a run built for QC and waiting) or **Add QC** (a run built without it), and nothing once a review has been recorded. The **⋯** menu carries **Complete run**, **Cancel run**, **Reverse run** and **Retry Shopify sync** as each becomes relevant.

## Cancel vs. reverse

Both undo a build run, but they target different states:

- **Cancel** is for an open `picking` run. The materials it reserved haven't been consumed yet, so cancellation just releases them back into available stock. No consumption ever happened. The confirm says so: *"The materials this run picked are given back. The run stays on record as cancelled."*
- **Reverse** is for a completed `built` run. The materials *have* been consumed, so reversal walks the ledger backwards: materials go from `consumed` back to `committed`, then from `committed` back to available. Produced output is rolled back. If the work order is `completed` and you reverse all its build runs, Assemblified un-completes it so totals stay consistent.

If you reverse a run that was synced to Shopify, the Shopify side is also reversed — the original decrement gets a compensating increment, and the completion-time output sync is rolled back. See [Shopify sync](/features/work-orders/shopify-sync/) for the full retry/compensation behaviour.

Two cases where a cancel or a reversal is refused and nothing changes:

- **Shopify has not confirmed the run's finished-good update.** While Assemblified is still waiting to learn whether Shopify applied the finished goods a run produced, the run cannot be cancelled or reversed — undoing it now would hand back the components without knowing whether Shopify holds the units. Try again once the update is confirmed, or once you have checked Shopify and pressed **Mark as confirmed** on the work order's banner.
- **Shopify does not accept the finished goods being taken back.** A reversal takes the finished goods off in Shopify first. If Shopify refuses that, or does not confirm it, the reversal stops there: the run stays `built` and its components are not returned. Fix the cause and reverse again.

## Reversing every build at once

**Reverse all builds**, in the work order's **More actions** menu, reverses every execution on the work order that has not already been reversed — in one action instead of run by run. It is offered while the work order is past `ready` and still has standing builds.

## The inventory ledger

Every material movement on a work order is recorded. You don't normally need to read it directly, but understanding the model helps when you're chasing a discrepancy.

The "buckets" are:

- **virtual_available** — local-to-Assemblified inventory at virtual locations.
- **preassembled_available** — your <Term def="pre-assembled">pre-assembled stock</Term> shelf.
- **shopify_available** — Shopify inventory (Assemblified doesn't own the number; the record captures the intent and a Shopify update is pushed alongside).
- **committed** — reserved by a `picking` run, not yet consumed.
- **consumed** — used up in a `built` run. Once consumed, it's gone.
- **produced** — newly built output sitting in pre-assembled stock. Once produced, it's part of the shelf.

The "phases" are:

| Phase | What moves where |
|---|---|
| `pick` | available → `committed` (per material). |
| `complete` | `committed → consumed` (inputs); `null → produced` (outputs). |
| `cancel` | `committed → available` (inputs only; no consumed, no produced). |
| `reverse` | Two-step: `consumed → committed`, then `committed → available`. Plus `produced → null` for outputs. |
| `qc_approve` | For a run started in **Pick, complete and send to QC**: `null → produced` for the units a review approves. |
| `qc_scrap` | Reverses produced output for scrapped units (only where the output was not deferred). |

Every entry carries the quantity, source bucket, target bucket, phase, and the unit cost stamped at the moment of consumption — that last one is what the **Actual** cost figure adds up to.

## Multi-item builds

You can build several items in one run. Assemblified merges the per-item material plans:

- If two items both need material `R` from location `L`, the run picks the combined quantity in one go.
- The pick math correctly accounts for the per-item ratio so a partial run still satisfies the right portion of each item.
- After the run completes, each item's built quantity increments by what was assigned to it.

Multi-item builds shine when the items share components — you avoid two trips to the shelf for the same material.

**You don't have to build shared items together.** If two items share a component and you build them in separate runs, each run still consumes its item's full share of that component. Once every item is built, the work order has consumed exactly what it planned, and — if nothing was changed along the way — its Actual cost matches the plan.

## Whole-unit consumption

When a work order plans fractional quantities of a material — say, 1.5 cans of paint per unit — and you do many incremental builds, the picks would naturally be fractional too. For materials sold in whole units, that's awkward.

The Materials tab's row **⋯** menu carries **Consume in whole units only** for exactly this. A line with it on wears a **Whole units** badge in the Consumption column, and **Allow fractional consumption** in the same menu turns it back off. With it on:

- Each pick rounds the consumed quantity **up** to the next whole unit.
- Across all picks on the work order, the **last pick** takes the residual so the total still equals the planned quantity exactly.
- The cost is unchanged — Planned and Actual still agree once the work order is fully built.

Use it for materials sold in integer-only units (cases of beer, cans of paint, boxes of nails). Leave it off for materials priced and tracked per fractional unit (kg of flour).

## The readiness banner

When the preview finds that the run would take a material below zero, the Start a build run dialog shows **one banner at the top**, and what it offers depends on who is allowed to go negative.

**"Below zero" means** the quantity you asked for is larger than the stock available at the location the run consumes from — for a Shopify-tracked material that is Shopify's own live availability at that location, not a number Assemblified keeps on the side; for a virtual material or pre-assembled stock it is Assemblified's own figure. The check runs again when you press Start, so a colleague who picks the same shelf in the meantime cannot slip a run past it.

| What the banner says | Can you start? |
|---|---|
| **This run would take stock below zero** (red) — *"Allow negative inventory" is off for this store* | No. **Start is disabled.** The banner offers **Open settings**, because the store setting is the one thing you can change from here that makes the run possible. Otherwise: add stock, or build fewer units. |
| **This run would take stock below zero** (red) — *negative inventory is switched off for this work order* | No. **Start is disabled**, and there is no settings link: the switch belongs to the work order itself, not to the store. Add stock, or build fewer units. |
| **Some materials will go below zero** (amber) | Yes. The banner counts the essential and non-essential shortages, marks them in the plan below, and says "You can still build. Component stock will go negative at this location." |
| **Some materials could not be checked** (blue) | Yes. Assemblified could not read Shopify's level for those lines, so it makes no promise about them. It is never a refusal — the run is verified again when you start it. |

**A work order's own setting beats the store's.** Each work order carries its own *Allow negative inventory* choice with three states: inherit the store setting (the default), always allow, or always refuse. A work order set to refuse is refused even on a store that allows negative inventory, and a work order set to allow starts even on a store that clamps at zero. That is why the banner names *which* of the two said no — and why only the store variant offers a settings link.

<Aside type="caution" title="There is no switch for this on the work order page">
The per-work-order override exists on the record and Assemblified honours it, but the **Edit
details** dialog does not offer it. Unless something set it deliberately — through the app's API or
an integration — every work order inherits the store setting, and the store variant of the banner is
the one you will meet.
</Aside>

The store-level switch lives under **Settings → General → Inventory sync**; see [Negative inventory](/getting-started/initial-setup/#negative-inventory) for what turning it on means everywhere else.

## Pre-pick warnings

The preview table marks its shortages by tier:

- **Essential** materials (materials and pre-assembled subassemblies the build can't proceed without) are flagged in red.
- <Term def="non-essential-material">**Non-essential**</Term> materials (virtual buffers, for example) are flagged in amber.

The tiers say which shortage matters; whether you may proceed at all is [the readiness banner](#the-readiness-banner)'s answer. Where negative inventory is allowed, you can proceed — and if the material would be one Shopify refuses outright, a guard names those lines before the push rather than after. If you're confident the inventory is wrong (untracked donation, stock found in a back room), proceed and adjust the inventory afterwards.

## Recorded production runs

A work order that [order production](/features/work-orders/order-production/) wrote for a reserved Shopify order already arrives **Completed**, with exactly one build run that is already built. That run records units your team confirmed as physically built; the order's held components were consumed when you confirmed them, not by a pick. Its row offers no actions: it cannot be cancelled or reversed, no new run can be started on the work order, and **Reverse all builds** is not offered. The work order's page says it is read-only.

## Related

- [Work-order flows guide](/guides/work-order-flows/) — the three modes walked through with a worked example.
- [Quality Control](/features/work-orders/qc/) — what happens after a `built` run that needs review.
- [Shopify sync](/features/work-orders/shopify-sync/) — pick-time and completion-time pushes, plus retry behaviour.
- [Glossary](/reference/glossary/).

<DocUpdated date="2026-11-19" />