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
docs(changelog): MRP planning actions (#1861)
Sid9703b387e314
diff --git a/docs/content/changelog/2026-10-07-mrp-planning-actions.mdx b/docs/content/changelog/2026-10-07-mrp-planning-actions.mdxnew file mode 100644index 0000000000..f8b2460ff0--- /dev/null+++ b/docs/content/changelog/2026-10-07-mrp-planning-actions.mdx@@ -0,0 +1,98 @@+---+title: "MRP planning actions, date range filters, and job due dates in the MES"+description: "MRP now keeps a worklist of planning actions, lists filter by date range, and the MES shows job due dates."+date: "2026-10-07"+tags: ["planning", "production", "self-hosting"]+image: "/changelog/2026-10-07-mrp-planning-actions.svg"+---++MRP used to make one suggestion, Order, worked out again on every page load and then thrown away. A planner could not dismiss it, hand it to someone, or see that an order already placed should move. This release turns that suggestion into a list of work.++## Planning actions++[Planning](/docs/reference/planning#planning-actions) now writes seven kinds of action after every MRP run: Order, Make, Expedite, Defer, Cancel, Increase and Decrease. The change actions are worked out against your open purchase order lines and jobs.++Each row in the purchasing and production planning grids lists its actions with one button each:++- **Apply** changes supply that is not yet committed.+- **Review on PO** or **Review on Job** opens supply that is.+- **Dismiss** hides an action, and it stays hidden on later runs until the suggestion changes.+- **Assign to Me** sets the owner, and MRP keeps a hand-set owner on later runs.++Every action has a [responsible employee](/docs/reference/planning#planning-ownership), taken from the item, then its item group, then the location, then the company default. A [reschedule tolerance](/docs/reference/planning#reschedule-tolerance), 7 days by default, keeps small date differences out of the list. Both are set under `Settings → Planning`.++## Forecasts no longer double count++A [demand forecast](/docs/reference/forecast) of 10 and a sales order for 10 used to plan 20. Open sales order lines and job materials now consume the forecast for the same part and location: the same week first, then back up to 4 weeks, then forward 1. Only what is left drives demand. Change the reach on the Forecast Consumption card under `Settings → Planning`.++## Planning horizon and run time++A long planning window buried next week's work. The [planning horizon](/docs/reference/planning#planning-horizon) is a date per row, and a row shows only the actions and suggested orders due by it. MRP still plans the whole window. Set a company default under `Settings → Planning` and override it on an item's planning tab.++MRP runs every 3 hours by default. You can now [run it once a day](/docs/reference/planning#when-it-runs) at an hour you pick, on your company's time zone.++The weekly projection in both grids is one Stock Availability strip in place of 48 columns, with new Latest Order Date, 1st Negative On Hand and Item Group columns.++## Date range filters++Date columns across Carbon filter to a range, with a From and a To picker. Leave either side empty for "on or after" or "on or before". Both ends are inclusive, and the filter lives in the URL, so it works with saved views and links.++It is on [jobs](/docs/reference/jobs), [sales orders](/docs/reference/sales-orders), [quotes](/docs/reference/quotes), [purchase orders](/docs/reference/purchase-orders), [invoices](/docs/reference/invoices), [payments](/docs/reference/payments), journal entries, [receipts](/docs/reference/receipts), [shipments](/docs/reference/shipments), [picking lists](/docs/reference/picking), [issues](/docs/reference/issues), gauges, change notices and holidays, among others. The [batch builder](/docs/reference/batching#building-a-batch)'s Custom due range can be open-ended too.++## Job due dates in the MES++The [MES](/docs/reference/mes) showed a sub-assembly operation's scheduler target as the job's Due Date, and that target was weeks too early. The scheduler counted the sub-assembly's lead time on top of its own operations. That double count is gone. The MES now shows the job's due date, with the operation's own target beside it as "Operation needed by".++Schedule cards that are past due, or in a batch that finishes after a job's due date, turn red. Cards due today or tomorrow are orange.++## Release jobs in bulk++Select jobs in the Jobs list and choose **Release Jobs** from the actions menu. Draft and Planned jobs in the selection are [released](/docs/reference/jobs), and any job Carbon could not release is named.++## Revisions keep their setup++A new [item](/docs/reference/items) revision started with default planning and no suppliers. It now inherits the source revision's batch size, scrap percent, lead time, reorder policy per location, item group, preferred supplier, and supplier parts with their price breaks. Costs, sale price and stock are not copied.++## Self-hosting++Sign-in was broken on [self-hosted](/docs/platform/self-hosting) builds behind a proxy that ends TLS. Carbon now treats the host of `ERP_URL` and `MES_URL` as an allowed origin, so set both.++- Assets are compressed once at build and served from memory. The ERP's app bundle went from 19,236 to 61,323 requests a second in our test.+- Carbon checks its whole [environment](/docs/platform/self-hosting/environment-variables) at startup and reports every problem together, grouped, without printing a secret. No deployment has to change what it sets.+- Migrations and seeding run on a smaller `bootstrap` image, which replaces the `ops` image.++<Accordion title="Improvements">++- The storage units card on an item's [inventory](/docs/reference/inventory) page groups stock by unit, shows each lot's expiry, and has a search above eight rows.+- A [schedule](/docs/reference/scheduling) run writes a whole location in one transaction. A 13-job location went from 253 statements to 61.+- Dragging a card on the schedule board no longer drops frames on large boards.+- Live updates reconnect only after a tab has been hidden for five minutes.+- A link starts loading on press, and the click reuses that load.+- "Finish" in the MES is now "Mark as Done".++</Accordion>++<Accordion title="Fixes">++- Moving from one record to another of the same kind no longer leaves the first record's values in forms and notes.+- A quote's summary total drops deleted lines.+- A new quote line appears in the explorer without a reload.+- Changing an invoice's customer to one with no currency now saves.+- A first sign-in with no company reaches onboarding.+- Deleting an item deletes its supplier price breaks with it.+- Nightly maintenance dispatch no longer skips companies.+- The error screen shows the real status and message.++</Accordion>++<Accordion title="Misc">++- `crbn up` starts eight services, about 0.9 GB, with Studio, the edge runtime and imgproxy behind `--full`.+- `crbn` stops an idle stack's containers after 30 minutes and its dev servers after 2 hours, and wakes them on the next request.+- `crbn prune` removes the stacks of worktrees deleted outside `crbn remove`.+- Image builds no longer export a layer cache, and the deploy uses the images CI already published.+- The MCP manifest generator sets its own heap limit, and a CI install no longer generates the manifest.+- The README has its functionality and architecture diagrams back.+- A browser test playbook covers revision inheritance.++</Accordion>diff --git a/docs/public/changelog/2026-10-07-mrp-planning-actions.svg b/docs/public/changelog/2026-10-07-mrp-planning-actions.svgnew file mode 100644index 0000000000..2250e20594--- /dev/null+++ b/docs/public/changelog/2026-10-07-mrp-planning-actions.svg@@ -0,0 +1,53 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 675" fill="none">+ <rect width="1200" height="675" fill="#09090B"/>+ <rect x="150" y="146" width="590" height="400" rx="16" fill="#141518" stroke="#26272B" stroke-width="1.5"/>+ <path d="M150 192 H740" stroke="#26272B" stroke-width="1.5"/>+ <circle cx="178" cy="169" r="4" fill="#2E3036"/>+ <circle cx="196" cy="169" r="4" fill="#2E3036"/>+ <circle cx="214" cy="169" r="4" fill="#2E3036"/>+ <rect x="190" y="214" width="96" height="10" rx="5" fill="#43454D"/>+ <rect x="190" y="236" width="150" height="8" rx="4" fill="#2E3036"/>+ <path d="M190 296 H676" stroke="#212329" stroke-width="1.5"/>+ <path d="M190 346 H676" stroke="#212329" stroke-width="1.5"/>+ <path d="M190 396 H676" stroke="#212329" stroke-width="1.5"/>+ <rect x="460" y="446" width="54" height="30" fill="#A3423C"/>+ <path d="M190 446 H676" stroke="#43454D" stroke-width="1.5" stroke-dasharray="5 7"/>+ <path d="M190 290 H244 V319 H298 V346 H352 V374 H406 V406 H460 V476 H514" stroke="#43454D" stroke-width="3" stroke-linejoin="round" fill="none"/>+ <path d="M514 296 H568 V334 H622 V360 H676" stroke="#43454D" stroke-width="3" stroke-linejoin="round" fill="none"/>+ <path d="M514 476 V296" stroke="#00B0FF" stroke-width="3" stroke-linecap="round"/>+ <circle cx="514" cy="296" r="6" fill="#00B0FF"/>+ <rect x="194" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="248" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="302" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="356" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="410" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="464" y="500" width="46" height="14" rx="4" fill="#A3423C"/>+ <rect x="518" y="500" width="46" height="14" rx="4" fill="#0B3C50"/>+ <rect x="572" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="626" y="500" width="46" height="14" rx="4" fill="#2E3036"/>+ <rect x="700" y="214" width="340" height="250" rx="20" fill="#1B1C20" stroke="#00B0FF" stroke-width="1.5"/>+ <circle cx="748" cy="262" r="17" fill="#0B3C50"/>+ <path transform="translate(748 262)" d="M-7 0 H7 M0 -7 V7" stroke="#00B0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>+ <rect x="780" y="250" width="131" height="10" rx="5" fill="#43454D"/>+ <rect x="780" y="268" width="77" height="8" rx="4" fill="#212329"/>+ <rect x="946" y="249" width="62" height="26" rx="13" fill="#00B0FF" stroke="#00B0FF" stroke-width="1.5"/>+ <path d="M724 290 H1016" stroke="#26272B" stroke-width="1.5"/>+ <circle cx="748" cy="318" r="17" fill="#22262C"/>+ <path transform="translate(748 318)" d="M-6 6 L6 -6 M-2 -6 H6 V2" stroke="#43454D" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>+ <rect x="780" y="306" width="97" height="10" rx="5" fill="#2E3036"/>+ <rect x="780" y="324" width="63" height="8" rx="4" fill="#212329"/>+ <rect x="946" y="305" width="62" height="26" rx="13" fill="#1B1C20" stroke="#26272B" stroke-width="1.5"/>+ <path d="M724 346 H1016" stroke="#26272B" stroke-width="1.5"/>+ <circle cx="748" cy="374" r="17" fill="#22262C"/>+ <path transform="translate(748 374)" d="M-8 0 H7 M2 -5 L7 0 L2 5" stroke="#43454D" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>+ <rect x="780" y="362" width="128" height="10" rx="5" fill="#2E3036"/>+ <rect x="780" y="380" width="71" height="8" rx="4" fill="#212329"/>+ <rect x="946" y="361" width="62" height="26" rx="13" fill="#1B1C20" stroke="#26272B" stroke-width="1.5"/>+ <path d="M724 402 H1016" stroke="#26272B" stroke-width="1.5"/>+ <circle cx="748" cy="430" r="17" fill="#22262C"/>+ <path transform="translate(748 430)" d="M-5 -5 L5 5 M5 -5 L-5 5" stroke="#A3423C" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>+ <rect x="780" y="418" width="132" height="10" rx="5" fill="#2E3036"/>+ <rect x="780" y="436" width="75" height="8" rx="4" fill="#212329"/>+ <rect x="946" y="417" width="62" height="26" rx="13" fill="#1B1C20" stroke="#26272B" stroke-width="1.5"/>++</svg>diff --git a/docs/scripts/generate-changelog-thumbnail.mjs b/docs/scripts/generate-changelog-thumbnail.mjsindex 0615491d72..df93525914 100644--- a/docs/scripts/generate-changelog-thumbnail.mjs+++ b/docs/scripts/generate-changelog-thumbnail.mjs@@ -75,6 +75,47 @@ const M = {dot(954, 308, 17, "#22262C"), dot(922, 308, 17, ACC_BG)].join("\n");},+ /* MRP: projected stock steps down week by week, dips below zero, and an order lifts+ * it back. Beside it, the worklist of actions that came out of the run. */+ planning: (r) => {+ const W = 54, X = 190, ZERO = 446, dip = pick(r, 4, 5);+ const levels = [0, 1, 2, 3, 4, 5, 6, 7, 8].map((i) =>+ i < dip ? 156 - i * pick(r, 28, 34) : i === dip ? -30 : 150 - (i - dip - 1) * pick(r, 30, 38));+ const y = (i) => ZERO - levels[i];+ const steps = (from, to) => {+ let d = `M${X + from * W} ${y(from)}`;+ for (let i = from; i <= to; i++) d += `${i > from ? ` V${y(i)}` : ""} H${X + (i + 1) * W}`;+ return ` <path d="${d}" stroke="${MID}" stroke-width="3" stroke-linejoin="round" fill="none"/>`;+ };+ const jump = X + (dip + 1) * W;+ const icons = [+ "M-7 0 H7 M0 -7 V7",+ "M-6 6 L6 -6 M-2 -6 H6 V2",+ "M-8 0 H7 M2 -5 L7 0 L2 5",+ "M-5 -5 L5 5 M5 -5 L-5 5",+ ];+ const actions = icons.map((d, i) => {+ const cy = 262 + i * 56, hot = i === 0;+ return [dot(748, cy, 17, hot ? ACC_BG : "#22262C"),+ ` <path transform="translate(748 ${cy})" d="${d}" stroke="${hot ? ACCENT : i === 3 ? RED : MID}" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>`,+ bar(780, cy - 12, pick(r, 96, 132), hot ? MID : DIM, 10, 5),+ bar(780, cy + 6, pick(r, 54, 84), FAINT, 8, 4),+ ` <rect x="946" y="${cy - 13}" width="62" height="26" rx="13" fill="${hot ? ACCENT : PANEL2}" stroke="${hot ? ACCENT : STROKE}" stroke-width="1.5"/>`,+ i < 3 ? hr(724, cy + 28, 292, STROKE) : ""].join("\n");+ });+ return [panel(150, 146, 590, 400), chrome(150, 146, 590),+ bar(X, 214, 96, MID, 10, 5), bar(X, 236, 150, DIM, 8, 4),+ ...[0, 1, 2].map((i) => hr(X, 296 + i * 50, 9 * W)),+ ` <rect x="${X + dip * W}" y="${ZERO}" width="${W}" height="30" fill="${RED}"/>`,+ ` <path d="M${X} ${ZERO} H${X + 9 * W}" stroke="${MID}" stroke-width="1.5" stroke-dasharray="5 7"/>`,+ steps(0, dip), steps(dip + 1, 8),+ ` <path d="M${jump} ${y(dip)} V${y(dip + 1)}" stroke="${ACCENT}" stroke-width="3" stroke-linecap="round"/>`,+ dot(jump, y(dip + 1), 6, ACCENT),+ ...[0, 1, 2, 3, 4, 5, 6, 7, 8].map((i) =>+ bar(X + 4 + i * W, 500, W - 8, i === dip ? RED : i === dip + 1 ? ACC_BG : DIM, 14, 4)),+ panel(700, 214, 340, 250, 20, PANEL2, ACCENT), ...actions].join("\n");+ },+gantt: (r) => {const lanes = [0, 1, 2, 3, 4, 5].map((i) => {const hot = i === 2, x = pick(r, 40, 330), w = pick(r, 130, 250);@@ -256,6 +297,7 @@ const M = {const MOTIFS = [["speed", /faster|speed|performance|latency/i],["dashboard", /dashboard|time clock|timecard|report/i],+ ["planning", /mrp|planning action/i],["gantt", /schedul|capacity|gantt/i],["merge", /batching|batch |merge|consolidat/i],["flow", /workflow|automation|trigger/i],