Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
MES Material-Picking Settings (Part 1 + Part 2)
Last tested: 2026-07-29
Routes: ERP /x/settings/production, ERP /x/settings/inventory
Prerequisites
- Migrations applied +
pnpm run generate:types(addscompanySettings.autoSelectMaterialWithoutPickingList,companySettings.incompletePickingListPolicy, and thePartialpickingListStatusenum value).
Steps
Part 1 — Production settings: pre-select toggle
- Navigate
/x/settings/production. - Card "Pre-select material without a picking list" holds a bare
<Switch>(no aria-label). It is the 2nd switch on the page (1st = "Auto-start timer on open"). Grab it viadocument.querySelectorAll('[role=switch]')[1]. - Click it → toast "Material pre-selection enabled" / "…disabled";
aria-checkedflips. Persists across reload (loader reads the column).
Part 2 — Inventory settings: incomplete-pick policy
- Navigate
/x/settings/inventory. - Card "Finishing an incomplete pick" → a
ChoiceSelect(the 3rd combobox on the page, immediately before the 3rd "Save" button). Options: "Warn but allow" (warn, default) / "Block with an error" (error). - Click the combobox → click the desired option → the hidden input
input[name=incompletePickingListPolicy]updates towarn/error. - Submit the 3rd
Saveform viarequestSubmit(not a click) → toast "Picking list completion policy updated". Persists across reload.
Selector Notes
- Both controls lack accessible labels on the interactive element itself
(label text lives in the sibling CardHeader), so target by position:
2nd
[role=switch](Part 1), 3rdcombobox/ 3rdSave(Part 2). - The hidden
input[name=incompletePickingListPolicy]is the source of truth for the submitted value — verify it before submitting.
Downstream behavior (verified via DB trigger, not browser — see below)
update_picking_list_status()trigger: all lines resolved + any Short → headerPartial; fully picked →Completed; unpick from a terminal state →In Progress(never stuck). Enum acceptsPartial.- The MES Finish flow (
/x/picking/:id→ status action) enforces the policy server-side (error blocks; warn → acknowledge modal → Partial). NOT yet browser-tested — requires a generated picking list (empty dev DB has none).
Common Failures
- Switch/combobox "click does nothing" — ref shifted between
snapshot -icalls; re-snapshot and grab a fresh ref, or target by DOM position.