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
Merge remote-tracking branch 'origin/main' into feat/sub-assembly-motion-path
aashu59185fbbe545
diff --cc .ai/lessons.mdindex 6400e4437e,a0d3227f33..7450af46f0--- a/.ai/lessons.md+++ b/.ai/lessons.md@@@ -3364,42 -3416,144 +3416,184 @@@ of `salesInvoice`; backfilled by `20261**Applies to:** `packages/react/src/utils/generatedAvatar.ts`; any isomorphic code that imports JSON from a dependency.+## The three.js rotate gizmo grabs whatever sits under its center++**Context:** The assembly path editor shows drei `TransformControls` (`mode="rotate"`) on a selected waypoint, whose draggable sphere sits at the gizmo's center.++**Problem:** In rotate mode the gizmo adds an invisible free-rotation picker — a sphere of radius 0.7 × gizmo size (`XYZE` in three-stdlib `controls/TransformControls.js`) — centred on its object. Dragging the waypoint sphere started that free rotation as well as the drag, so one gesture moved the part and spun it at once (2026-10-08).++**Rule:** Never let a rotate gizmo and another drag handle share a position. Make it a mode: either the handles drag or the rings show, never both. The path editor's Move / Rotate tool is the precedent (`MotionPathEditor.tsx`, `tool`).++**Applies to:** any `TransformControls` / `PivotControls` placed on top of an existing pointer handle in `packages/viewer`.++## Browser-testing the 3D assembly page: one session, restart often++**Context:** Driving `/x/assembly/:id` with `agent-browser` for screenshots and drags (2026-10-08).++**Problem:** After roughly 40 screenshots of the WebGL page the renderer reached 3 GB+, snapshots hung for over a minute, and a later revalidation failed with "Failed to fetch" plus "WebGL Context Lost". On a fresh dev server the login's Continue button also stays disabled until hydration finishes, which looks like a broken bot check.++**Rule:** Set `AGENT_BROWSER_SESSION` to the worktree's own name, `agent-browser close` and reopen after ~40 shots, and reload the login page once if Continue stays disabled. Drive the canvas with `mouse move/down/up`, not `click`. Radix menus ignore synthetic clicks there — move the mouse off the menu and use the arrow keys plus Enter.++**Applies to:** browser verification of `packages/viewer` features in the ERP editor; `.ai/playbooks/assembly-sub-assembly-motion-path.md`.++## drei GizmoHelper resets camera.up after a viewcube click++**Context:** The assembly player shows a step's build orientation by rolling the camera (`camera.up` = the bench's up in the model frame, `packages/viewer/src/orientation.ts`).++**Problem:** drei's `GizmoHelper` writes `camera.up` on every frame of a face-click tween and resets it to the value it saw at mount when the tween ends (`core/GizmoHelper.js`). After one viewcube click the build stood upright again, and every later turn started from the wrong up.++**Rule:** Do not patch drei. Anything that owns `camera.up` must re-assert it in its own frame loop whenever it drifts outside its own animation.++**Applies to:** `packages/viewer/src/useBuildFrame.ts` (its `useFrame`), any code that sets `camera.up` under `GizmoHelper` or `OrbitControls`.++## Re-applying demo data runs code a first apply never reaches++**Context:** A new table (`customerContractInvoiceLine`) got a CHECK that needs `customerContractInvoiceId` OR `memoId`. The demo datasets seed it with only the invoice.++**Problem:** Settings → Demo Data on a company that already had data failed with "new row … violates check constraint". The wipe that runs first nulls every nullable FK pointing at a table it clears, which emptied both columns. `pnpm db:check:datasets` stayed green: it applied each dataset once, to an empty scratch company, so the wipe never met a seeded row.++**Rule:** A seeded table whose CHECK needs one of several nullable FKs goes in `PARENT_CHECK_TABLES` (`packages/database/src/datasets/wipe.ts`). The dataset check now re-applies each dataset over itself, so this fails before commit. When a test only exercises the first run of an idempotent operation, also run it a second time.++**Applies to:** `packages/database/src/datasets/` (wipe, verify), migrations that add CHECKs over nullable FK columns.+++ ## A value two layers must agree on lives once, in the client-safe pure module++ **Context:** The accounting enable wizard (ERP) and the `activate-accounting` server function both decide whether Migration Clearing totals zero. The wizard uses the answer to offer "Enable accounting". The server function uses it to refuse the enable. The wizard steps also pass the cutover date to each other in a search param.++ **Problem:** Until 2026-10-09 each layer kept its own copy. `MigrationClearingTable.tsx` defined `MIGRATION_CLEARING_TOLERANCE = 0.01` and `isMigrationClearingZero`. `activate-accounting/index.ts` defined a second `MIGRATION_CLEARING_TOLERANCE`. `accounting.server.ts` defined `ACTIVATION_CUTOVER_PARAM`. The copies matched, but nothing kept them matched. If one copy changes, the wizard offers an enable that the server refuses, or hides one that the server accepts. Typecheck cannot see a drift between two literals.++ **Rule:** Put a value that two layers must agree on in one place: the client-safe pure module that both layers already import. Export the predicate, not only the number, so every caller compares the same way. The accounting cutover keeps `MIGRATION_CLEARING_TOLERANCE`, `isMigrationClearingZero`, `MIGRATION_CLEARING_ACCOUNT_CLASS` and `ACTIVATION_CUTOVER_PARAM` in `@carbon/database/accounting-cutover` (commits 38602af774, b9f897608c, f1fe2b6c81). That module reads no database, so the browser can import it.++ **Applies to:** `packages/database/src/accounting-cutover.ts`; `apps/erp/app/modules/accounting/ui/Activation/MigrationClearingTable.tsx`; `apps/erp/app/routes/x+/accounting+/activation.enable.tsx`; `packages/server-functions/src/activate-accounting/index.ts`; any check that a wizard previews and a server function enforces.++ ## A detector and the builder it feeds share one zero-value rule++ **Context:** The accounting enable, and the "Write missing journals" repair, find legacy documents: posted on or after the cutover with no journal (`packages/database/src/legacy-documents.ts`). A builder then writes each document's journal (`packages/server-functions/src/activate-accounting/legacy/`). After that, the enable's re-cost (`activate-accounting/recost.ts`) adjusts the inventory journal pair of each outbound movement whose cost changed.++ **Problem:** The detection and the builders used different zero rules, in both directions:++ 1. The detection found documents that the builders write no line for: a comment-only invoice, a receipt with no received line, a return received at no cost. Such a document got no journal, so every later run found it again.+ 2. The posting core wrote no journal for a zero-cost movement (`valueMovement` skipped the journal when `cost === 0`). When the re-cost gave that movement a cost, it found no pair to adjust and refused with a 409.++ Commit b9f897608c removed zero-value documents from the detection. Commits b9f897608c and 188a710e24 made every outbound cost row write its pair, at zero too.++ **Rule:** Write the zero rule once and apply it on both sides. If the builder writes no line for a document, the detection leaves the document out. If a later step adjusts a line, the builder writes that line even at zero. Pin the pair with a test that runs the detection, the builder, and the detection again: the second detection must find nothing (`activate-accounting/legacy/detection.test.ts`).++ **Applies to:** `packages/database/src/legacy-documents.ts`; `packages/server-functions/src/activate-accounting/legacy/*`; `packages/server-functions/src/activate-accounting/recost.ts`; `valueMovement` in `packages/server-functions/src/lib/post-adjustment.ts`; any detect-then-repair pair.++ ## A migration that re-scopes companies uses the company test of the migration it follows++ **Context:** `20261008211304_reset-accounting.sql` deletes the journals of every company except the demo-template companies. It finds those as the companies that hold a `JE-SEED-%` journal, which only tier 09 of the dataset seed writes. `20261009004448_accounting-cutover.sql` (section 7) then gives the spared companies a cutover, because their history is already in Carbon.++ **Problem:** The second migration first chose its companies by `accountingEnabled = true`. Only the dev CLI ever set that flag. A template applied through onboarding or Settings → Demo Data has it false. So those companies kept their Posted seed journals, but got no cutover. Their seeded Posted Opening Balance then blocked the enable wizard for good. Commit 38602af774 changed the test to the reset's `JE-SEED-%` test.++ **Rule:** If migration B acts on the companies that migration A chose, B copies A's predicate. Do not use a flag that "should" mean the same thing. Before you write the `WHERE`, read A's predicate. Then grep every writer of any flag you plan to use instead.++ **Applies to:** `packages/database/supabase/migrations/20261008211304_reset-accounting.sql`; `packages/database/supabase/migrations/20261009004448_accounting-cutover.sql`; any data migration that follows another data migration.++ ## Removing a feature flag can expose a fail-open `?.data` guard++ **Context:** Before always-posting, the return shipments in `post-shipment` and the sales return receipt in `post-receipt` read the account defaults only when `accountingEnabled` was true. Otherwise `accountDefaults` was null. The journal was written under `if (accountingEnabled && accountDefaults?.data && cost > 0)`. So `accountDefaults?.data` was part of the "accounting is off" test.++ **Problem:** The always-post change removed the flag and kept `if (accountDefaults.data && cost > 0)`. After that, the `.data` check only caught a failed read, and it failed open. If the defaults read failed, the post still wrote its stock and cost rows, but it skipped the journal with no error and no log. Typecheck and the tests passed. Commit b9f897608c makes both paths throw "Error getting account defaults" when the read fails.++ **Rule:** When you remove a flag, read every condition that used the flag. A null check that meant "feature off" becomes a silent error check when the flag goes. Turn a failed read into a throw before any write. Keep only business conditions, such as `cost > 0`, in the `if`.++ **Applies to:** `packages/server-functions/src/post-shipment/index.ts` (return shipments); `packages/server-functions/src/post-receipt/index.ts` (sales return receipt); any flag removal, such as `accountingEnabled` or a plan gate.++ ## The pre-commit Lingui extract reads the working tree, not the commit++ **Context:** `scripts/git-hooks/pre-commit` runs `pnpm lingui:check` when a staged file is TS, JS or `.po`. That script runs `lingui extract --clean` and then compiles. The hook then stages every `packages/locale/locales/**/*.po` file.++ **Problem:** The extract reads the working tree, not the index. On 2026-10-09, commit eac7595333 ran the hook while another session had uncommitted UI edits in the same tree (`PaymentApplyTable.tsx` and others). The extract removed strings that the committed code still uses ("Applied amount for {0}", "Discount for {0}"). It added strings that only the uncommitted code uses ("Apply to {0}", "FX Gain/Loss"). The hook staged all 13 catalogs, with those changes, into that commit. Commit 814631c22f restored catalogs extracted from HEAD in a clean worktree.++ **Rule:** Before you commit TS or JS, run `git status`. If it shows uncommitted `.ts` or `.tsx` edits that are not part of your commit, the hook's catalogs are wrong. A catalog-only commit in the same tree does not fix them, because the hook extracts again from the same dirty tree. Make the catalog commit in a clean tree:++ 1. Run `git worktree add -b i18n-catalogs <path> HEAD`.+ 2. In that worktree, run `pnpm install`.+ 3. In that worktree, run `pnpm lingui:check`, then `pnpm lingui:clean`.+ 4. Stage `packages/locale/locales/*/*.po` there and commit. The hook now extracts from a clean tree.+ 5. In your own tree, run `git merge --ff-only i18n-catalogs`. A fast-forward creates no commit, so no hook runs.+ 6. Remove the worktree and the branch.++ After any commit, check its `.po` diff. A removed `msgid` that HEAD code still uses means that the extract read a dirty tree.++ **Applies to:** `scripts/git-hooks/pre-commit`; `packages/locale/locales/*/*.po`; every workspace that more than one session edits at a time.++ ## One Inngest send carries at most 512 KB, and a rendered email is about 17 KB++ **Context:** `notify` rendered every recipient's notification email in one step, then sent all the `carbon/send-email` events with one `step.sendEvent` (2026-10-09).++ **Problem:** One rendered `NotificationEmail` is about 16.9 KB, because the event carries the full HTML. Inngest accepts at most 512 KB in one send and 4 MB in one step's output. So email to about 30 recipients or more could fail the send, and about 240 filled the step. A group notification reaches those sizes; a test with one recipient never does.++ **Rule:** Size a fan-out by its bytes, not its count. When each event carries a rendered body, render and send it in chunks (`EMAIL_CHUNK` in `notify.ts`), each chunk in its own step with an indexed id (`render-emails-${index}`). A new step id replays a run in flight at deploy, so a send step that changes id sends again for those runs.++ **Applies to:** `packages/jobs/src/inngest/functions/notifications/notify.ts`; any job that fans out events with large payloads.++ ## A failed COPY in a plain-text dump can swallow the rest of the restore++ **Context:** On 2026-10-09 a `crbn restore` of a prod cluster backup ended with ✅. The restored database had no index, constraint, trigger or policy in `public`, and an empty migration ledger. The trailing `migration up --include-all` would then have replayed all 1,159 migrations.++ **Problem:** The local stack's auth, storage and realtime tables come from its own service images, and they are older than prod's. Prod's `storage.objects` has a column (`archived_at`) that the local table does not have. A `COPY` that names an unknown column or table fails when psql parses it, so psql never enters copy mode. It then reads the block's data rows as SQL. In that data an unbalanced quote opened a string that never closed, so psql read the rest of the file as part of it. With `ON_ERROR_STOP=0`, nothing failed. The same drift also reaches DDL. The backup's newer `storage.protect_bucket_control_columns` trigger reads columns that the local `storage.buckets` does not have, so every bucket insert failed. Those service-schema objects survive later restores, because a restore drops only `public`. Separately, a Supabase backup is not one consistent snapshot: it contained payments whose journal it did not hold. So 15 foreign keys could not be validated.++ **Rule:** Do not trust a restore that ran with `ON_ERROR_STOP=0` until you verify it by name. `scripts/restore-database.sh` now does these things:++ 1. It fits each non-public `COPY` to the local columns, and drops the block when the local table does not exist.+ 2. It skips function definitions owned by the auth, storage and realtime admin roles. Those functions belong to the local service images.+ 3. It checks each `public` index, constraint, trigger and policy from the dump, and the ledger row count. It re-adds a foreign key that cannot be validated as `NOT VALID`.+ 4. It exits 1 on any shortfall, and `crbn restore` then does not migrate.++ A ✓ that a script prints after a step that is allowed to fail is not evidence. Read the state back.++ **Applies to:** `scripts/restore-database.sh`, `packages/dev/src/commands/restore.ts`, and any tool that loads a plain-text dump through psql.++ ## A new record type copies its sibling's UI, not the generic archetype++ **Context:** The lessee lease (2026-10-11) shipped a Card form on `new.tsx` that redirected to a 3-pane workspace, with Draft terms edited in the properties panel. Its siblings — the rental agreement and the AR contract — are set up in a full-page wizard (`~/components/Setup`). The user called it a big mistake, and the UI was rewritten.++ **Problem:** The plan named the sibling for the server side (post-lease mirrors the rental functions) but not for the UI, and the design skill's "where create opens" rule sent a record with a workspace to a Card form. The setup wizard was documented nowhere, so the subagent that built the UI followed the generic rule faithfully.++ **Rule:** Before designing a record type, name its closest sibling — the record users would call "the same kind of thing" (rental agreement ↔ lease ↔ contract; sales order ↔ purchase order; RMA ↔ supplier return) — and copy its routes and components file for file: `new`, `$id`, `$id._index`, the setup or detail routes, the module's `ui/` components. The spec and plan state the sibling and the files copied. A deviation from it is a design decision and is asked about first. When the sibling's pattern is missing from `carbon-design`, add it there in the same change (Archetype J was added for this one).++ **Applies to:** `/spec-writing`, `/plan`, `carbon-design`, and any subagent prompt that builds UI.++ ## A dropped column breaks string selects that typecheck cannot see++ **Context:** The several-assets change for lessee leases (2026-10-11) moved twelve columns from `lease` to `leaseLine` and recreated the `leases` view.++ **Problem:** Typecheck passed, but the Lease Liabilities report still selected the moved columns from the view through `fetchAllFromTable(client, "leases", "id, …, lesseeClassification, …")`. The column list is a string, so the report would only have failed at runtime.++ **Rule:** After a migration drops or moves a column, grep every string select of the table and its views (`.select("…")`, `fetchAllFromTable` column lists, embeds) for the old name. Do not rely on typecheck for them.++ **Applies to:** any migration that drops, renames or moves a column.++ ## A caller-supplied document number used to leave the counter behind++ **Context:** Documents take their number from `get_next_sequence` unless the caller supplies one: a custom ID typed into `SequenceOrCustomId`, or an MCP / API upsert (`upsertSalesOrder`, `upsertQuote`, `upsertPurchaseOrder`, `upsertJob`, …) whose create path requires the number.++ **Problem:** A supplied number never moved the `sequence` row. Once the counter reached a number an agent or a user had already used, every new document failed on the unique constraint ("Failed to insert sales order") until someone moved the counter by hand.++ **Rule:** The counter is kept ahead in the database, not in app code: the `sync_advance_document_sequence` after-interceptor moves `sequence.next` past any number saved in the sequence's format, on insert and on a number change. A new numbered table must be added to that interceptor's `CASE` and given the interceptor in `attachments.ts`; the `document-sequence-synced` conformance check fails CI for a new counter that is neither covered nor in its `EXEMPT_COUNTERS`. Never "fix" a collision by retrying `get_next_sequence`.++ **Applies to:** `packages/database/src/event-system/handlers/sync_advance_document_sequence.sql`, `util.document_sequence_pattern`, any table with a readable document number.++ ## An entity in `audit.config.ts` records nothing until its tables have `events: true`++ **Context:** Change notice history (the `changeOrder` audit entity) was empty in the History drawer even with audit logging on (2026-10-08).++ **Problem:** `auditConfig.entities.changeOrder` listed its 4 tables, and `syncAuditSubscriptions` created AUDIT subscriptions for them. But `packages/database/src/event-system/attachments.ts` gave `changeOrder` only a statement broadcast and the 3 child tables no entry at all, so no async event trigger existed and nothing reached the event queue. Every check looked green: subscriptions present, sweeper succeeding, queue empty.++ **Rule:** When you add an entity to `audit.config.ts`, give each of its tables `events: true` in `attachments.ts` and ship it with `pnpm --filter @carbon/database authz migration <name>`. To debug an empty audit log, first check `pg_trigger` for `trg_event_async_*` on the table.++ **Applies to:** `packages/database/src/audit.config.ts`, `packages/database/src/event-system/attachments.ts`.++ ## RLS does not bound an MCP tool handed `db`; its declared permission is the only gate++ **Context:** A 2026-10 security disclosure: an OAuth (MCP connector) token for a user with no accounting permission could create draft GL journals through `inventory_createInventoryReconciliationJournal`.++ **Problem:** Two gaps stacked. The oRPC `gate()` skipped OAuth callers on the theory that RLS bounds them, but a service whose manifest asks for `db` gets `getDatabaseClient()`, the direct connection, which bypasses RLS. And a tool's default permission is its own module plus its verb's action, so the journal tool was gated on `inventory:create` while the Reconcile screen requires `accounting:create`. Supplier and customer bank accounts (`purchasing`/`sales` vs `accounting`) and return-order credits (`purchasing`/`sales` vs `invoicing`) had the same mismatch, for API keys as well.++ **Rule:** Every non-session caller (API key AND OAuth) is gated per operation, OAuth on the user's live permissions in the token's company (`scopesFromPermissions`). When a tool does what an ERP route does, its permission must equal that route's `requirePermissions`: add `@mcp permission` where the default differs, regenerate, and pin it in `OVERRIDES` in `mcp-tool-permissions.test.ts`. Never reason "RLS will catch it" for a tool whose `contextParams` include `db`.++ **Applies to:** `apps/erp/app/routes/api+/v1+/lib/base.server.ts`, `apps/erp/app/routes/api+/mcp+/_index.ts`, every `@mcp`-tagged service taking `db: Kysely<KyselyDatabase>`.+diff --cc apps/erp/app/routes/x+/assembly+/$id.tsxindex 852fa36798,31b4affe6e..5419b643c9--- a/apps/erp/app/routes/x+/assembly+/$id.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.tsx@@@ -11,11 -11,18 +11,12 @@@ importButton,ClientOnly,Spinner,- toast,useInterval,- useMode+ useMode,+ useViewport} from "@carbon/react";import { redirect } from "@carbon/utils";-import type {- AssemblyGraph,- AssemblyPlayerHandle,- CameraPose,- Motion-} from "@carbon/viewer";+import type { AssemblyGraph, AssemblyPlayerHandle } from "@carbon/viewer";import {AssemblyPlayer,buildSubAssemblyPlan,@@@ -656,115 -720,123 +661,118 @@@ export default function AssemblyInstruc/>}content={- <div className="relative bg-card h-[calc(100dvh-var(--topbar-height)-var(--header-height)-var(--content-inset))] w-full">- {glbPath && graphPath && isPlanning && (- <div className="absolute left-1/2 top-3 z-10 flex -translate-x-1/2 items-center gap-2 rounded-full border border-border bg-card px-3 py-1.5 shadow-lg">- <Spinner className="h-3.5 w-3.5" />- <span className="whitespace-nowrap text-xs font-medium text-foreground">- Planning motion…- </span>- <cancelPlanFetcher.Form- method="post"- action={path.to.assemblyJobsCancel(id!)}- >- <input type="hidden" name="kind" value="plan" />- <button- type="submit"- disabled={cancelPlanFetcher.state !== "idle"}- className="text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:opacity-50"+ <div className="flex h-[calc(100dvh-var(--topbar-height)-var(--header-height)-var(--content-inset))] w-full flex-col">+ {isPhone ? <AssemblyInstructionOverviewHero /> : null}+ <div className="relative min-h-0 w-full flex-1 bg-card">+ {glbPath && graphPath && isPlanning && (+ <div className="absolute left-1/2 top-3 z-10 flex -translate-x-1/2 items-center gap-2 rounded-full border border-border bg-card px-3 py-1.5 shadow-lg">+ <Spinner className="h-3.5 w-3.5" />+ <span className="whitespace-nowrap text-xs font-medium text-foreground">+ Planning motion…+ </span>+ <cancelPlanFetcher.Form+ method="post"+ action={path.to.assemblyJobsCancel(id!)}>- Cancel- </button>- </cancelPlanFetcher.Form>- </div>- )}- {glbPath && graphPath ? (- <ClientOnly- fallback={- <div className="flex h-full w-full items-center justify-center">- <Spinner className="h-10 w-10" />- </div>- }- >- {() => (- <AssemblyPlayer- ref={playerRef}- glbUrl={getPrivateUrl(glbPath)}- graphUrl={getPrivateUrl(graphPath)}- steps={viewerSteps}- scopeStepIds={scopeStepIds}- isolationLabel={isolationLabel}- carryInLabel={carryInLabel}- pathToolLabels={pathToolLabels}- activeStepIndex={Math.max(playerStepIndex, 0)}- playFromStepIndex={playFromStepIndex}- playStepNonce={playStepNonce}- onStepChange={(index) => {- const step = steps[index];- if (step)- onSelectStep(step.id, {- selectComponents: false- });- }}- onSelectComponents={onSelectComponents}- onGraphLoaded={setGraph}- highlightedNodeIds={selectedNodeIds}- focusedNodeIds={focusedNodeIds}- readOnly={isDisabled}- editMotion={editMotion}- onMotionChange={onMotionChange}- units={namedUnits}- suppressFallbackMotions={isPlanning}- componentPickerActive={isAddingComponents}- autoPlay={false}- mode={mode}- className="h-full"- />- )}- </ClientOnly>- ) : (isActivelyConverting || isAwaitingPickup) &&- modelUpload?.id ? (- <ModelConvertProgress- modelUploadId={modelUpload.id}- instructionId={id!}- />- ) : modelUpload?.processingStatus === "Failed" ? (- <Empty>- <p className="text-sm font-medium text-foreground">- Couldn't prepare this model- </p>- <p className="max-w-[320px] text-center text-sm text-muted-foreground">- {modelUpload?.processingError ??- "Something went wrong converting the CAD file for 3D viewing."}- </p>- <retryFetcher.Form- method="post"- action={path.to.assemblyModelConvert(id!)}+ <input type="hidden" name="kind" value="plan" />+ <button+ type="submit"+ disabled={cancelPlanFetcher.state !== "idle"}+ className="text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:opacity-50"+ >+ Cancel+ </button>+ </cancelPlanFetcher.Form>+ </div>+ )}+ {glbPath && graphPath ? (+ <ClientOnly+ fallback={+ <div className="flex h-full w-full items-center justify-center">+ <Spinner className="h-10 w-10" />+ </div>+ }>- <Button- type="submit"- variant="secondary"- isLoading={retryFetcher.state !== "idle"}- isDisabled={- retryFetcher.state !== "idle" ||- !permissions.can("update", "production")- }+ {() => (+ <AssemblyPlayer+ ref={playerRef}+ glbUrl={getPrivateUrl(glbPath)}+ graphUrl={getPrivateUrl(graphPath)}+ steps={viewerSteps}+ scopeStepIds={scopeStepIds}+ isolationLabel={isolationLabel}+ carryInLabel={carryInLabel}++ pathToolLabels={pathToolLabels}+ activeStepIndex={Math.max(playerStepIndex, 0)}+ playFromStepIndex={playFromStepIndex}+ playStepNonce={playStepNonce}+ onStepChange={(index) => {+ const step = steps[index];+ if (step)+ onSelectStep(step.id, {+ selectComponents: false+ });+ }}+ onSelectComponents={onSelectComponents}+ onGraphLoaded={setGraph}+ highlightedNodeIds={selectedNodeIds}+ focusedNodeIds={focusedNodeIds}+ readOnly={isDisabled}- editMotion={- editingStepId &&- selectedStep?.id === editingStepId &&- draftMotion- ? { stepId: editingStepId, motion: draftMotion }- : null- }++ editMotion={editMotion}+ onMotionChange={onMotionChange}+ units={namedUnits}+ suppressFallbackMotions={isPlanning}+ componentPickerActive={isAddingComponents}+ autoPlay={false}+ mode={mode}+ className="h-full"+ />+ )}+ </ClientOnly>+ ) : (isActivelyConverting || isAwaitingPickup) &&+ modelUpload?.id ? (+ <ModelConvertProgress+ modelUploadId={modelUpload.id}+ instructionId={id!}+ />+ ) : modelUpload?.processingStatus === "Failed" ? (+ <Empty>+ <p className="text-sm font-medium text-foreground">+ Couldn't prepare this model+ </p>+ <p className="max-w-[320px] text-center text-sm text-muted-foreground">+ {modelUpload?.processingError ??+ "Something went wrong converting the CAD file for 3D viewing."}+ </p>+ <retryFetcher.Form+ method="post"+ action={path.to.assemblyModelConvert(id!)}>- Try again- </Button>- </retryFetcher.Form>- </Empty>- ) : (- <Empty>- <p className="text-sm font-medium text-foreground">- Model not ready yet- </p>- <p className="max-w-[320px] text-center text-sm text-muted-foreground">- This model hasn't been prepared for 3D viewing. It'll- appear here once processing starts.- </p>- </Empty>- )}+ <Button+ type="submit"+ variant="secondary"+ isLoading={retryFetcher.state !== "idle"}+ isDisabled={+ retryFetcher.state !== "idle" ||+ !permissions.can("update", "production")+ }+ >+ Try again+ </Button>+ </retryFetcher.Form>+ </Empty>+ ) : (+ <Empty>+ <p className="text-sm font-medium text-foreground">+ Model not ready yet+ </p>+ <p className="max-w-[320px] text-center text-sm text-muted-foreground">+ This model hasn't been prepared for 3D viewing. It'll+ appear here once processing starts.+ </p>+ </Empty>+ )}+ </div></div>}properties={diff --cc apps/mes/app/components/AssemblyView.tsxindex 51eb6ef49b,6213bcbc22..3100322594--- a/apps/mes/app/components/AssemblyView.tsx+++ b/apps/mes/app/components/AssemblyView.tsx@@@ -45,19 -45,19 +45,20 @@@ importuseKeyboardWedge,useMode,useRouteData,- useShortcutKeys+ useShortcutKeys,+ useViewport} from "@carbon/react";import { distinctItemText, formatDurationMilliseconds } from "@carbon/utils";-import type {- AssemblyStep,- CameraPose,- Fastener,- Motion+import type { AssemblyStep, CameraPose, Fastener } from "@carbon/viewer";+import {+ AssemblyPlayer,+ buildSubAssemblyPlan,+ isOrientation,+ isPlanFlagged,+ isPlayableMotion} from "@carbon/viewer";-import { AssemblyPlayer, buildSubAssemblyPlan } from "@carbon/viewer";import { ModelPreview } from "@carbon/viewer/model-preview";- import { useLingui } from "@lingui/react/macro";+ import { Trans, useLingui } from "@lingui/react/macro";import { useEffect, useMemo, useRef, useState } from "react";import {LuArrowLeft,diff --cc packages/jobs/manifests/schema.jsonindex 88988a7bec,cb4e113fae..4e533a5902--- a/packages/jobs/manifests/schema.json+++ b/packages/jobs/manifests/schema.json@@@ -5,7 -5,7 +5,7 @@@"sourceCompanyId": "schema-baseline","sourceCompanyGroupId": null,"sourceCompanyName": null,- "exportedAt": "2026-10-08T18:09:13.590Z",- "exportedAt": "2026-10-12T23:12:49.551Z",++ "exportedAt": "2026-10-13T12:25:44.953Z","exportedBy": "schema-baseline","label": "schema baseline","includeStorage": "none",@@@ -2614,7 -2630,7 +2630,8 @@@"rootStepId","hiddenComponentNodeIds","usedInStepId",-- "isSubAssembly"++ "isSubAssembly",++ "orientation"]},{diff --cc packages/locale/locales/de/erp.poindex 2634ed99b1,58fc6f83cd..dfe3cc1c1e--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Rollen, die Standardberechtigunmsgid "Room to grow without bolting on more tools"msgstr "Platz zum Wachsen ohne zusätzliche Tools"+msgid "Rotate"+msgstr "Drehen"++ msgid "ROU Amortization"+ msgstr "Amortisation des Nutzungsrechts"++ msgid "ROU Asset"+ msgstr "Nutzungsrecht-Vermögenswert"+msgid "Rounding Account"msgstr "Rundungskonto"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "Der Teil wird als eigener Auftrmsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "Der Teil wird dem bestehenden Bestand entnommen, wenn das übergeordnete Teil hergestellt wird – kein neuer Fertigungsauftrag oder Bestellung."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Der Pfad, auf dem die Komponenten dieses Schritts während der Wiedergabe an ihren Platz fahren; aus dem Modell ermittelt oder von Hand mit Bearbeitungspfad gezeichnet."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Der Pfad, den eine fertige Baugruppe nimmt, wenn sie in den Zusammenbau eintritt. Sie kommt vor den Teilen des Schritts. Bis du mit „Pfad bearbeiten“ einen zeichnest, gleitet sie von der Seite ein."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Der Pfad, den die Komponenten dieses Schritts während der Wiedergabe an ihren Platz fahren. Er wird aus dem Modell berechnet oder mit „Pfad bearbeiten“ von Hand gezeichnet. An jedem Wegpunkt kann ein Teil auch gedreht werden."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Die Zahlung ab dem wirksamen Datum. Die Erhöhung tritt immer noch an jedem Jahrestag des Anfangsdatums ein."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Das Personal auf der Carbon-Seite, das Ihre Umsetzung durchführt, und wie Sie sie erreichen."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "Die Bestellung"msgid "The push to Mount did not start. Try again."-msgstr "Die Übertragung an Mount hat nicht begonnen. Versuchen Sie es erneut."+msgstr "Die Übertragung an Mount konnte nicht gestartet werden. Versuchen Sie es erneut."msgid "The push to Mount failed"- msgstr "Übertragung an Mount fehlgeschlagen"+ msgstr "Die Übertragung an Mount ist fehlgeschlagen"msgid "The push to Mount finished"- msgstr "Übertragung an Mount abgeschlossen"+ msgstr "Die Übertragung an Mount ist abgeschlossen"msgid "The push to Mount finished. Some records need attention"- msgstr "Übertragung an Mount abgeschlossen. Einige Datensätze benötigen Aufmerksamkeit"+ msgstr "Die Übertragung an Mount ist abgeschlossen. Einige Datensätze benötigen Aufmerksamkeit"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "Die Mengenestaffeln, zu denen diese Position bewertet ist; jede Spalte hat seinen eigenen Stückpreis für Käufer–Lieferant-Verhandlungen und für die Umwandlung in nachgelagerte Dokumente."diff --cc packages/locale/locales/en/erp.poindex 012e256678,7d7711d027..ee17132387--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Roles that set default permissimsgid "Room to grow without bolting on more tools"msgstr "Room to grow without bolting on more tools"+msgid "Rotate"+msgstr "Rotate"++ msgid "ROU Amortization"+ msgstr "ROU Amortization"++ msgid "ROU Asset"+ msgstr "ROU Asset"+msgid "Rounding Account"msgstr "Rounding Account"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "The part is manufactured as itmsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "The part is taken from existing stock when its parent is built — no new job or purchase order."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "The people on the Carbon side who will run your implementation, and how to reach them."diff --cc packages/locale/locales/es/erp.poindex c02ca18db8,e79629add8..921adfef31--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Roles que establecen permisos pmsgid "Room to grow without bolting on more tools"msgstr "Espacio para crecer sin añadir más herramientas"+msgid "Rotate"+msgstr "Girar"++ msgid "ROU Amortization"+ msgstr "Amortización ROU"++ msgid "ROU Asset"+ msgstr "Activo por Derecho de Uso"+msgid "Rounding Account"msgstr "Cuenta de redondeo"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "La parte se fabrica como su promsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "La parte se toma del inventario existente cuando se construye su padre - sin nuevo trabajo o orden de compra."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "La ruta que los componentes de este paso recorren hasta su lugar durante la reproducción; se calcula a partir del modelo o se dibuja manualmente con Editar ruta."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "La trayectoria que recorre el subensamble terminado como una pieza cuando se une al conjunto. Llega antes que las piezas propias del paso; hasta que dibujes una con Editar trayectoria, se desliza desde un lado del conjunto."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "La trayectoria que los componentes de este paso recorren hacia su posición durante la reproducción; calculada a partir del modelo, o dibujada manualmente con Editar trayectoria, donde una pieza también puede girarse en cualquier punto de paso."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "El pago a partir de la fecha efectiva. La escalación aún se incrementa en cada aniversario de la fecha de comienzo."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Las personas del lado de Carbon que ejecutarán tu implementación y cómo contactarlas."diff --cc packages/locale/locales/fr/erp.poindex 9aa68cac4d,7fa470d50c..4ef33ff79f--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Rôles qui définissent les autmsgid "Room to grow without bolting on more tools"msgstr "Espace pour croître sans ajouter d'autres outils"+msgid "Rotate"+msgstr "Tourner"++ msgid "ROU Amortization"+ msgstr "Amortissement du droit d'utilisation"++ msgid "ROU Asset"+ msgstr "Actif droit d'utilisation"+msgid "Rounding Account"msgstr "Compte d'arrondi"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "La pièce est fabriquée commemsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "La pièce est prélevée du stock existant lors de la construction de son parent - aucune nouvelle tâche ou bon de commande."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Le chemin que les composants de cette étape parcourent lors de la lecture ; calculé à partir du modèle ou dessiné manuellement avec Modifier le chemin."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Le chemin qu'un sous-ensemble fini parcourt comme une seule pièce quand il se joint à la construction. Il arrive avant les pièces de cette étape ; jusqu'à ce que vous en traciez un avec Modifier le chemin, il glisse depuis le côté de la construction."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Le chemin que les pièces de cette étape parcourent pour se mettre en place pendant la lecture ; calculé à partir du modèle, ou tracé à la main avec Modifier le chemin, où une pièce peut également être tournée à n'importe quel point."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Le paiement à partir de la date d'effet. L'augmentation prend toujours effet à chaque anniversaire de la date de début"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Les personnes côté Carbon qui géreront votre mise en œuvre, et comment les contacter."diff --cc packages/locale/locales/hi/erp.poindex 2206996ec5,020509ea50..7df8a12670--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "अंतिम नाम#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "अंतिम पुश {when} विफल: {0}"+msgstr "अंतिम पुश ({when}) विफल हुआ: {0}"msgid "Last push {when}:"- msgstr "अंतिम पुश ({when}):"+ msgstr "अंतिम पुश {when}:"msgid "Last Quarter"msgstr "पिछली तिमाही"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "नई कर्मचारिmsgid "Room to grow without bolting on more tools"msgstr "बिना अतिरिक्त उपकरण जोड़े बढ़ने की गुंजाइश"+msgid "Rotate"+msgstr "घुमाएँ"++ msgid "ROU Amortization"+ msgstr "ROU परिशोधन"++ msgid "ROU Asset"+ msgstr "उपयोग के अधिकार की संपत्ति"+msgid "Rounding Account"msgstr "राउंडिंग खाता"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "जब माता-पित�msgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "पार्ट को मौजूदा स्टॉक से लिया जाता है जब इसका मूल आइटम बनाया जाता है — कोई नया जॉब या क्रय आदेश नहीं।"-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "वह पथ जो इस चरण के घटक प्लेबैक के दौरान स्थान पर यात्रा करते हैं; मॉडल से प्राप्त, या पथ संपादित करें के साथ हाथ से खींचा गया।"+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "यह मार्ग है जो एक तैयार सब-असेंबली एक टुकड़े के रूप में तय करती है जब यह बिल्ड से जुड़ता है। यह चरण के अपने पार्ट्स से पहले आती है; जब तक आप “पथ संपादित करें” से कोई मार्ग नहीं खींचते, यह बिल्ड के बगल से आती है।"++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "यह मार्ग है जो इस चरण के घटक चलाने के समय जगह में यात्रा करते हैं; यह मॉडल से प्राप्त है, या “पथ संपादित करें” से हाथ से खींचा जाता है, जहाँ एक पार्ट किसी भी वेपॉइंट पर घुमाया जा सकता है।"+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "प्रभावी तिथि से भुगतान। बढ़ोतरी अभी भी शुरुआत की प्रत्येक वर्षगांठ पर बढ़ती है"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "कार्बन की ओर से वे लोग जो आपके कार्यान्वयन को चलाएंगे, और उन तक कैसे पहुंचें।"@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "क्रय आदेश"msgid "The push to Mount did not start. Try again."-msgstr "Mount को पुश शुरू नहीं हुआ। फिर से कोशिश करें।"+msgstr "Mount पर पुश शुरू नहीं हो सका। फिर से कोशिश करें."msgid "The push to Mount failed"- msgstr "Mount पर पुश विफल रहा"+ msgstr "Mount को पुश विफल"msgid "The push to Mount finished"- msgstr "Mount पर पुश पूरा हुआ"+ msgstr "Mount को पुश समाप्त हुआ"msgid "The push to Mount finished. Some records need attention"- msgstr "Mount पर पुश पूरा हुआ। कुछ रिकॉर्ड पर ध्यान देने की ज़रूरत है"+ msgstr "Mount को पुश समाप्त हुआ। कुछ रिकॉर्ड को ध्यान की आवश्यकता है"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "मात्रा विभाजन बिंदु जिन पर इस पंक्ति की कीमत है; प्रत्येक कॉलम क्रेता-आपूर्तिकर्ता बातचीत और डाउनस्ट्रीम दस्तावेजों में परिवर्तित करने के लिए अपनी स्वयं की प्रति-यूनिट कीमत रखता है।"diff --cc packages/locale/locales/it/erp.poindex 8d1212e97c,874ac4635f..538412b882--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "Cognome#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "Ultimo push {when} non riuscito: {0}"+msgstr "L'ultimo invio {when} non è riuscito: {0}"msgid "Last push {when}:"- msgstr "Ultimo invio {when}:"+ msgstr "Ultimo push {when}:"msgid "Last Quarter"msgstr "Ultimo Trimestre"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Ruoli che impostano le autorizzmsgid "Room to grow without bolting on more tools"msgstr "Spazio per crescere senza aggiungere altri strumenti"+msgid "Rotate"+msgstr "Ruota"++ msgid "ROU Amortization"+ msgstr "Ammortamento del diritto d'uso"++ msgid "ROU Asset"+ msgstr "Bene Diritto d'Uso"+msgid "Rounding Account"msgstr "Conto di arrotondamento"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "La parte viene fabbricata comemsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "La parte viene presa da scorte esistenti quando il suo genitore viene costruito - nessun nuovo lavoro o ordine di acquisto."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Il percorso che i componenti di questo passo percorrono durante la riproduzione; calcolato dal modello o disegnato manualmente con Modifica percorso."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Il percorso che il sottogruppo finito percorre come un pezzo quando si unisce alla costruzione. Arriva prima dei componenti del passo; finché non ne disegni uno con Modifica Percorso, entra scivolando da accanto alla costruzione."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Il percorso che i componenti di questo passo percorrono per posizionarsi durante la riproduzione; ricavato dal modello, o disegnato a mano con Modifica Percorso, dove un componente può anche essere ruotato in qualsiasi punto di passaggio."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Il pagamento dalla data effettiva. L'aumento aumenta ancora ad ogni anniversario della data di inizio."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Le persone del team Carbon che gestiranno la tua implementazione e come contattarle."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "L'ordine di acquisto"msgid "The push to Mount did not start. Try again."-msgstr "Il push su Mount non è stato avviato. Riprova."+msgstr "L'invio a Mount non è stato avviato. Riprova."msgid "The push to Mount failed"- msgstr "L'invio a Mount non è riuscito"+ msgstr "Il push su Mount non è riuscito"msgid "The push to Mount finished"- msgstr "L'invio a Mount è terminato"+ msgstr "Il push su Mount è terminato"msgid "The push to Mount finished. Some records need attention"- msgstr "L'invio a Mount è terminato. Alcuni record richiedono attenzione"+ msgstr "Il push su Mount è terminato. Alcuni record necessitano attenzione"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "I punti di rottura della quantità a cui questa riga è quotata; ogni colonna ha il proprio prezzo unitario per la negoziazione acquirente-fornitore e per la conversione a documenti a valle."diff --cc packages/locale/locales/ja/erp.poindex 0b459de346,624d40d953..76112f8a51--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "姓#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "最後のプッシュ {when} が失敗しました: {0}"+msgstr "前回の{when}の送信は失敗しました: {0}"msgid "Last push {when}:"- msgstr "前回の送信 {when}:"+ msgstr "最後のプッシュ {when}:"msgid "Last Quarter"msgstr "前四半期"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "新しい従業員のデフォ�msgid "Room to grow without bolting on more tools"msgstr "さらに多くのツールを追加することなく成長する余地"+msgid "Rotate"+msgstr "回転"++ msgid "ROU Amortization"+ msgstr "ROU償却"++ msgid "ROU Asset"+ msgstr "使用権資産"+msgid "Rounding Account"msgstr "丸めアカウント"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "必要な親が構築される�msgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "部品はその親製品が製造されるときに既存在庫から取得されます。新しい製造指図または発注書は作成されません。"-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "このステップのコンポーネントが再生中に所定の位置に移動するパス。モデルから計算されるか、パスの編集で手動で描画されます"+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "完成した部分組立がビルドに加わる際に1つのピースとして移動するパス。ステップの部品より前に到着します。編集パスで描くまでは、ビルドの脇からスライドして現れます。"++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "再生中にこのステップのコンポーネントが所定の位置に移動するパス。モデルから計算されるか、編集パスで手描きされます。各ウェイポイントで部品を回転させることもできます。"+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "支払は実効日からのものです。段階的上昇はcommencement日(開始日)の毎年記念日に上昇し続けます。"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "実装を実施する Carbon 側の人員および連絡方法"@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "発注書"msgid "The push to Mount did not start. Try again."-msgstr "Mount へのプッシュが開始されませんでした。もう一度試してください。"+msgstr "Mountへの送信を開始できませんでした。もう一度お試しください。"msgid "The push to Mount failed"- msgstr "Mountへの送信に失敗しました"+ msgstr "Mount へのプッシュが失敗しました"msgid "The push to Mount finished"- msgstr "Mountへの送信が完了しました"+ msgstr "Mount へのプッシュが完了しました"msgid "The push to Mount finished. Some records need attention"- msgstr "Mountへの送信が完了しました。一部のレコードに確認が必要です"+ msgstr "Mount へのプッシュが完了しました。いくつかのレコードが対応を要しています"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "この明細が価格設定される数量ブレークポイント。各列は買い手と仕入先の交渉および下流文書への変換用に、独自の単価を持ちます。"diff --cc packages/locale/locales/ko/erp.poindex 2fcae4e1af,3c66848ee2..ad017f93a9--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "성#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "마지막 푸시 {when} 실패: {0}"+msgstr "마지막 전송 {when} 실패: {0}"msgid "Last push {when}:"- msgstr "마지막 전송 {when}:"+ msgstr "마지막 푸시 {when}:"msgid "Last Quarter"msgstr "지난 분기"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "신규 직원의 기본 권한�msgid "Room to grow without bolting on more tools"msgstr "추가 도구 없이도 성장할 수 있는 여유"+msgid "Rotate"+msgstr "회전"++ msgid "ROU Amortization"+ msgstr "ROU 상각"++ msgid "ROU Asset"+ msgstr "사용권 자산"+msgid "Rounding Account"msgstr "반올림 계정"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "상위 품목이 제작될 때msgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "부품은 상위 부품이 구축될 때 기존 재고에서 가져오므로, 새로운 작업 지시 또는 발주서가 없습니다."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "이 단계의 구성 요소가 재생 중에 제자리로 이동하는 경로; 모델에서 계산되거나 편집 경로를 사용하여 손으로 그려짐."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "완성된 소부조립품이 조립에 참여할 때 하나의 부분으로 이동하는 경로입니다. 단계의 자체 부품이 도착하기 전에 도착하며, 경로 편집으로 직접 그릴 때까지 조립 옆에서 들어옵니다."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "이 단계의 부품이 재생 중에 제자리로 이동하는 경로입니다. 모델에서 계산되거나 경로 편집으로 직접 그릴 수 있으며, 모든 웨이포인트에서 부품을 회전시킬 수 있습니다."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "발효일부터의 지불입니다. 개시일의 매년 기념일에 인상이 계속 증가합니다"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "귀사의 실행을 담당할 Carbon 팀 인원 및 연락 방법입니다."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "발주서"msgid "The push to Mount did not start. Try again."-msgstr "Mount로의 푸시가 시작되지 않았습니다. 다시 시도하세요."+msgstr "Mount로의 전송을 시작하지 못했습니다. 다시 시도하세요."msgid "The push to Mount failed"- msgstr "Mount로의 전송에 실패했습니다"+ msgstr "Mount로의 푸시 실패"msgid "The push to Mount finished"- msgstr "Mount로의 전송이 완료되었습니다"+ msgstr "Mount로의 푸시 완료"msgid "The push to Mount finished. Some records need attention"- msgstr "Mount로의 전송이 완료되었습니다. 일부 레코드에 확인이 필요합니다"+ msgstr "Mount로의 푸시 완료. 일부 기록에 주의가 필요합니다."msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "이 라인의 가격 책정 수량 구간점; 각 열은 구매자-공급업체 협상 및 다운스트림 문서로 변환하기 위한 자체 단가를 포함합니다."diff --cc packages/locale/locales/pl/erp.poindex cf33450832,5245d79b90..c86ee911b2--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "Nazwisko#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "Ostatni push {when} nie powiódł się: {0}"+msgstr "Ostatnie wysłanie {when} nie powiodło się: {0}"msgid "Last push {when}:"- msgstr "Ostatnie wysłanie {when}:"+ msgstr "Ostatni push {when}:"msgid "Last Quarter"msgstr "Ostatni kwartał"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Role, które ustawiają domyślmsgid "Room to grow without bolting on more tools"msgstr "Miejsce do wzrostu bez dodawania kolejnych narzędzi"+msgid "Rotate"+msgstr "Obróć"++ msgid "ROU Amortization"+ msgstr "Amortyzacja prawa do użytkowania"++ msgid "ROU Asset"+ msgstr "Prawo do Użytkowania"+msgid "Rounding Account"msgstr "Konto zaokrąglające"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "Część jest wytwarzana jako smsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "Część jest pobierana z istniejących zapasów, gdy jego rodzic jest zbudowany - bez nowego zadania lub zamówienia zakupu."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Ścieżka, którą komponenty tego kroku przechodzą podczas odtwarzania; wyznaczona z modelu lub narysowana ręcznie za pomocą opcji Edytuj ścieżkę."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Ścieżka, jaką pokonuje gotowy podzespół jako jeden element, gdy dołącza się do budowy. Pojawia się przed własnymi częściami kroku; dopóki jej nie narysujesz za pomocą Edytuj ścieżkę, wsuwa się ze strony budowy."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Ścieżka, jaką komponenty tego kroku trafiają na miejsce podczas odtwarzania; wyznaczona na podstawie modelu lub narysowana ręcznie za pomocą Edytuj ścieżkę, gdzie część może być również obrócona w każdym punkcie."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Płatność od daty wejścia w życie. Eskalacja wciąż wzrasta w każdą rocznicę rozpoczęcia."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Pracownicy po stronie Carbon, którzy będą prowadzić Twoje wdrożenie, oraz jak ich osiągnąć."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "Zamówienie zakupu"msgid "The push to Mount did not start. Try again."-msgstr "Push do Mount nie rozpoczął się. Spróbuj ponownie."+msgstr "Wysłanie do Mount nie zostało uruchomione. Spróbuj ponownie."msgid "The push to Mount failed"- msgstr "Wysłanie do Mount nie powiodło się"+ msgstr "Push do Mount nie powiódł się"msgid "The push to Mount finished"- msgstr "Wysłanie do Mount zakończone"+ msgstr "Push do Mount zakończył się"msgid "The push to Mount finished. Some records need attention"- msgstr "Wysłanie do Mount zakończone. Niektóre rekordy wymagają uwagi"+ msgstr "Push do Mount zakończył się. Niektóre rekordy wymagają uwagi"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "Punkty graniczne ilości, przy których ta pozycja jest wyceniona; każda kolumna nosi własną cenę za sztukę do negocjacji kupiec–dostawca i do konwersji na dokumenty następujące."diff --cc packages/locale/locales/pt/erp.poindex babdfb07c4,b4c35b733a..e41eac6be8--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Funções que definem permissõmsgid "Room to grow without bolting on more tools"msgstr "Espaço para crescer sem adicionar mais ferramentas"+msgid "Rotate"+msgstr "Girar"++ msgid "ROU Amortization"+ msgstr "Amortização de ROU"++ msgid "ROU Asset"+ msgstr "Ativo de Direito de Uso"+msgid "Rounding Account"msgstr "Conta de arredondamento"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "A peça é fabricada como seu pmsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "A peça é retirada do estoque existente quando seu pai é construído - nenhum novo trabalho ou pedido de compra."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "O caminho que os componentes desta etapa percorrem até sua posição durante a reprodução; calculado a partir do modelo ou desenhado manualmente com Editar Caminho."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "A trajetória que a sub-montagem acabada percorre como uma peça única quando se integra à montagem. Ela chega antes das próprias peças da etapa; até você desenhar uma com Editar Trajetória, ela desliza pela lateral da montagem."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "A trajetória que os componentes da etapa percorrem para se posicionarem durante a reprodução; calculada a partir do modelo ou desenhada manualmente com Editar Trajetória, onde uma peça também pode ser girada em qualquer ponto de passagem."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "O pagamento a partir da data efetiva. A escalação ainda sobe a cada aniversário do início."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "As pessoas do lado da Carbon que executarão sua implementação e como contatá-las."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "O pedido de compra"msgid "The push to Mount did not start. Try again."-msgstr "O envio para Mount não foi iniciado. Tente novamente."+msgstr "O envio ao Mount não foi iniciado. Tente novamente."msgid "The push to Mount failed"- msgstr "O envio ao Mount falhou"+ msgstr "O envio para Mount falhou"msgid "The push to Mount finished"- msgstr "O envio ao Mount foi concluído"+ msgstr "O envio para Mount foi concluído"msgid "The push to Mount finished. Some records need attention"- msgstr "O envio ao Mount foi concluído. Alguns registros precisam de atenção"+ msgstr "O envio para Mount foi concluído. Alguns registros precisam de atenção"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "Os pontos de ruptura de quantidade em que essa linha é precificada; cada coluna possui seu próprio preço por unidade para negociação comprador-fornecedor e conversão para documentos posteriores."diff --cc packages/locale/locales/ru/erp.poindex 9d6f173640,cf15f225ce..c6548cc176--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Роли, устанавлив�msgid "Room to grow without bolting on more tools"msgstr "Место для роста без добавления новых инструментов"+msgid "Rotate"+msgstr "Повернуть"++ msgid "ROU Amortization"+ msgstr "Амортизация активов прав пользования"++ msgid "ROU Asset"+ msgstr "Актив прав пользования"+msgid "Rounding Account"msgstr "Счет округления"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "Деталь производиmsgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "Деталь берется из существующего запаса при производстве ее родительского элемента — без создания нового производственного заказа или заказа поставщику."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Путь, по которому компоненты этого шага перемещаются на место при воспроизведении; определяется на основе модели или рисуется вручную с помощью кнопки «Изменить путь»."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Траектория, по которой движется готовая подсборка как единое целое при её добавлении в сборку. Она появляется перед собственными деталями шага; пока вы не создадите её, используя функцию «Изменить траекторию», она скользит в сборку со стороны."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Траектория, по которой компоненты этого шага перемещаются на место во время воспроизведения; рассчитанная по модели или нарисованная вручную с помощью функции «Изменить траекторию», где деталь также может быть повернута в любой контрольной точке."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Платеж с даты вступления в силу. Эскалация по-прежнему возрастает в каждую годовщину начала."+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Сотрудники Carbon, которые будут проводить ваше внедрение, и способы связи с ними."@@@ -21071,16 -22406,16 +22445,16 @@@ msgid "The purchase ordermsgstr "Заказ поставщику"msgid "The push to Mount did not start. Try again."-msgstr "Отправка на Mount не началась. Попробуйте еще раз."+msgstr "Отправка в Mount не запустилась. Попробуйте ещё раз."msgid "The push to Mount failed"- msgstr "Отправка в Mount не удалась"+ msgstr "Отправка на Mount не удалась"msgid "The push to Mount finished"- msgstr "Отправка в Mount завершена"+ msgstr "Отправка на Mount завершена"msgid "The push to Mount finished. Some records need attention"- msgstr "Отправка в Mount завершена. Некоторые записи требуют внимания"+ msgstr "Отправка на Mount завершена. Некоторые записи требуют внимания"msgid "The quantity breakpoints this line is priced at; each column carries its own per-unit price for buyer–supplier negotiation and for converting to downstream documents."msgstr "Точки разрыва по количеству, при которых рассчитывается цена этой строки; каждый столбец содержит свою цену за единицу для переговоров между закупщиком и поставщиком и для преобразования в последующие документы."diff --cc packages/locale/locales/tr/erp.poindex 07700fa373,b048b9a924..e603a0b036--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "Soyadı#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "Son gönderim {when} başarısız oldu: {0}"+msgstr "{when} tarihindeki son gönderim başarısız oldu: {0}"msgid "Last push {when}:"- msgstr "{when} tarihli son gönderim:"+ msgstr "Son gönderim {when}:"msgid "Last Quarter"msgstr "Son Çeyrek"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "Yeni çalışanlar için varsaymsgid "Room to grow without bolting on more tools"msgstr "Daha fazla araç eklemeden büyüme için yer"+msgid "Rotate"+msgstr "Döndür"++ msgid "ROU Amortization"+ msgstr "KHV Amortismanı"++ msgid "ROU Asset"+ msgstr "Kullanım Hakkı Varlığı"+msgid "Rounding Account"msgstr "Yuvarlama hesabı"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "Parça, ihtiyacı olan üst ö�msgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "Parça, ebeveyninin inşa edildiğinde mevcut stoktan alınır - yeni iş veya satın alma siparişi yok."-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "Bu adımın bileşenlerinin oynatma sırasında hareket ettiği yol; modelden hesaplanmış veya Yolu Düzenle ile elle çizilmiş."+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "Bitmiş bir alt-montajın montajla birleştirildiğinde tek bir parça olarak izlediği yolu. Adımın kendi parçalarından önce gelir; Yolu Düzenle ile bir yol çizemeyene kadar, yapının yanından kaymaya devam eder."++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "Bu adımın bileşenlerinin oynatma sırasında yerlerine gitmesi için izlediği yolu; modelden çıkarılan ya da Yolu Düzenle ile el ile çizilen, burada bir parçanın herhangi bir nokta üzerinde döndürülebilir."+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "Yürürlüğe giriş tarihinden itibaren ödeme. Artış başlamanın her yıldönümünde hala adım adım artar"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Carbon tarafındaki uygulamanızı yönetecek Personel ve onlara ulaşmanız için nasıl yapılır."diff --cc packages/locale/locales/zh/erp.poindex 6baa7da355,eeff6a1765..0e91cea5fd--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@@ -11395,10 -12046,10 +12058,10 @@@ msgstr "姓氏#. placeholder {0}: record.errormsgid "Last push {when} failed: {0}"-msgstr "最后一次推送 {when} 失败:{0}"+msgstr "上次推送 {when} 失败:{0}"msgid "Last push {when}:"- msgstr "上次推送 {when}:"+ msgstr "最后一次推送 {when}:"msgid "Last Quarter"msgstr "上一季度"@@@ -17717,9 -18828,12 +18849,15 @@@ msgstr "为新员工设置默认权限�msgid "Room to grow without bolting on more tools"msgstr "无需添加更多工具即可扩展"+msgid "Rotate"+msgstr "旋转"++ msgid "ROU Amortization"+ msgstr "ROU 摊销"++ msgid "ROU Asset"+ msgstr "使用权资产"+msgid "Rounding Account"msgstr "舍入账户"@@@ -21013,12 -22341,12 +22377,15 @@@ msgstr "当需要该零件的父级被�msgid "The part is taken from existing stock when its parent is built — no new job or purchase order."msgstr "构建其父级时,从现有库存中获取该零件 - 无新工作或采购订单。"-msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path."-msgstr "此步骤的组件在回放期间进入位置的路径;从模型中计算得出,或使用「编辑路径」手绘。"+msgid "The path a finished sub-assembly travels as one piece when it joins the build. It arrives before the step's own parts; until you draw one with Edit Path, it slides in from beside the build."+msgstr "已完成的子装配体加入构建时作为整体所走的路径。它在该步骤的零件之前到达;在您使用编辑路径绘制之前,它从构建旁边滑入。"++msgid "The path this step's components travel into place during playback; worked out from the model, or drawn by hand with Edit Path, where a part can also be turned at any waypoint."+msgstr "该步骤的零件在播放期间进入到位所走的路径;从模型计算或使用编辑路径手工绘制,其中零件也可以在任何路点处被旋转。"+ msgid "The payment from the effective date. Escalation still steps up on each anniversary of the commencement"+ msgstr "自生效日期起的付款。在开始日期的每个周年日,升级仍会增加"+msgid "The people on the Carbon side who will run your implementation, and how to reach them."msgstr "Carbon 方面将运行您的实施的人员,以及如何联系他们。"