Skip to content

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.

docs: clarify Carbon technical documentation (#1803)

Brad Barbin3f517186564e
diff --git a/.ai/plans/2026-10-01-docs-text-wrapping.md b/.ai/plans/2026-10-01-docs-text-wrapping.md
new file mode 100644
index 0000000000..86a37b08a4
--- /dev/null
+++ b/.ai/plans/2026-10-01-docs-text-wrapping.md
@@ -0,0 +1,16 @@
+# Docs text wrapping
+
+## Plan
+
+- [x] Apply balanced wrapping to documentation headlines.
+- [x] Apply improved wrapping to documentation body paragraphs.
+- [x] Verify formatting, docs typechecking, and the production docs build.
+- [x] Commit and push the change to the existing pull request.
+
+## Verification log
+
+- `pnpm --filter docs typecheck` — passed.
+- `pnpm --filter docs build` — passed; generated 2,201 static pages.
+- Compiled CSS contains the scoped `text-wrap: balance` and
+ `text-wrap: pretty` declarations.
+- `git diff --check` — passed.
diff --git a/.ai/plans/2026-10-01-rewrite-technical-docs.md b/.ai/plans/2026-10-01-rewrite-technical-docs.md
new file mode 100644
index 0000000000..095241d2ef
--- /dev/null
+++ b/.ai/plans/2026-10-01-rewrite-technical-docs.md
@@ -0,0 +1,33 @@
+# Rewrite technical documentation
+
+## Scope
+
+Rewrite the authored product documentation in `docs/content/docs/` and
+`docs/content/guides/` for clarity, concision, and technical precision. Preserve
+frontmatter, public URLs, heading anchors, links, examples, component markup, and
+documented behavior. Application code and historical changelog entries are out of
+scope.
+
+## Plan
+
+- [x] Inventory pages and assign non-overlapping content groups.
+- [x] Rewrite building, platform, integration, overview, and glossary pages.
+- [x] Rewrite reference pages.
+- [x] Rewrite task guides.
+- [x] Review the complete diff for consistency, accidental semantic changes, and
+ broken MDX structure.
+- [x] Run `@carbon/content` typecheck, tests, and lint.
+- [x] Record verification results and summarize the rewrite.
+
+## Verification log
+
+- Rewrote all 108 authored pages under `docs/content/docs/` and
+ `docs/content/guides/`.
+- Reduced the corpus from 122,888 to 110,251 words.
+- Confirmed all Markdown headings and code-fence counts match `origin/main`.
+- `pnpm --filter docs exec fumadocs-mdx` passed.
+- `pnpm --filter @carbon/content typecheck` passed.
+- `pnpm --filter @carbon/content test` passed: 3 files, 17 tests.
+- `pnpm --filter @carbon/content lint` passed with no fixes.
+- `pnpm --filter docs typecheck` passed.
+- `git diff --check` passed.
diff --git a/.ai/plans/2026-10-02-address-coderabbit-docs.md b/.ai/plans/2026-10-02-address-coderabbit-docs.md
new file mode 100644
index 0000000000..8250cf157e
--- /dev/null
+++ b/.ai/plans/2026-10-02-address-coderabbit-docs.md
@@ -0,0 +1,30 @@
+# Address CodeRabbit documentation review
+
+## Plan
+
+- [x] Verify all eight review findings against current source code.
+- [x] Correct the seven affected MDX pages with minimal, source-grounded edits.
+- [x] Run the Carbon docs mechanical checks for every touched page.
+- [x] Run `@carbon/content` lint, typecheck, and tests.
+- [x] Run the docs typecheck and production build.
+- [x] Commit and push the fixes, then reply to and resolve each review thread.
+
+## Files
+
+- `docs/content/docs/building/architecture.mdx`
+- `docs/content/docs/building/webhooks.mdx`
+- `docs/content/docs/platform/licensing.mdx`
+- `docs/content/docs/reference/financial-reports.mdx`
+- `docs/content/docs/reference/onboarding.mdx`
+- `docs/content/guides/floor.mdx`
+- `docs/content/guides/ship.mdx`
+
+## Verification log
+
+- Carbon docs mechanical checks — passed for all seven MDX pages.
+- `pnpm --filter @carbon/content lint` — passed.
+- `pnpm exec turbo run typecheck --filter=@carbon/content` — passed.
+- `pnpm --filter @carbon/content test` — passed, 17 tests.
+- `pnpm --filter docs typecheck` — passed.
+- `pnpm --filter docs build` — passed, 2,125 static pages generated.
+- `git diff --check` — passed.
diff --git a/README.md b/README.md
index e499ade31d..db850cd56c 100644
--- a/README.md
+++ b/README.md
@@ -6,19 +6,21 @@
</picture>
</a>
- <h3>The open-source manufacturing ERP, MES &amp; QMS</h3>
+ <h3>Build hardware at the speed of software</h3>
<p>
- Quote, plan, buy, build, inspect and ship on one live model of your factory,<br />
- from a ten-person prototype shop to a rate-production line.
+ Carbon combines ERP, MRP, MES and QMS.<br />
+ Plan materials, run the shop floor, manage quality and track actual costs in one system.
</p>
+ <p><strong>Hard tech unicorns build on Carbon.</strong></p>
+
<p>
- <a href="https://app.carbon.ms"><strong>Start free</strong></a> ·
+ <a href="https://app.carbon.ms"><strong>Start 30-day trial</strong></a> ·
<a href="https://carbon.ms/self-hosted"><strong>Self-host</strong></a> ·
<a href="https://docs.carbon.ms"><strong>Docs</strong></a> ·
- <a href="https://docs.carbon.ms/api-reference"><strong>API</strong></a> ·
- <a href="https://docs.carbon.ms/mcp"><strong>MCP</strong></a> ·
+ <a href="https://docs.carbon.ms/api"><strong>API</strong></a> ·
+ <a href="https://docs.carbon.ms/api/mcp"><strong>MCP</strong></a> ·
<a href="https://discord.gg/yGUJWhNqzy"><strong>Discord</strong></a> ·
<a href="https://github.com/orgs/crbnos/projects/1/views/1"><strong>Roadmap</strong></a>
</p>
@@ -50,21 +52,21 @@
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/sales-orders-dark.webp" />
<img alt="Sales orders list with status, linked jobs and order totals" src=".github/assets/readme/sales-orders-light.webp" />
</picture>
- <p align="center"><sub><b>Quote to cash.</b> Quotes, orders, jobs and invoices on one record.</sub></p>
+ <p align="center"><sub><b>One record from quote to cash.</b> Link quotes, orders, jobs and invoices.</sub></p>
</td>
<td width="33%" valign="top">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/bom-dark.webp" />
<img alt="Multi-level bill of materials with planning and supersession" src=".github/assets/readme/bom-light.webp" />
</picture>
- <p align="center"><sub><b>Unfork your BOM.</b> Multi-level BOMs, revisions and configuration.</sub></p>
+ <p align="center"><sub><b>Generate configurations from rules.</b> Control BOMs, routings and revisions.</sub></p>
</td>
<td width="33%" valign="top">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/traceability-dark.webp" />
<img alt="Lot and serial traceability graph" src=".github/assets/readme/traceability-light.webp" />
</picture>
- <p align="center"><sub><b>Traceability by default.</b> Lot and serial genealogy, forwards and back.</sub></p>
+ <p align="center"><sub><b>Trace every unit to its source.</b> Follow lot and serial genealogy in both directions.</sub></p>
</td>
</tr>
</table>
@@ -90,15 +92,16 @@
## Why Carbon
-Legacy ERPs were built for accountants in the 1990s. We built Carbon after years of running manufacturing on off-the-shelf systems and finding that:
+Manufacturing teams often run planning, production, quality and accounting in separate systems. That creates predictable problems:
-- Modern, API-first tooling didn't exist
-- Vendor lock-in bordered on extortion
-- There is no "perfect ERP", because every manufacturer is unique
+- BOMs and revisions are re-keyed between engineering and production
+- Material shortages surface after work has started
+- Job costs and quality records are reconstructed after the fact
+- Integrations depend on vendor-specific tools and consultants
-So Carbon puts ERP, MRP, MES and QMS on **one Postgres schema you can read, own and extend**. Every stage, from CAD to cash, writes to the same record: no handoffs, no re-keying, no reconciliation.
+Carbon puts ERP, MRP, MES and QMS in **one Postgres database you can inspect, own and extend**. Engineering, planning, production, quality and accounting update the same data, without synchronization jobs between separate product databases.
-Carbon is an open-source alternative to [NetSuite](https://carbon.ms/compare/netsuite), [Epicor](https://carbon.ms/compare/epicor), [SAP Business One](https://carbon.ms/compare/sap-business-one), [Plex](https://carbon.ms/compare/plex), [Odoo](https://carbon.ms/compare/odoo) and [ERPNext](https://carbon.ms/compare/erpnext), built for discrete manufacturing: complex assembly, contract manufacturing, configure-to-order and high-mix, low-volume production. See [all comparisons](https://carbon.ms/compare).
+Carbon is an open-source alternative to [NetSuite](https://carbon.ms/compare/netsuite), [Epicor](https://carbon.ms/compare/epicor), [SAP Business One](https://carbon.ms/compare/sap-business-one), [Plex](https://carbon.ms/compare/plex), [Odoo](https://carbon.ms/compare/odoo) and [ERPNext](https://carbon.ms/compare/erpnext). It supports complex assembly, contract manufacturing, configure-to-order and high-mix, low-volume production. See [all comparisons](https://carbon.ms/compare).
<br />
@@ -106,30 +109,30 @@ Carbon is an open-source alternative to [NetSuite](https://carbon.ms/compare/net
| | |
| ---------------------------- | -------------------------------------------------------------------------------- |
-| **ERP** | Sales (quotes, orders, RMAs), purchasing, inventory, items, invoicing |
-| **MRP & Planning** | Material requirements planning, demand forecasts, finite capacity scheduling |
-| **MES** | Digital travelers, 3D assembly instructions, barcode/QR tracking, live labor |
-| **QMS** | Inspections, FAI, non-conformances, CAPA, gauge calibration, risk register |
-| **Traceability** | Serial and lot genealogy, forwards and back |
-| **Engineering** | Nested BoMs, revisions, change orders, item supersession, product configurator |
-| **Accounting** | GL, journals, multi-entity and multi-currency, Xero / QuickBooks sync |
-| **Workflows** | No-code automation rules with full run history |
-| **Maintenance & Assets** | Scheduled maintenance, fixed assets, kanban replenishment |
-| **API, Webhooks & MCP** | 1,500+ typed API operations, served over HTTP and as a built-in MCP server |
-| **Custom Fields** | Extend any record |
-| **Integrations** | Onshape, SolidWorks, Paperless Parts, Linear, Jira, Slack, Ramp, Stripe, Zebra |
+| **ERP — Inventory & Costing** | Quotes, orders, purchasing, inventory, invoicing and actual job costs |
+| **MRP — Planning** | Demand, supply planning, versioned BOMs and routings, finite-capacity scheduling |
+| **MES — Execution** | Digital travelers, operator terminals, 3D instructions, barcode and labor capture |
+| **QMS — Quality** | Inspections, FAI, nonconformance, CAPA, calibration and risk management |
+| **Traceability** | Forward and backward lot and serial genealogy |
+| **Engineering** | Multi-level BOMs, revisions, change orders, supersession and product configuration |
+| **Accounting** | General ledger, journals, multi-entity, multi-currency and accounting integrations |
+| **Workflows** | Rule-based automation with triggers, actions and run history |
+| **Maintenance & Assets** | Scheduled maintenance, fixed assets and kanban replenishment |
+| **API, Webhooks & MCP** | Typed REST operations, event-driven webhooks and a permission-aware MCP server |
+| **Custom Fields** | Extend records without changing the core schema |
+| **Integrations** | Onshape, SolidWorks, Paperless Parts, Linear, Jira, Slack, Ramp, Stripe and Zebra |
See the [full roadmap](https://github.com/orgs/crbnos/projects/1/views/1) for what's next.
**Technical highlights**
-- Full-stack type safety, from the database to the UI
-- Row-level security, multi-tenant by design
-- Role- and attribute-based access control (Employee, Customer, Supplier)
+- Generated types shared by the database, application and API
+- Postgres row-level security and tenant-scoped records
+- Role- and attribute-based access for employees, customers and suppliers
- Realtime database subscriptions
-- Unified auth and permissions across apps
-- Dependency graph for operations
-- Rust geometry service: STEP → GLB and assembly motion planning
+- Shared identity and permissions across the application, API and MCP server
+- Explicit dependency graphs for manufacturing operations
+- Rust geometry services for STEP conversion and assembly motion planning
<br />
@@ -137,18 +140,18 @@ See the [full roadmap](https://github.com/orgs/crbnos/projects/1/views/1) for wh
| | |
| --- | --- |
-| **Carbon Cloud** | The fastest way to start. [Create a company](https://app.carbon.ms), no call required. |
-| **Self-hosted** | Run the whole stack on a single VPS, your own AWS account, or air-gapped. See the [self-hosting guide](https://docs.carbon.ms/docs/platform/self-hosting). |
-| **Develop locally** | Hack on the source: follow [Local Development](#local-development). |
+| **Carbon Cloud** | Managed application, database, updates and backups. [Start a 30-day trial](https://app.carbon.ms) without a sales call. |
+| **Self-hosted** | Run Carbon in your VPC, on-prem or air-gapped. See the [self-hosting guide](https://docs.carbon.ms/docs/platform/self-hosting). |
+| **Develop locally** | Run the application and supporting services from source. Follow [Local Development](#local-development). |
<br />
## API & MCP
-Carbon is API-first. The [**Carbon API**](https://docs.carbon.ms/api) is the service layer, the same code the app runs when you click a button: 1,500+ operations across 15 modules, each validating its input, recalculating what depends on it and enforcing your permissions. Every operation is reachable two ways, with the same arguments:
+The [**Carbon API**](https://docs.carbon.ms/api) exposes the same manufacturing operations used by the application. Each operation validates its input, updates dependent records and enforces the authenticated identity's permissions. Operations are available through two interfaces with the same arguments:
- **HTTP:** `POST https://app.carbon.ms/api/v1/{module}/{operation}`, with a published [OpenAPI spec](https://app.carbon.ms/api/v1/openapi.json) for [generating a typed client](https://docs.carbon.ms/api/sdks) in any language
-- **[MCP](https://docs.carbon.ms/api/mcp):** as tools for Claude, ChatGPT, Cursor and other agents, scoped to the permissions of the key or signed-in user
+- **[MCP](https://docs.carbon.ms/api/mcp):** as tools for hosted or local AI agents, scoped to the permissions of the API key or signed-in user
Create a key under **Settings → API Keys**, then:
@@ -159,7 +162,9 @@ curl -X POST https://app.carbon.ms/api/v1/sales/getSalesOrders \
-d '{ "args": { "limit": 10 } }'
```
-Self-hosted, the same API is served by your ERP at `/api/v1`. For the rare case the service layer doesn't cover, the [Data API](https://docs.carbon.ms/api/data) exposes every table and view directly.
+Self-hosted deployments serve the same API at `/api/v1`. The [Data API](https://docs.carbon.ms/api/data) provides direct access to permitted tables and views when an operation is not available in the service layer.
+
+API keys and MCP are included with Business and Enterprise plans. Using them in a self-hosted deployment requires a commercial license.
<br />
@@ -386,7 +391,7 @@ Security is enforced by the database, not left to application code:
- **Scoped API keys.** Keys carry explicit permissions, are stored only as hashes and are rate limited per key.
- **Sign-in.** Passkeys, SSO, and enforced two-factor authentication on the Business plan.
- **Audit log.** A record of who changed what and when, on the Business plan.
-- **Your perimeter.** Self-host on a single server, in your own cloud account or fully air-gapped, for programs with ITAR or CMMC requirements.
+- **Your perimeter.** Deploy in your VPC, on-prem or air-gapped to keep CUI inside infrastructure you control while supporting ITAR and CMMC requirements.
<br />
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
index 26530619dc..81181e4455 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
@@ -162,7 +162,7 @@
{"name":"inventory_deleteShippingMethod","classification":"DESTRUCTIVE","paramCount":1,"schema":"493e990b5f3d","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
{"name":"inventory_deleteStockTransfer","classification":"DESTRUCTIVE","paramCount":1,"schema":"38111ae0fa2a","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
{"name":"inventory_deleteStockTransferLine","classification":"DESTRUCTIVE","paramCount":1,"schema":"0bbd6a946791","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
- {"name":"inventory_deleteStorageTypeWithCascade","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"210a2a62676d","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
+ {"name":"inventory_deleteStorageTypeWithCascade","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"567547d42955","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
{"name":"inventory_deleteStorageUnit","classification":"DESTRUCTIVE","paramCount":1,"schema":"c728bf7e5b37","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
{"name":"inventory_deleteStorageUnitCascade","classification":"DESTRUCTIVE","paramCount":1,"schema":"c728bf7e5b37","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
{"name":"inventory_deleteWarehouseTransfer","classification":"DESTRUCTIVE","paramCount":1,"schema":"d51f098ead24","response":"bcde375ebd4c","injectAuth":"companyId","permission":"inventory:delete","paginates":false},
@@ -258,7 +258,7 @@
{"name":"inventory_mergeTrackedEntities","classification":"WRITE","paramCount":2,"schema":"b12fee74a91e","response":"eeecb06dc790","injectAuth":"companyId+userId","permission":"inventory:update","paginates":false},
{"name":"inventory_pickPickingListLine","classification":"WRITE","paramCount":3,"schema":"0371c6fecc9c","response":"3797626bd17e","injectAuth":"companyId+userId","permission":"inventory:update","paginates":false},
{"name":"inventory_reconcileReceiptSerialEntities","classification":"DESTRUCTIVE","paramCount":2,"schema":"317d393d5b4a","response":"none","injectAuth":"companyId","permission":"inventory:update","paginates":false},
- {"name":"inventory_searchStorageUnitsWithAncestors","classification":"READ","paramCount":2,"schema":"bf8906da76a5","response":"1ef4111538b5","injectAuth":"companyId","permission":"inventory:view","paginates":false},
+ {"name":"inventory_searchStorageUnitsWithAncestors","classification":"READ","paramCount":2,"schema":"bf8906da76a5","response":"04385ce721d8","injectAuth":"companyId","permission":"inventory:view","paginates":false},
{"name":"inventory_setPickingListLineTrackedEntity","classification":"WRITE","paramCount":5,"schema":"a628dabab831","response":"3797626bd17e","injectAuth":"companyId+updatedBy+userId","permission":"inventory:update","paginates":false},
{"name":"inventory_updateBatchPropertyOrder","classification":"WRITE","paramCount":3,"schema":"ed0f513719d1","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"inventory:update","paginates":false},
{"name":"inventory_updateInventoryCountLine","classification":"WRITE","paramCount":3,"schema":"d0dcc5796dc7","response":"ae8f99e1d130","injectAuth":"companyId+updatedBy","permission":"inventory:update","paginates":false},
@@ -407,8 +407,8 @@
{"name":"items_getItemCostHistory","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"37830a1bad13","injectAuth":"companyId","permission":"parts:view","paginates":false},
{"name":"items_getItemCustomerPart","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"4c6e08919580","injectAuth":"companyId","permission":"parts:view","paginates":false},
{"name":"items_getItemCustomerParts","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"458a8cdb47f2","injectAuth":"companyId","permission":"parts:view","paginates":false},
- {"name":"items_getItemDemand","classification":"READ","paramCount":3,"schema":"ba3de97105ef","response":"fe98aa635e85","injectAuth":"companyId","permission":"parts:view","paginates":false},
- {"name":"items_getItemFiles","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"ffefd03548aa","injectAuth":"companyId","permission":"parts:view","paginates":false},
+ {"name":"items_getItemDemand","classification":"READ","paramCount":3,"schema":"ba3de97105ef","response":"b2c97c9014b6","injectAuth":"companyId","permission":"parts:view","paginates":false},
+ {"name":"items_getItemFiles","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"c8f657a900dd","injectAuth":"companyId","permission":"parts:view","paginates":false},
{"name":"items_getItemManufacturing","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"f399bb7eda67","injectAuth":"companyId","permission":"parts:view","paginates":false},
{"name":"items_getItemMpnsList","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"3ff28fd20707","injectAuth":"companyId","permission":"parts:view","paginates":false},
{"name":"items_getItemPlanning","classification":"READ","paramCount":2,"schema":"ade4704d7338","response":"dd5cfe4cf204","injectAuth":"companyId","permission":"parts:view","paginates":false},
@@ -504,9 +504,9 @@
{"name":"items_updateItem","classification":"WRITE","paramCount":18,"schema":"f24ba73701ab","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
{"name":"items_updateItemCost","classification":"WRITE","paramCount":2,"schema":"c55de757a7e4","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
{"name":"items_updateItemMethodAndSourcing","classification":"WRITE","paramCount":3,"schema":"1165eb54378a","response":"none","injectAuth":"companyId+updatedBy+userId","permission":"parts:update","paginates":false},
- {"name":"items_updateMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
+ {"name":"items_updateMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
{"name":"items_updateMaterialProperties","classification":"WRITE","paramCount":7,"schema":"ba2c8db7ad05","response":"82322ed42796","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
- {"name":"items_updateOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
+ {"name":"items_updateOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
{"name":"items_updateRevision","classification":"WRITE","paramCount":2,"schema":"25c295d358ea","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"parts:update","paginates":false},
{"name":"items_upsertChangeNoticeRequiredAction","classification":"WRITE","paramCount":3,"schema":"e790518da1ff","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy+userId","permission":"parts:create+update","paginates":false},
{"name":"items_upsertChangeNoticeType","classification":"WRITE","paramCount":1,"schema":"a91f73f30ea3","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"parts:create+update","paginates":false,"upsert":"id"},
@@ -568,11 +568,11 @@
{"name":"people_getEmployeeSummary","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"afd28b3efe9e","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getHoliday","classification":"READ","paramCount":1,"schema":"9189cc10f756","response":"8d2b62b6a13b","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getHolidays","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"1fedcd5adb59","injectAuth":"companyId","permission":"people:view","paginates":true},
- {"name":"people_getHolidayYears","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"f3764070545e","injectAuth":"companyId","permission":"people:view","paginates":false},
+ {"name":"people_getHolidayYears","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"88a9d1fc3d35","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getOpenClockEntry","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"48d1ac3381b4","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getPeople","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"5483e69d7515","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getRecentTimecards","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"579660621675","injectAuth":"companyId","permission":"people:view","paginates":false},
- {"name":"people_getScheduledEmployeesToday","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"c429622c953e","injectAuth":"companyId","permission":"people:view","paginates":false},
+ {"name":"people_getScheduledEmployeesToday","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"c93c10ff0dbe","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getShift","classification":"READ","paramCount":1,"schema":"fbdb1fa56a88","response":"86e4039d95bd","injectAuth":"companyId","permission":"people:view","paginates":false},
{"name":"people_getShifts","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"92fec9db1b7e","injectAuth":"companyId","permission":"people:view","paginates":true},
{"name":"people_getShiftsList","classification":"READ","paramCount":1,"schema":"b76e1039273f","response":"ce08332e0ce6","injectAuth":"companyId","permission":"people:view","paginates":false},
@@ -586,7 +586,7 @@
{"name":"people_insertEmployeeJob","classification":"WRITE","paramCount":2,"schema":"8518dfd7feec","response":"4a3b9b98079b","injectAuth":"companyId+updatedBy","permission":"people:create","paginates":false},
{"name":"people_updateAttribute","classification":"WRITE","paramCount":4,"schema":"f66dbb270538","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
{"name":"people_updateAttributeCategory","classification":"WRITE","paramCount":4,"schema":"7bf8c03306de","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
- {"name":"people_updateAttributeSortOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
+ {"name":"people_updateAttributeSortOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
{"name":"people_updateEmployeeJob","classification":"DESTRUCTIVE","paramCount":2,"schema":"fd3a2eef5bc2","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
{"name":"people_updateTimeCardEntry","classification":"WRITE","paramCount":4,"schema":"486c249ce3fa","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"people:update","paginates":false},
{"name":"people_upsertDepartment","classification":"WRITE","paramCount":4,"schema":"0008ef42654d","response":"10600fcaa49e","injectAuth":"companyId+createdBy+updatedBy","permission":"people:create+update","paginates":false},
@@ -698,7 +698,7 @@
{"name":"production_getJobsByDateRange","classification":"READ","paramCount":3,"schema":"00794c516592","response":"737259a0d747","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getJobsBySalesOrderLine","classification":"READ","paramCount":1,"schema":"58e3c9762923","response":"630059095fdc","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getJobsList","classification":"READ","paramCount":1,"schema":"6168fc8fbdbe","response":"232ee7305e73","injectAuth":"companyId","permission":"production:view","paginates":false},
- {"name":"production_getLatestAssemblyPlan","classification":"READ","paramCount":1,"schema":"277f7d872d8c","response":"6b38ef1e4ead","injectAuth":"companyId","permission":"production:view","paginates":false},
+ {"name":"production_getLatestAssemblyPlan","classification":"READ","paramCount":1,"schema":"277f7d872d8c","response":"c15540ea30a1","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getLatestAssemblyPlanJob","classification":"READ","paramCount":1,"schema":"277f7d872d8c","response":"d45b1cde8dd5","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getLocationEmployees","classification":"READ","paramCount":1,"schema":"de371a276a58","response":"72ccccdcfc21","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceDispatch","classification":"READ","paramCount":1,"schema":"34cb412f1fae","response":"f0addd41ad4e","injectAuth":"companyId","permission":"production:view","paginates":false},
@@ -707,7 +707,7 @@
{"name":"production_getMaintenanceDispatchEvents","classification":"READ","paramCount":1,"schema":"34cb412f1fae","response":"fc0af15629d8","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceDispatchItems","classification":"READ","paramCount":1,"schema":"34cb412f1fae","response":"7d22c1b8235d","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceDispatchWorkCenters","classification":"READ","paramCount":1,"schema":"34cb412f1fae","response":"245d61ef36d3","injectAuth":"companyId","permission":"production:view","paginates":false},
- {"name":"production_getMaintenanceDowntimeForResources","classification":"READ","paramCount":1,"schema":"935cc20961b6","response":"c9ce440846e1","injectAuth":"companyId","permission":"production:view","paginates":false},
+ {"name":"production_getMaintenanceDowntimeForResources","classification":"READ","paramCount":1,"schema":"935cc20961b6","response":"1bd2fbd329dd","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceSchedule","classification":"READ","paramCount":1,"schema":"c61245800a33","response":"d794f5e4efb7","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceScheduleItems","classification":"READ","paramCount":1,"schema":"c61245800a33","response":"6e7c564b202a","injectAuth":"companyId","permission":"production:view","paginates":false},
{"name":"production_getMaintenanceSchedules","classification":"READ","paramCount":4,"schema":"b48b875ac337","response":"80c9953d43e5","injectAuth":"companyId","permission":"production:view","paginates":true},
@@ -784,17 +784,17 @@
{"name":"production_updateAssemblySubAssembly","classification":"WRITE","paramCount":4,"schema":"0f0cbf9e32e1","response":"none","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},
{"name":"production_updateJob","classification":"WRITE","paramCount":20,"schema":"769ff9d7f4ac","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_updateJobBatchNumber","classification":"WRITE","paramCount":2,"schema":"a4c2a31bb8a6","response":"f7a40899c090","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
- {"name":"production_updateJobMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateJobMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_updateJobOperationBatch","classification":"WRITE","paramCount":4,"schema":"6aa26c8c9567","response":"none","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},
{"name":"production_updateJobOperationDueDate","classification":"WRITE","paramCount":2,"schema":"e04478fc58f7","response":"ac4a3201b981","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
- {"name":"production_updateJobOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateJobOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_updateJobOperationStatus","classification":"WRITE","paramCount":2,"schema":"b22654081076","response":"ac4a3201b981","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
- {"name":"production_updateJobOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateJobOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_updateJobStatus","classification":"WRITE","paramCount":3,"schema":"bb0874693c4d","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_updateKanbanJob","classification":"WRITE","paramCount":2,"schema":"2c22838be2d2","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},
- {"name":"production_updateMethodOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
- {"name":"production_updateProcedureStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
- {"name":"production_updateQuoteOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateMethodOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateProcedureStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
+ {"name":"production_updateQuoteOperationStepOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},
{"name":"production_upsertAssemblyComponentMapping","classification":"WRITE","paramCount":4,"schema":"9ed1f38ce764","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"production:create+update","paginates":false},
{"name":"production_upsertAssemblyInstruction","classification":"WRITE","paramCount":4,"schema":"a1796f1bd347","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"production:create+update","paginates":false},
{"name":"production_upsertAssemblyInstructionStep","classification":"WRITE","paramCount":1,"schema":"224cc2443995","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"production:create+update","paginates":false},
@@ -889,8 +889,8 @@
{"name":"purchasing_getSupplierContact","classification":"READ","paramCount":1,"schema":"bc2c630a873e","response":"6d2aa722b1ce","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierContacts","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"e28ccbd2c417","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierInteraction","classification":"READ","paramCount":1,"schema":"5e54451f6705","response":"e933ede17ac0","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
- {"name":"purchasing_getSupplierInteractionDocuments","classification":"READ","paramCount":1,"schema":"2df4b3d111cd","response":"95c1c04c0566","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
- {"name":"purchasing_getSupplierInteractionLineDocuments","classification":"READ","paramCount":1,"schema":"063a6777d378","response":"95c1c04c0566","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
+ {"name":"purchasing_getSupplierInteractionDocuments","classification":"READ","paramCount":1,"schema":"2df4b3d111cd","response":"18998cbb23b4","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
+ {"name":"purchasing_getSupplierInteractionLineDocuments","classification":"READ","paramCount":1,"schema":"063a6777d378","response":"18998cbb23b4","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierLocation","classification":"READ","paramCount":1,"schema":"bc2c630a873e","response":"4603d06d1055","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierLocations","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"6dad1063175d","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierPayment","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"24b286adf1ff","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
@@ -907,7 +907,7 @@
{"name":"purchasing_getSupplierQuotes","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"9e311e59b82e","injectAuth":"companyId","permission":"purchasing:view","paginates":true},
{"name":"purchasing_getSupplierQuotesForComparison","classification":"READ","paramCount":1,"schema":"4e16cef99961","response":"540207b2c74e","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSupplierQuotesList","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"967dcad15168","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
- {"name":"purchasing_getSupplierReportContacts","classification":"READ","paramCount":1,"schema":"f6d6276b4996","response":"40779b8d3971","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
+ {"name":"purchasing_getSupplierReportContacts","classification":"READ","paramCount":1,"schema":"f6d6276b4996","response":"3a10d699a924","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSuppliers","classification":"READ","paramCount":5,"schema":"3fbb04d0ef7e","response":"947b627d845e","injectAuth":"companyId","permission":"purchasing:view","paginates":true},
{"name":"purchasing_getSupplierShipping","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"17117a952d24","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
{"name":"purchasing_getSuppliersList","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"ce08332e0ce6","injectAuth":"companyId","permission":"purchasing:view","paginates":false},
@@ -1000,7 +1000,7 @@
{"name":"quality_getIssueReviewers","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"fa7631f38515","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getIssues","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"e08ce0758580","injectAuth":"companyId","permission":"quality:view","paginates":true},
{"name":"quality_getIssueSuppliers","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"2a7e42e2f8c2","injectAuth":"companyId","permission":"quality:view","paginates":false},
- {"name":"quality_getIssueTasks","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"1071578b0d70","injectAuth":"companyId","permission":"quality:view","paginates":false},
+ {"name":"quality_getIssueTasks","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"4a4afab580ba","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getIssueType","classification":"READ","paramCount":1,"schema":"bb6b04f68710","response":"63b5b3f8f143","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getIssueTypeByName","classification":"READ","paramCount":2,"schema":"858a6cb73bbb","response":"3797626bd17e","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getIssueTypes","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"95195653f3fc","injectAuth":"companyId","permission":"quality:view","paginates":true},
@@ -1015,7 +1015,7 @@
{"name":"quality_getQualityDocumentsList","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"f0df86b695e6","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getQualityDocumentSteps","classification":"READ","paramCount":1,"schema":"6d79e6870690","response":"55202747c3b2","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getQualityDocumentVersions","classification":"READ","paramCount":2,"schema":"89111eab017d","response":"63e52c70cbef","injectAuth":"companyId","permission":"quality:view","paginates":false},
- {"name":"quality_getQualityFiles","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"ffefd03548aa","injectAuth":"companyId","permission":"quality:view","paginates":false},
+ {"name":"quality_getQualityFiles","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"c8f657a900dd","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getReceiptInspections","classification":"READ","paramCount":1,"schema":"e00a9764517d","response":"e30d015c0242","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getRequiredAction","classification":"READ","paramCount":1,"schema":"cca3bf9f3ebb","response":"00f7e228e469","injectAuth":"companyId","permission":"quality:view","paginates":false},
{"name":"quality_getRequiredActions","classification":"READ","paramCount":3,"schema":"04eded31eebb","response":"477e4aa9ac3b","injectAuth":"companyId","permission":"quality:view","paginates":true},
@@ -1119,7 +1119,7 @@
{"name":"resources_updateAbility","classification":"WRITE","paramCount":2,"schema":"331c98a989f9","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"resources:update","paginates":false},
{"name":"resources_updateMaintenanceDispatch","classification":"WRITE","paramCount":18,"schema":"02877e9f1f8d","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"resources:update","paginates":false},
{"name":"resources_updateSuggestionEmoji","classification":"WRITE","paramCount":2,"schema":"dc61bce0f764","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:update","paginates":false},
- {"name":"resources_updateTrainingQuestionOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"resources:update","paginates":false},
+ {"name":"resources_updateTrainingQuestionOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"resources:update","paginates":false},
{"name":"resources_upsertContractor","classification":"DESTRUCTIVE","paramCount":1,"schema":"6630f8761e37","response":"bcde375ebd4c","injectAuth":"companyId+createdBy+updatedBy","permission":"resources:create+update","paginates":false,"upsert":"contractor(id)"},
{"name":"resources_upsertEmployeeAbilityCell","classification":"WRITE","paramCount":4,"schema":"800b78f5bbae","response":"3797626bd17e","injectAuth":"companyId","permission":"resources:create+update","paginates":false},
{"name":"resources_upsertFailureMode","classification":"WRITE","paramCount":4,"schema":"e4d170d8f468","response":"8394fbabd845","injectAuth":"companyId+createdBy+updatedBy","permission":"resources:create+update","paginates":false,"upsert":"id"},
@@ -1206,8 +1206,8 @@
{"name":"sales_getNoQuoteReasonsList","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"ce08332e0ce6","injectAuth":"companyId","permission":"sales:view","paginates":false},
{"name":"sales_getOpenSalesOrderLinesForItem","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"334d8429d21a","injectAuth":"companyId","permission":"sales:view","paginates":false},
{"name":"sales_getOpportunity","classification":"READ","paramCount":1,"schema":"5e54451f6705","response":"cdaf9ce57087","injectAuth":"companyId","permission":"sales:view","paginates":false},
- {"name":"sales_getOpportunityDocuments","classification":"READ","paramCount":1,"schema":"a4fcfa20a027","response":"95c1c04c0566","injectAuth":"companyId","permission":"sales:view","paginates":false},
- {"name":"sales_getOpportunityLineDocuments","classification":"READ","paramCount":2,"schema":"067400ea63f8","response":"95c1c04c0566","injectAuth":"companyId","permission":"sales:view","paginates":false},
+ {"name":"sales_getOpportunityDocuments","classification":"READ","paramCount":1,"schema":"a4fcfa20a027","response":"18998cbb23b4","injectAuth":"companyId","permission":"sales:view","paginates":false},
+ {"name":"sales_getOpportunityLineDocuments","classification":"READ","paramCount":2,"schema":"067400ea63f8","response":"18998cbb23b4","injectAuth":"companyId","permission":"sales:view","paginates":false},
{"name":"sales_getPricingRule","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"2a1e20313f8b","injectAuth":"companyId","permission":"sales:view","paginates":false},
{"name":"sales_getPricingRules","classification":"READ","paramCount":3,"schema":"cae7e7e05408","response":"f3613d31804a","injectAuth":"companyId","permission":"sales:view","paginates":true},
{"name":"sales_getQuote","classification":"READ","paramCount":1,"schema":"c726ae407913","response":"ee5f623bf074","injectAuth":"companyId","permission":"sales:view","paginates":false},
@@ -1283,7 +1283,7 @@
{"name":"sales_insertSalesOrder","classification":"WRITE","paramCount":17,"schema":"b76b79d52d88","response":"dbfc22813350","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create","paginates":false},
{"name":"sales_insertSalesReturnOrder","classification":"WRITE","paramCount":12,"schema":"307356313ba5","response":"c32485518acd","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create","paginates":false},
{"name":"sales_insertSalesRFQ","classification":"WRITE","paramCount":13,"schema":"5a54a12e500f","response":"0c1a1b93cca3","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create","paginates":false},
- {"name":"sales_recalculateQuoteLinePrices","classification":"WRITE","paramCount":2,"schema":"55ee981d3d94","response":"bef3efeea4ce","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
+ {"name":"sales_recalculateQuoteLinePrices","classification":"WRITE","paramCount":2,"schema":"55ee981d3d94","response":"6db20595d1b7","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_releaseSalesOrder","classification":"WRITE","paramCount":1,"schema":"d160a49d6787","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_reopenSalesReturnOrder","classification":"WRITE","paramCount":1,"schema":"3797626bd17e","response":"none","injectAuth":"companyId+userId","permission":"sales:update","paginates":false},
{"name":"sales_repriceQuoteLineFromRules","classification":"WRITE","paramCount":2,"schema":"55ee981d3d94","response":"bcde375ebd4c","injectAuth":"companyId","permission":"sales:update","paginates":false},
@@ -1303,8 +1303,8 @@
{"name":"sales_updateQuoteExchangeRate","classification":"WRITE","paramCount":2,"schema":"bca4d06461aa","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_updateQuoteLineOrder","classification":"WRITE","paramCount":2,"schema":"fce9a5d72ad3","response":"none","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_updateQuoteLinePrecision","classification":"WRITE","paramCount":3,"schema":"90f52ec96806","response":"none","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
- {"name":"sales_updateQuoteMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
- {"name":"sales_updateQuoteOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
+ {"name":"sales_updateQuoteMaterialOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
+ {"name":"sales_updateQuoteOperationOrder","classification":"WRITE","paramCount":1,"schema":"c822495a7892","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_updateQuoteStatus","classification":"WRITE","paramCount":3,"schema":"35467c4f9528","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_updateSalesOrder","classification":"WRITE","paramCount":9,"schema":"d9b815fe7f4c","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
{"name":"sales_updateSalesOrderExchangeRate","classification":"WRITE","paramCount":2,"schema":"bca4d06461aa","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},
@@ -1451,7 +1451,7 @@
{"name":"shared_lookupPriceFromBreaks","classification":"READ","paramCount":3,"schema":"14f107043636","response":"cddf8275afa1","injectAuth":"companyId","permission":"none","paginates":false},
{"name":"shared_resolveBuyUnitCost","classification":"WRITE","paramCount":3,"schema":"4c58915f44dd","response":"cddf8275afa1","injectAuth":"companyId","permission":"none","paginates":false},
{"name":"shared_resolveSupplierPrice","classification":"READ","paramCount":4,"schema":"c92834c91ef5","response":"cddf8275afa1","injectAuth":"companyId","permission":"none","paginates":false},
- {"name":"shared_updateSavedViewOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"646de62ab761","injectAuth":"companyId+updatedBy","permission":"none","paginates":false},
+ {"name":"shared_updateSavedViewOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"ce209a810cd2","injectAuth":"companyId+updatedBy","permission":"none","paginates":false},
{"name":"shared_upsertExternalLink","classification":"WRITE","paramCount":1,"schema":"33e54e07795a","response":"3797626bd17e","injectAuth":"companyId","permission":"none","paginates":false},
{"name":"shared_upsertSavedView","classification":"WRITE","paramCount":10,"schema":"88a0b7dfec62","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy+userId","permission":"none","paginates":false},
{"name":"users_deleteGroup","classification":"DESTRUCTIVE","paramCount":1,"schema":"c4dcdfdf8647","response":"bcde375ebd4c","injectAuth":"companyId","permission":"users:delete","paginates":false},
@@ -1480,8 +1480,8 @@
{"name":"users_getUserSelectGroups","classification":"READ","paramCount":4,"schema":"b459d00208b5","response":"51b54791b40a","injectAuth":"companyId","permission":"users:view","paginates":false},
{"name":"users_getUsersWithVerifiedMfa","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"4c1fdc714231","injectAuth":"companyId","permission":"users:view","paginates":false},
{"name":"users_insertGroup","classification":"WRITE","paramCount":1,"schema":"098974972159","response":"06c8b45796ca","injectAuth":"companyId","permission":"users:create","paginates":false},
- {"name":"users_resolveUserSelectIds","classification":"WRITE","paramCount":1,"schema":"0eb0c2be01ed","response":"7fdfa4c9e77e","injectAuth":"companyId","permission":"users:update","paginates":false},
- {"name":"users_searchUsersForSelect","classification":"READ","paramCount":4,"schema":"230b4891a4e5","response":"c9c1df9c3e28","injectAuth":"companyId+userId","permission":"users:view","paginates":false},
+ {"name":"users_resolveUserSelectIds","classification":"WRITE","paramCount":1,"schema":"0eb0c2be01ed","response":"62ac845cad71","injectAuth":"companyId","permission":"users:update","paginates":false},
+ {"name":"users_searchUsersForSelect","classification":"READ","paramCount":4,"schema":"230b4891a4e5","response":"80d2a04ba04a","injectAuth":"companyId+userId","permission":"users:view","paginates":false},
{"name":"users_upsertGroup","classification":"WRITE","paramCount":2,"schema":"f06d2d858884","response":"bcde375ebd4c","injectAuth":"companyId","permission":"users:create+update","paginates":false},
{"name":"users_upsertGroupMembers","classification":"DESTRUCTIVE","paramCount":2,"schema":"b32a69080685","response":"bcde375ebd4c","injectAuth":"companyId","permission":"users:create+update","paginates":false}
]
diff --git a/docs/app/global.css b/docs/app/global.css
index 336d4d9426..d33b082ad2 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -244,6 +244,18 @@
text-rendering: optimizeLegibility;
}
+ /* Keep reader-facing headlines even and body copy free of avoidable orphans
+ * without changing wrapping behavior in navigation or interactive controls. */
+ main :where(h1, h2, h3, h4, h5, h6):not(
+ :where(nav, aside, footer, [role="dialog"]) *
+ ) {
+ @apply text-balance;
+ }
+
+ main :where(p):not(:where(nav, aside, footer, [role="dialog"]) *) {
+ @apply text-pretty;
+ }
+
/* Editorial reading rhythm for the Guide surface (.guide-prose on the article) */
.guide-prose p,
.guide-prose li {
diff --git a/docs/content/docs/building/api-keys.mdx b/docs/content/docs/building/api-keys.mdx
index d4614e7e1d..4de214b87f 100644
--- a/docs/content/docs/building/api-keys.mdx
+++ b/docs/content/docs/building/api-keys.mdx
@@ -3,17 +3,17 @@ title: API keys
description: A scoped secret that lets an external system call the Carbon API on your behalf, with its own permissions.
---
-An <Term id="api-key">API key</Term> is a secret string that authenticates programmatic calls to Carbon. Where a person signs in and Carbon reads their session's permissions, a script sends its key on every request and Carbon reads the key's own permissions instead. A key belongs to one company and carries an explicit set of scopes, so you can hand a partner or a job exactly the access it needs and nothing more. Manage keys under **Settings → API Keys**.
+An <Term id="api-key">API key</Term> authenticates programmatic requests to Carbon. Each key belongs to one company and has explicit permission scopes independent of its creator. Manage keys under **Settings → API Keys**.
<Callout type="tip" title="Connectors don't need a key">
-Claude.ai, Claude Desktop, and ChatGPT connect over **OAuth**: add the server URL, approve in the browser, and the connection inherits the role and company of whoever authorized it. A key is for everything that can't do that browser dance: Claude Code, Cursor, VS Code, Codex, headless scripts, and CI (stdio-only clients bridge through `mcp-remote`). The [authentication reference](/api/authentication) covers both flows.
+Claude.ai, Claude Desktop, and ChatGPT connect over **OAuth**. The connection inherits the authorizing user's role and company. Use an API key for clients without browser-based OAuth, including Claude Code, Cursor, VS Code, Codex, headless scripts, and CI. Stdio-only clients connect through `mcp-remote`. See [Authentication](/api/authentication) for both flows.
</Callout>
## Creating a key
<Screenshot label="Settings → API Keys: the key list with masked previews, scopes, and rate limit, plus the one-time 'You can only see this key once' dialog" caption="The full key is shown exactly once at creation." />
-Click **New API Key**, give it a **Name** (unique within your company), optionally set **Expires At** (blank means never), grant scopes in the permission matrix, and save. Carbon shows the full key exactly once, in a dialog headed "You can only see this key once. Store it safely." — copy it right then. Only a SHA-256 hash and a five-character preview are kept, so a lost key means delete and recreate. The same dialog hands you a ready-to-paste MCP command that wires the key into an AI assistant.
+Select **New API Key**, enter a company-unique **Name**, optionally set **Expires At**, grant scopes, and save. A blank expiration means the key does not expire. Carbon displays the full key once and then stores only its SHA-256 hash and a five-character preview. Copy the key immediately; if it is lost, delete it and create another. The dialog also provides an MCP connection command.
<Callout type="warn" title="The key is a bearer secret">
Anyone holding the key can act as it, within its scopes. Store it in a secret manager, never commit it, and rotate (delete and recreate) if it leaks.
@@ -29,31 +29,31 @@ Host: rest.carbon.ms
Authorization: Bearer crbn_your_key_here
```
-There is no login step and no token to refresh. Carbon hashes the incoming key, looks it up, and checks expiry and the rate limit before letting the request through.
+API keys require no login or refresh flow. Carbon hashes each submitted key and checks its record, expiration, and rate limit before processing the request.
<Callout type="note" title="Bearer at the edge, carbon-key underneath">
-`rest.carbon.ms` takes `Authorization: Bearer crbn_…` and forwards it internally as the `carbon-key` header. Calling PostgREST directly on a self-hosted install, send `carbon-key: crbn_…` against `/rest/v1/<table>` instead. The MCP endpoint takes the same Bearer token either way.
+`rest.carbon.ms` accepts `Authorization: Bearer crbn_…` and forwards the token internally in the `carbon-key` header. For direct PostgREST calls on a self-hosted installation, send `carbon-key: crbn_…` to `/rest/v1/<table>`. The MCP endpoint accepts the Bearer token in either deployment.
</Callout>
## Scopes and rate limit
-A key does **not** inherit its creator's permissions: it acts with exactly the `module_action` scopes stored on it (`sales_view`, `inventory_create`, …), and only within its company. A key with no scopes can authenticate but read and write nothing. Scopes are checked on every request against the key's own record, so tightening them, or deleting the key, takes effect immediately. On Carbon Cloud, API access is a **Business-tier feature**: a company on the Starter plan gets `403` on every call regardless of the key's scopes; see [licensing](/docs/platform/licensing).
+A key has only its stored `module_action` scopes, such as `sales_view` or `inventory_create`, and can access only its company. A key with no scopes can authenticate but cannot read or write data. Scope changes and deletion take effect immediately. On Carbon Cloud, API access requires the **Business** plan; Starter-plan requests return `403` regardless of scope. See [Licensing](/docs/platform/licensing).
-A new key allows **20 requests per minute**, counted per key; a key created before the limit was lowered keeps the limit shown in its **Rate Limit** column. All of a company's keys together allow **60 requests per minute**, and requests refused on one key do not count against the others. Both limits are platform-controlled: the form has no rate-limit field, and the list's **Rate Limit** column is a report, not an input. A rejected request comes back `429` with `Retry-After` and `X-RateLimit-*` headers; wait it out rather than hammering through.
+New keys allow **20 requests per minute**. Existing keys retain the rate limit shown in the **Rate Limit** column. All keys for a company share a separate limit of **60 requests per minute**. Neither limit is configurable. A rejected request returns `429` with `Retry-After` and `X-RateLimit-*` headers; retry after the specified interval.
## What the key unlocks
-One key unlocks two surfaces. Reach for the **[Carbon API](/api)** first: the service layer, the same code the app runs when you click a button, with every call validating its input, recalculating what depends on it, and enforcing your permissions. Every operation is reachable two ways with the same arguments, plain HTTP at `POST /api/v1/{module}/{operation}` or a tool over [MCP](/api/mcp), and each carries a `READ` / `WRITE` / `DESTRUCTIVE` classification so a client can filter or gate by risk. Each operation has its own reference page with copyable samples in six languages, and the published OpenAPI spec means a typed client in your language is one generator command away — see [Client SDKs](/api/sdks).
+Use the **[Carbon API](/api)** by default. It validates input, updates derived data, and enforces permissions through Carbon's service layer. Each operation accepts the same arguments over HTTP at `POST /api/v1/{module}/{operation}` and through [MCP](/api/mcp). Operations are classified as `READ`, `WRITE`, or `DESTRUCTIVE` so clients can gate them by risk. The reference includes examples and an OpenAPI specification for generating [client SDKs](/api/sdks).
-The **[Data API](/api/data)** is direct REST access to every table and view, governed by the same row-level security as the app.
+The **[Data API](/api/data)** provides direct REST access to tables and views under the app's row-level security policies.
<Callout type="warn" title="The Data API is outside the service layer">
-It writes straight to tables, so Carbon does not recalculate the derived values (totals, statuses, ledger entries) it maintains when you write through the Carbon API. Use it when the Carbon API doesn't cover what you need and you know exactly what the table touches.
+Data API writes bypass the service layer and do not recalculate derived values such as totals, statuses, or ledger entries. Use direct writes only when the Carbon API does not expose the required operation and you understand all affected data.
</Callout>
## Keys versus webhooks
-An **API key** lets *you* call *Carbon*; a **[webhook](/docs/building/webhooks)** lets *Carbon* call *you* when a subscribed record changes. They're independent — webhook payloads aren't signed with a key — and the common pattern is both together: the webhook tells you *that* a record changed, your key fetches the full, current record.
+An **API key** authorizes requests to Carbon. A **[webhook](/docs/building/webhooks)** notifies your service when a subscribed record changes. They are independent: webhook payloads are not signed with an API key. A typical integration uses the webhook as a change notification, then fetches the current record with an API key.
<Cards>
<Card title="Webhooks" href="/docs/building/webhooks">
diff --git a/docs/content/docs/building/architecture.mdx b/docs/content/docs/building/architecture.mdx
index 77dd13d6f2..f992825114 100644
--- a/docs/content/docs/building/architecture.mdx
+++ b/docs/content/docs/building/architecture.mdx
@@ -3,80 +3,57 @@ title: Architecture
description: "One journey from a button click, through the server, into Postgres, out to background jobs, and back to the screen."
---
-Carbon is software that runs a manufacturing business: what it buys, what it holds in stock, what it
-builds, what it ships, and whether the quality held up. Two separate apps do that. The **ERP** is the
-office app, where people quote, purchase, plan and invoice. The **MES** is the shop floor app, used on
-tablets next to the machines to run and record the actual work.
+Carbon uses two applications over one manufacturing data model. The **ERP** manages quoting, purchasing,
+planning, inventory, accounting, and shipping. The **MES** records and controls shop-floor work, typically
+from tablets at work centers.
-This page follows one journey. A user clicks a button, something is saved, other things happen because
-of it, and the screen updates. Everything else hangs off that spine. [Part 1](#part-1-the-map) and
-[Part 2](#part-2-follow-one-click-all-the-way-down) are the ones to read in order; the rest stands on
-its own, so take it in any order you like.
+This page traces a write from the UI through validation, authorization, persistence, background work, and
+UI refresh. Read [Part 1](#part-1-the-map) and [Part 2](#part-2-follow-one-click-all-the-way-down) in order.
+The remaining sections are independent references.
-Any term you might not know is marked with a number the first time it appears, like this:
-Postgres [[17]](#g17). The number links to a one-line definition in the [Glossary](#glossary) at the
-end. Nothing is assumed.
+Numbered references such as Postgres [[17]](#g17) link to definitions in the [Glossary](#glossary).
<Callout type="note" title="A snapshot, not a contract">
- The file paths, line numbers and counts throughout are accurate as of August
- 2026. They will drift as the repository moves; the ideas they illustrate
- outlast them.
+ File paths, line numbers, and counts are accurate as of August 2026 and may change as the repository evolves.
</Callout>
---
## Part 1: The map
-Carbon is a monorepo [[10]](#g10): one Git repository holding several applications and
-about twenty-five shared libraries, built together by pnpm workspaces and
-Turborepo [[25]](#g25). Two of those applications are the products people log into, the
-ERP and the MES. Everything else exists to serve them.
+Carbon is a monorepo [[10]](#g10) containing several applications and approximately 25 shared libraries,
+managed with pnpm workspaces and Turborepo [[25]](#g25). ERP and MES are the primary user-facing applications.
-The center of gravity is a single Postgres [[17]](#g17) database. Almost every arrow in
-this doc eventually points at it. Unusually for a web app, a lot of logic that you might
-expect to live in application code lives _inside_ the database instead: permissions,
-computed totals, and the "something changed" notifications. That is the single most
-important thing to understand about Carbon, and [Part 3](#part-3-layer-by-layer) explains why.
+One Postgres [[17]](#g17) database is the system of record. It also enforces row-level permissions,
+computes derived values, and emits change events. [Part 3](#part-3-layer-by-layer) describes these responsibilities.
<Diagram
name="map"
caption="Everything Carbon runs. The loop on the right is the surprise: Inngest is a timer and a queue, but the job itself executes back inside the ERP."
/>
-Color is used sparingly in these diagrams, and it means the same thing in all of them:
-**blue** is our own apps, **pink** is stored state, **amber** is work that happens in the
-background. Everything else is left plain on purpose.
+In each diagram, **blue** represents Carbon applications, **pink** represents stored state, and **amber** represents background work.
-**The five things worth taking from that picture:**
+Key properties:
-1. **The ERP app is the hub.** It serves pages, and it is also where background jobs
- execute. Inngest [[5]](#g5) does not run our code on its own machines; it calls back
- into the ERP container: it is a timer and a queue that POSTs to `/api/inngest` saying
- "run this job now", and our own code does the work. See
+1. **The ERP app is the hub.** It serves pages and executes background jobs. Inngest [[5]](#g5)
+ schedules work and sends requests to `/api/inngest`; the ERP container executes the code. See
[Part 4](#part-4-what-happens-after-the-write).
2. **Most database access is not raw SQL.** It goes through PostgREST [[18]](#g18), a
- service that turns `client.from("purchaseOrder").select(...)` into a SQL query. We use
- the `supabase-js` library to talk to it.
-3. **The database enforces permissions itself.** Even if application code forgets a
- filter, Postgres will not return another company's rows. (Except on one specific
- escape hatch: see [Part 3](#part-3-layer-by-layer).)
-4. **Writes on the right tables cause events automatically.** Around ninety tables opt
- in to a database trigger, and where a company has subscribed to one, search indexing,
- webhooks, audit logs and customer automations all happen without the code that did the
- write knowing about them.
-5. **The Rust service is optional.** It turns uploaded CAD files into 3D models the
- browser can show, and works out the order parts come apart in for assembly
- instructions. Carbon runs fine without it.
+ service that translates `client.from("purchaseOrder").select(...)` into SQL. Application code accesses it through `supabase-js`.
+3. **The database enforces tenant access.** Row-level security prevents access to another company's rows,
+ except when code explicitly uses the service-role client. See [Part 3](#part-3-layer-by-layer).
+4. **Selected writes emit events automatically.** Approximately 90 tables use database triggers to initiate
+ subscribed search indexing, webhooks, audit logs, and customer workflows.
+5. **The Rust service is optional.** It converts CAD files to browser-renderable 3D models and plans
+ disassembly sequences for assembly instructions. Core Carbon functions without it.
---
## Part 2: Follow one click all the way down
-Here is the whole system in one story: **a buyer creates a Purchase Order.**
-
-Pick this one apart and you have seen every layer: a form, validation, a permission
-check, a database write, logic living in Postgres, a background side effect, and the
-screen updating. Every other feature in Carbon is a variation on it.
+This section follows a buyer creating a purchase order through the form, validation, permission check,
+database write, Postgres logic, background side effect, and UI refresh.
### The short version
@@ -85,12 +62,11 @@ screen updating. Every other feature in Carbon is a variation on it.
caption="One click, all the way down. Every hop crosses a layer, and everything above the dashed line happens while the user waits."
/>
-Notice the shape: the user's request finishes as soon as the row is written. The search
-indexing happens afterwards, on its own, and nobody waited for it.
+The request completes after the row is written. Search indexing runs asynchronously.
### The same story, with real files
-Every path below is real. Open them in your editor as you read.
+The following paths point to the implementation as of August 2026.
**1. The button.** It is a link, not a submit button.
@@ -104,10 +80,8 @@ primaryAction={
}
```
-Two conventions in three lines. `permissions.can(...)` hides UI the user is not allowed
-to use; this is _cosmetic only_, the real check happens on the server. And the URL comes
-from `path.to.*`, a single registry of every URL in the app
-(`apps/erp/app/utils/path.ts`, ~2,200 lines). **Never hardcode a URL string.**
+`permissions.can(...)` hides actions the user cannot perform, but the server performs the authoritative
+permission check. `path.to.*` references the route registry in `apps/erp/app/utils/path.ts`; do not hardcode application URLs.
**2. The form.** `apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm.tsx:116`
@@ -119,11 +93,9 @@ from `path.to.*`, a single registry of every URL in the app
>
```
-`ValidatedForm` is our wrapper around a plain HTML form. You hand it a schema; it blocks
-submission and shows inline field errors if the data is wrong, and it re-displays server
-errors in the same place. Fields (`<Input name="...">`, `<Supplier name="...">`) come
-from `~/components/Form`, which re-exports generic inputs plus about ninety
-Carbon-specific pickers (Customer, Supplier, Item, Location, Currency…).
+`ValidatedForm` wraps an HTML form with schema-based client and server error display. Fields such as
+`<Input name="...">` and `<Supplier name="...">` come from `~/components/Form`, which exports generic inputs
+and Carbon-specific selectors.
**3. The schema.** `apps/erp/app/modules/purchasing/purchasing.models.ts:127`
@@ -139,14 +111,10 @@ export const purchaseOrderValidator = z.object({
});
```
-zod [[28]](#g28) is a schema library: you describe the shape of the data once, and get
-both runtime validation and a TypeScript type from it. `zfd` (`zod-form-data`) handles the
-fact that HTML forms send everything as strings: `zfd.text()` turns an empty field into
-`undefined` rather than `""`.
+zod [[28]](#g28) provides runtime validation and inferred TypeScript types. `zod-form-data` (`zfd`)
+normalizes HTML form values; for example, `zfd.text()` converts an empty field from `""` to `undefined`.
-**One schema, used in three places:** the browser validates against it, the server
-re-validates against it, and the service function's argument type is derived from it. That
-is why the three can never drift apart.
+The browser and server validate against the same schema, and the service argument type is derived from it.
**4. The route.** `apps/erp/app/routes/x+/purchase-order+/new.tsx:29`
@@ -186,7 +154,7 @@ export async function action({ request }: ActionFunctionArgs) {
}
```
-This is the shape of _every_ write in Carbon:
+Carbon writes follow this sequence:
> **assert the method → check permissions → validate → call a service → redirect.**
@@ -198,16 +166,11 @@ A file under `apps/erp/app/routes/` can export up to three things that matter he
| `action` [[1]](#g1) | server only | handle a form submission |
| `export default` | server first, then browser | the React component |
-`loader` and `action` are stripped out of the JavaScript sent to the browser, so it is
-safe to use secrets and database clients in them. This is the same idea as Next.js
-server components or a traditional controller; the file just happens to hold both
-halves.
+`loader` and `action` are excluded from browser JavaScript, so they can use secrets and server-only database clients.
**5. The service function.** `apps/erp/app/modules/purchasing/purchasing.service.ts:1393`
-Routes never talk to the database directly. They call a _service function_: a plain
-function whose first argument is a database client and which returns Supabase's raw
-`{ data, error }` without throwing.
+Routes call service functions instead of accessing the database directly. A service function accepts a database client as its first argument and returns Supabase's `{ data, error }` result.
```ts
const seq = await client.rpc("get_next_sequence", {
@@ -242,32 +205,24 @@ if (delivery.error || payment.error) {
}
```
-That last block is the honest, ugly truth about `supabase-js`: **three `.insert()` calls
-are three separate HTTP requests, so they are not a transaction.** If the second fails,
-the first is already committed, and we have to undo it by hand. When you need a real
-transaction, use Kysely [[6]](#g6) instead. See
+Each `supabase-js` `.insert()` call is a separate HTTP request, not part of a transaction. If a later write
+fails, earlier writes remain committed unless explicitly reversed. Use Kysely [[6]](#g6) when writes require a transaction. See
[Part 3.3](#33-the-service-layer-four-doors-to-the-database).
-**6. What Postgres does by itself.** Two things happened that no TypeScript asked for.
+**6. Database-side behavior.** Postgres performs two additional operations.
_The order number._ `client.rpc("get_next_sequence", ...)` calls an RPC [[21]](#g21), a
function that lives _inside_ the database
(`packages/database/supabase/migrations/20241115101526_rpc-get-next-sequence.sql`). It
-reads and bumps a counter and formats the result (`PO` + zero-padding + optional date
-tokens) in a single atomic step. Doing this in application code would hand two
-simultaneous buyers the same number.
-
-_The event._ Every insert into `purchaseOrder` fires a Postgres **trigger**, a function
-the database runs automatically on a write. It drops a small JSON message onto a queue
-that lives in a database table. Nothing in the route knows this is happening. [Part 4](#part-4-what-happens-after-the-write)
-follows that message to the end.
-
-**7. The screen updates.** The action ends with `throw redirect(...)`. React Router
-follows the redirect and runs the destination's `loader`, which re-reads from the
-database and renders the finished page. There is no client-side cache to invalidate and
-no "add the new row to the list in state" code. **After any non-GET submission, React
-Router automatically re-runs the loaders for the current page.** That is the whole
-refresh mechanism.
+atomically increments a counter and formats the result with `PO`, zero-padding, and optional date tokens.
+
+_The event._ Every `purchaseOrder` insert invokes a Postgres trigger. If the company has an active subscription
+for that table and operation, the trigger queues a JSON message. The route does not initiate this behavior.
+[Part 4](#part-4-what-happens-after-the-write) traces the event.
+
+**7. The screen updates.** The action ends with `throw redirect(...)`. React Router follows the redirect,
+runs the destination `loader`, reads current database state, and renders the page. After any non-GET submission,
+React Router automatically revalidates the current page's loaders.
---
@@ -275,10 +230,9 @@ refresh mechanism.
### 3.1 The browser and the route file
-The apps are **React Router v7** in framework mode: server-rendered React, where a
-single file owns both a URL's data-loading and its UI. (It is not Remix and not Next.js,
-though it is the direct descendant of Remix.) Vite [[27]](#g27) builds it; Tailwind v4
-styles it.
+The applications use **React Router v7** in framework mode with server-rendered React. A route file can
+define both data loading and UI. Carbon does not use Remix or Next.js for ERP and MES. Vite [[27]](#g27)
+builds the applications, and Tailwind v4 provides styling.
**Routes are files on disk.** `apps/erp/app/routes/` has about 1,400 of them, and the
folder structure _is_ the URL structure, with a few conventions:
@@ -293,48 +247,37 @@ folder structure _is_ the URL structure, with a few conventions:
| `_index.tsx` | the page for the folder's own URL |
| `*.server.ts` | ignored by the router; a helper file that never reaches the browser |
-Top-level namespaces: `x+` is the logged-in app (66 module folders), `api+` holds JSON
-endpoints with no UI, `_public+` is login/logout, and `share+` is the _unauthenticated_
-surface: links you email to a customer to view a quote.
+At the top level, `x+` contains authenticated application routes, `api+` contains JSON endpoints,
+`_public+` contains authentication routes, and `share+` contains token-authenticated public links.
-**Getting data in.** A `loader` runs on the server, calls service functions, and returns
-plain JSON; the component reads it with `useLoaderData<typeof loader>()`. Data shared by
-the whole app (the current user, their company, their permissions, feature flags) is
-loaded once in `apps/erp/app/routes/x+/_layout.tsx` (about eighteen parallel queries) and
-read anywhere via hooks like `useUser()`, `usePermissions()`, `useCompanySettings()`.
-Those hooks read the layout route's loader data, not a React context.
+**Getting data in.** A server-side `loader` calls service functions and returns JSON. The component reads it with
+`useLoaderData<typeof loader>()`. `apps/erp/app/routes/x+/_layout.tsx` loads shared user, company, permission,
+and feature-flag data. Hooks such as `useUser()`, `usePermissions()`, and `useCompanySettings()` read this loader data.
-**Getting data out.** Forms post to an `action`, as in [Part 2](#part-2-follow-one-click-all-the-way-down). For writes that should
-_not_ navigate (reordering rows, an inline edit, a delete button), use `useFetcher()`,
-which posts in the background and still triggers the automatic revalidation.
+**Getting data out.** Forms post to an `action`, as shown in [Part 2](#part-2-follow-one-click-all-the-way-down). Use `useFetcher()` for writes that should not navigate,
+such as reordering, inline edits, or deletion. Fetcher submissions still trigger automatic revalidation.
-**Shared UI.** Look in two places before writing a component:
+**Shared UI.** Check these locations before adding a component:
- `packages/react/`: the design system (`@carbon/react`). Buttons, modals, comboboxes,
- menus, layout primitives. Built on Radix UI [[19]](#g19) and Tailwind.
+ menus, and layout primitives built on Radix UI [[19]](#g19) and Tailwind.
- `apps/erp/app/components/`: app-level pieces. The big one is
- `components/Table/Table.tsx`, a single generic table (~1,500 lines, built on TanStack
- Table) that every list screen uses. It handles sorting, filtering, pagination, saved
- views, CSV import/export, column visibility and inline editing. You pass `data`,
- `columns` and `count`; the server does the paging via URL search params.
+ `components/Table/Table.tsx`, a generic TanStack Table implementation used by list screens. It handles sorting,
+ filtering, pagination, saved views, CSV import and export, column visibility, and inline editing. The server
+ performs pagination from URL search parameters.
-**Client state** is deliberately small. Reference lists that everything needs (items,
-customers, suppliers, people) live in nanostores [[13]](#g13) and are kept fresh by
-`RealtimeDataProvider`. Ephemeral UI state (is the search modal open) uses
-zustand [[29]](#g29). User and permission data lives in _neither_; it comes from the
-route loader.
+**Client state** is limited. Shared reference lists use nanostores [[13]](#g13) and are refreshed by
+`RealtimeDataProvider`. Ephemeral UI state uses zustand [[29]](#g29). User and permission data comes from route loaders.
-**Translations** use Lingui [[7]](#g7): wrap a string in `` t`...` `` or `<Trans>`, run
-`pnpm lingui:extract`, and translators fill in thirteen locale files.
+**Translations** use Lingui [[7]](#g7). Mark strings with `` t`...` `` or `<Trans>`, then run `pnpm lingui:extract`.
-**MES is the same stack, simpler.** No `modules/` folder: services sit flat in
+**MES uses the same stack with a flatter structure.** It has no `modules/` folder: services are in
`apps/mes/app/services/`, all validators in one `models.ts`, routes are one flat level,
and the UI is built for gloved hands on a tablet.
### 3.2 The gate: who is allowed to do what
-Every server-side entry point in Carbon starts with the same call. There are about 1,600
-of them.
+Server-side entry points use `requirePermissions` for authentication and authorization.
```ts
const { client, companyId, userId } = await requirePermissions(request, {
@@ -342,27 +285,20 @@ const { client, companyId, userId } = await requirePermissions(request, {
});
```
-Defined at `packages/auth/src/services/auth.server.ts:195`. It does four jobs at once:
+Defined at `packages/auth/src/services/auth.server.ts:195`, it performs four operations:
-1. **Identifies the caller.** Either from the session cookie (a browser) or from a
- `carbon-key` header (our public API, which additionally gets rate-limited and scope-checked).
+1. **Identifies the caller** from a browser session cookie or the public API's rate-limited, scope-checked `carbon-key` header.
2. **Loads their permissions.** Permissions are stored as `<module>_<action>` keys such
as `purchasing_create` or `sales_view`, each mapping to the list of companies where the
user holds it. They are fetched by a Postgres function called `get_claims` and cached
in Redis for an hour. They are _not_ in the JWT.
-3. **Refuses if they lack it.** Redirect to login if not signed in at all, or an "Access
- Denied" toast otherwise.
-4. **Hands back a database client already scoped to this user**, plus their `companyId`
- and `userId`.
+3. **Rejects unauthorized requests.** Unauthenticated users are redirected to login; unauthorized users receive an **Access Denied** message.
+4. **Returns a user-scoped database client**, `companyId`, and `userId`.
-**Multi-tenancy** [[12]](#g12) is the reason for a lot of what follows: Carbon is one
-database serving many customer companies. Nearly every table has a `companyId` column and
-a composite primary key `("id", "companyId")`. Which company you are acting as is read
-from your session cookie, never from the URL.
+Carbon uses **multi-tenancy** [[12]](#g12): one database serves multiple companies. Nearly every table has a
+`companyId` and composite primary key `("id", "companyId")`. The active company comes from the session, not the URL.
-**RLS (Row Level Security)** [[20]](#g20) is the part worth understanding even if you
-never write SQL. It is a Postgres feature where each table carries a rule that is silently
-`AND`ed onto every query the database receives. Ours look like this:
+**Row-level security (RLS)** [[20]](#g20) adds each table's access policy to database queries. For example:
```sql
CREATE POLICY "SELECT" ON "public"."reportPin"
@@ -371,30 +307,22 @@ FOR SELECT USING (
);
```
-So if a query for another company's purchase orders reaches Postgres, it returns zero
-rows. The tenant boundary is enforced by the database, not by us remembering a `.eq()`.
-Service functions still filter by `companyId` anyway, as a second line of defense.
+Queries for another company's records return no rows. Service functions also filter by `companyId` for defense in depth.
-**The escape hatch.** Notice `bypassRls: true` in the Purchase Order action. RLS costs
-real query time on hot paths, so for trusted employee requests we hand back a service-role
-[[22]](#g22) client that skips it entirely. That is a deliberate trade, and it moves the
-responsibility back to us: any loader using `bypassRls` must re-check the tenant by hand,
-as the PO detail route does:
+**The escape hatch.** `bypassRls: true` returns a service-role [[22]](#g22) client for trusted employee
+requests on performance-sensitive paths. Because this client bypasses RLS, each loader must verify tenant ownership explicitly:
```ts
if (purchaseOrder.data?.companyId !== companyId)
throw redirect(path.to.purchaseOrders);
```
-**Three kinds of user** share one login system, distinguished by a `role` on their
-company membership: `employee`, `customer`, `supplier`. Portal users get much narrower
-permission sets, and routes can demand `{ role: "employee" }`. Separately, `share+/`
-routes are fully unauthenticated; a long unguessable token in the URL is the credential.
+Company membership assigns one of three roles: `employee`, `customer`, or `supplier`. Portal users have narrower
+permissions, and routes can require `{ role: "employee" }`. `share+/` routes use an unguessable URL token instead of login authentication.
### 3.3 The service layer: four doors to the database
-A service function's first argument is always a client, and there is more than one kind.
-Picking the wrong one is the most common mistake made here.
+A service function accepts a database client as its first argument. Select the client based on the required security and transaction behavior.
<Diagram
name="doors"
@@ -404,10 +332,8 @@ Picking the wrong one is the most common mistake made here.
**1. The user-scoped client.** What `requirePermissions` normally returns. Every query
runs as that user with RLS applied. Use it unless you have a reason not to.
-**2. The service-role client** (`getCarbonServiceRole()`) ignores RLS entirely. Needed
-by background jobs (which have no logged-in user), by `share+/` routes, and by
-`bypassRls: true` requests. **You are now the only thing standing between a bug and a
-cross-tenant data leak.**
+**2. The service-role client** (`getCarbonServiceRole()`) bypasses RLS. Background jobs, `share+/` routes,
+and `bypassRls: true` requests use it. Every query must enforce `companyId` explicitly.
**3. Kysely** is a TypeScript SQL query builder that holds a real connection to Postgres,
so it can open a real transaction. This is the answer to the "three inserts aren't
@@ -430,18 +356,11 @@ await db.transaction().execute(async (trx) => {
});
```
-Four warnings. Kysely **throws** on failure rather than returning `{ error }`, so wrap it
-in `try/catch`. It applies **no** RLS, so authorize before you call it, and then scope
-**every** statement yourself: `companyId` always, plus the parent document's id whenever
-the row ids come from the request. Without the parent filter, a request sent through one
-quote's URL could reorder the lines of any other quote in the company, including one
-that is already closed. Write one statement for the whole set rather than a query per row
-inside a loop. And the pool it
-draws from is small (edge functions ask for exactly one connection,
-`getConnectionPool(1)`): if code inside a transaction reaches for a second connection from
-the same pool, that second request queues behind a transaction that cannot finish until it
-is served, and the whole thing hangs until the timeout. Do all the work of a transaction
-on the `trx` handle you were given, never on `db`.
+Kysely **throws** on failure and applies no RLS. Wrap calls in `try/catch`, authorize before execution, and scope
+every statement by `companyId` and, when row IDs come from a request, the parent document ID. Update sets in one
+statement instead of querying in a loop. Connection pools can contain only one connection, especially in edge
+functions using `getConnectionPool(1)`. Inside a transaction, use only the provided `trx` handle; requesting another
+connection through `db` can deadlock until timeout.
**4. Edge functions** are small programs written for Deno [[2]](#g2), deployed next to the
database and called over HTTP [[4]](#g4). There are about forty in
@@ -455,30 +374,21 @@ const { data, error } = await client.functions.invoke("post-shipment", {
});
```
-They exist for two reasons: they can hold a database connection and run a big
-multi-thousand-row transaction properly, and they are callable from anywhere (the ERP,
-the MES, a background job, the public API), not just from a route handler.
+Edge functions can run large database transactions and are callable from ERP, MES, background jobs, and the public API.
-"Heavy" here means heavy in SQL, not heavy in the function. Supabase caps an edge function
-tightly, a couple of hundred megabytes of memory and a short processor-time budget, far
-below a normal server or an ordinary Lambda, so the useful pattern is to let Postgres do
-the lifting and keep the function itself thin. Work that is heavy in JavaScript, or that
-runs for minutes, belongs in an Inngest job instead; work that needs real computing power,
-like CAD geometry, belongs in the Rust service.
+Edge functions are appropriate for SQL-intensive work but have limited memory and CPU time. Keep function code thin
+and perform set-based work in Postgres. Use Inngest for long-running JavaScript and the Rust service for compute-intensive CAD geometry.
-There is also a fifth, narrower door: **RPCs**, plain Postgres functions called with
-`client.rpc("name", args)`. About 85 call sites. `get_next_sequence` from [Part 2](#part-2-follow-one-click-all-the-way-down) is one.
+**RPCs** are a narrower fifth path: Postgres functions called with `client.rpc("name", args)`. `get_next_sequence` from [Part 2](#part-2-follow-one-click-all-the-way-down) is one example.
### 3.4 The database
-Postgres 15, wrapped by Supabase [[24]](#g24), an open-source bundle that adds an
-auto-generated REST API (PostgREST), user authentication, file storage, a realtime change
-feed, and the edge function runtime, all on top of one ordinary Postgres database.
+Carbon uses Postgres 15 through Supabase [[24]](#g24), which adds PostgREST, authentication, file storage,
+realtime changes, and an edge-function runtime.
-Rough size, for a sense of scale: **923 migration files**, 362 tables,
-101 views, 238 database functions, 154 enum types.
+As of August 2026, the schema contains **923 migration files**, 362 tables, 101 views, 238 database functions, and 154 enum types.
-**Migrations** [[9]](#g9). Every schema change is a timestamped SQL file in
+Each **migration** [[9]](#g9) is a timestamped SQL file in
`packages/database/supabase/migrations/`, named `YYYYMMDDHHMMSS_kebab-name.sql`. Create
one with `pnpm db:migrate:new <name>`, apply with `pnpm db:migrate`. They are applied in
filename order and never edited after merge.
@@ -499,42 +409,30 @@ CREATE TABLE "itarCertification" (
ALTER TABLE "public"."itarCertification" ENABLE ROW LEVEL SECURITY;
```
-`id('itc')` generates a prefixed, sortable, URL-safe id such as `itc_3xK9...`. The prefix tells
-you what an id refers to at a glance.
-
-**Views** [[26]](#g26) **are the read path.** This is the second-most-important idea in
-Carbon after RLS.
+`id('itc')` generates a prefixed, sortable, URL-safe ID such as `itc_3xK9...`.
-We **write to tables** but **read from views**. A view is a saved query that behaves like
-a table. `purchaseOrders` (plural, that is the naming convention) joins in the supplier
-name, sums the line amounts into `orderTotal`, converts currency, counts received
-quantities, and fetches a thumbnail. So the create path never calculates a total: it
-inserts a header, and the view derives everything else on read.
+**Views** [[26]](#g26) are the primary read path. Carbon **writes to tables** and **reads from views**.
+For example, the plural `purchaseOrders` view joins the supplier name, calculates `orderTotal`, converts
+currency, counts received quantities, and retrieves a thumbnail. The write path inserts source data; the view derives display values.
<Diagram
name="paths"
caption="Writes land in tables; reads come back through views, which is where computed values like order totals live."
/>
-When a list screen shows a number you cannot find in any table, look for the view. They
-are defined in migrations, always with `WITH (security_invoker = true)` so the caller's
-RLS still applies.
+Views are defined in migrations with `WITH (security_invoker = true)` so the caller's RLS policies apply.
-**Types are generated, never written.** `pnpm run generate:types` points the Supabase CLI
-at your local database and writes `packages/database/src/types.ts`, about 80,000 lines
-describing every table, view, function and enum. App code imports from it:
+**Database types are generated.** `pnpm run generate:types` reads the local schema and writes
+`packages/database/src/types.ts`, which describes each table, view, function, and enum. Application code imports from it:
```ts
import type { Database } from "@carbon/database";
type PurchaseOrderRow = Database["public"]["Tables"]["purchaseOrder"]["Row"];
```
-**Run `pnpm run generate:types` after pulling migrations or writing one, before you
-typecheck.** Half of all "this property doesn't exist" errors are a stale types file.
+Run `pnpm run generate:types` after pulling or creating migrations and before typechecking. Do not edit generated types directly.
-**Logic that lives in Postgres.** We push logic into the database when it must hold true
-for _every_ writer: the ERP, the MES, an edge function, a background job, the public
-API, or someone running SQL by hand. Two examples:
+**Database logic** enforces invariants across ERP, MES, edge functions, background jobs, the public API, and direct SQL. Examples:
- `update_picking_list_status()` is a trigger that recomputes a picking list's header
status whenever one of its lines changes. Written from four different places;
@@ -551,30 +449,20 @@ per company and `temp-staging` for large CAD uploads.
## Part 4: What happens after the write
-Back to that queued event. This chain is the piece most likely to surprise you, because
-none of it is visible from the code that did the write.
-
-It is not every write, though. A table only emits events once a migration has opted it in
-with `attach_event_trigger('tableName')` — about ninety have — and even then the trigger
-enqueues nothing unless that company has an **active subscription** matching the table and
-the operation. So the same `UPDATE` can fan out to six handlers for one company and do
-absolutely nothing for another.
+Event processing is independent of the code that performs a write. A table emits events only after a migration
+registers it with `attach_event_trigger('tableName')`. The trigger enqueues work only when the company has an
+active subscription for the table and operation. The same `UPDATE` can therefore invoke several handlers for one company and none for another.
<Diagram
name="events"
caption="A subscribed write becomes up to six side effects, none of them visible from the code that did the write."
/>
-Three unfamiliar pieces in that chain: PGMQ [[16]](#g16) is the queue, which lives in
-ordinary Postgres tables so a trigger can write to it inside the same transaction;
-pg_net [[15]](#g15) is what lets the database make the outbound HTTP ping after that
-transaction commits; and Inngest [[5]](#g5) is the background job runner.
+PGMQ [[16]](#g16) stores the queue in Postgres so triggers can enqueue work in the same transaction.
+After commit, pg_net [[15]](#g15) sends an HTTP request to Inngest [[5]](#g5), the background job runner.
-In plain terms, Inngest works like this: you send it a named event, it calls one of your
-registered functions over HTTP, and it remembers how far that function got. Each
-`step.run("id", fn)` inside a function is a checkpoint: if step four fails and retries,
-steps one to three are not re-executed; their saved results are handed back. That is why
-it is used for anything that must survive a crash.
+Inngest maps named events to registered HTTP functions and persists step results. Each `step.run("id", fn)`
+is a checkpoint; a retry resumes after completed steps instead of executing them again.
The wiring is three files:
@@ -584,12 +472,9 @@ The wiring is three files:
| The list of all 55 job functions | `packages/jobs/src/inngest/index.ts` |
| The HTTP endpoint Inngest calls | `apps/erp/app/routes/api+/inngest.ts` |
-That last row is the surprising one: **background jobs run inside the ERP container.**
-Inngest is a scheduler and a memory, not a compute host.
+**Background jobs run inside the ERP container.** Inngest schedules requests and persists execution state; it does not host Carbon's job code.
-**Firing a job on purpose.** The automatic trigger path above is for row changes. When
-code wants to _deliberately_ kick something off, it calls the typed helper `trigger()`
-(about 108 call sites):
+**Firing a job on purpose.** For explicit job initiation, call the typed `trigger()` helper:
```ts
await trigger("notify", {
@@ -599,17 +484,15 @@ await trigger("notify", {
Event names are always `carbon/<something>`.
-**Scheduled work** comes from two places. Inngest crons handle app-level jobs: MRP every
+**Scheduled work** has two sources. Inngest cron schedules run application jobs: MRP every
three hours, notification digests every fifteen minutes, exchange rates and audit
archiving nightly, workflow-run cleanup at 04:00. All of them are UTC, and any job that
needs a company's local day computes it inside the run. Database-level maintenance uses
pg_cron [[14]](#g14) instead, for refreshing cached aggregate tables and sweeping the event
queue.
-**Notifications** fan out from one job (`packages/jobs/.../notifications/notify.ts`) to
-three destinations: in-app rows (which the topbar picks up live over Realtime), email via
-Resend, and Slack. `packages/notifications` itself is only the list of event types; it
-sends nothing.
+**Notifications** originate in `packages/jobs/.../notifications/notify.ts` and target in-app records, Resend email,
+and Slack. The top bar receives in-app records through Realtime. `packages/notifications` defines event types but does not send messages.
---
@@ -617,9 +500,7 @@ sends nothing.
### Workflows: the customer's own automations
-Carbon ships a drag-and-drop canvas where a _customer_ builds "when a quote is accepted,
-notify the account manager and create a job". Confusingly these are also called
-workflows, and they are a completely different thing from Inngest jobs:
+Customers configure workflows on a drag-and-drop canvas. These workflows are separate from Inngest jobs:
| | Inngest jobs | Workflows |
| ---------- | ----------------------------- | ---------------------------------------- |
@@ -628,12 +509,9 @@ workflows, and they are a completely different thing from Inngest jobs:
| Runs as | service role, sees everything | **the workflow's owner**, with their RLS |
| Changed by | a deploy | the customer, at any moment |
-They reuse the event pipeline from [Part 4](#part-4-what-happens-after-the-write), the `WORKFLOW` branch. A matcher takes the
-row change, works out which catalog events it corresponds to, finds subscribed workflows,
-and queues one run each. `packages/workflows` holds the pure definition/validation logic
-and touches nothing; `packages/jobs/src/workflows/` holds the runtime that actually does
-things. Every run and every step is recorded, so a customer can open a run and see what
-happened.
+The `WORKFLOW` branch of the [Part 4](#part-4-what-happens-after-the-write) event pipeline maps row changes to catalog events,
+finds subscribed workflows, and queues a run for each. `packages/workflows` contains pure definition and validation logic.
+`packages/jobs/src/workflows/` contains the runtime. Carbon records every run and step for inspection.
### The Assembler: the Rust service
@@ -641,21 +519,17 @@ happened.
web-renderable 3D (GLB) and plans a collision-free disassembly sequence for assembly
instructions. It wraps two C++ libraries (OpenCASCADE for geometry, FCL for collision).
`packages/viewer` renders its output in the browser.
-It is entirely optional; everything else boots without it.
+The service is optional; other components start without it.
-It is not a call-and-wait service. A job is submitted and answered later: the caller posts
-the work and gets a job id back, then waits for a callback, with polling as a fallback.
-Files never travel through the ERP. The caller hands over signed URLs, one to read the CAD
-file from and one to write the result to, and the Rust service streams straight to and
-from the storage bucket itself; it holds no database credentials and can see nothing else.
-Redis is where job state and finished-result pointers live, which is why the service
-refuses to start without it.
+The API is asynchronous. A caller submits work, receives a job ID, and waits for a callback or polls as a fallback.
+The service reads input and writes output through signed storage URLs, without routing files through ERP or holding
+database credentials. Redis stores job state and result pointers and is required at startup.
---
## Part 6: The repo map
-**Applications** (`apps/`, plus `docs/` at the root):
+**Applications** are under `apps/`, except for the root `docs/` application:
| App | What it is | Dev port |
| ----------- | --------------------------------------------------------------------------- | -------- |
@@ -666,7 +540,7 @@ refuses to start without it.
| `assembler` | The Rust CAD/3D service. | varies |
| `docs` | Public documentation site. The only Next.js app here. | 3002 |
-**Libraries** (`packages/`). The ones you will actually touch are near the top:
+**Libraries** are under `packages/`:
| Package | What it does |
| --------------- | ---------------------------------------------------------------------------------------------------------------- |
@@ -712,9 +586,8 @@ purchasing/
## Part 7: Where it all runs
-The same code base runs in three shapes: on a laptop, on the cloud Carbon operates for
-customers, and on a server a customer owns. Nothing in the application knows which one it
-is in; the difference is entirely in configuration.
+The same codebase runs locally, in Carbon-operated cloud environments, and on customer-managed servers.
+Environment configuration determines the deployment model.
<Diagram
name="runs"
@@ -723,48 +596,32 @@ is in; the difference is entirely in configuration.
### 7.1 On a laptop
-`pnpm dev` runs `crbn up`, a custom CLI that boots an eleven-container Docker stack, waits
-for Postgres, applies migrations, regenerates the database types, seeds a test user, and
-starts the apps. The apps themselves run as ordinary Node processes on the host, not in
-containers, which is what makes hot reload fast.
+`pnpm dev` runs `crbn up`. The CLI starts an eleven-container service stack, waits for Postgres, applies
+migrations, regenerates database types, seeds a test user, and starts the applications as host Node processes for hot reload.
-Each Git worktree (a second checkout of the same repository) gets its own ports, its own
-database and its own freshly minted keys, so several branches can run at once. Redis is
-the one exception: a single shared container, with each worktree given its own numbered
-slot inside it.
+Each Git worktree receives isolated ports, a database, and credentials. Worktrees share one Redis container but use separate numbered databases.
### 7.2 The cloud Carbon runs
-There are **two hosting paths, and both are live**: the shared cloud on Vercel, and
-dedicated per-customer installations on AWS.
+Carbon operates a shared cloud on Vercel and dedicated customer installations on AWS.
-**The shared cloud runs on Vercel.** `app.carbon.ms` (ERP), `mes.carbon.ms` (MES),
+**The shared cloud runs on Vercel.** `app.carbon.ms` for ERP, `mes.carbon.ms` for MES,
`learn.carbon.ms` (academy) and `docs.carbon.ms` all resolve to Vercel, as does a separate
EU region (`app.eu.carbon.ms`, `mes.eu.carbon.ms`) served by its own pair of projects. Each
React Router app opts in through its `react-router.config.ts`, which enables
`vercelPreset()` from `@vercel/react-router` when the `VERCEL` environment variable is
-present and is a no-op everywhere else — so the same source builds for Vercel or for a
-container without a branch in the code. Deploys are driven by Vercel's own Git integration
-rather than by a workflow in this repository.
-
-**Dedicated installations run on AWS.** The ERP and MES are also packaged as Docker images
-that run on ECS Fargate [[3]](#g3), which is Amazon running your container for you without
-any server to look after. Each service sits behind its own load balancer on port 3000, is
-checked for life at `/health`, and scales between one and ten copies on processor and
-memory pressure. All of that is described in `sst.config.ts` (SST [[23]](#g23) is
-infrastructure-as-code, where you write cloud resources in TypeScript instead of clicking
-in a console). The [AWS with SST](/docs/platform/self-hosting/aws-sst) recipe is the same
-stack, run by you. `itar.carbon.ms` is one of these: it resolves to a load balancer in AWS
-GovCloud, not to Vercel.
-
-The part that surprises people: **that path is not one big shared installation.** There is
-a `workspaces` table, and on every deploy `ci/src/deploy.ts` walks it and runs
+present and otherwise does nothing. The same source therefore builds for Vercel and containers. Vercel's Git integration performs deployment.
+
+**Dedicated installations run on AWS.** ERP and MES Docker images run on ECS Fargate [[3]](#g3).
+Each service uses a load balancer on port 3000, a `/health` check, and autoscaling from one to ten tasks based
+on CPU and memory. `sst.config.ts` defines this infrastructure with SST [[23]](#g23). The
+[AWS with SST](/docs/platform/self-hosting/aws-sst) recipe deploys the same stack. `itar.carbon.ms` runs in AWS GovCloud.
+
+**Each AWS customer has a separate installation.** On each deployment, `ci/src/deploy.ts` reads the `workspaces` table and runs
`sst deploy --stage prod` once per row, each with that customer's own AWS account, region,
-domain, certificates, Supabase project and Redis. So Carbon separates customers twice
-over: by `companyId` on every row inside one installation ([Part 3](#part-3-layer-by-layer)), and by giving a
-customer their own installation entirely. Adding a customer means adding a workspace row.
-A row missing a required field is skipped with a log line rather than failing the deploy,
-so a tenant can silently not deploy.
+domain, certificates, Supabase project, and Redis. Customers are isolated by `companyId` within an installation ([Part 3](#part-3-layer-by-layer))
+and by separate infrastructure. Adding an AWS customer requires a workspace row. If required workspace fields
+are missing, deployment skips that row and logs the omission.
Postgres is managed Supabase on both paths. There is one Lambda: the Assembler ships as a
single image that runs either as a Lambda function behind an API gateway (the default) or
@@ -773,13 +630,12 @@ the main stack.
### 7.3 On a customer's own server
-`contrib/deploying/simple-docker-caddy/` holds a complete [self-hosted stack](/docs/platform/self-hosting/docker-caddy): a Docker
+`contrib/deploying/simple-docker-caddy/` contains a complete [self-hosted stack](/docs/platform/self-hosting/docker-caddy): a Docker
Swarm file that brings up Postgres, the Supabase services, Redis, Inngest and both apps on
one machine, with Caddy in front as the only thing exposed to the internet. Secrets are
Swarm secrets rather than environment variables in a file. Migrations run as a throwaway
-one-shot container before the apps roll. `scripts/backup.sh` takes a database dump plus
-the uploaded files (see [backups](/docs/platform/backups)), and `scripts/harden.sh` does the
-basic firewall setup.
+one-shot container before the apps roll. `scripts/backup.sh` creates a database dump and uploaded-file archive,
+and `scripts/harden.sh` configures the firewall. See [Backups](/docs/platform/backups).
Which features exist is decided by one variable, `CARBON_EDITION`: `community`,
`cloud`, `enterprise` or `test`. What each of those buys you is the
@@ -788,10 +644,7 @@ sets `enterprise`.
### 7.4 How a merge becomes production
-The Vercel side deploys itself: pushing to `main` triggers a build in each Vercel project
-through its Git integration, with no workflow in this repository involved. Everything
-below is the AWS side — four GitHub Actions workflows, deliberately independent of each
-other rather than one pipeline:
+Pushing to `main` triggers each Vercel project's Git-integrated build. AWS deployment uses four independent GitHub Actions workflows:
| Workflow | Fires when | What it does |
| -------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -800,11 +653,8 @@ other rather than one pipeline:
| `supabase.yml` | merge touching `packages/database/supabase` | applies migrations and deploys edge functions, per workspace |
| `inngest.yml` | after `deploy.yml` succeeds | calls `PUT /api/inngest` on each app so Inngest learns the current list of jobs |
-Two consequences worth knowing. First, `check.yml` never builds the apps, so a pull
-request can go green and still break the image build on merge. Second, migrations and app
-code deploy in parallel with no ordering between them, so a migration and the code that
-depends on it can land seconds apart in either order; write migrations that are safe
-against the previous version of the code.
+`check.yml` does not build application images, so a successful pull request can still fail during image build.
+Database and application deployments run without ordering, so migrations must remain compatible with the previous application version.
There is no version tagging and no rollback button. An image is identified by its commit,
so rolling back means redeploying an older commit. Configuration is not held in a secrets
@@ -813,26 +663,22 @@ environment variables on the container.
### 7.5 Knowing what is happening
-Observability is deliberately thin. Logs go through LogTape: color on a laptop, one JSON
-line per entry in production, with sensitive field names blanked out and a request id
-threaded through everything so one page load can be followed end to end. There is no log
-shipping of its own, so logs are whatever the platform collects: CloudWatch on AWS,
-`docker service logs` when self-hosted. PostHog covers product analytics and is switched
-off entirely in controlled (ITAR) environments. There is no Sentry and no distributed
-tracing.
+LogTape emits colored local logs and newline-delimited JSON in production. It redacts sensitive fields and
+propagates request IDs. Carbon does not provide separate log shipping; use CloudWatch on AWS or `docker service logs`
+when self-hosted. PostHog provides product analytics and is disabled in controlled environments. Carbon does not use Sentry or distributed tracing.
---
## Part 8: There's a bug, where do I look?
-Start from what the user saw and walk inwards. This mirrors the order things happen.
+Start with the observed behavior and follow the request path inward.
<Diagram
name="triage"
caption="Start from what the user saw, then read down the one column that matches."
/>
-**A few specific traps, each of which has caught someone out:**
+Common failure modes:
- _TypeScript says a column doesn't exist._ Run `pnpm run generate:types`. Your generated
types are behind your migrations.
@@ -840,14 +686,13 @@ Start from what the user saw and walk inwards. This mirrors the order things hap
is wrong or you are using a user-scoped client where you needed service role.
- _A write half-succeeded._ Chained `supabase-js` calls are not a transaction. Look for a
manual rollback that didn't cover the failure.
-- _A number on a list screen is wrong._ It is almost certainly computed in a view.
+- _A number on a list screen is wrong._ Check the view that computes it.
---
## Part 9: House rules
-The full list is in `AGENTS.md` at the repo root. The ones that cause
-the most damage when broken:
+The root `AGENTS.md` contains the complete rules. Key constraints:
- **`pnpm`, never `npm`.**
- **Never use JavaScript `Date`** for parsing, formatting or arithmetic. Use
@@ -872,13 +717,13 @@ pnpm run lint # Biome
pnpm run test # unit tests
```
-Typechecking the whole repo at once runs out of memory, so always use `--filter`.
+Typecheck a scoped package with `--filter`; whole-repository typechecking can exhaust memory.
---
## Glossary
-Numbered so the body can point at them. Alphabetical.
+Numbered references used throughout this page, in alphabetical order.
<a id="g1"></a>
**1. Action:** the function a route file exports to handle a form submission.
@@ -1020,6 +865,6 @@ state, like whether a modal is open.
What Community, Enterprise and Cloud each include.
</Card>
<Card title="Backups" href="/docs/platform/backups">
- Dumping the database and the uploaded files.
+ Snapshot and restore company data and uploaded files.
</Card>
</Cards>
diff --git a/docs/content/docs/building/local-development.mdx b/docs/content/docs/building/local-development.mdx
index 1e0bad3e91..0a9b17a328 100644
--- a/docs/content/docs/building/local-development.mdx
+++ b/docs/content/docs/building/local-development.mdx
@@ -3,7 +3,7 @@ title: Local development
description: Run the full Carbon stack locally with the crbn CLI, in isolated per-worktree environments.
---
-Carbon is a **pnpm + Turborepo** monorepo, the ERP and MES apps plus their shared packages. Local development runs on the **`crbn` CLI** (in `packages/dev`), a per-worktree environment manager: every git worktree gets its own compose stack (Postgres, Kong, Supabase, Inngest, and Inbucket for mail) with its own ports, Redis database, and JWT credentials. So you can work several branches at once without their stacks colliding.
+Carbon is a **pnpm and Turborepo** monorepo containing the ERP and MES applications and shared packages. The **`crbn` CLI** in `packages/dev` manages local environments. Each Git worktree receives an isolated Compose stack, ports, Redis database, and JWT credentials, so multiple branches can run concurrently.
## Setup
@@ -11,7 +11,7 @@ Carbon is a **pnpm + Turborepo** monorepo, the ERP and MES apps plus their share
<Step>
### Add `crbn` to your `PATH`
- Source the setup script. It installs a small shell wrapper:
+ Source the setup script to install the shell wrapper:
```bash
source ./setup.sh
@@ -20,18 +20,18 @@ Carbon is a **pnpm + Turborepo** monorepo, the ERP and MES apps plus their share
<Step>
### Bring up the stack
- From any worktree, boot the compose stack and the ERP and MES dev servers:
+ From a worktree, start the Compose services and the ERP and MES development servers:
```bash
crbn up
```
- This generates a `.env.local` with per-worktree ports, local Supabase keys, `REDIS_URL`, Inngest dev settings, and `DEV_BYPASS_EMAIL` so you can sign in without a magic link.
+ This generates `.env.local` with worktree-specific ports, local Supabase keys, `REDIS_URL`, Inngest development settings, and `DEV_BYPASS_EMAIL`.
</Step>
<Step>
### Reach the apps
- Open the apps at their portless `.dev` URLs or at `localhost:<port>`.
+ Open the applications at their portless `.dev` URLs or `localhost:<port>`.
</Step>
</Steps>
@@ -75,7 +75,7 @@ Each branch gets an isolated worktree and stack, so several can run side by side
## Portless vs localhost
-By default `crbn up` uses **portless** to serve a TLS `.dev` URL per app (for example `erp.<branch>.dev`), giving each worktree stable, shareable hostnames. Pass `--no-portless`, or set `CARBON_PORTLESS=0`, for **localhost** mode on fixed ports:
+By default, `crbn up` uses **portless** to assign each application a stable TLS `.dev` URL, such as `erp.<branch>.dev`. Pass `--no-portless` or set `CARBON_PORTLESS=0` to use fixed localhost ports:
| Service | Port |
| --- | --- |
@@ -85,7 +85,7 @@ By default `crbn up` uses **portless** to serve a TLS `.dev` URL per app (for ex
## Sync files from main
-A fresh worktree doesn't carry your gitignored local files. Pull them across from the main checkout:
+A new worktree does not include Git-ignored local files. Copy them from the main checkout:
| Command | What it does |
| --- | --- |
diff --git a/docs/content/docs/building/webhooks.mdx b/docs/content/docs/building/webhooks.mdx
index f7bfc6b853..61408a2212 100644
--- a/docs/content/docs/building/webhooks.mdx
+++ b/docs/content/docs/building/webhooks.mdx
@@ -4,11 +4,11 @@ plan: Business
description: Get an HTTP callback when a Carbon record is created, changed, or deleted.
---
-A **webhook** sends an HTTP `POST` to a URL you choose whenever a record in a subscribed table is inserted, updated, or deleted. It's the lightest way to react to Carbon in your own systems without polling the API.
+A **webhook** sends an HTTP `POST` to a configured URL when a record in a subscribed table is inserted, updated, or deleted. Use webhooks to react to changes without polling the API.
## Subscribable tables
-You subscribe a webhook to exactly one table. The tables you can watch, by module:
+Each webhook subscribes to one table. The following tables support subscriptions:
| Module | Tables |
| --- | --- |
@@ -20,11 +20,11 @@ You subscribe a webhook to exactly one table. The tables you can watch, by modul
| Items | `item` |
| Users | `employee` |
-For each webhook you choose which operations fire it (**insert**, **update**, **delete**), and at least one must be selected.
+Select at least one trigger operation: **insert**, **update**, or **delete**.
## The payload
-Carbon `POST`s a JSON body to your URL. `type` is the operation, `record` is the affected row, and `old` carries the previous row on updates.
+Carbon sends a JSON body to the configured URL. `type` identifies the operation, `record` contains the affected row, and `old` contains the previous row for updates.
```json
{
@@ -37,9 +37,9 @@ Carbon `POST`s a JSON body to your URL. `type` is the operation, `record` is the
}
```
-`old` appears only on updates. On a delete, `record` is the row as it last existed and there is no `old`. The only request header is `Content-Type: application/json`.
+`old` appears only for updates. For deletes, `record` contains the last state of the deleted row. Carbon sets `Content-Type: application/json`, then applies any headers in the delivery configuration.
-`eventId` identifies the individual change. It stays the same across retries of that change and differs between changes — including two separate edits to the same record — which makes it the field to de-duplicate on (see below).
+`eventId` identifies one change. It remains stable across delivery retries and differs for each new change, including repeated updates to the same record. Use it as the idempotency key.
## Configuration
@@ -51,21 +51,21 @@ Create and manage webhooks under **Settings → Webhooks**. A webhook has:
- **Triggers:** any of insert, update, delete (at least one).
- **Active:** webhooks are on by default; switch off to pause delivery.
-Carbon tracks a success and error count per webhook, with the timestamp of the last of each, so you can see at a glance whether your endpoint is healthy.
+Carbon tracks success and error counts and the latest timestamp for each outcome.
## Delivery & reliability
-Webhooks are queued rather than sent inline with the database write, so a `POST` normally lands a few seconds after the change. A brief delay is expected; it is not a sign your endpoint was skipped.
+Webhook delivery is asynchronous and normally occurs a few seconds after the database change.
-Delivery is **at-least-once**. If your endpoint doesn't return a success status, Carbon retries the same change a few times with exponential backoff before giving up. Two consequences to design for:
+Delivery is **at least once**. If the endpoint does not return a success status, Carbon retries with exponential backoff before marking the change as failed. Design for these conditions:
-- **Handle duplicates.** A delivery that times out or errors after you've already processed it will arrive again. De-duplicate on `eventId`, which is stable across retries of a change. Don't key on `type` + `record.id` — every update to a given record shares those, so you would discard genuine later changes.
-- **A sustained outage still loses events.** Once retries are exhausted the change is dropped and counted as an error. Reconcile against the API when completeness matters.
+- **Handle duplicates.** A request can be retried after your service has processed it. De-duplicate on `eventId`, not `type` and `record.id`, because separate changes to the same record share the latter values.
+- **Reconcile after outages.** After retries are exhausted, Carbon drops the change and increments the error count. Query the API when complete event processing is required.
The success and error counters record one outcome per change, not per attempt, so a retried-then-delivered event counts once as a success.
<Callout type="warn">
-Carbon does **not** sign webhook payloads. There is no shared secret or signature header to verify against. Treat the webhook URL itself as the secret: serve it over HTTPS and include an unguessable token in the path or query so you can reject anything that doesn't carry it.
+Carbon does **not** sign webhook payloads and sends no shared-secret or signature header. Use HTTPS and include an unguessable token in the URL path or query. Reject requests without the token.
</Callout>
## Related
diff --git a/docs/content/docs/glossary.mdx b/docs/content/docs/glossary.mdx
index 9efb63a50c..2f07526672 100644
--- a/docs/content/docs/glossary.mdx
+++ b/docs/content/docs/glossary.mdx
@@ -3,6 +3,6 @@ title: Glossary
description: "Every Carbon term, defined and linked: the manufacturing and accounting vocabulary the rest of the docs lean on."
---
-Carbon names things precisely, and a few names are counterintuitive: a <Term>method</Term> is a bill of materials, <Term id="wip">work in process</Term> is a ledger balance rather than a table, and payment on an <Term>invoice</Term> is a field, not its own record. This page lists every term used across Carbon, each with the same one-line definition that powers the inline popovers. Follow **Learn more** for the full story.
+This glossary defines terms used throughout Carbon. For example, a <Term>method</Term> is a bill of materials, <Term id="wip">work in process</Term> is a ledger balance rather than a table, and payment on an <Term>invoice</Term> is a field rather than a separate record. Each entry uses the same definition as its inline popover; select **Learn more** for details.
<Glossary />
diff --git a/docs/content/docs/index.mdx b/docs/content/docs/index.mdx
index 56887f2bd3..aa37bfb56e 100644
--- a/docs/content/docs/index.mdx
+++ b/docs/content/docs/index.mdx
@@ -3,27 +3,26 @@ title: Overview
description: "Carbon is a manufacturing system: ERP for the office, MES for the floor. These are the technical docs."
---
-Carbon is a manufacturing system: **ERP** for the office (orders, purchasing, planning, accounting) and
-**MES** for the floor (<Term id="job">jobs</Term>, <Term id="operation">operations</Term>, tracking). One platform over one data model.
+Carbon is a manufacturing system with **ERP** for orders, purchasing, planning, and accounting, and
+**MES** for shop-floor <Term id="job">jobs</Term>, <Term id="operation">operations</Term>, and tracking. Both applications use one data model.
-These are the **technical docs**: exact behavior, fields, and operations. If you're new, start with the
-narrated [**Guide**](/guides/order), which walks one order from the sales desk to a shipped, traceable satellite.
-Come here when you already know the noun you need and want the precise detail behind it.
+These technical docs describe system behavior, fields, and operations. For an end-to-end introduction,
+follow the [**Guide**](/guides/order) from sales order through shipment and traceability.
## How the docs are organized
<Cards>
<Card title="Architecture" href="/docs/building/architecture">
- How Carbon is built: apps, packages, database, events, jobs, and auth.
+ Carbon's applications, packages, database, events, jobs, and authentication.
</Card>
<Card title="Self-hosting" href="/docs/platform/self-hosting">
- Run Carbon on your own infrastructure — a single VPS with Docker, or your own AWS account with SST.
+ Deploy Carbon to a Docker-based VPS or an AWS account with SST.
</Card>
<Card title="Environment variables" href="/docs/platform/self-hosting/environment-variables">
Every variable that configures a Carbon instance, grouped by concern.
</Card>
<Card title="Reference" href="/docs/reference/methods">
- The entities behind the Guide: methods, reordering, routings, and more.
+ Definitions and behavior for methods, reordering, routings, and other entities.
</Card>
</Cards>
@@ -31,15 +30,15 @@ Come here when you already know the noun you need and want the precise detail be
<Cards>
<Card title="Carbon API" href="/api">
- The service layer — read and write your data the safe way, over HTTP or MCP.
+ Read and write data through the service layer over HTTP or MCP.
</Card>
<Card title="Data API" href="/api/data">
- Direct table access — the escape hatch, when the Carbon API doesn't cover it.
+ Access tables directly when the Carbon API does not expose an operation.
</Card>
<Card title="API keys" href="/docs/building/api-keys">
- Scoped secrets that let an external system call Carbon on your behalf.
+ Authenticate external systems with scoped secrets.
</Card>
<Card title="Webhooks" href="/docs/building/webhooks">
- Get an HTTP callback the moment a subscribed record changes.
+ Receive HTTP callbacks when subscribed records change.
</Card>
</Cards>
diff --git a/docs/content/docs/integrations/accounting.mdx b/docs/content/docs/integrations/accounting.mdx
index 1a4b1dd323..cbb1a3a9bf 100644
--- a/docs/content/docs/integrations/accounting.mdx
+++ b/docs/content/docs/integrations/accounting.mdx
@@ -3,40 +3,29 @@ title: Accounting
description: Mirror invoices, bills, and GL journals to Xero, QuickBooks, or Rillet, and keep exchange rates current.
---
-Carbon keeps an external accounting ledger in step with what happens inside the ERP. Three ledgers are
-supported — **Xero**, **QuickBooks Online**, and **Rillet** — plus an **Exchange Rates** service that keeps
-multi-currency math honest. The ledger sync is an Enterprise (Business-plan) feature; Exchange Rates is free
-on every plan.
+Carbon synchronizes accounting data with **Xero**, **QuickBooks Online**, or **Rillet**. Ledger synchronization requires Enterprise Edition or the Carbon Cloud Business plan. The **Exchange Rates** service is available on every plan.
## How the sync works
<PlanBadge plan="Business" className="my-[8px]" />
-Once a ledger is connected, Carbon pushes **customers**, **vendors**, **items**, **sales invoices**, **bills**,
-and its automated **GL journals** to the ledger. **Carbon is the source of truth**: its edits always win, and
-every record is matched to the same external record each time, so a customer or invoice never duplicates.
-Payments recorded in the ledger flow **back** into Carbon to settle the matching invoice or bill.
+After connection, Carbon sends **customers**, **vendors**, **items**, **sales invoices**, **bills**, and automated **GL journals** to the provider. **Carbon is the source of truth**: Carbon changes take precedence, and stable record mappings prevent duplicates. Provider payments synchronize back to Carbon and settle the matching invoice or bill.
<Callout type="note" title="Journal mirroring is automatic, and always on">
-Connecting a ledger means every automated GL posting Carbon makes is mirrored to it. There is no toggle to
-turn that off. Journals you post by hand (`Manual` source) never sync — only automated postings do.
+Carbon mirrors every automated GL posting to the connected provider. This behavior cannot be disabled. Journals with a `Manual` source do not synchronize.
</Callout>
-Payment write-back settles the Carbon document from the ledger side: a payment recorded against an invoice in
-Xero, QuickBooks, or Rillet comes back as a Carbon payment and an <Term id="invoice-settlement">invoice settlement</Term>,
-then posts to Carbon's <Term id="general-ledger">general ledger</Term>. Rillet can also push Carbon-recorded
-payments outbound; Xero and QuickBooks are pull-back only.
+A provider payment creates a Carbon payment and <Term id="invoice-settlement">invoice settlement</Term>, then posts to Carbon's <Term id="general-ledger">general ledger</Term>. Rillet also accepts outbound Carbon payments. Xero and QuickBooks support inbound payment synchronization only.
## Connect a ledger
-Xero and QuickBooks Online connect over **OAuth** — no keys to paste. Rillet uses a per-company **API key**.
+Xero and QuickBooks Online use **OAuth**. Rillet uses a per-company **API key**.
<Steps>
<Step>
### Authorize the connection
- For Xero or QuickBooks, authorizing over OAuth stores the connection. For Rillet, paste the connection
- fields below.
+ Authorize Xero or QuickBooks through OAuth, or enter the Rillet connection fields below.
</Step>
<Step>
### Configure the sync
@@ -46,8 +35,7 @@ Xero and QuickBooks Online connect over **OAuth** — no keys to paste. Rillet u
<Step>
### Run the initial sync
- Xero exposes a **Run Initial Sync** action that seeds the ledger on demand. After that, changes flow
- continuously.
+ For Xero, select **Run Initial Sync** to seed the ledger. Subsequent changes synchronize continuously.
</Step>
</Steps>
@@ -61,9 +49,7 @@ Rillet's connection fields:
</FieldTable>
<Callout type="warn" title="Xero and QuickBooks are hidden without a server-side client">
-Xero appears only when `XERO_CLIENT_ID` is set, and QuickBooks Online only when `QUICKBOOKS_CLIENT_ID` is set
-(see [Environment variables](/docs/platform/self-hosting/environment-variables)). Rillet has no such gate — it
-authenticates per company with its own API key, so it is always available.
+Xero appears only when `XERO_CLIENT_ID` is set. QuickBooks Online appears only when `QUICKBOOKS_CLIENT_ID` is set. See [Environment variables](/docs/platform/self-hosting/environment-variables). Rillet is always available because it authenticates with a per-company API key.
</Callout>
## Configure the sync
@@ -87,30 +73,20 @@ The **Posting Sync** tab controls three things:
## Watch it run
-The **Sync Activity** tab is an inbox of every sync operation, with **Status**, **Entity**, **Direction**
-(push or pull), **Trigger**, **Attempts**, **Last Attempt**, and any **Error**. Filter by status, **Retry** or
-**Skip** a failed operation, **Re-send** a completed one, or **Retry all** at once. When failed operations
-remain after an outbound sweep, Carbon raises an in-app notification so the sync never fails silently.
+The **Sync Activity** tab lists each operation's **Status**, **Entity**, **Direction**, **Trigger**, **Attempts**, **Last Attempt**, and **Error**. Filter by status, **Retry** or **Skip** a failed operation, **Re-send** a completed operation, or **Retry all**. Carbon creates an in-app notification when failures remain after an outbound run.
-Reconciliation runs weekly and writes the **Sync Tie-Out** report (**Accounting → Reports → Sync Tie-Out**).
-It lays out one row per accounting period, account, and integration, comparing what Carbon **Posted** against
-what actually **Synced**, and against the **Provider** balance. Any **Internal** or **External Delta** is
-flagged so a drift between the two ledgers is visible before it becomes a month-end surprise.
+Weekly reconciliation writes the **Sync Tie-Out** report under **Accounting → Reports → Sync Tie-Out**. Each row compares **Posted**, **Synced**, and **Provider** balances for one accounting period, account, and integration. The report flags **Internal** and **External Delta** values.
<Callout type="tip" title="Sync Activity is for operators, Tie-Out is for the books">
-Sync Activity answers "did this record make it across?" one operation at a time. Tie-Out answers "do the two
-ledgers agree?" per account and period. The Sync Activity tab links straight to the tie-out summary for the
-integration.
+Use Sync Activity to inspect individual operations. Use Tie-Out to compare ledgers by account and period. Sync Activity links to the integration's tie-out summary.
</Callout>
## Exchange rates
-Turn it on and it runs — no fields to configure. Carbon refreshes currency **exchange rates daily** so
-foreign-currency documents convert against current rates. Exchange Rates is available on **every plan**.
+Enable Exchange Rates to refresh currency rates daily. It requires no additional configuration and is available on **every plan**.
<Callout type="info">
-On Carbon Cloud the rates come from **exchangeratesapi.io** by default, fetched against a **EUR** base and
-then converted into each company's base currency, so every currency you trade in stays aligned.
+Carbon Cloud retrieves rates from **exchangeratesapi.io** with a **EUR** base, then converts them to each company's base currency.
</Callout>
## Related
diff --git a/docs/content/docs/integrations/assistant.mdx b/docs/content/docs/integrations/assistant.mdx
index 5e5d1ed214..bfcb09c3c4 100644
--- a/docs/content/docs/integrations/assistant.mdx
+++ b/docs/content/docs/integrations/assistant.mdx
@@ -6,19 +6,18 @@ description: Bring the Carbon Assistant into Slack, with nonconformance notifica
## Slack
-Connect **Slack** over **OAuth** to put the **Carbon Assistant** in your workspace and receive
-**<Term id="nonconformance">nonconformance</Term> notifications** where your team already talks. There are no fields to fill in.
+Connect **Slack** through **OAuth** to add the **Carbon Assistant** to your workspace and receive <Term id="nonconformance">nonconformance</Term> notifications. No additional configuration fields are required.
<Steps>
<Step>
### Start the Slack install
- Authorizing opens a Slack install popup.
+ Start authorization to open the Slack installation window.
</Step>
<Step>
### Choose your workspace
- Pick the workspace to install into and approve the install. Carbon stores the connection. No keys to paste.
+ Select a workspace and approve the installation. Carbon stores the connection.
</Step>
</Steps>
@@ -27,8 +26,7 @@ Connect **Slack** over **OAuth** to put the **Carbon Assistant** in your workspa
| Connection | Established by the Slack OAuth install — no keys to paste. |
<Callout type="warn">
-Slack is **hidden in controlled (ITAR) environments** — when Carbon runs in a controlled deployment, the
-Slack integration doesn't appear at all.
+Slack is unavailable in controlled (ITAR) environments.
</Callout>
## Related
diff --git a/docs/content/docs/integrations/cad.mdx b/docs/content/docs/integrations/cad.mdx
index ac08cd8255..a1f3822851 100644
--- a/docs/content/docs/integrations/cad.mdx
+++ b/docs/content/docs/integrations/cad.mdx
@@ -6,7 +6,7 @@ description: Sync CAD data from Onshape and Onshape Government into Carbon.
## Onshape
-Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. No keys to paste.
+Connect **Onshape** through **OAuth** to import CAD data into Carbon.
<Steps>
<Step>
@@ -22,7 +22,7 @@ Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. No keys to
<Step>
### Tokens stored
- Carbon stores the connection, the access and refresh tokens, and can then pull from your Onshape documents.
+ Carbon stores the access and refresh tokens and can then read your Onshape documents.
</Step>
</Steps>
@@ -31,16 +31,12 @@ Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. No keys to
| Connection | Established by OAuth — no keys to paste. Carbon stores the access and refresh tokens for you. |
<Callout type="warn">
-Onshape only appears when its OAuth client is configured server-side (`ONSHAPE_CLIENT_ID`) — see
-[Environment variables](/docs/platform/self-hosting/environment-variables).
+Onshape appears only when `ONSHAPE_CLIENT_ID` is configured server-side. See [Environment variables](/docs/platform/self-hosting/environment-variables).
</Callout>
## Onshape Government
-**Onshape Government** is the ITAR and FedRAMP edition of Onshape. It has no public App Store, so Carbon's
-public app can't be installed there. Instead, your Enterprise owns a **private OAuth app** that Carbon
-connects through. Everything after the connection works the same as Onshape: browsing documents, importing a
-bill of materials, and syncing released assets.
+**Onshape Government** is Onshape's ITAR and FedRAMP edition. Because it has no public App Store, your Enterprise must create a **private OAuth app** for Carbon. After connection, it supports document browsing, bill-of-materials imports, and released-asset synchronization.
<Steps>
<Step>
@@ -50,20 +46,18 @@ bill of materials, and syncing released assets.
application. Choose **Connected Cloud App** as the type. Set the redirect URL to
`https://<your Carbon address>/api/integrations/onshape-government/oauth`. Grant read access to profile
information, read access to documents, and write access to documents. Onshape shows the client secret only
- once, so copy it straight away. If you'd rather not do this yourselves, give Carbon support a seat in your
- Enterprise and we'll build the app with you.
+ once, so copy it immediately. Carbon support can help create the app if given a seat in your Enterprise.
</Step>
<Step>
### Enter it in Carbon
Open **Onshape Government** under **Settings → Integrations**. Enter your Onshape URL and the
- app's client ID and client secret. The integration drawer shows the exact redirect URL for your Carbon
- address.
+ app's client ID and client secret. The integration drawer displays the redirect URL for your Carbon instance.
</Step>
<Step>
### Approve the connection
- When you save, Carbon sends you to your Onshape tenant to approve the connection, then brings you back.
+ Save the settings, approve the connection in your Onshape tenant, and return to Carbon.
</Step>
</Steps>
@@ -79,8 +73,7 @@ a bill of materials take a few calls each. Released-asset sync takes several cal
leave it off if your allowance is tight.
</Callout>
-A company connects to one Onshape at a time. Uninstall Onshape before connecting Onshape Government, and the
-other way round.
+A company can connect to only one Onshape environment. Disconnect the current integration before connecting the other.
## Related
diff --git a/docs/content/docs/integrations/email.mdx b/docs/content/docs/integrations/email.mdx
index 3f956e4fe2..1e90e05069 100644
--- a/docs/content/docs/integrations/email.mdx
+++ b/docs/content/docs/integrations/email.mdx
@@ -5,19 +5,18 @@ description: Send outbound email through Carbon-managed Resend or your own SMTP
## Email
-Email is how Carbon sends transactional mail: order confirmations, notifications, and the like. It's
-available on **every plan**, and you choose who actually delivers the mail.
+Carbon uses email for transactional messages such as order confirmations and notifications. Email is available on **every plan** and supports Resend or SMTP delivery.
<Steps>
<Step>
### Choose a provider
- Pick **Resend** (Carbon-managed) or **SMTP** (your own server). The fields below change to match your choice.
+ Select **Resend** or **SMTP**. The configuration fields change for the selected provider.
</Step>
<Step>
### Fill in the provider fields
- For **Resend**, enter your API key. For **SMTP**, enter the host and port (default `587`), username and password, and whether to connect over TLS. Set the **from address** either way.
+ For **Resend**, enter the API key. For **SMTP**, enter the host, port, credentials, and TLS setting. Configure the **from address** for either provider.
</Step>
</Steps>
@@ -31,6 +30,5 @@ available on **every plan**, and you choose who actually delivers the mail.
</FieldTable>
<Callout type="note">
-The Resend and SMTP fields are shown only for the provider you pick — choose **SMTP** to route mail through
-your own server, or **Resend** to let Carbon handle delivery.
+Carbon displays only the fields for the selected provider.
</Callout>
diff --git a/docs/content/docs/integrations/estimating.mdx b/docs/content/docs/integrations/estimating.mdx
index 0143e844ac..99c1226f01 100644
--- a/docs/content/docs/integrations/estimating.mdx
+++ b/docs/content/docs/integrations/estimating.mdx
@@ -6,8 +6,7 @@ description: Pull quotes and bills of material from Paperless Parts into Carbon.
## Paperless Parts
-Connect with an **API key** plus a **webhook signing secret** (Paperless calls Carbon when something
-changes, and the secret verifies those calls).
+Connect with an **API key** and a **webhook signing secret**. The API key authenticates Carbon to Paperless Parts; the signing secret verifies inbound webhooks.
<Steps>
<Step>
@@ -18,12 +17,12 @@ changes, and the secret verifies those calls).
<Step>
### Set the webhook signing secret
- Add the **webhook signing secret** — Paperless calls Carbon when something changes, and the secret verifies those calls.
+ Enter the secret used to verify Paperless Parts webhook signatures.
</Step>
<Step>
### Set import defaults
- On connect you also set the defaults Carbon applies to items it imports: **material method type**, **material tracking type**, and whether to use the Paperless order number (below).
+ Set the default **material method type**, **material tracking type**, and Paperless order-number behavior for imported items.
</Step>
</Steps>
@@ -35,7 +34,7 @@ changes, and the secret verifies those calls).
<Field name="Use Paperless order number">Whether to carry the Paperless order number onto the Carbon document.</Field>
</FieldTable>
-Imported <Term id="quote">quotes</Term> and <Term id="bom">BOMs</Term> land as Carbon records, ready to turn into <Term id="sales-order">sales orders</Term> and <Term id="job">jobs</Term>.
+Carbon stores imported <Term id="quote">quotes</Term> and <Term id="bom">BOMs</Term> as records that can be converted into <Term id="sales-order">sales orders</Term> and <Term id="job">jobs</Term>.
## Related
diff --git a/docs/content/docs/integrations/index.mdx b/docs/content/docs/integrations/index.mdx
index 8b96ad4f08..28e4e3e6e7 100644
--- a/docs/content/docs/integrations/index.mdx
+++ b/docs/content/docs/integrations/index.mdx
@@ -3,22 +3,17 @@ title: Integrations
description: Connect Carbon to your accounting, CAD, project-management, estimating, and messaging tools.
---
-Carbon ships a set of first-party **integrations** to third-party apps. Each one is enabled per company
-under **Settings → Integrations**, where you flip it on and supply its credentials or settings.
+Carbon provides first-party integrations with third-party applications. Enable and configure them per company under **Settings → Integrations**.
-Integrations are an **Enterprise** capability. On [Carbon Cloud](https://app.carbon.ms) they're included
-with the **Business** plan; self-hosted, they require a commercial (Enterprise) license —
-see [Licensing](/docs/platform/licensing). **Email** and **Exchange Rates** are the exceptions, available on
-every edition and plan.
+Integrations are an **Enterprise Edition** capability. On [Carbon Cloud](https://app.carbon.ms), they require the **Business** plan. Self-hosted deployments require a commercial license. See [Licensing](/docs/platform/licensing). **Email** and **Exchange Rates** are available on every edition and plan.
## How a connection works
-An integration has two parts: a system-wide **definition** and a per-company **activation**.
+Each integration has a system-wide **definition** and a per-company **activation**.
-- The **definition** describes the fields that integration needs: API keys, OAuth tokens, mapping options.
+- The **definition** specifies required fields such as API keys, OAuth tokens, and mapping options.
- The **activation** is a `companyIntegration` record: an `active` flag plus a `metadata` object holding
- your credentials and settings. Carbon validates that metadata against the definition, so an integration
- can't be switched on with incomplete configuration.
+ credentials and settings. Carbon validates this metadata against the definition before activation.
Connections are established one of three ways, depending on the app:
@@ -29,19 +24,13 @@ Connections are established one of three ways, depending on the app:
| OAuth | Xero, Jira, Onshape, Slack | Authorize Carbon with the provider; tokens are stored for you. |
<Callout type="note">
-Disconnecting an integration sets `active = false` but **keeps your stored credentials**. Reconnecting
-doesn't make you re-enter them. To remove credentials entirely, clear the integration's settings before you
-disconnect.
+Disconnecting sets `active = false` but retains stored credentials. To remove credentials, clear the integration settings before disconnecting.
</Callout>
## What's available depends on your deployment
<Callout type="warn">
-Which integrations even appear depends on how Carbon is deployed. The OAuth connectors, **Xero**, **Jira**,
-and **Onshape**, only show up when their OAuth client is configured server-side (see
-[Environment variables](/docs/platform/self-hosting/environment-variables)), and **Slack** is hidden in controlled (ITAR)
-environments. So the same Carbon build can offer a different set of integrations depending on its
-configuration.
+Available integrations depend on deployment configuration. **Xero**, **Jira**, and **Onshape** appear only when their OAuth clients are configured server-side; see [Environment variables](/docs/platform/self-hosting/environment-variables). **Slack** is unavailable in controlled (ITAR) environments.
</Callout>
## Browse by category
diff --git a/docs/content/docs/integrations/project-management.mdx b/docs/content/docs/integrations/project-management.mdx
index 624e4e1f29..c627be664a 100644
--- a/docs/content/docs/integrations/project-management.mdx
+++ b/docs/content/docs/integrations/project-management.mdx
@@ -4,9 +4,7 @@ plan: Business
description: Link Carbon quality issues to Linear or Jira so engineering tracks them in their own tool.
---
-When a quality problem needs engineering's attention, Carbon can push it into the issue tracker your team
-already lives in. Both connectors link a <Term id="nonconformance">nonconformance</Term>'s **action tasks**
-to an external issue and keep the two in step, status, assignee, and notes sync both ways.
+Carbon can link <Term id="nonconformance">nonconformance</Term> **action tasks** to Linear or Jira issues. Status, assignee, and notes synchronize in both directions.
## Linear
@@ -17,14 +15,13 @@ Authenticate with a **Linear API key** (it begins with `lin_api`).
### Create the webhook in Linear
In Linear's API settings, create a new webhook and paste the URL shown in Carbon's setup instructions
- (`/api/webhook/linear/<your company id>`). This is how changes made in Linear reach Carbon.
+ (`/api/webhook/linear/<your company id>`) so Linear changes reach Carbon.
</Step>
<Step>
### Copy the signing secret
Linear shows a **signing secret** on the webhook's detail page. Paste it into **Webhook Signing Secret**.
- With it saved, Carbon only accepts webhook requests Linear has signed, and rejects any that are more
- than a minute old.
+ Carbon then accepts only Linear-signed webhook requests that are no more than one minute old.
</Step>
<Step>
### Paste your Linear API key
@@ -34,7 +31,7 @@ Authenticate with a **Linear API key** (it begins with `lin_api`).
<Step>
### Action tasks sync
- Once connected, Carbon links each nonconformance action task to a Linear issue and keeps the pair matched, so status, assignee, and notes stay aligned in both directions.
+ Link nonconformance action tasks to Linear issues. Carbon synchronizes status, assignee, and notes in both directions.
</Step>
</Steps>
@@ -44,8 +41,7 @@ Authenticate with a **Linear API key** (it begins with `lin_api`).
| Webhook signing secret | Optional. When set, webhook requests without a valid Linear signature are rejected. |
<Callout type="warn">
-A Linear or Jira webhook with no secret saved in Carbon still works, so older setups keep syncing, but
-Carbon cannot tell its requests from forged ones. Add the secret to every webhook you create.
+Webhooks without a saved secret remain compatible with older configurations, but Carbon cannot authenticate their requests. Configure a secret for every webhook.
</Callout>
## Jira
@@ -61,7 +57,7 @@ Connect over **OAuth**. The only setting is an optional webhook secret.
<Step>
### Create the webhook in Jira (optional)
- For changes made in Jira to reach Carbon straight away, go to **System → WebHooks** in Jira and create a
+ To send Jira changes to Carbon immediately, go to **System → WebHooks** in Jira and create a
webhook with the URL shown in Carbon's setup instructions (`/api/webhook/jira/<your company id>`),
subscribed to **Issue updated** and **Issue deleted**. Fill in the webhook's **Secret** field, and paste
the same value into **Webhook Secret** in Carbon. With it saved, Carbon only accepts webhook requests
@@ -70,7 +66,7 @@ Connect over **OAuth**. The only setting is an optional webhook secret.
<Step>
### Link an action task
- Once connected, you can link a nonconformance action task to a Jira issue, and status, assignee, and notes stay aligned in both directions.
+ Link a nonconformance action task to a Jira issue. Carbon synchronizes status, assignee, and notes in both directions.
</Step>
</Steps>
@@ -79,8 +75,7 @@ Connect over **OAuth**. The only setting is an optional webhook secret.
| Webhook secret | Optional. When set, webhook requests without a valid Jira signature are rejected. |
<Callout type="warn">
-Jira only appears when its OAuth client is configured server-side (`JIRA_CLIENT_ID`) — see
-[Environment variables](/docs/platform/self-hosting/environment-variables).
+Jira appears only when `JIRA_CLIENT_ID` is configured server-side. See [Environment variables](/docs/platform/self-hosting/environment-variables).
</Callout>
## Related
diff --git a/docs/content/docs/platform/backups.mdx b/docs/content/docs/platform/backups.mdx
index 58768a2b13..4dc132ac41 100644
--- a/docs/content/docs/platform/backups.mdx
+++ b/docs/content/docs/platform/backups.mdx
@@ -3,18 +3,18 @@ title: Backups
description: Snapshot a company's data and files, see at a glance whether each backup can still be restored, and restore in place with one-click revert.
---
-A backup is a single snapshot of one company, with its records and, optionally, the files it has uploaded. You make one from **Settings → Backups**, and you do two things with it. You **restore** it over the same company to undo a bad change, or you use it as the starting data for a brand-new company at sign-up. Same file, two jobs.
+A backup snapshots one company's records and, optionally, uploaded files. Create backups under **Settings → Backups**. Restore a backup to the same company or use it to seed a new company during sign-up.
<Callout type="warning" title="A backup is not disaster recovery">
-This is a per-company snapshot for cloning environments and undoing a bad change, not a full database dump, and there is no scheduling or point-in-time recovery. A backup exists because a person took one, and it stays until a person deletes it. Treat it as a working tool, not your only copy.
+This feature creates manual per-company snapshots, not full database dumps. It does not provide scheduling or point-in-time recovery. Maintain a separate disaster-recovery system.
</Callout>
## What a backup contains
-A backup captures the company's business data across the whole app: sales, purchasing, items, production, accounting, quality and people. The **i** button next to "Create a backup" opens a **"What's in a backup"** summary with a live count per area and a **"Total records"** line at the bottom.
+A backup captures company data across sales, purchasing, items, production, accounting, quality, and people. Select the **i** button next to **Create a backup** to view current record counts by area and in total.
<Callout type="warning" title="Secrets never travel">
-Credentials, integration tokens and webhooks are deliberately left out of every backup, so a restored or cloned company never carries another company's secrets. Re-connect your integrations after a restore.
+Backups exclude credentials, integration tokens, and webhooks. Reconnect integrations after a restore.
</Callout>
When you export, **Include** offers two options:
@@ -26,17 +26,17 @@ When you export, **Include** offers two options:
## Create a backup
-On **Settings → Backups**, the "Create a backup" card snapshots the company's data. Give it an optional label, choose **"Data only"** or **"Data + files"**, and select **"Create backup"**. A **"Creating backup…"** row appears in the Backups list right away; the export runs in the background, and clicking the row shows its progress. When it finishes, the row becomes the backup itself, with its date, size and a status badge, and you can **"Download"** or **"Delete"** it.
+Under **Settings → Backups**, enter an optional label, select **Data only** or **Data + files**, and select **Create backup**. The background export appears immediately as **Creating backup…**; select it to view progress. When complete, the row displays its date, size, status, and **Download** and **Delete** actions.
<Screenshot src="/screens/platform-backups.png" label="Settings → Backups, the Create a backup card with the Data only / Data + files choice and the i contents button" caption="Export snapshots the company's data; the contents popover shows a live count per area." ratio="wide" />
### If the backup fails
-A failed export shows a **"Backup failed"** banner above the list, with the reason and a **"Dismiss"** button. The most common cause is corrupted data, meaning rows that link to data outside this company. A backup carrying those rows could never be restored, so the export refuses rather than write one. The banner says how many rows are affected and offers **"Skip corrupted rows and retry"**, which re-runs the same backup without them. A backup made that way is honest about it: its row shows **"N rows excluded"**, with an **i** popover listing exactly what was left out.
+A failed export displays a **Backup failed** banner with the cause. Rows that reference data outside the company are a common cause because they cannot be restored safely. Select **Skip corrupted rows and retry** to exclude them. The resulting backup displays **N rows excluded** and lists those rows in its information popover.
## Is it still restorable?
-Every backup row carries a status badge, computed against today's schema each time you open the page. There is no stored verdict and no expiry date, because neither could be trusted: the app keeps evolving after a backup is taken, so the only honest answer is the one checked right now.
+Each backup's status is computed against the current schema when the page loads. Status is not stored and backups do not have a fixed expiration date.
<FieldTable>
<Field name="Ready">Loads into today's app unchanged.</Field>
@@ -46,35 +46,35 @@ Every backup row carries a status badge, computed against today's schema each ti
</FieldTable>
<Callout type="tip" title="Carbon protects old backups at the source">
-The badge is the last line, not the first. Every schema change to Carbon is checked, before it ships, against what existing backups contain, so a change that would strand a backup a customer already holds is caught at commit time. A backup going "Not restorable" is rare by design.
+Carbon validates schema changes against existing backup formats before release. The live status check remains the final compatibility test.
</Callout>
## Restore in place
-Restoring replaces the current company's data with a backup. In the "Restore from a backup" card, pick a **Source** with **"Choose a backup"**, which lists your backups and also offers **"Upload new backup…"** for a downloaded `.carbon.tar.gz` file from another company or environment. Then choose what to **Include**, **"Data + files"** or **"Data only"**, and select **"Restore…"**.
+Restoring replaces the company's current data. In **Restore from a backup**, select **Choose a backup** to use an existing backup, or **Upload new backup…** to provide a `.carbon.tar.gz` file. Select **Data + files** or **Data only**, then select **Restore…**.
-That opens the **"Restore this company from a backup"** screen, which tells you what this restore will actually change before it runs:
+The **Restore this company from a backup** screen describes compatibility changes before execution:
-- If the backup loads cleanly, you just confirm.
-- If some fields will be **"Filled with a default"**, the screen lists the affected areas, and you confirm.
-- If some records are **"Discarded"**, meaning they won't come back, the screen lists them and asks you to type `restore` to continue.
-- If the backup **"Can't be restored"**, the screen says why, and there is no confirm button at all.
-- An uploaded backup hasn't been checked yet; any differences are found when the restore runs.
+- Compatible backups require confirmation only.
+- **Filled with a default** lists fields that receive current default values.
+- **Discarded** lists records that cannot be restored and requires entering `restore` to continue.
+- **Can't be restored** provides the reason and no confirmation action.
+- Uploaded backups are checked when restoration begins.
Each group names product areas, like Production or Sales, with a **"Details"** expander for the exact fields.
-It is safe to try. Before anything is replaced, Carbon saves today's data first, so a restore is always reversible. If the restore can't complete, your data is not changed; it stops before touching anything. When it finishes, the **"Restored — review"** card asks you to decide:
+Before replacement, Carbon snapshots the current company. If restoration fails, the current data remains unchanged. After a successful restore, use the **Restored — review** card to choose:
- **"Keep"** accepts the restored data.
- **"Revert"** rolls the company back to the snapshot taken just before the restore.
<Callout type="note" title="One restore at a time">
-A restore stays open for review until you keep or revert it. Starting another beforehand is blocked, so the revert always returns you to the state from just before the last restore.
+A company can have only one restore awaiting review. Choose **Keep** or **Revert** before starting another restore.
</Callout>
### If the restore is blocked by corrupted data
-A restore takes the same safety copy an export does, so the same corrupted rows that fail a backup also fail a restore. The failed restore row explains which rows link to data outside this company and offers **"Remove corrupted data and restore"**. That opens a confirm naming the exact count, **"Permanently delete N rows?"**, and only **"Delete and restore"** proceeds. Deleting them fixes the data instead of hiding it, then the restore runs again. If the rows turn out to be shared with other companies in your group, nothing is deleted and the restore doesn't start.
+A restore first creates a safety snapshot, so corrupted rows can block it. Select **Remove corrupted data and restore** to review the affected rows, then **Delete and restore** to delete them permanently and retry. If any row is shared with another company in the group, Carbon deletes nothing and does not start the restore.
## Start a company from a backup
diff --git a/docs/content/docs/platform/demo-data.mdx b/docs/content/docs/platform/demo-data.mdx
index 196e2653de..3f712466b6 100644
--- a/docs/content/docs/platform/demo-data.mdx
+++ b/docs/content/docs/platform/demo-data.mdx
@@ -3,13 +3,13 @@ title: Demo data
description: Fill a company with a realistic industry story, so every screen has something in it, and put back exactly what was there before with one click.
---
-Demo data fills a company with a full, coherent industry story: items with BOMs and routings, customers and suppliers, quotes, orders and returns, jobs and picking lists, inspections, non-conformances and gauges, change orders, maintenance and training, timecards, the accounting side with posted journals, payments and accounting periods, and a busy shop floor with its schedule and material plan.
+Demo data populates a company with a coherent industry dataset covering items, BOMs, routings, customers, suppliers, orders, production, quality, maintenance, training, accounting, scheduling, and material planning.
-Every list screen has rows and every detail screen opens, which makes it the fastest way to explore Carbon, demo it, or test against realistic data. You apply it from **Settings → Demo Data**, or pick it at sign-up as **"Use a demo template"**.
+Use demo data to explore, demonstrate, or test Carbon with realistic records. Apply it under **Settings → Demo Data** or select **Use a demo template** during sign-up.
## The templates
-Each template tells one industry's story, end to end, across sales, purchasing, production, quality and accounting:
+Each template provides linked records across sales, purchasing, production, quality, and accounting:
<FieldTable>
<Field name="Aerospace &amp; Satellite">A satellite manufacturer, from RFQs through built and inspected flight hardware.</Field>
@@ -18,28 +18,28 @@ Each template tells one industry's story, end to end, across sales, purchasing,
<Field name="Motor Assembly">An automotive supplier assembling motors.</Field>
</FieldTable>
-Every seeded date is relative to the day you apply the template, so the company always looks live: recent orders, jobs in progress, upcoming due dates. Parts come with real thumbnails, and each industry includes a 3D assembly you can open in the viewer.
+Seeded dates are relative to the application date and include recent orders, jobs in progress, and upcoming due dates. Parts include thumbnails, and each template includes a 3D assembly.
-Records show up in the statuses you meet in daily work, not only the happy path. You get lost and expired quotes, partly shipped orders, paid and partially paid invoices, voided receipts, closed accounting periods, and workflows with succeeded, failed and skipped runs in their history.
+Templates include normal and exceptional states: lost and expired quotes, partially shipped orders, paid and partially paid invoices, voided receipts, closed accounting periods, and succeeded, failed, and skipped workflow runs.
-The stock movements and payment settlements behind those statuses are filled in too, so on-hand quantities and invoice balances agree. Every posted invoice, payment, memo, receipt and shipment also carries its journal entry, so the income statement, balance sheet and receivables aging show real numbers.
+Related stock movements and payment settlements keep quantities and invoice balances consistent. Posted invoices, payments, memos, receipts, and shipments include journal entries for financial reports.
-The shop floor looks like a working day. Jobs are due over the next three weeks across every work center, some operations are running right now, and a few jobs finished recently.
+Jobs span every work center over three weeks and include active and recently completed operations.
-You are the employee on the floor: you get a job, a shift, people assignments and an open time card. Sales and storage rules, purchase approval rules with requests waiting for you, and customer portals are set up as well. The templates add no uploaded files, so [Documents](/docs/reference/documents) starts empty.
+The signed-in user receives a job, shift, assignments, and an open time card. Templates also configure sales and storage rules, purchase approvals, and customer portals. They do not add uploaded files, so [Documents](/docs/reference/documents) remains empty.
<Callout type="note" title="A template is not a backup">
-Demo data is seeded fresh from Carbon's own dataset definitions each time, not imported from a stored backup file. That's why it always matches the current version of the app. To stand a company up from another company's actual data, use a [backup](/docs/platform/backups) instead.
+Carbon generates demo data from current dataset definitions rather than a stored backup. To copy another company's actual data, use a [backup](/docs/platform/backups).
</Callout>
## Apply a template
-On **Settings → Demo Data**, the "Apply a demo template" card lists the templates; select **"Apply"** on one. It is safe to try on a company that already has data: Carbon saves a copy of your current data first, then replaces it with the demo story. The page shows each phase as it runs, from **"Saving a copy of your current data"** through **"Adding demo records"**, and it keeps running if you leave the page.
+Under **Settings → Demo Data**, select **Apply** for a template. Carbon first snapshots current company data, then replaces it with the template. The operation continues if you leave the page and reports each phase.
-Right after the demo data is applied, Carbon runs MRP and scheduling once over the company in the background. That run is what fills Material Planning, Demand Forecasts, Scheduling and Priorities, so those screens can take a moment longer than the rest. If it fails, the demo data still stands and MRP catches up on its regular run every three hours.
+After applying the template, Carbon runs MRP and scheduling in the background to populate Material Planning, Demand Forecasts, Scheduling, and Priorities. If this run fails, the demo data remains and the regular three-hour MRP run retries the work.
<Callout type="warn" title="Some companies can't take demo data">
-Two kinds of records can never be deleted, so Carbon refuses to apply a template over them and writes nothing.
+Carbon cannot apply a template when the company contains records that cannot be deleted:
A company with intercompany customers or suppliers fails with "Seed: this company trades with other companies in its group (N intercompany customer/supplier record(s)). Demo data can only be applied to a company without intercompany partners."
@@ -53,7 +53,7 @@ When it finishes, the **"Demo data applied"** card asks you to decide:
- **"Keep"** accepts the demo data and permanently deletes the saved copy of your previous data, so it can't be reverted afterwards. Carbon asks you to type **"I understand, keep the demo data"** to confirm.
- **"Revert"** puts back exactly what was here before.
-The choice stays open until you make it, and only one demo-data change can be in flight per company. Applying is all-or-nothing: if anything fails partway, no rows are written and the card shows the error with a **"Dismiss"** button.
+Only one demo-data change can be active per company. Application is atomic: if it fails, Carbon writes no rows and displays the error.
<Callout type="tip" title="Revert works even after a hiccup">
If a revert seems stuck, the card says so after a few minutes and offers "Retry revert". The saved copy of your data is kept until the revert succeeds, so retrying is always safe.
diff --git a/docs/content/docs/platform/licensing.mdx b/docs/content/docs/platform/licensing.mdx
index 5ecaea0b3a..52d4313e8d 100644
--- a/docs/content/docs/platform/licensing.mdx
+++ b/docs/content/docs/platform/licensing.mdx
@@ -3,7 +3,7 @@ title: Licensing
description: "Carbon is dual-licensed: AGPLv3 for Community Edition (CE), and a commercial license for Business features or for keeping your changes private."
---
-Carbon's source is public, but using it isn't unconditional. Two licenses govern the code, and which one applies depends on **what you run and how you run it**. This page is the map; the [LICENSE](https://github.com/crbnos/carbon/blob/main/LICENSE) file is the contract.
+Carbon uses open-source and commercial licenses. The applicable license depends on the code and deployment model. This page is a summary; the [LICENSE](https://github.com/crbnos/carbon/blob/main/LICENSE) file contains the governing terms.
## Editions
@@ -17,9 +17,9 @@ Self-hosting (the [Docker + Caddy recipe](/docs/platform/self-hosting/docker-cad
## What each plan unlocks
-Carbon Cloud comes in three plans, and the line between them is the line the repository already draws. The **Starter** plan runs the open core: every feature whose code sits outside `packages/ee`, under AGPLv3. That is the same code **Community Edition (CE)** runs when you host Carbon yourself.
+Carbon Cloud offers three plans. **Starter** runs the AGPLv3 open core outside `packages/ee`, equivalent to self-hosted **Community Edition (CE)**.
-The **Business** and **Enterprise** plans add the Business features, the code in `packages/ee` and in any `.ee.` file, which is what **Enterprise Edition (EE)** unlocks on your own hardware. The Enterprise plan goes further again, adding capabilities no other plan can reach, like SSO and controlled or self-hosted deployments, together with the people to implement them.
+**Business** and **Enterprise** add code under `packages/ee` and in `.ee.` files, which self-hosted **Enterprise Edition (EE)** also unlocks. Enterprise adds SSO, controlled and self-hosted deployment options, and implementation services.
<Diagram name="plans" caption="Every plan runs the Community Edition code. Business and Enterprise add the Enterprise Edition code, which is what the Business features are. Enterprise adds capabilities that exist nowhere else, plus the people to stand them up." />
@@ -36,24 +36,24 @@ The **Business** plan adds technical support; API, webhooks, integrations, and M
The **Enterprise** plan adds a forward deployed engineer; customizations, training, and integrations; full setup and migrations; SSO/SAML; CMMC Level 2 compliance; air-gapped and ITAR deployments; and unlimited functional support. It runs on Carbon Cloud, or on your own infrastructure under a commercial license as Enterprise Edition.
<Callout type="warn" title="Enterprise plan, or Enterprise Edition?">
-The **Enterprise plan** is how you buy Carbon Cloud with a service level attached. **Enterprise Edition (EE)** is what a commercial license turns a self-hosted install into. They unlock the same Business features by different routes, so the docs always say "plan" or "Edition" rather than Enterprise on its own.
+The **Enterprise plan** is a managed Carbon Cloud subscription with a service level. **Enterprise Edition (EE)** is a commercially licensed self-hosted installation. Both unlock Business features through different deployment models.
</Callout>
[carbon.ms/pricing](https://carbon.ms/pricing) carries the current prices and the side-by-side comparison.
## How to buy
-Every path starts with one question: **who runs Carbon?** If we run it for you, that's [Carbon Cloud](#carbon-cloud--we-run-it). If you run it yourself, that's [self-hosted](#self-hosted--you-run-it), governed by the AGPL until a commercial license changes the terms.
+Choose a license path based on who operates Carbon. Use [Carbon Cloud](#carbon-cloud--we-run-it) for a managed deployment. A [self-hosted](#self-hosted--you-run-it) deployment uses AGPLv3 unless covered by a commercial license.
## Carbon Cloud — we run it
-Carbon Cloud is the managed edition, operated for you at [app.carbon.ms](https://app.carbon.ms). There are two ways onto it.
+Carbon Cloud is the managed deployment at [app.carbon.ms](https://app.carbon.ms). It is available through self-signup or an Enterprise Subscription.
<Diagram name="buy-hosted" caption="The managed path: self-signup for the two clickthrough plans, or a signed Enterprise Subscription with its choice of environment and service level." />
-**Self-signup** is the short path. Accept the clickthrough terms of service, put a card on file, and you're running — no signature, no invoice. It comes in two month-to-month plans: **Starter** (a limited feature set) and **Business** (the full application). This is the same billing described in the [Cloud plans](/docs/platform/self-hosting) sense: a subscription you manage yourself.
+**Self-signup** provides month-to-month **Starter** or **Business** access under clickthrough terms with card billing. See [Cloud plans](/docs/platform/licensing#what-each-plan-unlocks).
-**Enterprise Subscription** is the signed, invoiced umbrella for larger deployments. It's an annual commitment — billed annually, semi-annually, or quarterly — over a one, three, or five-year term, with uncapped users and no mid-term overage. Every Enterprise Subscription carries Business-tier features in whatever environment it runs. Inside it, you make two independent choices.
+An **Enterprise Subscription** is a signed agreement for larger deployments. Terms are one, three, or five years, billed annually, semi-annually, or quarterly, with unlimited users and no mid-term overage. Every Enterprise Subscription includes Business features and separate environment and service-level choices.
**Environment — where it runs.**
@@ -72,18 +72,18 @@ Custom features, integrations, data migrations, additional forward-deployed engi
## Self-hosted — you run it
-Clone Carbon from GitHub and run it on your own infrastructure. By default that's **Community Edition (CE)**, which is free under AGPLv3. You only need a commercial license to use Business features or to keep your changes private.
+Self-hosted Carbon uses **Community Edition (CE)** under AGPLv3 by default. A commercial license is required for Business features or private modifications.
<Diagram name="buy-selfhosted" caption="The self-hosted path: free under the AGPL for your own use, modified or not, or a commercial license that unlocks the Business features and lets you keep your changes private." />
-**Community Edition (CE)** is the open core under AGPLv3 — free, no agreement needed. Running CE for your own business, modified or not, never requires a license. Two things come with that freedom: if you let others use a modified version over a network, you must offer those users its source under the AGPL, and the Enterprise Edition code is excluded, so CE ships without Business features, Carbon support, or an SLA.
+**Community Edition (CE)** is the AGPLv3 open core and requires no commercial agreement. A business can run and modify CE for its own use. If users access a modified version over a network, you must offer them its source under AGPLv3. CE excludes Enterprise Edition code, Carbon support, and an SLA.
A **commercial license is required** the moment any one of these is true:
- You use anything under `packages/ee` or any `.ee.` file.
- You want to keep your changes private from the people who use your modified version.
-The **Carbon Commercial License Agreement** covers all of that. It's self-hosted with full codebase access, including the Business features, over a one, three, or five-year term, and it replaces the AGPL copyleft so your modifications stay private. For a company running Carbon for itself, it's licensed per user, per year, and renews.
+The **Carbon Commercial License Agreement** provides full codebase access, including Business features, and replaces AGPL copyleft requirements so modifications can remain private. Terms are one, three, or five years. Internal deployments are licensed per user per year and renew.
For **partners** who sell Carbon with Business features or without AGPL obligations, the same commercial license covers three models:
@@ -93,7 +93,7 @@ For **partners** who sell Carbon with Business features or without AGPL obligati
## The AGPL obligation
-AGPLv3 is a **network copyleft** license: modify Carbon, make it available to users over a network, and you must offer those users your complete modified source under the same license.
+AGPLv3 is a **network copyleft** license. If users access a modified Carbon deployment over a network, you must offer those users the complete modified source under the same license.
## How the agreements fit together
diff --git a/docs/content/docs/platform/self-hosting/aws-sst.mdx b/docs/content/docs/platform/self-hosting/aws-sst.mdx
index b13b3b2619..bc6c7eee44 100644
--- a/docs/content/docs/platform/self-hosting/aws-sst.mdx
+++ b/docs/content/docs/platform/self-hosting/aws-sst.mdx
@@ -3,10 +3,10 @@ title: AWS with SST
description: "Deploy the Carbon stack to your own AWS account with SST: ECS Fargate, ECR, and a WAF."
---
-One of the [self-hosting](/docs/platform/self-hosting) recipes: deploy Carbon to **AWS** with **SST**. The two apps, ERP and MES, run as containers on **ECS Fargate** behind load balancers, defined in `sst.config.ts` (app `carbon`, home `aws`). For a single-box setup instead, see [Docker with Caddy](/docs/platform/self-hosting/docker-caddy).
+This [self-hosting](/docs/platform/self-hosting) recipe deploys the ERP and MES containers to **ECS Fargate** behind load balancers using **SST**. Infrastructure is defined in `sst.config.ts` with app `carbon` and home `aws`. For a single-server deployment, see [Docker with Caddy](/docs/platform/self-hosting/docker-caddy).
<Callout type="tip" title="Don't want to run any of this?">
-[Carbon Cloud](https://app.carbon.ms) is the hosted edition. We run the whole stack for you, with scaling, backups, upgrades, and uptime handled. Sign up and you're in: no servers to provision, no Supabase to run, no infrastructure to babysit. Self-host only if you specifically need Carbon on your own hardware.
+[Carbon Cloud](https://app.carbon.ms) manages infrastructure, scaling, backups, and upgrades. Self-host when Carbon must run in your AWS account.
</Callout>
## What gets provisioned
@@ -35,13 +35,13 @@ The WAF web ACL must be **manually associated** with the application load balanc
## Deploy
-SST drives the deploy from `sst.config.ts`. Run it from the repo root with the [infrastructure variables](/docs/platform/self-hosting/environment-variables#infrastructure--sst) exported.
+Run SST from the repository root with the [infrastructure variables](/docs/platform/self-hosting/environment-variables#infrastructure--sst) exported.
<Steps>
<Step>
### Set the environment
- Export the SST variables (`AWS_REGION`, `AWS_ACCOUNT_ID`, `IMAGE_TAG`, the `CERT_ARN_*`, and any `URL_*`) plus the app config the services read at runtime. The [Supabase instance](/docs/platform/self-hosting/environment-variables#database--supabase) is provisioned out of band.
+ Export `AWS_REGION`, `AWS_ACCOUNT_ID`, `IMAGE_TAG`, the `CERT_ARN_*` values, optional `URL_*` values, and the application runtime configuration. Provision [Supabase](/docs/platform/self-hosting/environment-variables#database--supabase) separately.
</Step>
<Step>
### Deploy the stack
@@ -50,7 +50,7 @@ SST drives the deploy from `sst.config.ts`. Run it from the repo root with the [
npx sst deploy --stage prod
```
- This provisions the VPC, cluster, both Fargate services, and the WAF, pulling the ECR images tagged `IMAGE_TAG`. The `prod` stage retains resources on removal; any other stage removes them.
+ This provisions the VPC, cluster, Fargate services, and WAF, then pulls the ECR images tagged by `IMAGE_TAG`. The `prod` stage retains resources when removed; other stages delete them.
</Step>
<Step>
### Associate the WAF
diff --git a/docs/content/docs/platform/self-hosting/docker-caddy.mdx b/docs/content/docs/platform/self-hosting/docker-caddy.mdx
index 4506fb09af..f7abb15c02 100644
--- a/docs/content/docs/platform/self-hosting/docker-caddy.mdx
+++ b/docs/content/docs/platform/self-hosting/docker-caddy.mdx
@@ -3,12 +3,12 @@ title: Docker with Caddy
description: Self-host the full Carbon stack on a single Linux VPS with a Docker Swarm and an automatic-HTTPS Caddy reverse proxy.
---
-Run all of Carbon on **one Linux VPS**: a single-node [Docker Swarm](https://docs.docker.com/engine/swarm/) running the ERP and MES apps, the full Supabase data plane, Redis, and Inngest, behind a [Caddy](https://caddyserver.com/docs/) reverse proxy that handles TLS for you. Secrets are real **Docker Swarm secrets**, and only ports **80/443** are exposed. Everything else stays on a private overlay network.
+Run Carbon on one Linux VPS with a single-node [Docker Swarm](https://docs.docker.com/engine/swarm/). The stack includes ERP, MES, Supabase, Redis, and Inngest behind a [Caddy](https://caddyserver.com/docs/) TLS reverse proxy. Only ports **80** and **443** are public; other services use a private overlay network. Sensitive values use Docker Swarm secrets.
-Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](https://github.com/crbnos/carbon/tree/main/contrib/deploying/simple-docker-caddy). The `deploy.sh` script wraps the whole lifecycle.
+Deployment files are in [`contrib/deploying/simple-docker-caddy`](https://github.com/crbnos/carbon/tree/main/contrib/deploying/simple-docker-caddy). Use `deploy.sh` to manage the deployment lifecycle.
<Callout type="tip" title="Don't want to run any of this?">
-[Carbon Cloud](https://app.carbon.ms) is the hosted edition. We run the whole stack for you, with scaling, backups, upgrades, and uptime handled. Sign up and you're in: no servers to provision, no Supabase to run, no infrastructure to babysit. Self-host only if you specifically need Carbon on your own hardware.
+[Carbon Cloud](https://app.carbon.ms) manages infrastructure, backups, upgrades, and availability. Self-host when Carbon must run on infrastructure you control.
</Callout>
## What runs
@@ -40,7 +40,7 @@ Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](ht
<Step>
### Harden the host (recommended)
- Sets up a firewall (SSH + 80/443 only), fail2ban, swap, and automatic security updates.
+ Configure a firewall for SSH and ports 80 and 443, fail2ban, swap, and automatic security updates.
```bash
cd /opt/carbon/contrib/deploying/simple-docker-caddy
@@ -50,7 +50,7 @@ Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](ht
<Step>
### Initialize
- Starts the Swarm, generates all the Docker secrets, and creates a `.env` from the template.
+ Start the Swarm, generate Docker secrets, and create `.env` from the template.
```bash
./deploy.sh init
@@ -68,7 +68,7 @@ Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](ht
<Step>
### Set the operator secrets
- `init` seeds placeholders so the stack deploys; replace them with real values. ERP **fails to boot** with an empty Resend key.
+ `init` creates placeholder values for deployment. Replace them with production secrets. ERP **does not start** with an empty Resend key.
```bash
./deploy.sh secret resend_api_key re_xxxxxxxx
@@ -78,7 +78,7 @@ Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](ht
<Step>
### Deploy
- Builds the images, deploys the stack, waits for the database, and applies migrations.
+ Build the images, deploy the stack, wait for the database, and apply migrations.
```bash
./deploy.sh up
@@ -96,12 +96,12 @@ Everything for this recipe lives in [`contrib/deploying/simple-docker-caddy`](ht
</Steps>
<Callout type="note">
-First boot applies hundreds of migrations. The apps may restart a few times until the schema exists, then settle healthy. Watch `./deploy.sh logs erp`.
+The first boot applies all migrations. Applications can restart until the schema is ready. Monitor progress with `./deploy.sh logs erp`.
</Callout>
## How secrets work
-Swarm delivers secrets as files under `/run/secrets/`, but the images read configuration from **environment variables**, several of them Postgres connection strings that embed the password. A small entrypoint shim bridges the two: it replaces `__SECRET_NAME__` placeholders in the environment with the contents of the matching secret file, then starts the service.
+Swarm mounts secrets under `/run/secrets/`, while the images read environment variables. The entrypoint replaces each `__SECRET_NAME__` placeholder with the matching secret file's contents before starting the service.
```yaml
PGRST_DB_URI: postgres://authenticator:__POSTGRES_PASSWORD__@postgres:5432/postgres
@@ -141,7 +141,7 @@ The `.1` avoids also matching `carbon_postgrest`. Or expose Studio behind HTTP b
```
<Callout type="warn">
-A local backup on the same VPS is not a backup. Schedule `backup.sh` and ship its output **offsite**, and enable your provider's volume snapshots.
+Schedule `backup.sh`, copy its output **offsite**, and enable provider volume snapshots. Backups stored only on the VPS do not protect against host loss.
</Callout>
## Production checklist
diff --git a/docs/content/docs/platform/self-hosting/environment-variables.mdx b/docs/content/docs/platform/self-hosting/environment-variables.mdx
index d86c18c86c..0a5e1827a9 100644
--- a/docs/content/docs/platform/self-hosting/environment-variables.mdx
+++ b/docs/content/docs/platform/self-hosting/environment-variables.mdx
@@ -3,10 +3,7 @@ title: Environment variables
description: Every variable that configures a Carbon instance, grouped by concern. The source of truth is packages/env.
---
-Carbon reads its configuration from environment variables. The registry lives in `packages/env`;
-`.env.example` is the template; infrastructure-only variables are read by `sst.config.ts`. A minimal
-instance needs the Supabase connection, a session secret, and Redis. Everything else activates features
-as you need them.
+Carbon reads configuration from environment variables registered in `packages/env`. Use `.env.example` as the template. `sst.config.ts` reads infrastructure-only variables. A minimal instance requires Supabase, a session secret, and Redis; other variables enable optional features.
## Core
@@ -53,12 +50,7 @@ Enterprise [SAML single sign-on](/docs/reference/single-sign-on) adds two more:
<EnvVar name="SAML_PRIVATE_KEY" type="string">SAML signing key — base64-encoded PKCS#1 DER RSA, minimum 2048-bit; the generation command is in `.env.example`.</EnvVar>
</EnvVars>
-Sign-in bot protection is Cloudflare Turnstile off Vercel: set both
-`CLOUDFLARE_TURNSTILE_SITE_KEY` and `CLOUDFLARE_TURNSTILE_SECRET_KEY` and every login form
-shows the widget and verifies its token. With neither set there is no bot check, and the
-per-IP rate limit and per-account lockout are all that apply. `BOT_PROTECTION`
-chooses explicitly: `turnstile`, or `botid` for Vercel BotID, which is invisible but runs
-only on Vercel.
+Outside Vercel, set both `CLOUDFLARE_TURNSTILE_SITE_KEY` and `CLOUDFLARE_TURNSTILE_SECRET_KEY` to enable Cloudflare Turnstile on login forms. Without them, only per-IP rate limits and per-account lockouts apply. Set `BOT_PROTECTION` to `turnstile`, or to `botid` for invisible Vercel BotID protection. BotID runs only on Vercel.
## Jobs & cache
@@ -70,7 +62,7 @@ only on Vercel.
</EnvVars>
<Callout type="warn" title="Inngest keys are required in production">
-`INNGEST_SIGNING_KEY` and `INNGEST_EVENT_KEY` are only optional in development, where `INNGEST_DEV=1` is set. Without `INNGEST_DEV`, the app fails to boot if either is missing, and no background jobs (MRP, scheduling, notifications, integration syncs) or queued events run. A self-hosted Inngest server supplies both. The Docker with Caddy recipe generates them for you.
+`INNGEST_SIGNING_KEY` and `INNGEST_EVENT_KEY` are optional only when `INNGEST_DEV=1`. In other environments, the application does not start if either is missing. A self-hosted Inngest server supplies both; the Docker with Caddy recipe generates them.
</Callout>
## Email & billing
@@ -131,6 +123,5 @@ Read by `sst.config.ts` at deploy time, not by the app.
</EnvVars>
<Callout type="warn">
-Older notes list `TRIGGER_*` (Trigger.dev) and `UPSTASH_REDIS_*` variables. Those are gone. Jobs run on
-Inngest and the cache uses a plain `REDIS_URL`.
+`TRIGGER_*` and `UPSTASH_REDIS_*` variables are obsolete. Jobs use Inngest, and the cache uses `REDIS_URL`.
</Callout>
diff --git a/docs/content/docs/platform/self-hosting/index.mdx b/docs/content/docs/platform/self-hosting/index.mdx
index e2801997b5..f8f4951566 100644
--- a/docs/content/docs/platform/self-hosting/index.mdx
+++ b/docs/content/docs/platform/self-hosting/index.mdx
@@ -3,7 +3,7 @@ title: Self-hosting
description: Run the whole Carbon stack on your own infrastructure, a single VPS or your own AWS account, instead of Carbon Cloud.
---
-Carbon can run entirely on hardware you control, the ERP and MES apps plus everything they need: the Supabase data plane (Postgres, Auth, REST, Realtime, Storage, Edge Functions), Redis, and Inngest. This is the alternative to [Carbon Cloud](https://app.carbon.ms), where Carbon runs the whole stack for you.
+Self-hosted Carbon runs the ERP and MES applications, Supabase data plane (Postgres, Auth, REST, Realtime, Storage, and Edge Functions), Redis, and Inngest on infrastructure you control. [Carbon Cloud](https://app.carbon.ms) is the managed alternative.
## Recipes
@@ -17,5 +17,5 @@ Carbon can run entirely on hardware you control, the ERP and MES apps plus every
</Cards>
<Callout type="warn" title="Self-hosting runs Community Edition (CE)">
-Self-hosted Carbon runs under **AGPLv3**: it's free to run and change, and if you let others use a modified copy over a network, you must offer them its source. A commercial license is required to use Business features (anything in `packages/ee`) or to keep your changes private from the people who use them. See [Licensing](/docs/platform/licensing).
+Self-hosted Carbon uses **AGPLv3** by default. If users access a modified version over a network, you must offer them its source. A commercial license is required to use Business features under `packages/ee` or to keep modifications private from users. See [Licensing](/docs/platform/licensing).
</Callout>
diff --git a/docs/content/docs/reference/account.mdx b/docs/content/docs/reference/account.mdx
index 815ffc4718..b000bbf050 100644
--- a/docs/content/docs/reference/account.mdx
+++ b/docs/content/docs/reference/account.mdx
@@ -3,11 +3,11 @@ title: Your account
description: Personal, self-service settings for profile, passkeys and two-factor, notification preferences, theme, and language — separate from company-wide settings.
---
-Everything on the **Account** screen is yours alone: your name and photo, the passkeys you sign in with, which topics reach you by email, the theme you look at all day. Changing them touches nothing for anyone else. Company-wide switches live under **Settings** and are gated by admin permissions; your account settings need no special permission at all. Open it from your avatar in the top bar.
+The **Account** screen manages your profile, credentials, notification preferences, and display settings. These settings affect only your account and require no special permission. Company-wide configuration is under **Settings** and requires administrative access. Open **Account** from your avatar in the top bar.
## Profile
-Profile is the one card everyone shares; the form itself warns *"This information will be visible to all users, so be careful what you share."*
+Profile information is visible to other users. The form warns: *"This information will be visible to all users, so be careful what you share."*
<FieldTable>
<Field name="First name / Last name" required>Your display name across Carbon.</Field>
@@ -19,23 +19,25 @@ Profile is the one card everyone shares; the form itself warns *"This informatio
## Signing in
-Sign-in is a magic link, Google or Microsoft OAuth, or a passkey — there is no password. Which methods exist is a deployment-wide choice, not a per-user one.
+Carbon supports magic links, Google or Microsoft OAuth, and passkeys; it does not use passwords. Available methods are configured for the deployment, not per user.
<Screenshot label="Account → Security: passkey list with add/rename/remove, and the two-factor authenticator card" caption="Security holds everything you sign in with." />
-**Account → Security** is where you manage your own credentials. Add a passkey through your browser's WebAuthn prompt to sign in with Face ID, Touch ID, or your device PIN; rename each one so you can tell devices apart; remove one to revoke that device. Each row shows when it was added and last used. The same screen holds the authenticator-app card — see [two-factor authentication](/docs/reference/two-factor) for setup, enforcement, and recovery.
+Use **Account → Security** to manage credentials. Add a passkey through your browser's WebAuthn prompt to sign in with Face ID, Touch ID, or a device PIN. Rename passkeys to identify their devices, or remove one to revoke it. Each row shows when the passkey was added and last used. This screen also contains the authenticator-app settings. See [two-factor authentication](/docs/reference/two-factor) for setup, enforcement, and recovery.
<Callout type="tip" title="Keep more than one way in">
-A passkey is tied to a device. Register a second one up front, or you'll be falling back to the magic-link email when the first device goes missing.
+A passkey is tied to a device. Register a second passkey to retain access if the first device is unavailable; otherwise, use a magic link.
</Callout>
## Notification preferences
-**Account → Notifications** is your personal grid of topic × channel switches: in-app is always delivered, and the toggles govern email and (when connected) Slack. The default is on; a switch off is an opt-out for that one topic and channel. What raises each notification and how channels are gated is the [notifications reference](/docs/reference/notifications) — this page is where you tune it for yourself.
+**Account → Notifications** contains topic-by-channel preferences. In-app notifications are always delivered. The toggles control email and, when connected, Slack. Each topic and channel is enabled by default; turn off a switch to opt out of that combination. See [notifications](/docs/reference/notifications) for notification triggers and channel availability.
## Theme, language, and attributes
-Your color theme is stored in a browser cookie, so it follows you per device and applies to nobody else; company-wide branding is an admin setting. Language is a preference Carbon carries for you rather than a live toggle on this screen. Your company can also define **user attributes** (a certification date, a shift preference) grouped into categories: whether one shows on your public profile depends on its category being public, and you can edit your own value only when the attribute is marked <Term id="attribute-self-managed">self-managed</Term>.
+Your color theme is stored in a browser cookie, so it applies only to the current device. Company-wide branding is an administrative setting. Carbon stores a language preference, but this screen does not currently expose a language selector.
+
+Your company can define categorized **user attributes**, such as certification dates or shift preferences. An attribute appears on your public profile only when its category is public. You can edit its value only when it is marked <Term id="attribute-self-managed">self-managed</Term>.
For the switches that shape the whole company, see [company settings](/docs/reference/company-settings) and [people](/docs/reference/people).
diff --git a/docs/content/docs/reference/accounting.mdx b/docs/content/docs/reference/accounting.mdx
index 19321ab44c..b044ebb782 100644
--- a/docs/content/docs/reference/accounting.mdx
+++ b/docs/content/docs/reference/accounting.mdx
@@ -3,19 +3,19 @@ title: Accounting & the ledger
description: "How operations become journal entries: accounts, periods, and the postings behind every flow."
---
-Carbon's flows all end the same way: shipping, receiving, finishing a job, depreciating an asset each post to the **<Term id="general-ledger">general ledger</Term>**. This page covers the machinery they share.
+Shipping, receiving, job completion, and asset depreciation can each post to the **<Term id="general-ledger">general ledger</Term>**. This page describes their shared accounting behavior.
## Accounting is a switch
-A company setting, **accounting enabled**, is **off by default**. With it off, the physical world still moves (the item ledger records quantities, orders and jobs change status), but no journal entries are written. Every posting below is gated on it.
+The company setting **accounting enabled** is off by default. When disabled, operational transactions still update quantities and document statuses, but they do not create journal entries. All postings described below require this setting.
<Callout type="warn">
-A shop can run operationally (receiving, building, shipping) before it keeps books. Turn accounting on and those same actions begin posting to the ledger; until then the financial entries are simply skipped.
+Receiving, production, and shipping can operate without accounting. After accounting is enabled, those actions begin posting to the ledger. Carbon does not create entries retroactively for earlier activity.
</Callout>
## The journal
-Every <Term id="posting">posting</Term> is a **<Term>journal</Term>** with balanced **journal lines**: debits positive, credits negative. The journal carries a **source type** naming what produced it; each line carries an account and can be tagged with dimensions. A journal is *Posted* (the normal state), *Draft*, or *Reversed* — voiding writes a reversing journal rather than deleting one.
+Each <Term id="posting">posting</Term> creates a **<Term>journal</Term>** with balanced **journal lines**: debits are positive and credits are negative. The journal records its source type. Each line references an account and can include dimensions. Journals can be *Draft*, *Posted*, or *Reversed*. Voiding a posted journal creates a reversing journal instead of deleting the original.
| Source type | Posted by |
| --- | --- |
@@ -30,7 +30,7 @@ Every <Term id="posting">posting</Term> is a **<Term>journal</Term>** with balan
## Accounts come from one place
-Carbon resolves the accounts to post to from a **single company-level set of defaults**. There are no per-group posting groups. The ones that recur across the flows:
+Carbon resolves posting accounts from one set of company defaults. It does not use per-group posting groups. These defaults recur across accounting flows:
| Account | Used for |
| --- | --- |
@@ -43,15 +43,15 @@ Carbon resolves the accounts to post to from a **single company-level set of def
| Goods received, not invoiced | The accrual between receiving goods and being billed for them. |
| Variance | Differences swept at job close or from purchase price. |
-A sales invoice line splits its charge three ways rather than folding everything into revenue: the line's own shipping plus its share of any header-level shipping credits the **shipping revenue** account, tax credits **sales tax payable**, and merchandise and add-ons credit the **sales** account. The two revenue defaults must be distinct accounts — posting refuses a line that would credit shipping to the sales account. A new company seeds account **4040 "Shipping Revenue"** under Revenue and points the default at it; a company joining an existing group inherits that group's shipping default instead.
+A sales invoice line separates shipping, tax, and merchandise. Line shipping and its share of header-level shipping credit **shipping revenue**; tax credits **sales tax payable**; merchandise and add-ons credit **sales**. The sales and shipping-revenue defaults must reference different accounts. Posting fails if both resolve to the sales account. New companies receive account **4040 "Shipping Revenue"** under Revenue; companies joining an existing group inherit the group's shipping default.
## Dimensions
-A journal line can be tagged with **dimensions**: location, department, cost center, item posting group, work center, process, fixed-asset class. The same handful of accounts can then be sliced for reporting without multiplying the chart of accounts.
+A journal line can include dimensions for location, department, cost center, item posting group, work center, process, or fixed-asset class. Dimensions support segmented reporting without expanding the chart of accounts.
## Periods
-Every posting lands in an **<Term id="accounting-period">accounting period</Term>**, created and activated on demand as you post. Each period also carries a close status — **Open**, **Closed**, or **Locked** — and operational documents (receipts, shipments, invoices, payments) can't post into a Closed or Locked period. Reopen or unlock the period first, or move the posting date into an open one.
+Every posting belongs to an **<Term id="accounting-period">accounting period</Term>**, which Carbon creates and activates as needed. A period can be **Open**, **Closed**, or **Locked**. Receipts, shipments, invoices, and payments cannot post to a Closed or Locked period. Reopen or unlock the period, or change the posting date to an open period.
## Related
diff --git a/docs/content/docs/reference/agent.mdx b/docs/content/docs/reference/agent.mdx
index a733d72bcb..d5ea25528d 100644
--- a/docs/content/docs/reference/agent.mdx
+++ b/docs/content/docs/reference/agent.mdx
@@ -4,40 +4,40 @@ plan: Business
description: A read-only chat assistant inside the ERP that answers questions about how Carbon works from the product documentation and points you to the right page.
---
-The in-app assistant is a chat panel inside the ERP that answers "how do I / what is / where is" questions about Carbon. Open it from the **Question** button in the top bar, or press <kbd>⌘L</kbd>. Ask something like "how do I convert a sales order line to a job?" and it searches the product documentation, reads the relevant pages, and replies in plain language with a link to the source.
+The in-app assistant answers questions about using Carbon. Open it with the **Question** button in the top bar or press <kbd>⌘L</kbd>. It searches the product documentation and returns an answer with links to relevant pages.
-It is deliberately narrow. This first version is **read-only and documentation-only**: it explains features and workflows and can take you to a page, but it cannot read your live data and cannot change anything. Ask "how many open sales orders do I have?" and it will tell you it can't read your data yet, then open the sales orders page so you can see for yourself.
+The assistant is **read-only and documentation-only**. It explains features and workflows and can navigate to pages, but it cannot read live company data or make changes. For data-specific questions, it can open the relevant page for you to inspect.
<Callout type="warn" title="It never writes, and it never reads your records">
-The assistant answers from the docs and can navigate you around the app. It does not create, edit, or delete anything, and it cannot see your customers, orders, parts, quantities, or statuses. If you ask it to make a change, it explains what you would do in the UI instead. Don't expect it to act on your behalf.
+The assistant does not create, edit, or delete records. It cannot access customers, orders, parts, quantities, or statuses. If asked to make a change, it explains how to perform the action in the interface.
</Callout>
This is distinct from the [Slack assistant](/docs/integrations/assistant), which is a separate integration that surfaces Carbon in Slack. The in-app assistant lives only inside the ERP.
## What it can do
-The assistant has a small, fixed set of abilities:
+The assistant can:
- **Answer from the docs.** It searches the same content that powers this documentation site and reads whole pages to answer your question, citing the page it used as a link.
- **Take you to a page.** Ask for "the jobs page" or "settings" and it can navigate you straight there. For a record page it needs a specific id, which it can only use if it found one in the docs. It never invents ids.
- **Offer links, buttons, and choices.** It can show a clickable link, a one-click suggested follow-up, or a short set of options to pick from when your question is ambiguous.
-That is the whole surface. There is no "run this report", "update this field", or "post this document" — those are not abilities it has in this version.
+It cannot run reports, update fields, or post documents.
## Where it appears
-The assistant is available across the ERP. The **Question** button sits in the top bar and toggles a floating chat panel on the right; <kbd>⌘L</kbd> does the same from anywhere. When it is open, it knows which page or record you are currently viewing, so "how do I edit this?" resolves against the screen you are on and it can send you somewhere sensible.
+The assistant is available throughout the ERP. The **Question** button and <kbd>⌘L</kbd> toggle a chat panel on the right. The assistant receives the current page or record as context, so questions such as "how do I edit this?" apply to the active screen.
-The button and the panel only appear when your plan includes the assistant. On a plan without it, there is no trigger and no panel, so you never reach a dead end.
+The button and panel appear only when the company's plan includes the assistant.
## Threads and messages
-Each conversation is a **thread**, private to you within your company. Your threads are not visible to your teammates. Open the history from the panel to switch between past threads or start a new one, and delete any thread you no longer want. A thread is deleted automatically **7 days after its last message**; a reopened thread shows its most recent 200 messages.
+Each conversation is a **thread** visible only to you within your company. Use panel history to switch threads, start a new one, or delete a thread. Carbon automatically deletes a thread **7 days after its last message**. Reopened threads display their 200 most recent messages.
-Inside a thread, every exchange is stored as messages, and each message is broken into ordered parts: the text you see, plus a record of any documentation the assistant looked up along the way. A thread gets an automatic short title once it has a clear topic, so your history stays scannable. You can give a thumbs up or thumbs down on the assistant's latest answer, with an optional note, which helps improve it over time.
+Carbon stores each exchange as messages containing visible text and records of documentation lookups. It assigns a short title when the thread has a clear topic. You can rate the latest answer with an optional note.
<Callout type="note" title="It only remembers the recent turn">
-A long conversation is trimmed to its most recent messages before each reply, so the assistant answers from the recent context, not the entire history. Start a new thread when you switch topics for the cleanest results.
+Before each reply, Carbon limits the conversation context to recent messages. Start a new thread when changing topics.
</Callout>
## Limits and availability
@@ -45,7 +45,7 @@ A long conversation is trimmed to its most recent messages before each reply, so
The assistant is a paid feature.
- **Plan.** It is available on the Business plan on Carbon Cloud. See [licensing](/docs/platform/licensing) for how plans and editions work. Self-hosted deployments follow the licensing boundary rather than a runtime plan gate.
-- **Beta.** The panel is labelled **Beta**: it is improving constantly, and an answer can be incomplete or wrong. Treat it as a fast way to find the right doc and the right page, not as the final word — the linked documentation is the source of truth.
+- **Beta.** Answers can be incomplete or incorrect. Use the linked documentation as the source of truth.
<AgentContext>
## Troubleshooting
diff --git a/docs/content/docs/reference/approvals.mdx b/docs/content/docs/reference/approvals.mdx
index 7e4d4999b3..a93a16ac1e 100644
--- a/docs/content/docs/reference/approvals.mdx
+++ b/docs/content/docs/reference/approvals.mdx
@@ -3,14 +3,9 @@ title: Approvals
description: Route purchase orders, quality documents, and suppliers for sign-off before they take effect, with amount-tiered approval rules.
---
-An **approval** holds a document in a pending state until someone authorized signs off. Carbon decides
-whether a document needs approval, and who may grant it, from per-company **approval rules**. A rule
-exists per document type; for <Term id="purchase-order">purchase orders</Term> it can also carry an amount tier, so a small order goes
-through untouched while a large one waits for the right person.
+An **approval** keeps a document pending until an authorized user approves or rejects it. Per-company **approval rules** determine whether approval is required and who can decide. <Term id="purchase-order">Purchase-order</Term> rules can use amount tiers.
-Say you set a purchase-order rule at **$25,000** with the purchasing managers as approvers: a $4,000 order
-finalizes straight to **"To Receive"**, but a $40,000 order lands in **"Needs Approval"** and can't move
-until a manager approves it.
+For example, with a **$25,000** purchase-order rule, a $4,000 order can finalize directly to **To Receive**, while a $40,000 order enters **Needs Approval**.
## What can be approved
@@ -38,8 +33,7 @@ Rules live under **Settings → Approval Rules**, grouped by document type. Each
<Field name="Enabled">Whether the rule is live.</Field>
</FieldTable>
-For purchase orders, several rules form **amount tiers**. Each band runs from its minimum up to the next
-rule's minimum, and the top tier is "over $X". An order matches the single highest tier its total clears.
+For purchase orders, rules form **amount tiers**. Each tier runs from its minimum to the next tier's minimum. An order matches the highest threshold its total meets.
<Callout type="note">
There's **no global "require approval" switch.** A document type needs approval only while an **enabled**
@@ -48,10 +42,7 @@ rule exists for it. Disable or delete the rule and those documents finalize dire
## Who can approve
-A user may decide a request if they're the tier's **default approver**, are listed directly under **who can
-approve**, or belong to one of the groups listed there. Authority is otherwise governed by ordinary module
-permissions: purchase-order and supplier decisions need purchasing access, quality decisions need quality
-access; editing rules needs settings access.
+A user can decide a request when they are the tier's **default approver**, are listed under **Who can approve**, or belong to an authorized group. They also need the relevant module permission: purchasing for purchase orders and suppliers, quality for quality documents, or settings for editing rules.
<Callout type="warn">
Approval authority flows **upward only.** Someone assigned to the $25k tier can approve a $4k order, but a
@@ -72,9 +63,7 @@ Carbon notifies the resolved approvers when a request is raised, and the request
they can see spend that cleared above their level.
<Callout type="warn">
-Approval is **single-step, not a chain.** One matching rule is selected and **one** approver's decision
-finalizes the document. There are no sequential stages, parallel sign-offs, quorums, or delegation. The
-amount tiers choose *which rule applies*, not a series of steps a request walks through.
+Approval is **single-step**. Carbon selects one rule, and one authorized decision finalizes the document. It does not support sequential stages, parallel sign-offs, quorums, or delegation. Amount tiers select a rule; they are not approval stages.
</Callout>
## Related
diff --git a/docs/content/docs/reference/assembly-instructions.mdx b/docs/content/docs/reference/assembly-instructions.mdx
index 15eb49b84f..13322a8893 100644
--- a/docs/content/docs/reference/assembly-instructions.mdx
+++ b/docs/content/docs/reference/assembly-instructions.mdx
@@ -3,9 +3,9 @@ title: Assembly instructions
description: Step-by-step 3D build guides for a made part, authored in the ERP from its CAD model and played to operators on the shop floor.
---
-An assembly instruction is a 3D build guide for one made part. It breaks the part's CAD model into ordered steps, each naming the components it installs and how they move into place, and plays them to the operator in the shop floor's [guided assembly view](/docs/reference/mes#the-guided-assembly-view).
+An assembly instruction is a 3D build guide for a made part. It divides the part's CAD model into ordered steps that identify installed components and their motion paths. Operators follow these steps in the shop floor's [guided assembly view](/docs/reference/mes#the-guided-assembly-view).
-You author instructions under **Production → Assemblies**. Pressing **"Add Assembly Instruction"** asks for a single field, the **Part**: a part made in-house that already has a 3D model on its **Model** tab (a STEP file). Carbon converts the model for 3D viewing if it needs to, opens the editor, and starts working out draft steps straight away.
+Create instructions under **Production → Assemblies**. Select **Add Assembly Instruction**, then choose a made-in-house **Part** with a STEP file on its **Model** tab. Carbon converts the model for 3D viewing when required, opens the editor, and begins generating draft steps.
<Screenshot label="The assembly instruction editor: the Steps list on the left, the 3D model in the middle, and the selected step's Details tab on the right with Components and the Playback box" caption="Steps on the left, the model in the middle, the selected step's settings on the right." />
@@ -17,7 +17,7 @@ You author instructions under **Production → Assemblies**. Pressing **"Add Ass
<Status name="Archived" terminal>A version that was active before a newer one took over. Read-only.</Status>
</StatusFlow>
-Each version is its own copy of the instruction. On a published instruction, **"New Version"** makes an editable draft copy of it, steps and all. On a draft, **"Make Active"** publishes it and archives the version that was active before.
+Each version is an independent copy of the instruction. On a published instruction, **New Version** creates an editable draft containing the existing steps. On a draft, **Make Active** publishes it and archives the previously active version.
<Callout type="warn" title="Making a version active updates jobs in progress.">
Every job operation that points at another version of this instruction is moved to the new one and has its steps synced, as long as the operation isn't done or canceled and its job isn't locked. Operations on finished jobs keep the steps they were built with.
@@ -25,7 +25,7 @@ Every job operation that points at another version of this instruction is moved
## Steps
-A new instruction starts empty. **"Generate Steps"** runs the motion planner over the model: it works out a build order and a collision-free path for each part, which usually takes one to three minutes. **"Add step manually"** starts from a blank step instead. Once steps exist, **"Add Step"** in the list footer adds another, and dragging a row by its handle reorders the list.
+A new instruction starts without steps. **Generate Steps** runs the motion planner to determine a build order and collision-free path for each part. Planning usually takes one to three minutes. **Add step manually** creates a blank step. After steps exist, use **Add Step** to create another or drag a row handle to reorder it.
Each step carries a status you change from the icon at the end of its row:
@@ -35,9 +35,9 @@ Each step carries a status you change from the icon at the end of its row:
<Status name="Done" accent>An author has checked the step.</Status>
</StatusFlow>
-The planner menu next to **"Add Step"** can recompute the motions in the current order (**"Run Motion Planning"**) or replace every step from a fresh plan (**"Regenerate Steps"**). Regenerating is refused while any step was added by hand or is marked "Done", so checked work is never overwritten.
+The planner menu next to **Add Step** can recompute motion paths without changing step order (**Run Motion Planning**) or replace all steps with a new plan (**Regenerate Steps**). Regeneration is blocked when any step was added manually or has status **Done**.
-Two icons in the step list flag steps worth a second look. A warning triangle means the planner found no collision-free path, so the step's parts fade in at their final position instead of moving in. A hand means a part may tip once placed, so the step may need a fixture or a second person.
+Step-list icons identify planning concerns. A warning triangle means the planner found no collision-free path; the parts fade into their final position instead of moving. A hand means a placed part may tip and could require a fixture or a second person.
## Step details
@@ -56,7 +56,7 @@ These fields save with **"Save"** at the bottom of the panel (or ⌘/Ctrl+Enter)
**Components** lists what the step installs. Press **"Add"**, click parts in the 3D view (shift-click adds several), then **"Done Adding"**. Remove a part with the ✕ on its row.
-Some steps are hard to see because of parts that are in the way, such as a fixture or a cover fitted earlier. The eye on a row in the **Components** tab hides that part on the selected step only. The step's **<Term id="assembly-step-hidden-components">Hidden on this step</Term>** list shows what is hidden and brings parts back. A step can never hide its own components, and hidden parts are hidden for operators too.
+To expose obstructed work, select the eye on a row in the **Components** tab. This hides the part only for the selected step. The **<Term id="assembly-step-hidden-components">Hidden on this step</Term>** list shows hidden parts and restores them. A step cannot hide its own components. Parts hidden by an author are also hidden from operators.
## Playback settings
diff --git a/docs/content/docs/reference/audit-log.mdx b/docs/content/docs/reference/audit-log.mdx
index 9061b4621f..b1c89de12e 100644
--- a/docs/content/docs/reference/audit-log.mdx
+++ b/docs/content/docs/reference/audit-log.mdx
@@ -4,20 +4,20 @@ description: A per-company change history for key business entities. What gets r
plan: Business
---
-The audit log records every create, update, and delete on Carbon's important business entities, along with who made the change and exactly which fields moved. It is a company-wide switch, **off by default**, and each company keeps its own log. Turn it on from **Settings → Audit Logs** and Carbon begins tracking changes to your data from that moment forward.
+The audit log records creates, updates, and deletes for supported business entities. Each entry identifies the actor and changed fields. Logging is isolated by company and is **off by default**. Enable it under **Settings → Audit Logs**. Carbon records only changes made after enablement.
<Callout type="note">
-The audit log is entity-centric. A change to any underlying table that makes up an entity is attributed to the parent entity you recognize. Editing an item's cost, for example, records against the **Item**, not a raw `itemCost` row.
+The log groups changes by business entity. For example, changing an item's cost creates an **Item** entry rather than an entry for the underlying `itemCost` row.
</Callout>
## Turning it on
-Audit logging is a single toggle on the **Audit Logging** card. Enabling it creates the per-company log storage, sets `auditLogEnabled` on the company, and subscribes every auditable table to the change pipeline. The card reflects the state directly:
+The **Audit Logging** card contains one toggle. Enabling it creates company-specific storage, sets `auditLogEnabled`, and subscribes supported tables to the change pipeline. The card shows the current state:
- Enabled: *"Audit logging is enabled — All changes to auditable entities are being recorded."*
- Disabled: *"Audit logging is disabled — Enable to start tracking changes to your data."*
-Disabling it stops new records from being written, but **keeps everything already logged** — the existing history is preserved for compliance, not dropped. Re-enabling picks tracking back up; the gap while it was off simply isn't recorded.
+Disabling logging stops new entries but preserves existing history. Re-enabling resumes logging without filling the disabled interval.
Only users who can **update settings** can flip the toggle. Viewing the log needs the **view settings** permission. See [permissions and access](/docs/reference/permissions) for how the settings module maps to employee types.
@@ -42,7 +42,7 @@ Carbon tracks a fixed set of entities. Anything not on this list is not audited.
| Price Override | Price Override Break |
| Fixed Asset | Accounting Period |
-For each change, an entry captures the **operation** (`INSERT`, `UPDATE`, or `DELETE`), the **actor** (the user who made it — a system or service-role change shows as *System*), a **field-level diff** of what changed, request **metadata** (IP address, user agent, origin), and the **timestamp**. Fields that only reflect bookkeeping — `updatedAt`, `updatedBy`, and internal embeddings — are excluded from diffs, so the log stays focused on meaningful changes.
+Each entry records the **operation** (`INSERT`, `UPDATE`, or `DELETE`), **actor**, field-level diff, request **metadata** (IP address, user agent, and origin), and **timestamp**. System and service-role changes show *System* as the actor. Diffs exclude bookkeeping fields such as `updatedAt`, `updatedBy`, and internal embeddings.
## Viewing and filtering
@@ -60,7 +60,7 @@ The table columns are **Entity**, **Operation**, **Changed By**, **Changes**, an
## Retention and archives
-The live log keeps the last **30 days** of activity. A nightly job sweeps entries older than that into a compressed archive, records the archive's date range, row count, and size, then removes the aged rows from the live table. Nothing is lost — it moves to cold storage.
+The live log retains **30 days** of activity. A nightly job moves older entries into a compressed archive, records its date range, row count, and size, and removes those entries from the live table.
Archived periods appear under **Archived Logs** on the settings page, each with a **Download** button that generates a short-lived signed link to the compressed export. When no archives exist yet, the card explains that logs older than 30 days will be archived and made available for download there.
diff --git a/docs/content/docs/reference/batching.mdx b/docs/content/docs/reference/batching.mdx
index 6423ceda89..6382de7e02 100644
--- a/docs/content/docs/reference/batching.mdx
+++ b/docs/content/docs/reference/batching.mdx
@@ -3,27 +3,27 @@ title: Operation batching
description: Group identical operations from several jobs to run as one setup and one timer at a work center, with time and cost split back per job by quantity.
---
-Some processes physically run several jobs at once: a laser table nests parts from many work orders on one sheet, a furnace treats many jobs in one cycle, a plating bath coats whatever fits. An <Term>operation batch</Term> models that run. It groups unstarted <Term id="job-operation">job operations</Term> from different jobs, all on the same batchable process, to run together at one <Term id="work-center">work center</Term>, with one shared setup and one shared timer.
+An <Term>operation batch</Term> groups unstarted <Term id="job-operation">job operations</Term> from multiple jobs into one production run. All members use the same batchable process and <Term id="work-center">work center</Term>, with one shared setup and timer. Typical uses include nested laser cutting, furnace cycles, and plating baths.
-The jobs are never merged and no BOM changes: each member stays a first-class operation on its own job, and at completion the shared time is sliced back per member in proportion to its quantity, so job costing and the GL post per job with nothing special-cased.
+Batching does not merge jobs or change their BOMs. Each member remains an operation on its original job. At completion, Carbon allocates shared time to members in proportion to quantity, then posts job costs and ledger entries per job.
<Callout type="note" title="Not the same as batch tracking">
-An operation batch (`BAT000001`) is a production-run concept. It is unrelated to the lot/batch **numbers** that trace quantities through inventory — see [traceability](/docs/reference/traceability). Same word, different feature.
+An operation batch (`BAT000001`) represents a production run. It is separate from lot or batch numbers used for inventory [traceability](/docs/reference/traceability).
</Callout>
## Making a process batchable
-Batching is switched on per **process**, not per item or method. On the process form (**Resources → Processes**), turn on **"Batchable"** and pick a **"Batch type"**: **"Sequential"** (parts run one after another, like a saw or laser table) or **"Simultaneous"** (parts run together in one load, like a furnace, oven, or plating bath). The type drives the run-time estimate: sequential sums the members' times, simultaneous takes the longest.
+Enable batching per **process**, not per item or method. On **Resources → Processes**, enable **Batchable** and select a **Batch type**. **Sequential** processes run parts one after another and sum member times. **Simultaneous** processes run parts together and use the longest member time.
The same card holds the **"Compatibility rules"**: how strictly each dimension must match for operations to share a batch. Six describe the material consumed (material, substance, grade, dimension, form, finish) and a seventh, **"Produced item"**, describes what each job makes. Each is set to **"Require Match"**, **"Suggest Match"**, or **"Ignore"**. By default substance, grade, and dimension suggest a match and the rest are ignored. Requiring a match on "Produced item" keeps a run to a single output item, which is what makes its [output lots](#completing-the-batch) mergeable afterwards.
-Only "Require Match" ever blocks anything; a suggested mismatch just warns. A work center can additionally carry an advisory **"Batch Capacity"** and **"Minimum Batch Quantity"**; the builder shows a fill bar against them but never refuses a batch over them.
+Only **Require Match** blocks selection; **Suggest Match** produces a warning. A work center can also define advisory **Batch Capacity** and **Minimum Batch Quantity** values. The builder displays capacity usage but does not enforce either limit.
## Building a batch
-Open **Production → Batches** and press **"New Batch"** (the production dashboard's **"Unbatched Operations"** card and a job header's *"N awaiting batching"* badge lead to the same place). Pick a **Location** and a **Batchable process**, and the builder lists every eligible operation: unstarted, not already in a batch, on that process, with no production recorded.
+Open **Production → Batches** and select **New Batch**. The **Unbatched Operations** dashboard card and a job header's *N awaiting batching* badge open the same builder. Select a **Location** and **Batchable process**. The builder lists operations that are unstarted, use that process, are not already batched, and have no recorded production.
-Operations whose "Require Match" dimensions clash with your selection stay visible but locked, and mixed "Suggest Match" materials get an amber tag plus a warning to confirm they nest together on this run.
+Operations that conflict with a **Require Match** rule remain visible but cannot be selected. **Suggest Match** conflicts display an amber tag and warning.
<Screenshot label="The batch builder at Production → Batches → New Batch: scope pickers, the eligible-operations list grouped by material with suggestion banner, and the Review & create panel with setup-saving chip" caption="Suggestions group by material signature and due window; the review panel shows one shared setup instead of one per operation." />
@@ -31,7 +31,7 @@ The builder also proposes ready-made groupings: operations sharing a material si
When the selected operations produce a lot-tracked item, the review panel adds an **"Output"** section: this is where the run's lot numbers are decided, not on the shop floor. Each job gets its own lot number, pre-filled from the job's current one. When every selected operation makes the same lot-tracked item, **"Combine output into one lot"** replaces them with a single lot number for the whole run. Creating is disabled until every lot number is filled in and no two jobs share one.
-Finish with **"Create batch"** (the batch waits as **"Planned"**) or **"Create & Release"** (it goes straight to the floor). A work center is optional at this point: leave it blank and the scheduler auto-assigns the earliest-finishing candidate on release, writing it to the batch and every member.
+Select **Create batch** to save the batch as **Planned**, or **Create & Release** to send it to the shop floor. A work center is optional. If omitted, the scheduler assigns the candidate with the earliest finish time on release and applies it to the batch and its members.
## Lifecycle
@@ -45,7 +45,7 @@ Finish with **"Create batch"** (the batch waits as **"Planned"**) or **"Create &
There is no cancelled state: **"Dissolve Batch"** returns the members to the schedule un-run and deletes the batch, and removing the last member does the same. **"Unrelease Batch"** puts a released batch back to "Planned".
<Callout type="warn" title="Recorded production freezes the batch">
-The moment a single timer event is recorded against the batch, membership is permanent: adding, removing, changing the work center, unreleasing, and dissolving are all refused, and the only exit is completing it. Decide the composition before work starts.
+After the first timer event, membership and work-center assignment are fixed. The batch can no longer be unreleased or dissolved; it must be completed.
</Callout>
<Callout type="note" title="Releasing a batch releases its jobs">
@@ -62,7 +62,7 @@ On the [schedule board](/docs/reference/scheduling), the batch renders as one ca
## On the shop floor
-There is no separate batch page in the shop floor app: any member's operation view *is* the batch UI. A batch chip shows the `BAT…` number, the member jobs, and a **"Print batch list"** action; the timer is shared, so starting it runs one clock for the whole batch, and planned time shows the batch total.
+The shop floor app has no separate batch page. Open any member operation to access the batch UI. A batch chip shows the `BAT…` number, member jobs, and **Print batch list** action. Starting the timer starts one clock for the entire batch, and planned time shows the batch total.
Beside the chip, a **Batch | job** switch picks what the page shows. **"Batch"** (the default) is the whole run: completed quantity across every job, materials issued, scrap, the output lot, one materials table with batch totals, and the list of member jobs. The job switch shows the member's own steps, parameters, materials, and files, as for any operation.
@@ -84,7 +84,7 @@ Materials that are not lot-tracked show a batch total for reference only. They a
<Screenshot label="The Complete Batch modal in the shop floor app: one row per member job with Quantity and Scrap inputs, the planned output lot stated above them, and the footnote about leaving a row at zero" caption="Time and cost split across jobs proportionally to quantity; the output lot was set when the batch was planned." />
-Completion happens once, for the whole batch, in the **"Complete Batch"** modal: one row per member with **Quantity** and **Scrap**, pre-filled with each operation's remaining quantity. Leave a row at zero to skip that operation, which detaches it and returns it to the schedule un-run, with no time or quantity recorded.
+Complete the entire batch from the **Complete Batch** modal. Each member has **Quantity** and **Scrap** fields, prefilled with the operation's remaining quantity. Set quantity to zero to detach that member and return it to the schedule without recording time or quantity.
The operator never enters a lot number. A combined run states its lot above the rows (*"All output goes to lot …"*); otherwise a read-only **"Lot"** column shows each job's planned lot. A batch created before lot planning existed, with a lot-tracked member that has no lot number, cannot complete: the modal names those jobs, and the fix is the lot number in the job's properties sidebar.
diff --git a/docs/content/docs/reference/calibration.mdx b/docs/content/docs/reference/calibration.mdx
index ddb0703719..ea99a907f9 100644
--- a/docs/content/docs/reference/calibration.mdx
+++ b/docs/content/docs/reference/calibration.mdx
@@ -3,9 +3,9 @@ title: Gauges and calibration
description: Track measurement instruments, schedule their calibrations, and flag any gauge that falls out of calibration.
---
-A <Term>gauge</Term> is a measurement instrument you keep under control: a caliper, a micrometer, a pin gauge, a CMM. Carbon tracks each one as a record, holds it to a recurring <Term>calibration</Term> schedule, and marks it out of calibration the moment it's overdue. Every calibration you perform is logged as its own dated record, so the gauge carries its full history.
+A <Term>gauge</Term> is a controlled measurement instrument, such as a caliper, micrometer, pin gauge, or CMM. Carbon assigns each gauge a recurring <Term>calibration</Term> schedule and marks it out of calibration when overdue. Each calibration is a dated record, preserving the gauge's history.
-Gauges live in the quality module alongside [issues and inbound inspection](/docs/reference/quality). Carbon keeps the instrument controlled so the person taking a measurement knows the tool is trustworthy, and an [inspection](/docs/reference/inspections#gauges) records which gauge measured each characteristic.
+Gauges are part of the quality module. An [inspection](/docs/reference/inspections#gauges) can record which gauge measured each characteristic.
## The gauge record
@@ -27,11 +27,11 @@ Add a gauge under Quality → Gauges. Each gauge belongs to a **gauge type** (Ca
<Field name="storageUnitId">Which storage unit holds it.</Field>
</FieldTable>
-A gauge also has a **status** of `Active` or `Inactive`. Deactivating a gauge (rather than deleting it) is the right move when it has calibration history: an inactive gauge is treated as out of calibration, and its records stay on file. Delete only a gauge that was never calibrated.
+A gauge has status `Active` or `Inactive`. Deactivate a gauge to preserve its calibration history; inactive gauges are treated as out of calibration. Delete only gauges without calibration history.
## The calibration schedule
-You don't set a next-due date by hand. You set the **interval** in months on the gauge, and Carbon does the arithmetic every time you record a calibration: it stamps the calibration date as the last calibration date and sets the next-due date to that plus the interval. A caliper calibrated on the first of January against a six-month interval comes due on the first of July.
+Set the gauge's calibration **interval** in months. When you record a calibration, Carbon sets that date as the last calibration date and calculates the next due date by adding the interval. For example, a gauge calibrated on January 1 with a six-month interval is due July 1.
The interval and the last calibration date together are the whole schedule. Change the interval and the next calibration you log recomputes the due date from it.
@@ -54,7 +54,7 @@ Each time a gauge is calibrated, log it as a **calibration record** under Qualit
<Field name="notes">Free-form notes on the calibration.</Field>
</FieldTable>
-The three "requires" checkboxes decide whether the calibration passed. Tick any one of them and the calibration is a **Fail**; leave all three clear and it's a **Pass**. That result is what drives the gauge's calibration status, so recording a calibration is also how a gauge changes state.
+The three **requires** fields determine the result. If any is selected, the calibration **Fails**. If all are clear, it **Passes**. Recording the result updates the gauge's calibration status.
<Callout type="note" title="A gauge keeps every calibration">
Logging a calibration never overwrites the last one. Each record is a dated row, and the gauge shows them newest-first. What the gauge summarizes from them is the *latest* calibration date and the resulting status.
@@ -70,7 +70,7 @@ A gauge carries a calibration status with three values, and Carbon sets it for y
<Status name="Out-of-Calibration" terminal>The most recent calibration failed, the gauge is inactive, or the next-due date has passed. The gauge needs recalibrating.</Status>
</StatusFlow>
-This isn't a lifecycle you step through by hand — it's derived. Record a passing calibration and the gauge moves to `In-Calibration`; record a failing one and it moves to `Out-of-Calibration`. On top of that, Carbon computes overdue on the fly: whenever a gauge is `Inactive` or its next-due date is before today, it reads as `Out-of-Calibration` regardless of the stored value. A gauge that passed calibration in January but was due in July shows overdue the moment July passes, without anyone touching it.
+Calibration status is derived, not manually assigned. A passing result sets `In-Calibration`; a failing result sets `Out-of-Calibration`. Carbon also reports any inactive or overdue gauge as `Out-of-Calibration`, regardless of its stored result.
<Callout type="warn" title="Overdue is computed, not stored">
You never mark a gauge overdue. The out-of-calibration reading for a past-due or inactive gauge is derived at read time from the next-due date, so it flips on its own the day the schedule lapses. Bringing it back is a matter of logging a fresh passing calibration.
diff --git a/docs/content/docs/reference/change-orders/change-types.mdx b/docs/content/docs/reference/change-orders/change-types.mdx
index d829ff84ef..47ef4c49e7 100644
--- a/docs/content/docs/reference/change-orders/change-types.mdx
+++ b/docs/content/docs/reference/change-orders/change-types.mdx
@@ -3,10 +3,7 @@ title: Change types
description: Version, Revision, Replacement Part, and New Part — the per-affected-item choice that decides what you can edit and what release creates.
---
-Change type is set per affected item (default **Version**) and is the most load-bearing field on the whole
-change notice. It decides two things at once: what you're allowed to edit on the draft, and what release
-creates from it. Two axes tell the four types apart: is there a **predecessor** item, and does the result keep
-the **same part number**.
+Each affected item has a change type, defaulting to **Version**. The type determines which draft fields are editable and what release creates. The four types differ by whether they have a predecessor and whether the result keeps the same part number.
## The four types
@@ -18,22 +15,16 @@ the **same part number**.
| New Part | Attributes, documents, BoM and BoP | A **net-new part** minted under the change notice | None — it has no predecessor |
<Callout type="info" title="A Version bumps the method; the two replacement types mint a new item; New Part is net-new.">
-Don't conflate them. A **Version** produces a new method version on the *same* item row, so existing stock and
-item history are untouched and nothing is superseded. A **Revision** and a **Replacement Part** each mint a
-*new* item derived from the affected part and leave the old one intact, so each auto-writes a
-<Term>supersession</Term> from old to new. A **New Part** has no predecessor at all — it introduces a brand-new
-part, so it supersedes nothing. See [Supersession & cutover](/docs/reference/change-orders/supersession).
+A **Version** creates a method version on the same item and does not supersede anything. A **Revision** or **Replacement Part** creates a new item derived from the affected part and writes a <Term>supersession</Term> from old to new. A **New Part** has no predecessor and therefore creates no supersession. See [Supersession & cutover](/docs/reference/change-orders/supersession).
</Callout>
## When to use which
-- **Version** — the design is the same part, made a little differently. A tweaked operation, a swapped
- component, a corrected quantity. There's no drawing-revision story and no reason to phase over stock.
+- **Version** — use for manufacturing-method changes that do not require a new item revision or stock phase-over.
- **Revision** — the part is formally revising (new drawing revision, new dimension) and you want old and new
to coexist while stock phases over. This is the everyday engineering-change case. You can name the revision
(for example `A`) when you add the item, or leave it blank to take the next revision automatically.
-- **Replacement Part** — the change warrants a new part *number*, derived from the old one, with the old part
- superseded by the new. The 1:1 replacement.
+- **Replacement Part** — use for a one-to-one replacement with a new part number derived from the old part.
- **New Part** — you're introducing a genuinely new part under change control, with no old part behind it.
Nothing is superseded. This is also how a consolidation is modeled: when several components collapse into
one, the consolidated "1" is added as a **New Part** and the old lines are dropped from the parent
@@ -75,8 +66,7 @@ Choosing **New Part** in the change-type selector swaps the affected-item modal
<Field name="Tracking Type" required>Inventory, Non-Inventory, Serial, or Batch. Defaults to **Inventory**.</Field>
</FieldTable>
-Submitting mints an inactive Part under the change notice and adds it as a **New Part** affected item. It stays
-hidden until release reveals it.
+Submitting creates an inactive Part and adds it as a **New Part** affected item. The part remains hidden until release.
## Supplier parts on a purchased line
diff --git a/docs/content/docs/reference/change-orders/creating.mdx b/docs/content/docs/reference/change-orders/creating.mdx
index 4b212a60fb..ac6010f452 100644
--- a/docs/content/docs/reference/change-orders/creating.mdx
+++ b/docs/content/docs/reference/change-orders/creating.mdx
@@ -3,9 +3,7 @@ title: Create a change notice
description: The entry points that open a change notice, the fields on the create form, and how change notices surface back on a part or tool page.
---
-There's no single "new change notice" button tucked in one menu. Carbon lets you start a change notice from
-wherever you notice the change is needed — a standalone form, the part you're looking at, its method version
-menu, or a quality issue. Every path lands on the same change-notice detail page.
+Create a change notice from the standalone form, an item, a method version, or a quality issue. Every entry point opens the same change-notice detail page.
## Entry points
@@ -25,7 +23,7 @@ starts with no affected items — you add them on the detail page.
## The create form
-The header form is short — the substance is in the affected items you edit later.
+The header form describes and assigns the change. Add affected items after creation.
<FieldTable>
<Field name="Name" required>What this change is, in a line.</Field>
@@ -38,10 +36,7 @@ The header form is short — the substance is in the affected items you edit lat
<Field name="Due Date">Optional target.</Field>
</FieldTable>
-The form has no affected-items field — you add those on the detail page after creating. When you start from a
-part, tool, or quality issue, that source is carried silently onto the new change notice (the part or tool as a
-pre-attached affected item, the non-conformance as the linked issue). Submitting creates the change notice,
-attaches any pre-selected item, and redirects to its detail page at **"Draft"**.
+The form does not include affected items. Add them on the detail page. Item-based entry points pre-attach the selected item; the quality-issue entry point links the non-conformance. Submission creates the change notice in **Draft** and opens its detail page.
<Callout type="note" title="There's no separate change-notice permission.">
Change notices are gated by the **Parts** permission: creating one needs create access on Parts, and
@@ -50,8 +45,7 @@ advancing or releasing needs update access. If someone can manage parts, they ca
## Where change notices surface on a part
-Change notices don't just live in their own list — they show up on the parts and tools they touch, so nobody
-edits a design that's mid-change without seeing it.
+Parts and tools display the change notices that affect them:
- **Open change notice alert.** When a part is on one or more change notices that haven't reached **"Done"**,
its detail page shows a warning: *"This part is on 1 open change notice"* (or *"…# open change notices"*),
diff --git a/docs/content/docs/reference/change-orders/index.mdx b/docs/content/docs/reference/change-orders/index.mdx
index e70c7d29c9..b991acc7d5 100644
--- a/docs/content/docs/reference/change-orders/index.mdx
+++ b/docs/content/docs/reference/change-orders/index.mdx
@@ -3,26 +3,15 @@ title: Change notices
description: How Carbon drafts an engineering change against real methods, reviews it as a diff, and releases it so downstream planning supersedes the versions it replaces.
---
-A **change notice** groups the parts whose designs are changing, revises each one on a hidden draft, and
-releases them together. It answers "what changed, who owns it, and what does the new version supersede?"
-without touching a live method until you release.
+A **change notice** groups related part changes, stages each change in a hidden draft, and releases them together. Live methods remain unchanged until release.
-The model is deliberately top-down. You pick the affected items first, then edit each item's real
-<Term id="bom">method</Term> (its bill of materials and bill of process) inside the change notice. Nothing
-about the part moves for planning, jobs, or costing until release. Change notices live under **Items → Change
-Notices**, and every action is gated by the `parts` permission.
+Select affected items, then edit each item's <Term id="bom">method</Term>—its bill of materials and bill of process—inside the notice. Planning, jobs, and costing continue to use the live item until release. Change notices are under **Items → Change Notices** and require `parts` permission.
## The affected item is the unit of work
-A change notice is a header plus a list of **affected items**. The picker accepts **Parts only** — materials,
-consumables, services, and tools have no path in the change-notice UI, so they're excluded. Each affected item
-carries its own <Term id="change-order-change-type">change type</Term>, its own edits, and its own cutover
-configuration.
+A change notice contains a header and **affected items**. The picker accepts Parts only. Each affected item has its own <Term id="change-order-change-type">change type</Term>, edits, and cutover configuration.
-Adding an affected item snapshots the item's live **Active** method into a new **Draft** method stamped with
-the change notice's id. That draft is hidden from every version switcher, copy-target picker, and MRP, job, or
-cost read until release. You edit it with the same **Bill of Material**, **Bill of Process**, and **Part
-Properties** editors you use anywhere else.
+Adding an affected item copies its **Active** method into a **Draft** method associated with the change notice. The draft is excluded from version selectors, copy targets, MRP, jobs, and costing until release. Edit it with the standard **Bill of Material**, **Bill of Process**, and **Part Properties** editors.
<Callout type="note" title="The draft is a real method, not a staged copy.">
Carbon does not mirror your edits into shadow tables. An affected item's edits live on an actual make method
diff --git a/docs/content/docs/reference/change-orders/lifecycle.mdx b/docs/content/docs/reference/change-orders/lifecycle.mdx
index 747cb60a34..3c4aa43faa 100644
--- a/docs/content/docs/reference/change-orders/lifecycle.mdx
+++ b/docs/content/docs/reference/change-orders/lifecycle.mdx
@@ -3,10 +3,7 @@ title: Lifecycle & release
description: The five change-notice stages, the Implementation lock and Reopen, the impact panel, the diff review, and what release does at Done.
---
-A change notice advances forward one stage at a time. There's no approval toggle — the stages *are* the
-workflow, and the change notice is its own release gate. There are two ways back: **Reopen** at
-**"Implementation"** sends it one stage back to **"Engineering Complete"**, and **"Cancel"** — available from
-every open stage — closes it, after which **Reopen** returns it to **"Draft"**.
+A change notice advances one stage at a time; its stages are the release workflow. **Reopen** from **Implementation** returns it to **Engineering Complete**. **Cancel** closes a notice from any open stage, and **Reopen** from **Cancelled** returns it to **Draft**.
## The stages
@@ -30,10 +27,7 @@ items the change notice minted, so nothing is orphaned.
## Implementation freezes the engineering content
-Advancing to **"Implementation"** means "we are now rolling this out." From that moment the *engineering*
-content is read-only, so what's being implemented can't shift underneath the people implementing it. The
-*workflow* content stays editable, because coordinating the rollout is exactly the work that happens at this
-stage.
+At **Implementation**, engineering content becomes read-only while workflow fields remain editable for rollout coordination.
| Locked at Implementation (engineering) | Still editable at Implementation (workflow) |
| --- | --- |
@@ -54,12 +48,7 @@ visible at Implementation — you can read the whole change, you just can't edit
## Reopen
-If review at Implementation turns up something that has to change, use **Reopen** in the **⋮** menu next to
-the change notice id. It sends the notice back one stage to **"Engineering Complete"**, which unfreezes the
-affected items, the drafts, the cutover config, and the narrative fields. Nothing you've already done is
-discarded — the drafts, diffs, and action tasks are exactly as you left them. Edit, then advance to
-Implementation again. (The same **Reopen** action appears on a **"Cancelled"** notice, where it returns it to
-**"Draft"** instead.)
+To change engineering content during Implementation, select **Reopen** from the **⋮** menu. The notice returns to **Engineering Complete**, preserving drafts, diffs, and tasks while unlocking affected items, cutover configuration, and narrative fields. A Cancelled notice uses the same action to return to **Draft**.
<Callout type="warning" title="Done is terminal — there is no reopen from Done.">
Reopen exists only at **"Implementation"** (before release) and at **"Cancelled"** (nothing was released).
@@ -83,11 +72,7 @@ nothing here blocks releasing."*
## Review the changes, then release
-You don't have to wait for release to see what a change notice does. The overview page carries a **Changes**
-card, between the description and the action tasks, that rolls up **every** affected item's diff as you author
-it — each item labeled with its change type, its diff rendered read-only. It's the same view the release dialog
-shows, available the whole time so you can check your work before you commit. An item with nothing edited yet
-reads *"No changes yet."*
+The overview's **Changes** card shows a read-only diff for every affected item during authoring. The release dialog uses the same view. Items without edits display *"No changes yet."*
Release itself lives on the change notice at **"Implementation"**. The **"Release change notice"** dialog lays out
that same per-item diff one more time before you commit — *"Review each item's changes, then confirm —
@@ -111,8 +96,7 @@ simply that draft compared against the live one it came from. What you review is
## What release does
-On confirm, Carbon walks the affected items and, per [change
-type](/docs/reference/change-orders/change-types):
+On confirmation, Carbon processes each affected item according to its [change type](/docs/reference/change-orders/change-types):
1. **Activates the draft method** — it becomes the new **Active** version and the prior Active version is
**Archived** (kept as history, never deleted).
diff --git a/docs/content/docs/reference/change-orders/setup.mdx b/docs/content/docs/reference/change-orders/setup.mdx
index 4e5cb0925f..73d78016fa 100644
--- a/docs/content/docs/reference/change-orders/setup.mdx
+++ b/docs/content/docs/reference/change-orders/setup.mdx
@@ -3,8 +3,7 @@ title: Categories & actions
description: "The company-scoped lookups beside change notices: the category list and reusable action-task templates, plus linking a task to Linear."
---
-Two configuration lists live next to change notices in the Items nav. Both are company-scoped and edited by
-employees with the `parts` permission.
+The Items navigation contains two company-scoped change-notice configuration lists. Editing either requires `parts` permission.
## Change notice categories
@@ -12,8 +11,7 @@ employees with the `parts` permission.
issue types in Quality. Carbon seeds eleven to start: *Design Improvement*, *Cost Reduction*, *Quality / Reliability Improvement*, *Supplier / Sourcing Change*, *Material or Component Change*, *Obsolescence / End-of-Life*, *Regulatory / Compliance*, *Safety*, *Manufacturing / Producibility*, *Customer Request*, and *Documentation Error / Correction*. Add,
rename, or remove them to match how your shop classifies changes.
-Category is descriptive: it groups and filters change notices, but it doesn't change how release behaves. That
-job belongs to the [change type](/docs/reference/change-orders/change-types) on each affected item.
+Categories support grouping and filtering but do not affect release behavior. Release behavior comes from each affected item's [change type](/docs/reference/change-orders/change-types).
## Change notice actions
@@ -28,8 +26,7 @@ notice commonly needs. Carbon seeds seven:
- Inventory Disposition (rework / scrap / use-as-is)
- Notify Affected Parties
-A new change notice can seed its task list from the active templates. On the change notice, each task tracks a
-status — **Pending**, **In Progress**, **Completed**, or **Skipped** — plus an assignee, due date, and notes.
+A new change notice can copy its task list from active templates. Each task records **Pending**, **In Progress**, **Completed**, or **Skipped** status, plus an assignee, due date, and notes.
<Callout type="note" title="Action tasks are freeform, not gates.">
Tasks are a coordination checklist, not an approval workflow. A task's status never blocks a stage from
@@ -44,9 +41,7 @@ content](/docs/reference/change-orders/lifecycle#implementation-freezes-the-engi
## Link a task to Linear
-If engineering tracks its work in Linear, an action task can point at the ticket instead of duplicating it.
-This works exactly the way it does on a [quality issue's](/docs/reference/quality) action tasks — same dialog,
-same behavior.
+An action task can link to a Linear ticket, using the same workflow as [quality issue](/docs/reference/quality) action tasks.
The affordance is a Linear icon on the task row, and it only appears when your company has the [Linear
integration](/docs/integrations/project-management) connected. Once a task is linked, the icon is replaced by
diff --git a/docs/content/docs/reference/change-orders/supersession.mdx b/docs/content/docs/reference/change-orders/supersession.mdx
index 8f567ae346..a860d21b73 100644
--- a/docs/content/docs/reference/change-orders/supersession.mdx
+++ b/docs/content/docs/reference/change-orders/supersession.mdx
@@ -3,13 +3,9 @@ title: Supersession & cutover
description: How a released Revision or Replacement Part phases over, the cutover fields you tune per item, and how MRP and Get Method honor supersession downstream.
---
-For a **Revision** or **Replacement Part** affected item, release auto-writes a <Term>supersession</Term> from
-the old item to the new one. You don't create it by hand — you only tune *how* the phase-over behaves, per
-affected item, through the cutover fields.
+Releasing a **Revision** or **Replacement Part** creates a <Term>supersession</Term> from the old item to the new item. Configure phase-over behavior with cutover fields on the affected item.
-A **Version** supersedes nothing, because it edits the same item. A **New Part** supersedes nothing either,
-because it's net-new — there's no predecessor to phase out. Only the two change types that derive a new item
-*from* an existing one write a supersession.
+A **Version** edits the existing item and creates no supersession. A **New Part** has no predecessor and also creates none. Only change types that derive a new item from an existing one create supersessions.
<Callout type="info" title="Only Revision and Replacement Part supersede.">
The rule is the predecessor: a Revision phases the old revision over to the new one, and a Replacement Part
@@ -29,8 +25,7 @@ Set these on a Revision or Replacement Part affected item before you release.
## Supersession modes
-The <Term id="supersession-mode">supersession mode</Term> controls what downstream planning does with the old
-item:
+The <Term id="supersession-mode">supersession mode</Term> controls how planning handles the old item:
| Mode | Behavior |
| --- | --- |
@@ -46,7 +41,7 @@ successor. Stock Only and No Stock govern the old item's own stocking rather tha
## How downstream honors it
-Once a supersession is effective (on or after its successor-effectivity date), two systems act on it:
+On or after the successor-effectivity date, two systems apply the supersession:
- **MRP** redirects planned demand for the old item to the successor, applying the conversion factor and
collapsing multi-hop chains (if A was superseded by B and B by C, demand routes straight to C).
diff --git a/docs/content/docs/reference/company-settings.mdx b/docs/content/docs/reference/company-settings.mdx
index 7b90bbd996..e7bc082597 100644
--- a/docs/content/docs/reference/company-settings.mdx
+++ b/docs/content/docs/reference/company-settings.mdx
@@ -3,7 +3,7 @@ title: Company settings
description: The company record, its feature toggles, base currency, logos, and tags — the company-wide configuration every module reads from.
---
-Everything in Carbon is scoped to a **company**, and two records hold its configuration: the `company` row (identity, address, currency, logos) and a paired `companySettings` row holding the company-wide feature flags and defaults. Settings live under **Settings** in the app, grouped into **Company**, **Modules**, and **System**. Every route is employee-only; **Billing** additionally needs company ownership on a Cloud environment, and **Companies** and **Backups** are internal-only.
+Carbon scopes data and configuration to a **company**. The `company` record stores identity, address, currency, and logos. Its paired `companySettings` record stores feature flags and defaults. The app groups settings under **Company**, **Modules**, and **System**. Settings routes require employee access. **Billing** also requires company ownership in Carbon Cloud; **Companies** and **Backups** are internal-only.
## The company record
@@ -26,7 +26,7 @@ Edited under **Settings → Company**:
<Field name="auditLogEnabled" type="boolean">Whether change history is recorded. See [audit log](/docs/reference/audit-log).</Field>
</FieldTable>
-Company membership is per-user: one login can hold several companies and switch through the company picker, and each company carries its own settings, currency, and numbering. Nothing crosses the boundary. A company with a `parentCompanyId` is a subsidiary; consolidation and elimination are covered in [intercompany accounting](/docs/reference/intercompany).
+A user can belong to multiple companies and switch between them with the company picker. Each company has independent settings, currency, and numbering. A company with a `parentCompanyId` is a subsidiary; see [intercompany accounting](/docs/reference/intercompany) for consolidation and elimination.
## Feature toggles and defaults
@@ -55,7 +55,7 @@ Company membership is per-user: one login can hold several companies and switch
<Field name="quoteLineCategoryMarkups" type="jsonb">Per-category default markups applied to quote lines.</Field>
</FieldTable>
-The same row also carries the **notification groups** (who to notify for digital quotes, RFQ-ready, supplier quotes, job completions, dispatches, gauge-calibration expiry), the AP/AR email addresses, and default CC lists — see [notifications](/docs/reference/notifications) for how they fan out.
+The row also stores **notification groups**, AP and AR email addresses, and default CC lists. See [notifications](/docs/reference/notifications) for delivery behavior.
<Callout type="warn" title="Accounting is a company-wide toggle, not per-document">
`accountingEnabled` gates the *entire* ledger: off means jobs, shipments, and invoices complete but nothing posts, with no per-transaction exceptions. Turning it on mid-stream doesn't backfill past activity.
@@ -63,11 +63,11 @@ The same row also carries the **notification groups** (who to notify for digital
## Base currency
-Every company has one `baseCurrencyCode`: the currency all *posted* amounts are stored and reported in, with foreign-currency transactions converted at their exchange rate before posting. It's chosen at onboarding and is the denomination of your whole history, so it isn't something you flip casually. A subsidiary can carry a different base currency from its parent; consolidation is where they meet.
+Each company has one `baseCurrencyCode`. Carbon converts foreign-currency transactions at their exchange rate and stores posted amounts in the base currency. The value is chosen during onboarding and denominates the company's posting history. A subsidiary can use a different base currency from its parent; consolidation handles the conversion.
## Theme and tags
-Carbon ships eight color themes (Modern, Brutal, Cherry, Apricot, Lemon, Mint, Blueberry, Lavender). Theme is **per-person**, stored in a browser cookie rather than on the company record, so two people in one company can run different themes; document templates have their own separate theme setting. **Tags** are free-form labels scoped to a company *and* a table, so the same label can mean different things on items versus jobs, and vocabularies never leak across companies.
+Carbon includes eight color themes: Modern, Brutal, Cherry, Apricot, Lemon, Mint, Blueberry, and Lavender. Theme selection is **per user** and stored in a browser cookie. Document templates have a separate theme setting. **Tags** are free-form labels scoped by company and table, so item and job tags have independent vocabularies.
## Related system configuration
diff --git a/docs/content/docs/reference/configurator.mdx b/docs/content/docs/reference/configurator.mdx
index e345a4e8f7..adf299baf8 100644
--- a/docs/content/docs/reference/configurator.mdx
+++ b/docs/content/docs/reference/configurator.mdx
@@ -3,13 +3,13 @@ title: Configurator
description: Turn one part number into a parametric family. Inputs drive rules that resolve the BOM, routing, and price per order.
---
-Some parts aren't one fixed recipe. A bracket comes in three lengths, a panel in four finishes, a valve in a dozen bore sizes. Carbon's **configurator** lets a single item carry a set of **parameters** the ordering user fills in, and **rules** that read those parameters to resolve the item's <Term id="method">method</Term> at order time: which components go on the [bill of materials](/docs/reference/methods), how the routing runs, and what the line costs. One part number, a parametric family behind it.
+The **configurator** models a family of variants under one item. Users provide **parameters**, and rules use those values to resolve the item's <Term id="method">method</Term> at order time. Rules can select [bill-of-materials](/docs/reference/methods) components, routing details, and line cost.
-A part becomes configurable when you tick **"Requires Configuration"** on its manufacturing settings (`requiresConfiguration`, `apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx:82`). From then on the part is <Term id="item-configured">configured</Term>: its stored method is a *template*, and every job or quote line built from it runs the rules to produce its own resolved copy.
+Enable **Requires Configuration** in the part's manufacturing settings (`requiresConfiguration`, `apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx:82`). The stored method then becomes a template. Each job or quote line runs the rules to create its own resolved method.
## Parameters — the inputs
-Parameters are the questions the configurator asks. Each one is defined on the part (`configurationParameterValidator`, `apps/erp/app/modules/items/items.models.ts:341`) with a **label**, a machine **key**, and a **data type**. The key is alphanumeric with underscore separators (`length`, `wall_thickness`), lowercase by convention — it's the name your rules reference.
+Each parameter has a **label**, machine **key**, and **data type** (`configurationParameterValidator`, `apps/erp/app/modules/items/items.models.ts:341`). Rules reference the key. Use lowercase alphanumeric segments separated by single underscores, such as `length` or `wall_thickness`.
<FieldTable>
<Field name="text" type="string">A free-text value.</Field>
@@ -26,7 +26,7 @@ Parameters can be sorted into **groups** so the order form reads as sections (Di
## Rules — deriving the method
-A **rule** binds a *field* of the method to a snippet of code (`configurationRuleValidator`, `items.models.ts:369`). The field names which piece of the resolved method the rule sets; the code computes the value from the parameters.
+A **rule** binds a method field to code that computes its value from the parameters (`configurationRuleValidator`, `items.models.ts:369`).
Rules attach per-field right on the embedded [method](/docs/reference/methods) editors. On the bill of materials each component exposes configurable fields — `itemId` (swap the component), `quantity`, `unitOfMeasureCode`, and `methodType` (`BillOfMaterial.tsx:841,866,890,1043`); on the bill of process, operation fields like the work center, process, and setup/labor/machine times. A field with a rule shows a "configured" marker instead of a static value.
@@ -47,7 +47,7 @@ Rules can also **filter** the method wholesale: a `billOfMaterial` or `billOfPro
## Choosing a configured item at order time
-The configurator is exercised where a configured part is put on a [quote line](/docs/reference/quotes) or a [sales order](/docs/reference/sales-orders) line, and where a [job](/docs/reference/jobs) is created for it. When the picked item requires configuration, the line form shows a **"Configure"** button (`QuoteLineForm.tsx:556`, `JobForm.tsx`) that opens the parameter form. Until it's filled in, **"Save"** stays disabled — you can't commit a configured line without answering its parameters.
+Configuration runs when a configured part is added to a [quote line](/docs/reference/quotes), [sales order](/docs/reference/sales-orders) line, or [job](/docs/reference/jobs). The form displays **Configure** and disables **Save** until the required parameters are submitted (`QuoteLineForm.tsx:556`, `JobForm.tsx`).
Submitting the configuration stores the answers on the line (`quoteLine.configuration` / `job.configuration`, JSON) and calls the [get-method](/docs/reference/methods) engine with those values (`x+/quote+/$quoteId.$lineId.configure.tsx`). The rules run, and the line gets its own resolved bill of materials, routing, and cost — a concrete instance of the parametric family, not the template. Reconfiguring clears the line's prices and re-derives everything.
diff --git a/docs/content/docs/reference/custom-fields.mdx b/docs/content/docs/reference/custom-fields.mdx
index e55cfb87bd..9616a14cb0 100644
--- a/docs/content/docs/reference/custom-fields.mdx
+++ b/docs/content/docs/reference/custom-fields.mdx
@@ -3,7 +3,7 @@ title: Custom fields
description: Company-defined extra fields that attach to core records like customers, parts, and orders.
---
-Carbon ships a fixed schema for every entity, but your process almost always needs one more field: a customer's "PPAP level", a part's "RoHS status", a job's internal "line number". <Term id="custom-field">Custom fields</Term> let each company add its own fields to a core record without a schema change. Define one under **Settings → Custom Fields** and every record of that entity shows it on its form, saves it alongside the built-in fields, and exposes it through the API.
+<Term id="custom-field">Custom fields</Term> add company-specific data to supported records without database schema changes. Define a field under **Settings → Custom Fields**. Carbon adds it to the entity's form, stores it with built-in fields, and exposes it through the API.
## Defining a field
@@ -17,10 +17,10 @@ Carbon ships a fixed schema for every entity, but your process almost always nee
<Field name="Tags" type="text[]">Scopes the field to records carrying a matching tag; leave empty to show it on every record of the table.</Field>
</FieldTable>
-The nine data types each render a specific input: **Boolean** (toggle), **Date** (date picker), **List** (dropdown of your options), **Numeric**, **Text**, **File**, and three reference types (**User**, **Customer**, and **Supplier**) that store a pointer to an existing Carbon record rather than free text.
+The nine data types are **Boolean**, **Date**, **List**, **Numeric**, **Text**, **File**, **User**, **Customer**, and **Supplier**. The three reference types store a reference to an existing Carbon record rather than free text.
<Callout type="note" title="The data type is permanent">
-Existing values are stored as-is, so Carbon locks the type after creation. Picked Text and need Numeric? Create a new field and migrate the values; there is no in-place conversion.
+Carbon locks the data type after creation. To change it, create a replacement field and migrate existing values.
</Callout>
## Which entities support custom fields
@@ -29,7 +29,7 @@ The catalog is curated, not universal — the settings page lists one row per el
## How values save, and where they reach
-Custom inputs render below the built-in fields on the record's form and save into a single `customFields` JSON column that every core table carries — no schema change per field. That column is exposed on the API like any other: readable and filterable on the entity's endpoint, with the caveat that its keys are field IDs, not display names, so pair an API read with the definitions from the settings catalog.
+Custom inputs appear below built-in fields and save to the entity's `customFields` JSON column. The API exposes this column for reads and filters. Its keys are field IDs, not display names, so use the settings catalog to resolve definitions.
<Callout type="warn" title="CSV import and export skip custom fields">
The CSV flows map built-in fields only; neither import nor the table download touches the `customFields` column. Populate custom fields on the form or through the API; see [import and export](/docs/reference/import-export) for what CSV does cover.
diff --git a/docs/content/docs/reference/customer-portal.mdx b/docs/content/docs/reference/customer-portal.mdx
index 7719b4f494..931987c335 100644
--- a/docs/content/docs/reference/customer-portal.mdx
+++ b/docs/content/docs/reference/customer-portal.mdx
@@ -4,13 +4,13 @@ description: A standing, read-only link where a customer watches their open orde
plan: Business
---
-The customer portal is a **standing, read-only window** into one customer's work. Where a [digital quote](/docs/reference/quotes#digital-quotes) closes a deal, the portal is what the buyer watches afterward: their sales order lines with status, the buyer and engineer contacts, order and due dates, part number and revision, quantity complete, quantity shipped, and per-operation job progress. There are no forms — the customer can look, not act.
+The customer portal provides read-only access to one customer's work. It shows sales-order line status, buyer and engineer contacts, order and due dates, part number and revision, completed and shipped quantities, and per-operation job progress. Customers cannot modify data in the portal.
## Creating a portal
<Screenshot label="Sales → Portals: the portal list with per-row URL copy control and the new-portal drawer with the customer picker" caption="One portal per customer, each with its own private URL." />
-Open **Sales → Portals** and create a portal for the customer. Each row carries the portal's private URL with a copy control; send that link to your customer contact. The link needs no login, so whoever holds the URL can open it — treat it like a password and send it only to the right person.
+Open **Sales → Portals** and create a portal for the customer. Copy the private URL from its row and send it to the customer contact. The link does not require authentication. Treat it as a credential and share it only with authorized recipients.
<Callout type="note" title="One portal, one customer">
A portal is scoped to a single customer record: it lists that customer's orders and nothing else. Files attached to their job operations can be downloaded from the portal, limited to the customer's own jobs and rate-limited per visitor.
diff --git a/docs/content/docs/reference/dimensions.mdx b/docs/content/docs/reference/dimensions.mdx
index 294d7b08f2..2ade7e865c 100644
--- a/docs/content/docs/reference/dimensions.mdx
+++ b/docs/content/docs/reference/dimensions.mdx
@@ -3,13 +3,13 @@ title: Dimensions & cost centers
description: "Tag axes on journal lines that slice the general ledger without multiplying the chart of accounts."
---
-A shop wants to know COGS *by location*, spend *by department*, revenue *by customer*, without carving a separate account for every combination. A <Term id="reporting-dimension">reporting dimension</Term> is how Carbon does that: a company-defined tag axis that gets attached to individual <Term>journal</Term> lines, so the same handful of accounts can be sliced along whatever axes the business reports on. **Cost centers** are one such axis, plus a standalone hierarchy for organizing cost ownership.
+A <Term id="reporting-dimension">reporting dimension</Term> is a company-defined axis attached to individual <Term>journal</Term> lines. Dimensions support reporting by location, department, customer, and other attributes without adding accounts for every combination. **Cost centers** can serve as a dimension and as a hierarchy for cost ownership.
Dimensions and cost centers live in the [accounting](/docs/reference/accounting) module and are defined once per company group, alongside the chart of accounts.
## What a dimension is
-A **dimension** is a named tag axis with an **entity type** that decides where its values come from. You define it once (`dimension` table, `name` + `entityType`, scoped by `companyGroupId`); every posted journal line can then carry at most one value on that axis.
+A dimension has a name and an **entity type** that determines its values. It is stored in the `dimension` table and scoped by `companyGroupId`. A posted journal line can contain at most one value for each dimension.
<FieldTable>
<Field name="Entity-type dimension" type="from a source table">The values *are* rows of an existing table. A `Location` dimension draws its values from your locations, an `Employee` dimension from your people. You don't type the values in — they resolve from the entity the posting already references.</Field>
@@ -28,13 +28,13 @@ A dimension carries two flags: **active** (an inactive dimension stops being att
Dimensions are stored in a join table, `journalLineDimension`, with one row per tag: `journalLineId`, `dimensionId`, and a **`valueId`**. That `valueId` is deliberately **polymorphic** — for a `Custom` dimension it points at a `dimensionValue.id`; for an entity-type dimension it points straight at the entity row's id (`location.id`, `customer.id`, `costCenter.id`). It is intentionally *not* a foreign key; the reference target depends on the dimension's entity type and is enforced in application code (`20260228024512_dimensions.sql:131`). A line can hold at most one value per dimension (`UNIQUE("journalLineId", "dimensionId")`).
-The interesting part is that you rarely set these by hand. When accounting is enabled and a document posts, the posting path resolves them automatically:
+When accounting is enabled, operational posting resolves dimensions automatically:
1. It loads every **active** dimension for the company group into a map keyed by entity type (`post-shipment/index.ts:171`).
2. As it builds each journal line, it already knows the source facts — the customer, the item, the item posting group, the location, the cost center behind that line.
3. For each of those facts, **if an active dimension exists for that entity type**, it attaches a `journalLineDimension` row pointing the `valueId` at that entity's id (`post-shipment/index.ts:1222`). No dimension defined for an axis means no tag on that axis — defining the dimension is what turns tagging on.
-So a `Location` dimension isn't a field you fill in on the shipment. You define the dimension once, and from then on every shipment, receipt, invoice, and inventory posting carries its location automatically, because the posting already knew the location. The same pattern runs in `post-receipt`, `post-sales-invoice`, `post-purchase-invoice`, `post-inventory-adjustment`, `post-payment`, and the other posting functions.
+For example, a `Location` dimension is not entered on each shipment. After the dimension is defined, shipment, receipt, invoice, and inventory postings attach the location already present on the source document. Other posting functions use the same pattern.
<Callout type="info" title="Manual journal entries tag their lines directly">
A hand-entered <Term>journal</Term> doesn't have a source document to resolve tags from, so its lines carry the dimension values you assign in the entry form. `saveJournalLineDimensions` (`accounting.service.ts:2647`) replaces a line's tags wholesale — it clears the line's existing `journalLineDimension` rows and inserts the new set.
@@ -53,7 +53,7 @@ There is no `costCenterId` column on `journalLine` itself. A cost center reaches
## Using dimensions in reports
-Dimensions exist to be sliced. Because the tag lives on the individual journal line, any report built from journal lines can group or filter by a dimension value: COGS by location, expense by department, revenue by customer. The chart of accounts stays small — you don't create *COGS – West* and *COGS – East* accounts, you post to one COGS account and slice it by the `Location` dimension.
+Reports built from journal lines can group or filter by dimension value, such as COGS by location, expense by department, or revenue by customer. This keeps the chart of accounts compact: post to one COGS account and segment it with the `Location` dimension.
<Callout type="warn" title="The core statements are unsliced; dimensions drive the analytical cut">
The trial balance, balance sheet, and income statement (`getTrialBalance`, `getFinancialStatementBalances`) report the *whole* company's balances — they don't take a dimension filter. Dimension slicing is the analytical layer on top of those totals: it answers "of this account's balance, how much belongs to each location / department / cost center", not "restate the whole balance sheet for one project".
diff --git a/docs/content/docs/reference/documents.mdx b/docs/content/docs/reference/documents.mdx
index 2ecaeee233..0815f4de81 100644
--- a/docs/content/docs/reference/documents.mdx
+++ b/docs/content/docs/reference/documents.mdx
@@ -3,13 +3,13 @@ title: Documents
description: A shared file library with favorites, labels, search, and AI extraction that reads PDFs and fills a form for you.
---
-Every file your team uploads lands in one place: the **document explorer**. It is a flat, searchable library of files, not a folder tree on disk. A file can be a loose upload someone dropped in, or it can be **attached to a record** (a job, a purchase order, an RFQ) and show up both there and in the explorer. On top of the library sit three conveniences: personal **pins** and **labels**, full-text-ish **search**, and an AI **extraction** pass that reads a PDF and pre-fills the form you would otherwise type by hand.
+The **document explorer** is a flat, searchable library for uploaded files. A file can be standalone or **attached to a record**, such as a job, purchase order, or RFQ. Attached files appear on both the record and in the explorer. The library supports personal pins and labels, name and description search, and AI extraction that reads supported PDFs and prefills forms.
Open the explorer from **Documents** in the sidebar. It defaults to the `All Documents` view (`useDocumentsSubmodules.tsx:15-45`).
## The explorer
-The table lists every file you can see, one row per document, sorted with your pinned files first (`documents.service.ts:86-88`). Each row carries the file's **name**, its linked **source document** (if any), your **labels**, **size**, **type**, **extension**, and the usual created/updated audit columns (`DocumentsTable.tsx:174-405`).
+The table lists accessible files with pinned files first (`documents.service.ts:86-88`). Each row shows the **name**, linked **source document**, personal **labels**, **size**, **type**, **extension**, and created and updated metadata (`DocumentsTable.tsx:174-405`).
Five views scope the list, switched by the tab rail down the left (`useDocumentsSubmodules.tsx:15-45`):
@@ -29,11 +29,11 @@ Five views scope the list, switched by the tab rail down the left (`useDocuments
### Uploading
-**Upload** in the explorer header takes any file. The browser uploads it straight into the private storage bucket under `{companyId}/{random}.{ext}`, then posts the path, name, and size to create the document row (`DocumentCreateForm.tsx:22-69`). The upload records itself as a transaction, and every later action (download, edit, favorite, label) logs one too — that activity trail is what drives the **Recent** view (`useDocument.ts:44-57`, `20230423023136_documents.sql:117-146`).
+**Upload** accepts any file. The browser uploads it to private storage at `{companyId}/{random}.{ext}`, then creates a document row with its path, name, and size (`DocumentCreateForm.tsx:22-69`). Uploads, downloads, edits, favorites, and label changes create activity transactions that drive the **Recent** view (`useDocument.ts:44-57`, `20230423023136_documents.sql:117-146`).
## Who can see a file
-Visibility is by **group**, not by role alone. Every document carries a `readGroups` and a `writeGroups` array, and a file is only visible to a user who belongs to one of its read groups (and holds the `documents` view permission). Editing or deleting needs membership in a write group plus the matching permission (`20230423023136_documents.sql:40-66`, `useDocument.ts:22-42`). The same rule guards the underlying stored file in the private bucket, so a link to a file you are not in the read groups for resolves to nothing (`20230423023136_documents.sql:68-119`).
+Visibility depends on group membership and permissions. A user can view a document only when they belong to one of its `readGroups` and have `documents` view permission. Editing or deleting also requires membership in a `writeGroups` entry and the corresponding permission (`20230423023136_documents.sql:40-66`, `useDocument.ts:22-42`). Private storage applies the same read-group rule, so unauthorized links do not resolve (`20230423023136_documents.sql:68-119`).
<Callout type="note" title="Groups are Carbon's company groups">
Read and write groups are drawn from your <Term>company group</Term> membership, the same groups used elsewhere for scoping. Set them when you edit a document's properties; a file with no matching read group for a user is simply invisible to that user.
@@ -48,7 +48,7 @@ Two personal organizers sit on top of the shared library, and both are **per-use
## Search
-The explorer search box does a case-insensitive substring match across a file's **name** and **description** (`documents.service.ts:72-76`). It is a filename/description search, not a full-text search of the file's contents. Combine it with the column filters (source document, label, type, extension, creator) to narrow a large library, and with the view tabs to scope to your own, recent, or pinned files. The current result set is exactly what the table's **Download CSV** button exports, each row carrying a signed download link (`search.tsx`, `DocumentsTable.tsx:393-405`).
+Search performs a case-insensitive substring match on **name** and **description**, not file contents (`documents.service.ts:72-76`). Combine search with filters for source document, label, type, extension, or creator and with the view tabs. **Download CSV** exports the current result set with a signed download link for each row (`search.tsx`, `DocumentsTable.tsx:393-405`).
## How documents attach to records
@@ -66,7 +66,7 @@ The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocument
## AI extraction
-Extraction is the one place documents stop being passive files. Upload a PDF into a supported flow and Carbon reads it, pulls out the fields, and hands them to the form so you can accept them instead of retyping. Two document kinds are supported today (`document-extraction.ts:9-13`, `documents.models.ts:126`):
+In supported workflows, Carbon can extract fields from a PDF and prefill a form. Two document types are supported (`document-extraction.ts:9-13`, `documents.models.ts:126`):
- a **Request for Quote** PDF, on the sales side, and
- a **Purchase Invoice** PDF, on the purchasing side.
diff --git a/docs/content/docs/reference/financial-reports.mdx b/docs/content/docs/reference/financial-reports.mdx
index e4a99c801a..b91544059f 100644
--- a/docs/content/docs/reference/financial-reports.mdx
+++ b/docs/content/docs/reference/financial-reports.mdx
@@ -3,19 +3,23 @@ title: Financial statement reports
description: "The Balance Sheet, Income Statement, and Trial Balance built from posted journals by account class."
---
-Three reports read the same posted [general ledger](/docs/reference/accounting) and present it three ways. The **Balance Sheet** shows what the company owns and owes as of a date; the **Income Statement** shows revenue minus expense over a period; the **Trial Balance** lists every posting account with its debit or credit balance. All three come from the same balance engine, so they tie out to each other by construction.
+Three reports read the posted [general ledger](/docs/reference/accounting). The **Balance Sheet** shows cumulative assets, liabilities, and equity at each selected period end. The **Income Statement** shows revenue and expense activity by period. The **Trial Balance** shows beginning and ending balances plus net debit or credit movement for one date range. All three use the same balance engine.
-They live under Accounting and each require the `accounting` view permission. Like everything financial, they only show data once **accounting enabled** is on — see [Accounting & the ledger](/docs/reference/accounting) for that switch. With it off, journals are never written and every balance reads zero.
+The reports are under Accounting and require `accounting` view permission. They contain data only after **accounting enabled** is turned on. When accounting is disabled, operations do not create journals, so report balances remain zero.
## The three statements
-<StatusFlow>
- <Status name="Balance Sheet" accent>Assets, Liabilities, and Equity as of an end date. Reads the cumulative balance up to that date, so there is no start date to pick. Carbon appends a computed **"Net Income"** equity line so the sheet ties.</Status>
- <Status name="Income Statement">Revenue and Expense activity between a start and end date. Reads the net change within the range, not a running total.</Status>
- <Status name="Trial Balance">Every posting (leaf) account with its balance split into a debit or credit column, across a date range. Normal-debit classes (Asset, Expense) show a positive balance as a debit; normal-credit classes (Liability, Equity, Revenue) show it as a credit.</Status>
-</StatusFlow>
+<FieldTable>
+ <Field name="Balance Sheet">Shows one column per selected month, quarter, or fiscal year. Each value is cumulative through that period's end. Carbon appends a computed **"Net Income"** equity line so the sheet ties.</Field>
+ <Field name="Income Statement">Shows Revenue and Expense activity within each selected period.</Field>
+ <Field name="Trial Balance">Shows one selected date range. **Beginning** is the cumulative balance before the range, **Ending** is cumulative through the end date, and **Debits** or **Credits** show net movement on the normal side when positive and the opposite side when negative.</Field>
+</FieldTable>
+
+<Screenshot label="Balance Sheet report with monthly columns for the selected date range" caption="Each column shows cumulative account balances through that period's end." ratio="wide" />
-The split isn't three data sources. The Balance Sheet and Trial Balance are the same account set at a cutoff; the Income Statement is the movement across a window. Every account carries an `incomeBalance` marker of either **"Balance Sheet"** or **"Income Statement"**, set when the account is created, that decides which statement it appears on. Asset, Liability, and Equity accounts are Balance Sheet; Revenue and Expense are Income Statement.
+The Balance Sheet and Income Statement divide the selected range into monthly, quarterly, or yearly columns. The Balance Sheet reads each column's cumulative ending balance; the Income Statement reads activity within each column. The Trial Balance keeps the selected range as one period and derives its beginning balance, net debit or credit movement, and ending balance.
+
+Each account's `incomeBalance` value selects **Balance Sheet** or **Income Statement**. Asset, Liability, and Equity accounts belong to the Balance Sheet; Revenue and Expense accounts belong to the Income Statement.
<Callout type="note">
Balances always exclude **Draft** journals. Only posted (and reversed) entries move a report, so an unposted entry sitting in the Journal Entries list has no effect on any statement until it posts. This is why the account ledger, the reports, and the [period-close](/docs/reference/period-close) snapshots all agree.
@@ -28,21 +32,25 @@ Every report starts from a single balance function that reads the posted ledger
<FieldTable>
<Field name="balance">All-time cumulative balance, no date bound. The running total of every posted line on the account.</Field>
<Field name="balanceAtDate">Cumulative balance from inception up to the report's **end date**. This is the *as-of* figure the Balance Sheet shows.</Field>
- <Field name="netChange">Activity *within* the start-to-end window only. This is the movement the Income Statement shows, and the period column on the Trial Balance.</Field>
+ <Field name="netChange">Activity *within* the start-to-end window only. The Income Statement shows this movement by period, and the Trial Balance places its net value in the debit or credit column.</Field>
</FieldTable>
-Group (heading) accounts don't hold postings; their totals roll up from their children. Because a debit and a credit are stored with opposite signs, the roll-up is **sign-aware by account class**. Asset and Revenue accounts add to their parent; Liability, Equity, and Expense subtract. That single rule makes the accounting identities fall out cleanly: a Balance Sheet root nets Assets minus Liabilities minus Equity to roughly zero, and the Income Statement root is Revenue minus Expense, which *is* net income.
+Group (heading) accounts don't hold postings; their totals roll up from their children. Because a debit and a credit are stored with opposite signs, the roll-up is **sign-aware by account class**. Asset and Revenue accounts add to their parent; Liability, Equity, and Expense subtract.
+
+That rule makes the accounting identities fall out cleanly. A Balance Sheet root nets Assets minus Liabilities minus Equity to roughly zero. The Income Statement root is Revenue minus Expense, which is net income.
<Callout type="info" title="Net Income is computed, never posted">
-Undistributed profit lives in the Revenue and Expense accounts until a period close moves it. A Balance Sheet drawn at any date would otherwise be out of balance, because that profit belongs in equity. Carbon closes the gap by summing every Income Statement leaf account (Revenue minus Expense, with the same sign rule) and surfacing it as a single **"Net Income"** line inside the Equity group. It is a calculated row, not a real account you can post to. Don't create a "Net Income" account in the chart of accounts.
+Undistributed profit lives in the Revenue and Expense accounts until a period close moves it. A Balance Sheet would otherwise be out of balance because that profit belongs in equity.
+
+Carbon closes the gap by summing every Income Statement leaf account and showing it as a single **"Net Income"** line inside the Equity group. It is a calculated row, not an account you can post to. Don't create a "Net Income" account in the chart of accounts.
</Callout>
## Period and date selection
-Each report has a period picker at the top, but they don't pick the same thing:
+All three reports use a start and end date and default to the trailing six months:
-- The **Balance Sheet** is *as-of*: you choose an end date only (presets like **"Today"**, **"End of Last Month"**, **"End of Last Quarter"**, **"End of Last Fiscal Year"**, or a custom **"As of"** date). There is no start date, because the sheet is a cumulative snapshot.
-- The **Income Statement** and **Trial Balance** are *range*: you choose a start and end date (presets like **"This Month"**, **"Last Quarter"**, **"This Fiscal Year"**, **"Fiscal Year to Date"**, **"All Time"**, or a custom range). Fiscal presets follow the company's fiscal start month from [fiscal year settings](/docs/reference/period-close).
+- The **Balance Sheet** and **Income Statement** can group the range into monthly, quarterly, or yearly columns. A Balance Sheet value remains an as-of figure because each column is cumulative through that column's end date.
+- The **Trial Balance** keeps the range as one period and shows its beginning balance, net debit or credit activity, and ending balance. Fiscal presets follow the company's fiscal start month from [fiscal year settings](/docs/reference/period-close).
These pickers slice by **posting date**, not by the [accounting period](/docs/reference/period-close) a journal landed in, so a report window can span open and closed periods freely. Closing a period doesn't change what a report shows; it just snapshots balances so the reads stay fast.
@@ -50,7 +58,7 @@ Alongside the date picker, a company selector lets you view a single company or
## What the reports do not slice
-There is one gap worth stating plainly, because it's easy to assume otherwise.
+The core statements do not support dimension filtering.
<Callout type="warn" title="Core statements are not sliced by reporting dimension">
Journal lines can carry <Term id="reporting-dimension">reporting dimensions</Term> (location, department, cost center, and custom axes), but the Balance Sheet, Income Statement, and Trial Balance **do not** offer a dimension filter. They aggregate every posting on an account regardless of its dimension tags. To analyze the ledger by dimension, use the [dimensions](/docs/reference/dimensions) tooling, not these three statements.
@@ -84,13 +92,13 @@ The company's **accounting enabled** setting is off, so no journal entries have
Balances exclude **Draft** journals. An entry that is still Draft in the Journal Entries list does not move any report until it is posted. Post it (or check its status) and the figure updates. Reversed journals *do* count, as their offsetting entry.
### "Why is my Balance Sheet out of balance / Assets ≠ Liabilities + Equity"
-The Balance Sheet appends a computed **"Net Income"** equity line that carries undistributed Revenue-minus-Expense into equity. If a figure still looks off, it is almost always a date-selection issue (an as-of date before some postings) or an account created with the wrong class or `incomeBalance` marker (for example a Revenue account flagged Balance Sheet), which misroutes it in the sign-aware roll-up. Check the account's class and Balance Sheet vs Income Statement setting in the chart of accounts.
+The Balance Sheet appends a computed **"Net Income"** equity line that carries undistributed Revenue-minus-Expense into equity. If a figure still looks off, it is almost always a date-selection issue (a range that ends before some postings) or an account created with the wrong class or `incomeBalance` marker (for example a Revenue account flagged Balance Sheet), which misroutes it in the sign-aware roll-up. Check the account's class and Balance Sheet vs Income Statement setting in the chart of accounts.
### "Why doesn't my dimension filter change the totals"
There isn't one. The core statements aggregate every posting on an account regardless of dimension tags. Dimension analysis is a separate tool, not a filter on these three reports.
-### "Balance Sheet has no start date field"
-By design. The Balance Sheet is an as-of snapshot (cumulative balance up to the end date), so it exposes only an end date. The Income Statement and Trial Balance are range reports and take both a start and end date.
+### "Why does the Balance Sheet show multiple columns"
+Each column is an as-of snapshot that is cumulative through that period's end. The report uses the selected start and end dates to choose which monthly, quarterly, or yearly period ends to display.
### Preconditions to check first
- **accounting enabled** must be on (off by default) or every balance is zero.
diff --git a/docs/content/docs/reference/fixed-assets.mdx b/docs/content/docs/reference/fixed-assets.mdx
index 6a1ff7af0d..4b8d5b238e 100644
--- a/docs/content/docs/reference/fixed-assets.mdx
+++ b/docs/content/docs/reference/fixed-assets.mdx
@@ -3,7 +3,7 @@ title: Fixed assets
description: "Capital equipment on the books: acquired, depreciated, and retired."
---
-A **fixed asset** is a piece of capital equipment you capitalize and depreciate rather than expense: a press, a CNC, a forklift. It's an accounting record of value over time, distinct from the <Term>work center</Term> that represents the same machine on the floor. Every asset belongs to an **<Term>asset class</Term>**, which supplies the general-ledger accounts it posts to.
+A **fixed asset** represents capital equipment that is capitalized and depreciated instead of expensed, such as a press, CNC, or forklift. It is separate from the <Term>work center</Term> used to schedule the same equipment. Every asset belongs to an **<Term>asset class</Term>** that defines its general-ledger accounts.
## Lifecycle
@@ -16,7 +16,7 @@ A **fixed asset** is a piece of capital equipment you capitalize and depreciate
## Acquiring
-An asset comes onto the books two ways, both starting at **Draft**:
+Assets start in **Draft** and enter the books in either of two ways:
- **Register** one you already own: supply its acquisition cost and depreciation start date, and it moves to **Active**. No money posts; you're recording something you have.
- **Buy** one through purchasing: a <Term id="purchase-order">purchase-order</Term> line of type *Fixed Asset* that, when the receipt posts, debits the asset account, **adds** the cost to the asset, and flips it to **Active**.
@@ -27,7 +27,7 @@ The purchase-receipt path activates the asset and posts its acquisition entry **
## Depreciating
-<Term id="depreciation">Depreciation</Term> runs as a **monthly batch you trigger**. There's no background poster. You create a run for a period, Carbon pulls every Active asset and computes each charge, you review it as a draft, then post: debit depreciation expense, credit accumulated depreciation. Carbon keeps a separate **tax** book too, including <Term>MACRS</Term>, when tax depreciation is enabled. When an asset's <Term id="net-book-value">net book value</Term> reaches its residual, posting flips it to **Fully Depreciated**.
+<Term id="depreciation">Depreciation</Term> runs as a manually triggered monthly batch; it is not posted in the background. Create a run for a period, review Carbon's calculated charges, then post them. Posting debits depreciation expense and credits accumulated depreciation. When enabled, Carbon maintains a separate **tax** book, including <Term>MACRS</Term>. When <Term id="net-book-value">net book value</Term> reaches residual value, the asset becomes **Fully Depreciated**.
Book depreciation follows the asset's method: <Term id="straight-line">straight line</Term>, <Term id="declining-balance">declining balance</Term>, or units of production.
diff --git a/docs/content/docs/reference/forecast.mdx b/docs/content/docs/reference/forecast.mdx
index 08c05fe92f..47b618635f 100644
--- a/docs/content/docs/reference/forecast.mdx
+++ b/docs/content/docs/reference/forecast.mdx
@@ -3,15 +3,15 @@ title: Demand projections
description: Enter expected future demand for a make part, week by week, so planning orders ahead of the sales orders that haven't landed yet.
---
-A <Term id="demand-projection">demand projection</Term> is your best guess at how much of a part you'll need in a given week, entered before any sales order exists to prove it. Planning treats that guess as demand: it nets it against what you already have coming, explodes the part's method to pull in its components, and suggests the jobs and purchase orders you'd need to be ready. Projections are how you tell Carbon "we expect to sell 40 of these in March" so the long-lead parts are ordered in time.
+A <Term id="demand-projection">demand projection</Term> is expected weekly demand for a part before sales orders exist. Planning nets projections against scheduled supply, explodes the part's method into component demand, and suggests required jobs and purchase orders.
-You enter projections under **Production → Projections**, one part at a time, as a 52-week grid. Each cell is the quantity you expect to consume that week. Save it, and the next <Term>MRP</Term> run reads it.
+Enter projections under **Production → Projections** in a 52-week grid, one part at a time. Each cell contains expected consumption for that week. The next <Term>MRP</Term> run reads saved values.
## What a projection is
A projection lives on the `demandProjection` table, keyed by item, location, and a weekly `period` — one row per part / location / week with a `forecastQuantity` (`packages/database/supabase/migrations/20251020183630_mrp-projections.sql:3-25`). The `period` table is a shared, company-agnostic set of dated week buckets (`startDate`, `endDate`, `periodType`); Carbon creates them on demand as `getOrCreatePeriods` walks forward from today (`packages/database/supabase/migrations/20250610000433_demand-planning.sql:26-34`).
-Only **make parts** carry projections. The item picker on the form is fixed to `type="Part"` with `replenishmentSystem="Make"` (`apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx:195-202`), so you project the things you build. Their purchased components inherit demand through the BOM explosion, not through their own projection.
+Only parts with `replenishmentSystem="Make"` can have projections (`apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx:195-202`). Purchased components receive derived demand through BOM explosion rather than direct projections.
<Callout type="note" title="Projection, not forecast">
Two tables look alike. `demandProjection` is your input — the numbers you type. `demandForecast` is planning's output — the exploded, per-component demand the <Term>MRP</Term> run writes back (`forecastMethod` = `"mrp"`). You never edit `demandForecast` by hand; it's rebuilt on every run (`packages/planning/src/mrp/mrp.ts:918-963`). The Projections screen only ever touches `demandProjection`.
@@ -47,7 +47,7 @@ The run turns projected demand into *suggested* jobs and purchase orders. Nothin
<Field name="Week 1 … Week 52">Expected quantity consumed in each weekly bucket, starting from the current week. A blank or zero cell stores nothing.</Field>
</FieldTable>
-Projections are a deliberately simple, manual input: there's no statistical or ML forecasting engine behind them, no seasonality model, no auto-generation from history. The schema reserves `forecastMethod` and `confidence` columns, but the Projections form writes neither — every projection is a hand-entered number. What makes them useful is the netting and BOM explosion on the planning side, not the forecasting itself.
+Projections are manual inputs. Carbon does not calculate them from history, seasonality, or a statistical model. Although the schema reserves `forecastMethod` and `confidence`, the Projections form does not write them. MRP provides the netting and BOM explosion.
<AgentContext>
## Troubleshooting
diff --git a/docs/content/docs/reference/import-export.mdx b/docs/content/docs/reference/import-export.mdx
index 229287fc81..68a1995571 100644
--- a/docs/content/docs/reference/import-export.mdx
+++ b/docs/content/docs/reference/import-export.mdx
@@ -3,11 +3,11 @@ title: Import and export
description: Bring records into Carbon from a CSV, and download any table's current view as a CSV.
---
-Carbon moves data both ways through CSV. Every data table can **export** its current view to a file with one click, and a set of core entities can be bulk **imported** from a CSV you upload, map, and submit. The two paths are unrelated in the code: export is a browser-side download of the rows already on screen, while import runs a guided wizard that hands the file to a privileged background function to insert or update records inside a transaction.
+Carbon supports CSV export for every shared data table and CSV import for selected entities. Export runs in the browser against the current table result set. Import uses a guided mapping workflow and a privileged background function that inserts or updates records in a transaction.
## Exporting a table to CSV
-Open any data table (a parts list, a sales order dashboard, an inventory grid) and look for the small download icon in the table header — hover it and its **Download CSV** tooltip appears. There is no setting to turn it on: every table built on Carbon's shared data grid gets the button automatically.
+Use **Download CSV** in a data table's header. Every table built on Carbon's shared data grid includes this action.
The download reflects **what you are currently looking at**, not a full server dump:
@@ -25,7 +25,7 @@ Export builds the file entirely in your browser and downloads it as `data.csv` w
## What you can import
-Bulk import is deliberately scoped. A **Bulk Import** menu appears in the table header only on the tables that opt into it, so you import an entity from its own list screen:
+Bulk import is available only for supported entities. Import each entity from the **Bulk Import** menu on its list screen:
<FieldTable>
<Field name="Customers">From the customers list. Optionally rides address, payment term, and contact-style fields on the same row.</Field>
@@ -44,7 +44,7 @@ The models list a `fixedAsset` import shape, but the import function's own table
## The import flow
-Importing is a four-step wizard, then a background write.
+Import uses a four-step wizard followed by a background write.
<Steps>
<Step>
@@ -67,7 +67,7 @@ When a CSV value has no mapping to a Carbon enum, the row imports with that fiel
## Insert, update, or skip
-The importer is **idempotent**: re-importing the same file updates records rather than duplicating them. It decides each row's fate before writing:
+For standard entity imports, re-importing the same identifiers updates existing records instead of duplicating them. The importer classifies each row before writing:
<StatusFlow>
<Status name="Insert">The row is new. No existing record matches its Unique ID or its Name, so Carbon creates it and records a CSV id mapping for next time.</Status>
@@ -108,7 +108,7 @@ Inventory-tracked rows have no natural key, so every valid row posts, every time
## Errors and partial failures
-Import is **row-level tolerant**. A bad row doesn't abort the whole file: it's collected and reported while the good rows still import. The results come back as four numbers plus two lists:
+Import handles validation failures per row. Invalid rows are reported while valid rows continue. Results include:
- **inserted** and **updated** — counts of records written.
- **errors** — rows you should fix and re-import (missing required data), each with its row number, a reason, and the original cell values.
diff --git a/docs/content/docs/reference/inspections.mdx b/docs/content/docs/reference/inspections.mdx
index fc66b87cc1..77c3edefc5 100644
--- a/docs/content/docs/reference/inspections.mdx
+++ b/docs/content/docs/reference/inspections.mdx
@@ -3,9 +3,9 @@ title: Inspections and sampling
description: How Carbon inspects received goods against AQL sampling plans, and how inspection templates and ballooned FAI drawings define what gets checked.
---
-A drum of 5,000 fasteners lands on the dock. You don't measure every one. You pull a sample, check it against a plan, and let the numbers decide whether the whole lot passes. That is what Carbon's <Term id="inbound-inspection">inbound inspection</Term> does: when a receipt is posted for an item flagged to [require inspection](/docs/reference/quality), Carbon holds the received units, computes a sample size from an AQL standard, and waits for an inspector to record pass/fail before the stock becomes available.
+Carbon's <Term id="inbound-inspection">inbound inspection</Term> evaluates received goods against a sampling plan. When a receipt posts for an item that [requires inspection](/docs/reference/quality), Carbon holds the received units, calculates the sample size, and requires inspection results before releasing stock.
-This page is the deep dive. The [quality overview](/docs/reference/quality) has the short version; here you get the lifecycle, the sampling math, the step types that build an inspection template, and the ballooned-drawing FAI system.
+This page describes the inspection lifecycle, sampling calculations, template step types, and ballooned-drawing FAI workflow. See [quality](/docs/reference/quality) for the module overview.
## The inbound inspection lifecycle
@@ -19,7 +19,7 @@ Inspection is **lot-based**: one inspection per received line (the `receiptLineI
<Status name="Partial" terminal>Some units cleared and the rest stay On Hold. A middle disposition for when part of the lot is good and part isn't.</Status>
</StatusFlow>
-The status enum is exactly `Pending`, `In Progress`, `Passed`, `Failed`, `Partial` (`quality.models.ts:698`, matching the `inboundInspectionStatus` type in `20260419163058_inbound-inspection-sampling.sql:73`). **Passed / Failed / Partial are disposition outcomes**, not something an inspector reaches by finishing samples — the inspector records results, then presses **Accept Lot**, **Reject Lot**, or **Partial** to close the lot.
+The status enum is `Pending`, `In Progress`, `Passed`, `Failed`, or `Partial` (`quality.models.ts:698`, matching `inboundInspectionStatus` in `20260419163058_inbound-inspection-sampling.sql:73`). **Passed**, **Failed**, and **Partial** are disposition outcomes. Recording all samples does not close a lot; the inspector must select **Accept Lot**, **Reject Lot**, or **Partial**.
<Callout type="warn" title="Inspection-required stock is not on-hand until dispositioned">
When a receipt posts for a `requiresInspection` item, its tracked entities are set to **On Hold**, not Available. They're received but you can't sell or consume them yet. Only Accept (or the per-sample passes) releases them.
@@ -54,7 +54,7 @@ Every lot needs a sample size and an accept/reject rule. That comes from the ite
<Field name="AQL" type="AQL">Statistical acceptance sampling per ANSI/ASQ Z1.4 or ISO 2859-1 — the sample size and accept/reject numbers come from the standard's tables.</Field>
</FieldTable>
-The first three are simple counts with a zero-defect rule. **AQL** is the interesting one.
+The first three plans use a zero-defect rule. **AQL** uses standard acceptance tables.
### How an AQL plan resolves
diff --git a/docs/content/docs/reference/intercompany.mdx b/docs/content/docs/reference/intercompany.mdx
index 995763f234..9c389bf317 100644
--- a/docs/content/docs/reference/intercompany.mdx
+++ b/docs/content/docs/reference/intercompany.mdx
@@ -3,9 +3,9 @@ title: Intercompany accounting
description: "Match a sale in one company against the purchase in its sibling, then eliminate the pair for consolidated reporting."
---
-When two companies under the same owner trade with each other, each books its own side: one records a receivable, the other a payable. On a consolidated statement those two entries are the same money counted twice. Intercompany accounting is how Carbon pairs them up and cancels them out.
+Intercompany accounting pairs reciprocal transactions between companies in the same group and eliminates them from consolidated reporting. One company records a receivable and the other a payable; elimination removes the duplicated group-level balance.
-The whole feature is scoped to a **<Term>company group</Term>**, and it only appears once a group has more than one company. If you run a single company, there is nothing here to do. Set up the group and its members first (see [Companies](#prerequisite-a-multi-company-group)); everything below assumes they exist.
+The feature is scoped to a **<Term>company group</Term>** and appears only when the group has multiple companies. Configure the group and its members before using it; see [Companies](#prerequisite-a-multi-company-group).
## What a transaction is
@@ -44,7 +44,7 @@ These are the only three values, enforced by a database check constraint on the
## How a pair gets matched
-Matching is a manual, run-on-demand step, not something that happens as you post. On the Intercompany screen, **Run Matching** sweeps the whole group.
+Matching is a manual group-wide operation. Select **Run Matching** on the Intercompany screen.
The rule is deliberately strict. Two **Unmatched** transactions match only when they are true mirror images: company A → B pairs with company B → A, for the **exact same amount**, within the same group. When Carbon finds such a pair it sets both to **"Matched"** in one step and links each to the other's journal line. The result toast tells you how many matched and how many are still unmatched.
@@ -56,7 +56,7 @@ Matching pairs the two sides. It does **not** post anything new or touch either
## Elimination
-Matching sets the stage. **Elimination** is what actually removes the double-count for consolidated reporting. It, too, is a manual sweep: **Generate Eliminations** processes every **Matched** pair in the group.
+**Elimination** removes matched balances from consolidated reporting. Select **Generate Eliminations** to process every **Matched** pair in the group.
For each matched pair, Carbon posts a single **elimination journal** that reverses the intercompany control-account entries on both sides. Each transaction points at one control line; from it, Carbon takes that line's account and document and reverses every line the same invoice posted to that account — the seller's **Inter-Company Receivables** and the buyer's **Inter-Company Payables** — booking the sign-reversed amounts. Because it reverses the actual ledger lines for the whole document, a multi-line invoice is cleared in full, not just its first line, and both control accounts clear to their exact balance with no rounding residual. The seller's receivable and the buyer's payable are equal and opposite, so the elimination journal balances. Each reciprocal pair is processed once.
diff --git a/docs/content/docs/reference/inventory-count.mdx b/docs/content/docs/reference/inventory-count.mdx
index 0f9dad62b3..c9105818b9 100644
--- a/docs/content/docs/reference/inventory-count.mdx
+++ b/docs/content/docs/reference/inventory-count.mdx
@@ -3,7 +3,7 @@ title: Inventory counts
description: Count real stock against a frozen snapshot, review the variances, and post the differences as adjustments.
---
-An inventory count freezes what Carbon thinks is on hand, sends someone to count what is actually on the shelf, and posts the difference. You pick a location (optionally narrowing to a few storage units or one item type), Carbon snapshots the on-hand quantity for every stocked lot into count lines, a counter fills in what they see, and posting books each variance as an inventory adjustment. It is how a warehouse reconciles the <Term id="item-ledger">item ledger</Term> back to physical reality without touching stock one item at a time.
+An inventory count compares a frozen on-hand snapshot with physical stock and posts the variance. Select a location and optionally filter by storage unit or item type. Carbon creates count lines from the snapshot, counters enter observed quantities, and posting records each difference as an inventory adjustment in the <Term id="item-ledger">item ledger</Term>.
## The count lifecycle
@@ -21,7 +21,7 @@ A count moves through three statuses in order. Posting is atomic, so a count is
</Status>
</StatusFlow>
-Posting is final — a Posted count is never reopened. If a posted movement turns out to be wrong, correct that **movement** from the stock-movements screen: enter the quantity it should have been, and Carbon books an opposite movement for the difference, linked to the original and dated with the original's posting date. The original count and its fix both stay visible in the stock-movement screens, in the right time period.
+A Posted count cannot be reopened. To fix an incorrect posted movement, use **Correct Quantity** on the Stock Movements screen. Carbon posts an offsetting movement for the difference, links it to the original, and uses the original posting date. Both entries remain visible.
## Creating a count
@@ -39,7 +39,7 @@ Every count is scoped to one **location**. From there you can narrow it two ways
</Field>
</FieldTable>
-A **full count** covers the whole location; a **cycle count** is the narrowed version — a slice of bins or a single item type, counted on a rotating schedule so you never have to stop the warehouse for a wall-to-wall inventory. The scope is only used at creation to decide which lines to generate; the resulting count is the same document either way.
+A **full count** covers an entire location. A **cycle count** covers selected bins or one item type. Scope determines which lines Carbon generates; both use the same count document and lifecycle.
When you generate the lines, Carbon aggregates on-hand from the item ledger into one line per item, storage unit, and lot. It **excludes Rejected and Consumed lots** — a count never lists stock that has already been scrapped or used up. Each line records the frozen **system quantity**; that snapshot is what the variance is measured against later, not live on-hand.
@@ -82,7 +82,7 @@ Both end in the same place — a Positive or Negative Adjustment on the ledger,
</Field>
</FieldTable>
-Reach for a count when you're reconciling a shelf or a whole location; reach for an adjustment when you already know one specific quantity is wrong.
+Use a count to reconcile multiple items or an area. Use a manual adjustment to correct one known quantity.
## Related
diff --git a/docs/content/docs/reference/inventory.mdx b/docs/content/docs/reference/inventory.mdx
index 0599dc69f0..82f7bfc1e1 100644
--- a/docs/content/docs/reference/inventory.mdx
+++ b/docs/content/docs/reference/inventory.mdx
@@ -3,11 +3,11 @@ title: Inventory & locations
description: Where stock lives, how on-hand is tracked, and how it moves.
---
-Stock in Carbon lives at a **location** and, within it, in a **storage unit**. What's actually on hand is derived from a ledger of movements, not a single editable number, so every quantity has a trail behind it.
+Carbon stores stock at a **location** and, optionally, in a **storage unit**. On-hand quantity is derived from an append-only movement ledger rather than an editable balance.
## Locations and storage units
-A **location** is a site or warehouse. Within one, stock sits in **storage units**: bins and shelves that can nest (aisle › shelf › bin) and be typed (cold, hazardous, returns). A storage unit attached to a work center is a **lineside** bin, used to stage material at the point of use; everything else is a warehouse bin.
+A **location** is a site or warehouse. **Storage units** are nested bins or shelves within a location, such as aisle › shelf › bin, and can be typed as cold, hazardous, or returns. A storage unit attached to a work center is a **lineside** bin for point-of-use material; other storage units are warehouse bins.
## On hand is a ledger
@@ -30,7 +30,9 @@ On hand can go **negative**. Shipping, issuing to a job, and picking all post th
## Movements
-Two kinds of transfer move stock. A **warehouse transfer** moves it between locations, and is carried out as a <Term id="shipment">shipment</Term> out of one and a receipt into the other. A **stock transfer** moves it within a single location, between storage units. A manual **adjustment** posts a positive or negative entry to the ledger, or a *Set Quantity* that books the difference to a target. When accounting is enabled, every adjustment also posts a <Term id="journal">journal</Term>: a loss debits the inventory adjustment account and credits inventory, a gain is the mirror image, valued at the item's current cost. Inventory count variances post the same way. Moving stock between storage units posts no journal, because the value never left the location. [Scrapping](/docs/reference/scrap) stock is a negative adjustment with a reason, offset to the scrap account instead of the adjustment account.
+A **warehouse transfer** moves stock between locations by posting a <Term id="shipment">shipment</Term> from one and a receipt into the other. A **stock transfer** moves stock between storage units in one location. A manual **adjustment** posts a positive or negative ledger entry; *Set Quantity* calculates the entry needed to reach a target.
+
+When accounting is enabled, adjustments also post a <Term id="journal">journal</Term>. A loss debits inventory adjustment and credits inventory; a gain posts the reverse, valued at current item cost. Inventory count variances use the same accounts. Storage-unit transfers create no journal because value remains at the location. [Scrap](/docs/reference/scrap) uses a negative adjustment offset to the scrap account.
## Correcting a movement
@@ -38,7 +40,7 @@ The ledger is append-only — a posted movement is never edited or deleted. To f
## Value
-Inventory value is on-hand quantity times the item's unit cost, summed per item and location. The Valuation report shows it by location or by item, and its **"Tie-Out"** panel compares that subledger value to the GL inventory account balances. If the two disagree (adjustments made before the books were turned on are the usual reason), **"Reconcile"** drafts an adjusting journal for an accountant to review and post.
+Inventory value is on-hand quantity multiplied by item unit cost, aggregated by item and location. The Valuation report groups by location or item. Its **Tie-Out** panel compares subledger value with GL inventory balances. If they differ, **Reconcile** creates a draft adjusting journal for review and posting.
## Related
diff --git a/docs/content/docs/reference/invoices.mdx b/docs/content/docs/reference/invoices.mdx
index 523c2aaa8d..b86e21ca21 100644
--- a/docs/content/docs/reference/invoices.mdx
+++ b/docs/content/docs/reference/invoices.mdx
@@ -3,7 +3,7 @@ title: Invoices
description: The billing documents — what you charge customers, and what suppliers charge you.
---
-An **invoice** records money owed. Carbon has two kinds that behave almost identically: a **sales invoice** is what you bill a customer, and a **purchase invoice** is the bill a supplier sends you. Both are drawn from an upstream document, both post to the ledger, and both are settled by a **separate posted transaction** — a <Term id="payment">payment</Term> or a <Term id="credit-memo">credit or debit memo</Term> applied to the invoice, not a field you flip.
+An **invoice** records an amount owed. A **sales invoice** bills a customer; a **purchase invoice** records a supplier bill. Both originate from upstream documents, post to the ledger, and are settled by a separate posted <Term id="payment">payment</Term> or <Term id="credit-memo">credit or debit memo</Term>.
## Where they come from
@@ -15,7 +15,7 @@ A purchase invoice reconciles on the **purchase order line**, not on a <Term id=
## Status lifecycle
-Both start at **Draft** and lock the moment they leave it — numbers that have entered the books can't be edited in place. The two sides share a shape but name a few states differently.
+Both invoice types start in **Draft** and become read-only after leaving it. Their lifecycles are equivalent but use different names for some states.
| | Sales invoice | Purchase invoice |
| --- | --- | --- |
@@ -30,7 +30,7 @@ The posted state has a different name on each side, **Submitted** for sales and
## Line types
-An invoice line is one of a handful of types, most of which pull an item's details in for you. The two sides differ in one place:
+Most invoice line types populate details from an item. Sales and purchase invoices differ in these supported types:
| Type | Sales invoice | Purchase invoice |
| --- | --- | --- |
@@ -43,7 +43,7 @@ A **G/L Account** line lets a purchase invoice book a cost directly to a ledger
## Posting
-<Term id="posting">Posting</Term> an invoice writes its general-ledger entries, but only when accounting is enabled for the company: receivables against sales for a sale, payables against inventory or WIP for a purchase. Posting also bumps the invoiced quantity on each order line and stamps the posting date.
+When accounting is enabled, <Term id="posting">posting</Term> creates general-ledger entries: receivables against sales for a sales invoice, or payables against inventory or WIP for a purchase invoice. Posting also updates invoiced quantities on order lines and records the posting date.
<Callout type="warn">
Posting never marks an invoice **Paid** — it lands on **Submitted** or **Open**. Settling it is a separate, deliberate step. A posted invoice can't be deleted either; to undo one you **void** it, which writes reversing entries rather than erasing history.
@@ -51,7 +51,7 @@ Posting never marks an invoice **Paid** — it lands on **Submitted** or **Open*
## Settling an invoice
-A posted invoice is settled by a separate posted document applied to it, never by flipping a field. Two kinds of document do the settling, and an **invoice settlement** is the row that links one to an invoice for a given amount.
+A posted invoice is settled by applying another posted document. An **invoice settlement** links that document to the invoice for a specified amount.
A **<Term id="payment">payment</Term>** moves cash. A **Receipt** is money in from a customer (it settles sales invoices); a **Disbursement** is money out to a supplier (it settles purchase invoices). A payment carries a bank account, a date, a currency, and a total, and moves **Draft → Posted → Voided** like the invoice itself. While it's **Draft** you stage which invoices it applies to and for how much; posting it books the cash to the ledger — bank against the receivables or payables control account — and freezes those applications.
diff --git a/docs/content/docs/reference/issues.mdx b/docs/content/docs/reference/issues.mdx
index 379d07b4ba..5e684631c4 100644
--- a/docs/content/docs/reference/issues.mdx
+++ b/docs/content/docs/reference/issues.mdx
@@ -3,9 +3,9 @@ title: Issues (non-conformances)
description: How Carbon logs a non-conformance, drives it through a configurable workflow of actions and approvals, and dispositions the affected material before closing.
---
-An **issue** is Carbon's non-conformance record, an NCR: a logged defect or deviation plus the work to resolve it. This page is the deep dive behind the [quality overview](/docs/reference/quality#issues). It lives in the `quality` module (there is no separate `issue` module), and every issue carries an `nc`-prefixed internal id plus a readable `nonConformanceId` you see in the UI.
+An **issue** is a non-conformance record containing a defect or deviation and the work required to resolve it. Issues belong to the `quality` module and carry an `nc`-prefixed internal ID plus the user-facing `nonConformanceId`. See the [quality overview](/docs/reference/quality#issues) for broader module context.
-An issue opens several ways: by hand from the issues list, from the shop floor in MES, from Slack, or **automatically** when an [inbound inspection](/docs/reference/quality#inbound-inspection) rejects a lot. Whichever door it comes through, it lands in the same lifecycle.
+Create an issue from the issue list, MES, or Slack. Carbon can also create one automatically when an [inbound inspection](/docs/reference/quality#inbound-inspection) rejects a lot. All sources use the same lifecycle.
## The lifecycle
@@ -39,9 +39,9 @@ Every issue carries a small set of classification fields. Type and location are
## Workflows: the 8D and its cousins
-A **workflow** is a reusable template, not a rigid state machine. It stores a rich-text **issue template** (the investigation write-up you start from) plus a preset priority, source, a list of required actions, and approval requirements. Picking a workflow when you raise an issue copies those presets in and drops the template into the issue's content.
+A **workflow** is a reusable template, not a state machine. It defines initial rich-text content, priority, source, required actions, and approval requirements. Selecting a workflow copies those values into the new issue.
-This is how Carbon models the <Term id="8d">8D</Term> method: an "8D workflow" is just a workflow whose required actions cover the eight disciplines. A "containment workflow" is a lighter one. Nothing about 8D is hard-coded. You compose it from the same action building blocks as any other workflow, and you can build your own.
+Carbon models <Term id="8d">8D</Term> as a workflow whose required actions cover the eight disciplines. 8D behavior is not hard-coded; custom workflows use the same action model.
## Required actions and their system categories
@@ -91,7 +91,7 @@ Closing an issue is where the affected material gets resolved. Each `nonConforma
## What an issue can point at
-An issue links to the documents and records it concerns through typed association tables. There are ten association types: **items**, **customers**, **suppliers**, **job operations**, **purchase-order lines**, **sales-order lines**, **shipment lines**, **receipt lines**, **tracked entities**, and **inbound inspections**. These are what let quality trace a defect back to exactly where it came from — a specific received lot, a specific job operation, a specific supplier — and what makes supplier quality a *derived* number rather than a scorecard you maintain by hand.
+Typed associations link an issue to **items**, **customers**, **suppliers**, **job operations**, **purchase-order lines**, **sales-order lines**, **shipment lines**, **receipt lines**, **tracked entities**, and **inbound inspections**. These links provide traceability to the source record and support derived supplier-quality metrics.
From the issue header you can also spin up a [change notice](/docs/reference/change-orders) directly, carrying the issue across as its source, when the fix is an engineering change rather than a one-off disposition.
diff --git a/docs/content/docs/reference/items.mdx b/docs/content/docs/reference/items.mdx
index 004175f2ba..389336e1ee 100644
--- a/docs/content/docs/reference/items.mdx
+++ b/docs/content/docs/reference/items.mdx
@@ -3,9 +3,9 @@ title: Items
description: "The master record for everything you make, buy, or stock: parts, materials, tools, and more."
---
-An **item** is the master record for anything Carbon tracks: a finished part, a raw material, a tool, a consumable. Orders, <Term id="method">methods</Term>, <Term id="job">jobs</Term>, and inventory all point back to it. Its human-facing **part number** is the readable id. The underlying id is an internal key you rarely see.
+An **item** is the master record for a finished part, raw material, tool, consumable, fixture, or service. Orders, <Term id="method">methods</Term>, <Term id="job">jobs</Term>, and inventory reference it. The **part number** is its readable ID; Carbon uses a separate internal key.
-An item's type, how it's replenished, and how it's tracked decide how it behaves everywhere downstream: whether it can be made or only bought, whether stock is counted, whether each unit needs a <Term id="serial">serial</Term>. Get the item right and the rest of the system follows.
+Item type, replenishment system, and tracking type determine whether the item is made or purchased, whether it contributes to stock, and whether units require <Term id="serial">serial</Term> or batch identifiers.
## Fields
@@ -29,7 +29,7 @@ The tracking type sets how units are counted. *Inventory* items are quantity-tra
## Revisions
-Each revision of a part is its **own item record**, sharing the same part number but a different revision. A design change creates a new revision rather than rewriting the old one, so jobs built against an earlier revision keep their history.
+Each part revision is a separate item record with the same part number and a different revision. Creating a revision preserves the item used by existing jobs.
<Callout type="info">
An item's <Term>costing method</Term>, one of *Standard*, *Average*, *FIFO*, or *LIFO*, lives on its cost record, not the item itself, and decides how consumption is valued.
diff --git a/docs/content/docs/reference/jobs.mdx b/docs/content/docs/reference/jobs.mdx
index f1a93fd30b..87dad4c406 100644
--- a/docs/content/docs/reference/jobs.mdx
+++ b/docs/content/docs/reference/jobs.mdx
@@ -3,9 +3,9 @@ title: Jobs
description: One run of production, covering a single item, a quantity to make, and its own copy of the method.
---
-A **job** is the unit of production work in Carbon. It pins down one item, how many to make, where, and by when, and carries its own copy of the <Term id="method">manufacturing method</Term> (the materials and operations) so the floor always builds from a fixed recipe, even as the part master changes underneath it.
+A **job** is a production order for one item, quantity, location, and due date. It contains a job-specific copy of the <Term id="method">manufacturing method</Term>, including materials and operations, so later changes to the item master do not alter released work.
-Everything on the shop floor hangs off a job: the schedule board places its <Term id="job-operation">operations</Term>, material is <Term id="material-issue">issued</Term> against it, time is logged to it, and cost accumulates into its <Term id="wip">work-in-process</Term>. A <Term id="sales-order">sales order</Term> line that's made to order becomes a job; planning turns a stock shortfall into one. It's the bridge between demand and the floor.
+The schedule places a job's <Term id="job-operation">operations</Term>; operators <Term id="material-issue">issue</Term> material and record time against it; and costs accumulate in <Term id="wip">work-in-process</Term>. Make-to-order <Term id="sales-order">sales order</Term> lines and planning shortages can create jobs.
## Fields
@@ -75,7 +75,7 @@ The **order** field sets each operation's position, and operation order (*After
### Time and output
-The floor reports two separate things against an operation. A <Term id="production-event">production event</Term> measures *time*, typed **Setup**, **Labor**, or **Machine**, with a start, an end, and the employee. A production quantity measures *units* (**Production**, [**Scrap**](/docs/reference/scrap), or **Rework**) and rolls up automatically into the operation's completed, scrapped, and reworked totals. Scrapped units don't count toward the target, so the operation keeps going until the good quantity is met. Logging time implies no output, and reporting output implies no particular time, which is what lets Carbon cost on actual events while measuring yield on actual quantities. Untracked materials are <Term id="backflush">backflushed</Term> as output is reported; tracked materials are issued deliberately.
+The floor records time and output separately. A <Term id="production-event">production event</Term> records **Setup**, **Labor**, or **Machine** time with start, end, and employee. A production quantity records **Production**, [**Scrap**](/docs/reference/scrap), or **Rework** units and updates operation totals. Scrap does not satisfy the target quantity. Untracked materials are <Term id="backflush">backflushed</Term> when output is reported; tracked materials are issued explicitly.
### Procedures
diff --git a/docs/content/docs/reference/kanban.mdx b/docs/content/docs/reference/kanban.mdx
index 1a96a9ee7f..cbeb5ffd35 100644
--- a/docs/content/docs/reference/kanban.mdx
+++ b/docs/content/docs/reference/kanban.mdx
@@ -3,9 +3,9 @@ title: Kanban
description: Scan-based pull replenishment. A kanban card ties an item to a bin, and scanning it fires a purchase order or a job.
---
-A <Term>kanban</Term> in Carbon is a physical pull signal: a printed card (or QR code) that lives with the stock it replenishes. It ties one item to a location and storage unit, carries a reorder quantity, and — when someone scans it — creates the downstream order to refill that bin. Nobody watches a number; the card *is* the trigger.
+A <Term>kanban</Term> is a physical pull signal represented by a printed card, QR code, or URL. It links an item, location, storage unit, and reorder quantity. Scanning the signal creates the purchase order or job needed to refill the bin.
-This is deliberately different from a [reordering policy](/docs/reference/reordering). A policy runs inside the planning engine and reasons about on-hand levels, demand, and reorder points. A kanban is manual and physical: a person empties a bin, scans the card, and an order appears. Use a policy for planned, calculated replenishment; use a kanban for two-bin shop-floor pull where a scan should just *do the thing*.
+A [reordering policy](/docs/reference/reordering) calculates suggestions from on-hand quantity, demand, and reorder points. Kanban replenishment is manual: scanning creates an order immediately. Use policies for planning-driven replenishment and kanban for scan-driven shop-floor pull.
## What a kanban holds
@@ -30,7 +30,7 @@ The replenishment system enum has three values (`Buy`, `Make`, `Buy and Make`),
## The scan flow
-Every kanban card carries three scan targets, one per **action**: `order`, `start`, and `complete`. Scanning opens a URL that runs the action and redirects you into the resulting document. The QR codes are color-coded so the right one is obvious on the floor: order is black, start is emerald, complete is blue.
+Each kanban has scan targets for `order`, `start`, and `complete`. A scan opens a URL, runs the action, and redirects to the resulting document. QR codes are black for order, emerald for start, and blue for complete.
The **order** scan (the create signal) branches on the replenishment system:
diff --git a/docs/content/docs/reference/maintenance.mdx b/docs/content/docs/reference/maintenance.mdx
index 02591259e4..9de63401fb 100644
--- a/docs/content/docs/reference/maintenance.mdx
+++ b/docs/content/docs/reference/maintenance.mdx
@@ -3,11 +3,11 @@ title: Maintenance
description: "Keeping work centers running: reactive and preventive maintenance dispatches."
---
-Maintenance in Carbon keeps the machines on the floor running. The unit of work is a **dispatch**, a work-order-like record raised against a **<Term>work center</Term>**, raised either reactively when something breaks or on a recurring preventive schedule. Execution happens on the floor in MES; authoring and reporting live in the back office under Resources.
+A maintenance **dispatch** records work against a **<Term>work center</Term>**. Dispatches are created reactively for failures or generated from preventive schedules. Operators execute them in MES; configuration and reporting are under Resources in the ERP.
## Dispatches
-A **maintenance dispatch** is one job of upkeep: what's wrong, which work center, who's on it, and the time and parts it took. It moves through a short lifecycle:
+A **maintenance dispatch** records the problem, work center, assignee, time, and parts. It uses this lifecycle:
<StatusFlow entity="maintenanceDispatch">
<Status name="Open">Raised, not yet picked up.</Status>
@@ -29,7 +29,7 @@ Maintenance targets a **work center**, not a <Term id="fixed-asset">fixed asset<
## Preventive schedules
-Recurring upkeep is defined as a **maintenance schedule**: a work center, a **frequency** (Daily, Weekly, Monthly, Quarterly, Annual), the parts it needs, and how far in advance to raise the work. A daily background job reads the active schedules and, when one is due within the advance window, generates an **Open** dispatch, tagged `Scheduled` and `Preventive`, with the schedule's parts copied onto it. Daily schedules honor per-weekday flags and can skip holidays.
+A **maintenance schedule** defines a work center, frequency (Daily, Weekly, Monthly, Quarterly, or Annual), required parts, and generation lead time. A daily background job creates an **Open** dispatch when an active schedule enters its advance window. The dispatch has source `Scheduled`, severity `Preventive`, and a copy of the scheduled parts. Daily schedules can select weekdays and exclude holidays.
## Blocking and OEE impact
diff --git a/docs/content/docs/reference/materials.mdx b/docs/content/docs/reference/materials.mdx
index 62857b9177..c1adc35633 100644
--- a/docs/content/docs/reference/materials.mdx
+++ b/docs/content/docs/reference/materials.mdx
@@ -3,13 +3,13 @@ title: Materials
description: The property tables that give a material its identity — substance, form, dimension, finish, grade, and type.
---
-A **material** is an [item](/docs/reference/items) of type *Material*: the raw stock you cut, form, and consume rather than a finished part. What makes it a material is a small set of structured **property tables**. Instead of typing "1/16-inch cold-rolled 304 stainless sheet" into a name field, you pick a **substance**, a **form**, a **dimension**, and optionally a **finish**, **grade**, and **type**. Those choices compose the material's identity and drive its readable name and code.
+A **material** is an [item](/docs/reference/items) of type *Material* used as raw stock. Structured property tables define its **substance**, **form**, **dimension**, and optional **finish**, **grade**, and **type**. Carbon uses these values to generate the material's identity, display name, and code.
Each material row (`material` table) carries only foreign keys into these lookups: `materialSubstanceId`, `materialFormId`, `dimensionId`, `finishId`, `gradeId`, and `materialTypeId`. All six are nullable, so a material can be as loosely or tightly specified as you need.
## The property tables
-Six lookup tables compose a material. Two describe the material in the abstract (**substance** and **form**); the rest are scoped to one of those, so the choices cascade.
+Six lookup tables compose a material. **Substance** and **form** are independent; the remaining choices are scoped by one or both and therefore cascade.
<FieldTable>
<Field name="Substance" type="materialSubstance">What the material is made of: steel, aluminum, stainless, titanium. Has a `name` and a `code`.</Field>
@@ -26,7 +26,7 @@ Substance and form stand alone. **Grade** and **finish** are picked from the lis
## Scope: system-wide or per company
-The property tables ship with a starter taxonomy. Every lookup has a **nullable `companyId`**: rows with `companyId` null are system-seeded and visible to every company; rows with your company id are your own additions. You inherit a working set of substances, forms, and grades out of the box and extend it per company without touching anyone else's.
+Carbon provides a starter taxonomy. Each lookup has a nullable `companyId`. Rows with `companyId` null are system values visible to every company; rows with a company ID are company-specific additions.
Uniqueness is enforced per scope so a system value and a company value never collide:
@@ -55,7 +55,7 @@ When Carbon generates the material and its ids, `materialSubstanceId` and `mater
## Naming and uniqueness
-The property choices are what make a material both readable and unique. Carbon composes the display name and code from the taxonomy rather than from free text: substance, form, and where set the finish, grade, and dimension names build the readable name, while the substance, form, and type **codes** build the material code. Two materials that resolve to the same combination of properties are the same material, which is the point of driving identity from the tables instead of a typed string.
+Carbon composes a material's display name from substance, form, and optional finish, grade, and dimension names. Substance, form, and type codes compose the material code. Property combinations provide a structured identity rather than relying on free text.
Because dimensions belong to forms and grades and finishes belong to substances, a valid material is always an internally consistent set of choices. You cannot pick a bar dimension for a sheet, or a stainless grade for aluminum, because those lists are filtered to the parent you already chose.
diff --git a/docs/content/docs/reference/mes.mdx b/docs/content/docs/reference/mes.mdx
index e34dd77159..9e6db71d0a 100644
--- a/docs/content/docs/reference/mes.mdx
+++ b/docs/content/docs/reference/mes.mdx
@@ -3,9 +3,9 @@ title: The MES app
description: The shop-floor surface where operators run operations, report quantities, issue material, and log their time.
---
-Carbon is two apps over one data model: the ERP is the office, the <Term>MES</Term> is the floor. Where a planner releases and schedules work in the ERP, an operator picks up that work here, on a station tablet or a shared kiosk, and reports it back in real time. This page is the scannable map of that surface. For the narrative walkthrough, read the [run the floor tour](/guides/floor); for the entities behind it, see [jobs](/docs/reference/jobs), [picking lists](/docs/reference/picking), and [quality](/docs/reference/quality).
+The <Term>MES</Term> app is Carbon's shop-floor interface. Planners release and schedule work in the ERP; operators execute and report that work from tablets or shared stations in MES. See the [run the floor tour](/guides/floor) for a walkthrough and [jobs](/docs/reference/jobs), [picking lists](/docs/reference/picking), and [quality](/docs/reference/quality) for the underlying records.
-Every mutation here hits the network. The MES keeps an IndexedDB read-cache for the item and people pickers so a scan stays snappy, but there is **no offline mode**: without a connection you cannot start, report, or issue anything.
+MES requires a network connection for all writes. It caches item and people picker data in IndexedDB for faster reads, but it has **no offline mode**. Operators cannot start work, report output, or issue material while disconnected.
## Getting onto the floor
@@ -15,7 +15,7 @@ Once in, the operator sets their context. If the company has more than one locat
### Console (shared-station) mode
-A single tablet bolted to a work center can't ask every operator to log in and out all shift. **Console mode** turns that station into a shared kiosk. It's gated by the `consoleEnabled` company setting (Business plan), and when on, the sidebar exposes a **"Console Mode"** toggle. Switching a station INTO console mode takes `settings_update` on the account the station is signed in with; switching it back out is open to anyone, so a station is never stuck.
+**Console mode** turns a station into a shared kiosk. It requires the Business plan and the `consoleEnabled` company setting. Enabling console mode requires `settings_update` permission on the signed-in account; any operator can disable it.
In console mode an operator identifies themselves with a **4-digit PIN**, not a full login. PINs are generated by Carbon and handed out by an admin — shown once when an operator is created or a PIN is reset, and stored only as a hash (see [shop-floor PIN accounts](/docs/reference/permissions#shop-floor-pin-accounts)). The station prompts to enter a PIN for the named operator, checks it, and attributes the work to that person. Three things stop it: **"Incorrect PIN"**, **"Too many incorrect PINs. Please wait a few minutes and try again."** after repeated wrong guesses, or **"No PIN set. Ask an admin to set a console PIN for you."** if the person has none yet.
@@ -25,7 +25,7 @@ A shared station is meant to hand off. **"Switch Operator"** re-prompts for a PI
## The operations board
-The released work lands on the **"Schedule"** board: a Kanban with one column per <Term>work center</Term>, each column holding that center's queued <Term id="job-operation">operations</Term> sorted by **dispatch priority** so the top card is always the next thing to run.
+Released work appears on the **Schedule** board, with one column per <Term>work center</Term>. Each column lists queued <Term id="job-operation">operations</Term> by dispatch priority; the first card is the next scheduled operation.
The board is **display and filter only**. A Display popover lets each station tune its own view, toggling **"Empty work centers"** on or off and showing or hiding **"Customer"**, **"Description"**, **"Due Date"**, **"Duration"**, **"Progress"**, **"Status"**, **"Sales Order"**, and **"Thumbnail"** on each card. Filters narrow the queue by **"Work Center"**, **"Process"**, **"Tag"**, or **"Assignee"**.
@@ -63,7 +63,7 @@ Open an operation and the station panel is where the shift actually happens. A b
An operation whose type is **Assembly** opens a guided 3D view instead of a plain part model: the assembly plays back one step at a time, and each step lights up the components it installs.
-Deep into a build this creates a problem. The parts already fitted sit between the camera and the ones the current step is naming, so the operator is looking at a finished-looking lump and guessing where the next piece goes. A view control in the player toolbar answers that directly:
+The player toolbar provides three visibility modes for exposing the current step:
<FieldTable>
<Field name="Build">The assembly as it stands on the bench right now: everything fitted so far is solid, and anything from a later step is not drawn. This is the default.</Field>
diff --git a/docs/content/docs/reference/methods.mdx b/docs/content/docs/reference/methods.mdx
index d51501bbf3..609da1c341 100644
--- a/docs/content/docs/reference/methods.mdx
+++ b/docs/content/docs/reference/methods.mdx
@@ -3,9 +3,7 @@ title: Methods & sourcing
description: How Carbon decides whether each part is made, bought, or pulled from stock, and how a job gets its own copy of the recipe.
---
-A part's **manufacturing method** is its recipe: the **method materials** (its bill of materials) and the
-**method operations** (its routing). Every made part has one, and it's where the answer to "how is this
-built?" actually lives.
+A part's **manufacturing method** defines its **method materials** (bill of materials) and **method operations** (routing). Every made part requires a method.
## Method type
@@ -25,14 +23,13 @@ method that references the part — draft methods only; active and archived meth
## Method type vs replenishment system
-These are two different questions, and Carbon keeps them separate:
+Method type and replenishment system answer different questions:
- **Method type** answers *how does this part get into its parent?* <Term>Make to Order</Term>, <Term>Purchase to Order</Term>, or <Term>Pull from Inventory</Term>.
- **Replenishment system** answers *how is this part replenished overall, and which planning queue does it
land in?* `Buy`, `Make`, or `Buy and Make`.
-A part can be made for one parent and pulled from stock for another; the replenishment system is what
-planning reads to decide between a job and a purchase order.
+A part can be made for one parent and pulled from stock for another. Planning uses the replenishment system to choose between a job and purchase order.
## Kit or subassembly
@@ -46,9 +43,7 @@ A **Make to Order** item inside a bill of materials is one of two things:
## Get Method
-When you create a job, Carbon runs **Get Method**. It copies the part's method into a job-specific copy.
-The job edits that copy; the part master is never touched silently. Push a proven change back up and the
-next job inherits it.
+When you create a job, **Get Method** copies the part's method into a job-specific record. Changes to that copy do not modify the part master. If an approved change is pushed back to the master, later jobs inherit it.
<Callout type="info">
Methods are versioned: **Draft**, **Active**, or **Archived**. Only a Draft is editable; an Active method
diff --git a/docs/content/docs/reference/notifications.mdx b/docs/content/docs/reference/notifications.mdx
index 96ecf5a561..6d06677c55 100644
--- a/docs/content/docs/reference/notifications.mdx
+++ b/docs/content/docs/reference/notifications.mdx
@@ -3,7 +3,7 @@ title: Notifications
description: Assignments, approvals, expirations, and reminders reach the right people over in-app, email, and Slack, with per-user channel opt-outs by topic.
---
-A <Term>notification</Term> tells one person that something needs their attention: a job was assigned to them, an approval is waiting, a gauge's calibration lapsed. Carbon fans each one out to up to three channels: the **in-app inbox** (the bell in the top bar), **email**, and **Slack**. In-app is always on; email and Slack are extras a user can mute per topic. One rule holds everywhere: Carbon never notifies you about your own action.
+A <Term>notification</Term> alerts one person to an assignment, approval, expiration, or other event. Carbon can deliver it through the **in-app inbox** (the bell in the top bar), **email**, and **Slack**. In-app delivery is always enabled; users can mute email and Slack by topic. Carbon does not notify users about their own actions.
## What raises a notification
@@ -11,16 +11,16 @@ A <Term>notification</Term> tells one person that something needs their attentio
<Field name="Assignments">Someone is put on a record (job, order, RFQ, invoice, issue, risk, procedure, picking list, stock transfer, dispatch, training). The assignee is the recipient.</Field>
<Field name="State changes & responses">An approval was **requested**, **approved**, or **rejected**; a job **completed**; a change notice entered a new stage; a quote **expired**; a customer or supplier responded to a digital or supplier quote.</Field>
<Field name="Expirations & reminders">Time-driven, raised by scheduled jobs: a **gauge calibration expired**, a **maintenance dispatch** was auto-created, or the weekly **training reminder** rolls up a person's outstanding trainings.</Field>
- <Field name="Workflow">A [workflow](/docs/reference/workflows) reached a **"Notify someone"** step, the only path where you compose the wording yourself. Lands under the **General** topic.</Field>
+ <Field name="Workflow">A [workflow](/docs/reference/workflows) reached a **"Notify someone"** step. This is the only notification with user-defined wording, and it uses the **General** topic.</Field>
</FieldTable>
<Callout type="note">
-Notifications are informational, never an approval step. Marking one read changes no record; the action lives on the underlying document, and the notification just points you there.
+Notifications are informational. Marking one as read does not change the underlying record or complete an approval.
</Callout>
## Topics and channels
-Every event maps to exactly one **topic**, the grouping key for the inbox and for muting: Approval, Job, Sales, Quote, Purchasing, Inventory, Quality, Maintenance, Training, Suggestion, Items, and General. Eleven are user-facing on the settings page; only **Items** has no toggle.
+Every event maps to one **topic**, which controls inbox grouping and channel preferences: Approval, Job, Sales, Quote, Purchasing, Inventory, Quality, Maintenance, Training, Suggestion, Items, or General. The settings page exposes eleven topics; **Items** has no toggle.
The channels differ in what they require:
@@ -40,11 +40,11 @@ Each user controls their own email and Slack delivery under **Account → Notifi
<Screenshot label="Account → Notifications preferences grid: topic rows, Email and Slack columns, switches per cell" caption="Muting is per topic, per channel, per company. The in-app inbox always gets everything." />
-The default is **on**; flipping a switch off mutes that one topic on that one channel, scoped to the current company. Muting Purchasing on Slack still leaves Purchasing emails, still leaves Slack DMs for Sales, and doesn't carry to another company you belong to. The Slack column appears only when Slack is connected; the email column always shows, with a note when the plan won't deliver it.
+Each channel is enabled by default. Turning off a switch mutes only that topic and channel for the current company. For example, muting Purchasing in Slack does not mute Purchasing email, other Slack topics, or notifications in another company. The Slack column appears only when Slack is connected. The email column always appears and indicates when the plan does not support delivery.
## Who receives an expiration or reminder
-Assignments have an obvious recipient. The time-driven events resolve their own audience: a lapsed gauge calibration notifies a company-configured user list (set under [calibration](/docs/reference/calibration) settings), an auto-created dispatch notifies every employee on that work center, and the training reminder is a weekly per-person digest. There is no general "notification group" entity — only gauge-calibration expiry uses a configured list; everything else derives recipients from the record itself.
+Assignment events notify the assignee. Time-driven events derive recipients as follows: an expired gauge calibration notifies the user list in [calibration](/docs/reference/calibration) settings, an automatically created dispatch notifies all employees at its work center, and the weekly training reminder sends each person a digest. Carbon has no general notification-group entity; only calibration expiration uses a configured list.
## The inbox
@@ -82,7 +82,7 @@ Slack needs an active integration and a matching Slack account for the recipient
Expected: in-app is always written and cannot be turned off. Mutes affect only email and Slack.
### I turned a channel on but it still doesn't deliver
-On just removes the mute; it doesn't override the channel's preconditions (plan feature for email, integration + account for Slack).
+Enabling a channel removes the mute but does not bypass its prerequisites: the plan feature for email, or the integration and account mapping for Slack.
### I did something myself and got no notification
The sender is filtered out of the recipient list. Self-assignments notify nobody.
diff --git a/docs/content/docs/reference/onboarding.mdx b/docs/content/docs/reference/onboarding.mdx
index 0c8fc862a5..4bff740641 100644
--- a/docs/content/docs/reference/onboarding.mdx
+++ b/docs/content/docs/reference/onboarding.mdx
@@ -3,9 +3,9 @@ title: Getting started
description: The first-run setup wizard that creates your company, seeds its baseline configuration, and hands you a working tenant.
---
-A brand-new account has no company yet, so Carbon holds you in the setup wizard at `/onboarding` until one exists. Onboarding counts as complete when the company has a **name** and at least **one location**; those two facts are the gate, and finishing the Company step supplies both.
+A new account remains in the `/onboarding` wizard until it belongs to a company. Onboarding is complete when the company has a **name** and at least **one location**. Submitting the Industry step creates both.
-<Screenshot label="The setup wizard's Company step: name, address, base currency, and website fields" caption="The one step that creates a working tenant." />
+<Screenshot label="The setup wizard's Company step: name, address, base currency, and website fields" caption="Company details are saved for tenant provisioning on the next step." />
<Steps>
<Step>
@@ -22,15 +22,15 @@ A brand-new account has no company yet, so Carbon holds you in the setup wizard
</Step>
</Steps>
-One step appears conditionally: **Plan** (Carbon Cloud only: Stripe checkout; self-hosted installs go straight to the app).
+The **Plan** step appears only in Carbon Cloud and opens Stripe checkout. Self-hosted installations skip it.
-<Callout type="note" title="Creating the company does a lot of quiet work">
-Creating the company also creates a **"Headquarters"** location from your address, links you as an employee, and seeds the baseline: chart of accounts, posting accounts, numbering sequences, payment terms, units of measure. Fiscal year, periods, and sequences are deliberately *not* asked for — they come pre-seeded and you tune them later under [company settings](/docs/reference/company-settings).
+<Callout type="note" title="Company provisioning">
+Creating the company also creates a **"Headquarters"** location from its address, links you as an employee, and seeds the chart of accounts, posting accounts, numbering sequences, payment terms, and units of measure. Fiscal year, periods, and sequences use seeded defaults that you can change under [company settings](/docs/reference/company-settings).
</Callout>
## Where to go next
-The wizard's job is a working tenant, not a configured one. Refine the seeded settings under [company settings](/docs/reference/company-settings), set up your document numbering under [sequences](/docs/reference/sequences), add your team under [people](/docs/reference/people), and read the [guides](/guides) for how work flows through Carbon once you're set up.
+After onboarding, review [company settings](/docs/reference/company-settings), configure document numbering under [sequences](/docs/reference/sequences), add users under [people](/docs/reference/people), and use the [guides](/guides) for end-to-end workflows.
<AgentContext>
## Internals and troubleshooting
@@ -38,7 +38,7 @@ The wizard's job is a working tenant, not a configured one. Refine the seeded se
The completion gate is the layout loader (`routes/onboarding+/_layout.tsx:33-44`); step order is `utils/path.ts:2103-2109`; conditional steps at `_layout.tsx:49-53`. Theme validator `settings.models.ts:306-311`; profile `onboardingUserValidator` (`account.models.ts:12-17`); company `addressValidator` (`settings.models.ts:95-107`). Provisioning runs `provisionOnboardingCompany` (`services/onboarding.server.ts`) with the seed via `seedCompany` (`settings.service.ts:751-765`).
### Stuck in the setup wizard / keeps redirecting to /onboarding
-The company lacks a name or a location — there is no `onboarded` flag. Complete the Company and Industry steps; the Industry step creates both at once.
+The company lacks a name or a location — there is no `onboarded` flag. Complete the Company step, then submit the Industry step; the Industry step creates both at once.
### "Restore from a backup" isn't offered on the Industry step
Internal Carbon staff accounts only. Its absence for regular sign-ups is expected.
diff --git a/docs/content/docs/reference/payments.mdx b/docs/content/docs/reference/payments.mdx
index 74df4f82cf..6ebb605ce6 100644
--- a/docs/content/docs/reference/payments.mdx
+++ b/docs/content/docs/reference/payments.mdx
@@ -3,10 +3,10 @@ title: Payments
description: Cash receipts, disbursements, and credit or debit memos — the posted transactions that settle AR and AP.
---
-A **payment** is a posted cash event that settles what a party owes you or you owe them. A **Receipt** is money in from a customer; a **Disbursement** is money out to a supplier. Alongside cash, a **credit or debit memo** adjusts a balance without cash. Both are standalone documents with their own lifecycle, and both settle invoices through one shared row: the [invoice settlement](/docs/reference/invoices#settling-an-invoice). This page is the entity view. For settlement seen from the invoice's side, see [Invoices](/docs/reference/invoices).
+A **payment** is a posted cash transaction that settles receivables or payables. A **Receipt** records incoming cash; a **Disbursement** records outgoing cash. A **credit or debit memo** adjusts a balance without moving cash. Payments and memos are independent documents with separate lifecycles, but both apply to invoices through an [invoice settlement](/docs/reference/invoices#settling-an-invoice). See [Invoices](/docs/reference/invoices) for the invoice-side view.
<Callout type="note">
-A payment is a real transaction record, not a field on an invoice. You create a payment, stage which invoices it applies to, then post it. Marking an invoice "Paid" is a *derived* status that follows from posted settlements, not something you set.
+A payment is a transaction record, not an invoice field. Create the payment, stage its invoice applications, and post it. **Paid** is a derived invoice status based on posted settlements.
</Callout>
## Payments
diff --git a/docs/content/docs/reference/people.mdx b/docs/content/docs/reference/people.mdx
index 61385b54da..70aee11099 100644
--- a/docs/content/docs/reference/people.mdx
+++ b/docs/content/docs/reference/people.mdx
@@ -3,9 +3,9 @@ title: People
description: The HR master data a company sets up — employees, departments, shifts, holidays, custom attributes, and time cards.
---
-**People** is where you manage the human side of a company: the employees who work there, how they're organized, when they're scheduled, and the custom fields you track against each one. It sits alongside identity and access — an employee record is the org-and-scheduling layer, while login, roles, and what someone is *allowed* to do live in [permissions](/docs/reference/permissions).
+**People** manages employees, organizational structure, schedules, and employee attributes. An employee record defines company membership and work assignments. Login methods, roles, and access grants are managed through [permissions](/docs/reference/permissions).
-A person in Carbon is one record split across three tables. The `user` is the global login identity. The `employee` is that user's membership in *this* company. The `employeeJob` holds their org placement — title, location, department, shift, and manager. They share the same id and are always scoped to a company, so the same person can be an employee of more than one company with a different title and manager in each.
+Carbon represents a person across three tables. `user` is the global login identity. `employee` represents membership in one company. `employeeJob` stores the person's title, location, department, shift, and manager. The records share an ID and are company-scoped, so one user can have different employment details in multiple companies.
## Employees
@@ -56,7 +56,7 @@ A **shift** is a named work schedule tied to a location: a start time, an end ti
Shifts schedule both people and machines. A shift assigned to an employee defines when that person can be scheduled; a shift assigned to a [work center](/docs/reference/work-centers) defines that station's operating hours. And for operations whose process requires an ability, who's on shift *is* the binding constraint — no qualified operator on shift means the operation waits.
</Callout>
-Deleting a shift is a soft delete — the record is marked inactive rather than removed, so historical assignments stay intact.
+Deleting a shift marks it inactive instead of removing it, preserving historical assignments.
## Holidays
diff --git a/docs/content/docs/reference/period-close.mdx b/docs/content/docs/reference/period-close.mdx
index dc0e8d2ed0..4e6b7d370d 100644
--- a/docs/content/docs/reference/period-close.mdx
+++ b/docs/content/docs/reference/period-close.mdx
@@ -3,13 +3,13 @@ title: Period close
description: "Locking and closing a fiscal period: the close checklist, what a locked period stops, and how to reopen."
---
-Bookkeeping happens continuously, but the books get *finalized* one period at a time. An <Term id="accounting-period">accounting period</Term> is a dated window (a calendar month) that every posting falls into by its posting date. <Term id="period-close">Closing it</Term> is the act of declaring that month's numbers final: no more postings land in it, and its balances are snapshotted for reporting. Carbon runs this as a three-state lifecycle with a NetSuite-style checklist gating the close.
+An <Term id="accounting-period">accounting period</Term> is a calendar month assigned to transactions by posting date. <Term id="period-close">Closing a period</Term> prevents further postings and snapshots its balances for reporting. Carbon uses a three-state lifecycle and requires the close checklist to pass before closure.
-The whole surface is gated on **accounting enabled** (`companySettings.accountingEnabled`). With accounting off, no journals are written, so there is nothing to close.
+Period close is available only when accounting is enabled (`companySettings.accountingEnabled`). When accounting is disabled, Carbon does not create journals or periods to close.
## The close lifecycle
-A period carries a **close status** (`periodCloseStatus`) that moves in one direction, then back only by explicit reopen. This is a separate axis from the legacy `Active`/`Inactive` flag, which just marks the current period for lazy auto-creation.
+A period's **close status** (`periodCloseStatus`) advances in one direction unless explicitly reopened. It is independent of the legacy `Active`/`Inactive` flag, which marks the current period for lazy auto-creation.
<StatusFlow entity="accountingPeriod">
<Status name="Open">Postings land freely. Operational documents (receipts, shipments, invoices, payments) and journals both post by their date.</Status>
diff --git a/docs/content/docs/reference/permissions.mdx b/docs/content/docs/reference/permissions.mdx
index cc828e49ce..2543e8ad1d 100644
--- a/docs/content/docs/reference/permissions.mdx
+++ b/docs/content/docs/reference/permissions.mdx
@@ -3,9 +3,9 @@ title: Permissions and access
description: How Carbon decides who can see and change what, from the module-action model to employee types, groups, invites, and shop-floor PIN accounts.
---
-Everyone who works in Carbon signs in against one company, and Carbon decides what they can do from a set of small, explicit grants. A grant is a pair: a **module** (a slice of the app, like Sales or Inventory) and an **action** on it (view, create, update, or delete). Grant someone `sales_view` and they can read sales orders; grant `inventory_update` and they can edit inventory. Nothing is implied and nothing is global. A person with no grants can sign in and see nothing.
+Carbon authorizes each user through explicit grants scoped to a company. Each grant combines a **module**, such as Sales or Inventory, with an **action**: view, create, update, or delete. For example, `sales_view` permits reading sales records, and `inventory_update` permits editing inventory. Grants do not imply other grants; a user with none can sign in but cannot access any module.
-You rarely set those grants one at a time. Each employee gets an **employee type** that carries a template of grants, and you tune the exceptions per person from there. This page is the map of that system, from the permission model at the bottom to the people at the top. For the individuals themselves see [people](/docs/reference/people); for programmatic access that uses the same model, see [API keys](/docs/building/api-keys). Permissions decide what someone may do once they are in; for how they prove who they are on the way in, see [two-factor authentication](/docs/reference/two-factor).
+An **employee type** provides a grant template, with per-employee exceptions. See [People](/docs/reference/people) for employee records, [API keys](/docs/building/api-keys) for programmatic access under the same model, and [two-factor authentication](/docs/reference/two-factor) for sign-in security.
## The module-action model
@@ -49,7 +49,7 @@ Every other type is yours to create, rename, and delete. A company can hold at m
## Per-person overrides and bulk edits
-A type gives everyone the same start; real people need exceptions. Open a single employee under **Settings → Users → Accounts** and their permission matrix is pre-filled from their type. Check or uncheck any cell to override just that person. Their type stays the same as a label. Switching the type from the person's screen doesn't silently rewrite their grants either — Carbon asks first whether you want to overwrite the current set with the new type's template or keep what they have.
+An employee's permission matrix under **Settings → Users → Accounts** starts with the grants from their employee type. Checking or clearing a cell creates a per-employee exception without changing the type. When you switch types, Carbon asks whether to replace the current grants with the new template or preserve them.
When a change needs to reach many people at once, use the **bulk permission editor**. Select the users, pick a mode, then set the matrix:
@@ -80,7 +80,7 @@ An invite is a company-scoped record keyed by email, and it carries the permissi
## Shop-floor PIN accounts
-Not everyone who needs to touch Carbon has an email inbox. A machinist on the floor signs in to the [MES](/docs/reference/mes) with a **4-digit PIN** on a shared station tablet, not a magic link. These are **console operators**, and they're a distinct kind of account.
+**Console operators** sign in to [MES](/docs/reference/mes) on a shared station with a **4-digit PIN** instead of an email-based login. They are a separate account type.
Add one under **Settings → Users → Operators** (visible only when console mode is enabled for the company) with a name and a location. Carbon creates a lightweight account with no email login, assigns it the **Console Operator** employee type automatically, and generates a 4-digit PIN that is shown once, when the operator is created — Carbon stores only a hash of it, so copy it then. On the shop floor the operator taps their name and enters the PIN, which Carbon checks before starting their session. If a PIN is lost, reset it from the same screen to generate a new one; the old PIN stops working immediately. Resetting an operator's PIN takes `users_update`; setting a console PIN for any other employee (from the **Accounts** list) also takes `settings_update`.
@@ -122,7 +122,7 @@ The person has no PIN on record, and PINs are never chosen on the floor: an admi
A bulk action — bulk permission edit, group edit, deactivate, resend/revoke invite — was submitted with no users selected. Select at least one user first.
### A user can sign in but sees nothing / can't open a module
-Permissions are explicit grants; nothing is implied. A person with no `<module>_view` grant can't see that module's pages at all. Grant the needed `<module>_<action>` via their employee type or a per-person override. The database enforces the same grants through row-level security, so this holds even for API access, not just hidden buttons.
+Permissions are explicit. Without `<module>_view`, a user cannot access the module's pages. Assign the required `<module>_<action>` through an employee type or per-user override. Row-level security enforces the same grants for API access.
### Editing an employee type didn't change existing people's access
Changing a type's permissions only sets the defaults for people assigned *after* the change; employees already on that type keep their current grants. To push the change to existing staff, use the bulk permission editor (**Update** mode to overwrite, **Add** to layer on).
diff --git a/docs/content/docs/reference/picking.mdx b/docs/content/docs/reference/picking.mdx
index 7138afdc22..fecd36a5e9 100644
--- a/docs/content/docs/reference/picking.mdx
+++ b/docs/content/docs/reference/picking.mdx
@@ -3,7 +3,7 @@ title: Picking lists
description: Staging a job's materials from the warehouse to the point of use, tracked line by line.
---
-A <Term id="picking-list">picking list</Term> is a set of instructions to pull a job's materials out of the warehouse and stage them where the work happens. Each line names one material, how much to pick, where it lives now, and where it's going: the <Term>lineside</Term> bin at the operation's <Term id="work-center">work center</Term>. A pick doesn't consume the stock; it *moves* it, so production can draw it down later.
+A <Term id="picking-list">picking list</Term> directs warehouse staff to stage job materials at the point of use. Each line specifies the material, quantity, source, and destination <Term>lineside</Term> bin at the operation's <Term id="work-center">work center</Term>. Picking transfers stock without consuming it; production consumes it later.
## What a picking list picks against
diff --git a/docs/content/docs/reference/planning.mdx b/docs/content/docs/reference/planning.mdx
index e54871d0d6..4ca5148bc3 100644
--- a/docs/content/docs/reference/planning.mdx
+++ b/docs/content/docs/reference/planning.mdx
@@ -3,13 +3,11 @@ title: Planning (MRP)
description: How demand turns into suggested jobs and purchase orders — and where that ends and scheduling begins.
---
-Planning answers one question: *what should we make or buy, and how much?* Carbon's <Term>MRP</Term> looks at everything you owe and everything you have coming, and turns the gap into suggested orders that you choose to act on.
-
-Without planning you'd reorder by hand. MRP nets demand against supply across the whole <Term id="bom">bill of materials</Term>, so a shortfall on a top-level satellite surfaces as the right quantity of every component, offset for its <Term>lead time</Term> — before you're caught short.
+Planning determines what to make or buy and in what quantity. Carbon's <Term>MRP</Term> nets demand against supply across the complete <Term id="bom">bill of materials</Term>. It converts shortages into suggested orders and offsets component demand by <Term>lead time</Term>.
## Two stages
-Planning runs in two distinct passes, and conflating them is the usual mistake:
+Planning has two distinct stages:
1. **MRP, explode and net.** The engine explodes demand through bills of material, nets it against on-hand plus open jobs and purchase orders, and writes period-bucketed demand forecasts (plus the demand and supply *actuals* it read). It does **not** apply <Term id="reorder-point">reorder points</Term> and does **not** create orders.
2. **Planning views, suggest a quantity.** The production and purchasing planning pages read those forecasts, project running stock week by week, and apply each item's **<Term id="reordering-policy">reorder policy</Term>** to propose a quantity to order.
@@ -34,7 +32,7 @@ Each item, per location, carries a **reordering policy** that decides how a sugg
## From suggestion to order
-An item's **<Term>replenishment system</Term>** routes where its shortfall shows up: *Make* items surface on the production planning page as suggested <Term id="job">jobs</Term>, *Buy* items on the purchasing page as suggested POs. Choosing **Order** creates a real job or purchase order at status **"Planned"** — persisted from planning, but not yet released into the normal lifecycle.
+An item's **<Term>replenishment system</Term>** determines where its shortage appears. *Make* items produce suggested <Term id="job">jobs</Term> on the production planning page; *Buy* items produce suggested POs on the purchasing page. Choosing **Order** creates a saved job or purchase order with status **"Planned"**, pending release into its normal lifecycle.
<Callout type="info">
**"Planned"** is a real, saved job or PO that came from a planning suggestion and is waiting to be released — distinct from a hand-started **"Draft"**.
@@ -42,7 +40,7 @@ An item's **<Term>replenishment system</Term>** routes where its shortfall shows
## Planning vs scheduling
-Planning decides *what and how much*; **scheduling** decides *when and where*. Once a job exists, the scheduling engine places its <Term id="operation">operations</Term> onto <Term id="work-center">work centers</Term> and computes their dates — it never changes quantities. The two are separate subsystems that meet at the job: planning finalizes it, scheduling sequences it onto the floor.
+Planning determines quantities; **scheduling** determines timing and work-center allocation. After a job exists, scheduling places its <Term id="operation">operations</Term> on <Term id="work-center">work centers</Term> and calculates dates without changing quantities.
## Related
diff --git a/docs/content/docs/reference/pricing.mdx b/docs/content/docs/reference/pricing.mdx
index 9926ed3cd6..1b375a1810 100644
--- a/docs/content/docs/reference/pricing.mdx
+++ b/docs/content/docs/reference/pricing.mdx
@@ -3,7 +3,7 @@ title: Pricing rules and overrides
description: How Carbon resolves the price on a line, from base price through overrides and rules.
---
-When you add an item to a <Term>quote</Term> line or a <Term id="sales-order">sales order</Term> line, Carbon doesn't just copy the item's list price. It runs a resolution engine: it starts from a base price, applies any customer-specific override, then layers on discount and markup rules, and records the whole computation as a trace on the line. Two mechanisms feed that engine — <Term id="price-override">price overrides</Term> (per-customer negotiated prices with quantity breaks) and <Term id="pricing-rule">pricing rules</Term> (company-wide discount/markup logic). This page covers both, and exactly what wins when several apply.
+Carbon resolves the unit price for each <Term>quote</Term> or <Term id="sales-order">sales order</Term> line. It starts with a base price, selects an applicable <Term id="price-override">price override</Term>, applies matching <Term id="pricing-rule">pricing rules</Term>, and stores a trace of the calculation on the line. Overrides define negotiated prices and quantity breaks; rules define company-wide discounts and markups.
## Pricing rules
@@ -107,7 +107,7 @@ Resolution runs when the item or quantity changes on a line and fills in the uni
The same engine prices both surfaces. On a **quote line** it runs during cost rollup and re-price. On a **sales order line** the line form calls the same resolution as you pick an item or change the quantity, filling the unit price and storing the trace. Both line types carry the resolved price and its provenance, so a price traces back to the exact override and rule that produced it.
-There's no separate "price list" document in Carbon — the price list is simply the set of overrides scoped to a customer or customer type, and the resolution is computed in the application, not in the database.
+Carbon has no separate price-list document. A price list is the set of overrides scoped to a customer or customer type. The application resolves prices; the database does not.
## Related
diff --git a/docs/content/docs/reference/printing.mdx b/docs/content/docs/reference/printing.mdx
index 361283ecc8..959faf5f19 100644
--- a/docs/content/docs/reference/printing.mdx
+++ b/docs/content/docs/reference/printing.mdx
@@ -3,9 +3,9 @@ title: Printing & labels
description: "Printer routing, ZPL and PDF labels, and the print-job queue that turns a receipt or a finished job into a label on a shelf."
---
-When you post a receipt, split a batch, or finish the first operation on a job, Carbon can put a physical label on the part without you asking. That path is the printing system: a queue of print jobs, a set of **printer routes** that map a location and a context to a physical printer, and two renderers, ZPL for thermal label printers and PDF for documents.
+Carbon can print a physical label automatically when you post a receipt, split a batch, or complete a job's first operation. The printing system consists of a print-job queue, **printer routes** that map location and context to a device, and renderers for thermal-label ZPL and document PDF.
-This is a separate machine from the PDF documents Carbon emails and archives (invoices, purchase orders, quotes, job travelers). Those are generated on demand and delivered as files. Printing is about getting bytes to a **physical printer** on the shop floor, and its default output is a thermal ZPL label, not a page.
+This system is separate from generated PDFs such as invoices, purchase orders, quotes, and job travelers. Those documents are delivered as files; printing sends output to a **physical printer**. Its default output is a thermal ZPL label.
## Two renderers, one queue
@@ -62,7 +62,7 @@ Each context row also carries an **Auto-print** switch. When it's on, the matchi
The auto-print switch defaults **on** for a context that has no explicit entry, even when the location default has auto-print off. If you want a location's shipping station silent, set its shipping row explicitly, don't rely on the default row.
</Callout>
-Because routing is resolved from a Redis cache (key `printing:{companyId}:{locationId}:{context}`, 1-hour TTL), any change to a route or an assignment invalidates the cache for the company. If you edit a printer and the old one keeps printing, the cache is the thing that just got cleared for you on save.
+Printer routing uses a one-hour Redis cache at `printing:{companyId}:{locationId}:{context}`. Saving a route or assignment invalidates the company's cached routing data.
## The print-job queue
@@ -86,7 +86,7 @@ Print jobs are pruned on a schedule: completed jobs after 30 days, failed jobs a
## Auto-print behavior
-Auto-print is the point of the whole system: labels appear when the physical world moves, no button. After a business event Carbon resolves the printer config for the relevant location and context, checks its `autoPrint` flag (treated as **on** when nothing is configured), and enqueues a job. The whole block is wrapped in try/catch so a printer problem never blocks the receipt, shipment, or job it's attached to.
+After a supported business event, Carbon resolves the printer configuration for the location and context, checks `autoPrint` (defaults to **on** when unset), and enqueues a job. Printing failures do not block the receipt, shipment, or job that triggered them.
The wired-in events:
@@ -100,12 +100,12 @@ The wired-in events:
To stop a station auto-printing, turn off Auto-print on that location's context row. To trigger a print by hand instead, use the **Print** button on the relevant screen, or send a source document to the manual print route (`/x/print`), which validates the request and enqueues the same kind of job.
<Callout type="warn">
-Automatic prints for the same source document are **de-duplicated within 30 seconds**. If two events fire for one entity in quick succession, the second is dropped rather than printing a duplicate label. Manual prints and reprints are never de-duplicated.
+Automatic prints for the same source document are **deduplicated within 30 seconds**. Carbon drops the second event. Manual prints and reprints are not deduplicated.
</Callout>
## Print vs download
-Not every screen has a configured printer. The **Print** button adapts: if the location has any printer routes, it opens a printer picker (pre-selecting the resolved default) and enqueues a job on confirm. If there are no routes at all, it opens a **download** modal instead, offering the same label as a ZPL or PDF file to save and print yourself. So a shop with no ProxyBox printers still gets labels, just as downloads rather than pushes.
+When a location has printer routes, **Print** opens a printer picker with the resolved default selected and enqueues a job after confirmation. With no routes, it opens a **download** modal for saving the label as ZPL or PDF.
## Label sizes
@@ -140,7 +140,7 @@ Most silent failures are configuration, not crashes. Check, in order: (1) the lo
The location/context resolved to no printer *and* auto-print was off, or the source document isn't one Carbon auto-prints from. Auto-print only fires on receipt post, shipment post, stock-transfer split, and MES first-operation completion. For anything else, use the **Print** button or the manual route.
### "Print jobs already exist for … …"
-The 30-second auto-dedupe fired: an automatic print job for the same source document id was created less than 30 seconds ago, so this one was dropped (non-retriable) to avoid a duplicate label. Expected when two events fire for one entity in quick succession. To force a second copy, reprint from the print jobs list — reprints aren't de-duplicated.
+An automatic print job for the same source document ID was created within 30 seconds, so Carbon dropped this non-retriable duplicate. To print another copy, use **Reprint** from the print-jobs list; reprints are not deduplicated.
### "Document type "…" requires a BinderyPress template."
The job's document type has no built-in renderer and the route has no `templateId` (or no BinderyPress key is configured). Either assign a route whose format Carbon can render built-in, or set a BinderyPress `templateId` on the printer route.
diff --git a/docs/content/docs/reference/purchase-orders.mdx b/docs/content/docs/reference/purchase-orders.mdx
index be3db50db2..e5548c1152 100644
--- a/docs/content/docs/reference/purchase-orders.mdx
+++ b/docs/content/docs/reference/purchase-orders.mdx
@@ -3,9 +3,9 @@ title: Purchase orders
description: "A commitment to a supplier: what to receive, and what you'll be billed for."
---
-A **purchase order** is a commitment to buy from a supplier. It may come from comparing <Term id="supplier-quote">supplier quotes</Term> or be raised directly, and it's the document <Term id="receipt">receipts</Term> and <Term id="invoice">supplier invoices</Term> reconcile against.
+A **purchase order** commits the company to buy from a supplier. It can be created directly or from a <Term id="supplier-quote">supplier quote</Term>. <Term id="receipt">Receipts</Term> and <Term id="invoice">supplier invoices</Term> reconcile against its lines.
-Like a <Term id="sales-order">sales order</Term> in reverse, a purchase order line keeps two independent counters: how much has been received, and how much has been invoiced. It only closes when both are satisfied. Receiving and billing advance the same order along separate axes.
+Each purchase-order line tracks received and invoiced quantities independently. The line closes only after both quantities are satisfied, allowing receiving and billing to advance separately.
## Line fields
diff --git a/docs/content/docs/reference/quality-documents.mdx b/docs/content/docs/reference/quality-documents.mdx
index ffdcd2636d..301f976be8 100644
--- a/docs/content/docs/reference/quality-documents.mdx
+++ b/docs/content/docs/reference/quality-documents.mdx
@@ -3,9 +3,9 @@ title: Quality documents
description: Controlled SOPs and work instructions, versioned so a new revision supersedes the old one without deleting it.
---
-A **quality document** is a controlled procedure: an SOP or work instruction that your team writes once, publishes, and revises under control. Think "Incoming Inspection Procedure" or "Solder Reflow Work Instruction". Each document carries an ordered list of **steps** (a mix of tasks, measurements, checkboxes, and sign-offs) plus a rich-text body, and it moves through a small lifecycle before anyone treats it as authoritative.
+A **quality document** is a controlled SOP or work instruction. It contains rich-text content and an ordered list of **steps**, including tasks, measurements, checkboxes, and sign-offs. A defined lifecycle controls when the document becomes authoritative.
-The point of controlling it is auditability: you never overwrite a live procedure in place. Publishing a new revision creates a **new version** and archives the one it replaces, so the old text is still there to point an auditor at.
+Published procedures are never overwritten. Publishing a revision creates a **new version** and archives the version it replaces, preserving the audit history.
## The lifecycle
diff --git a/docs/content/docs/reference/quality.mdx b/docs/content/docs/reference/quality.mdx
index 890964b309..655b547564 100644
--- a/docs/content/docs/reference/quality.mdx
+++ b/docs/content/docs/reference/quality.mdx
@@ -3,7 +3,7 @@ title: Quality
description: Issues and corrective-action workflows, plus incoming inspection that gates received goods.
---
-Carbon's quality module turns on two things: **<Term id="nonconformance">issues</Term>** you raise against a defect and drive to closure, and **inbound inspection** that holds received goods until they're checked. Both leave a trail back to the document that went wrong.
+The quality module provides **<Term id="nonconformance">issues</Term>** for recording and resolving defects, and **inbound inspections** for holding received goods until they pass inspection. Both retain links to their source records.
## Issues
@@ -72,5 +72,5 @@ The quantity entered for the split is more than the selected entity carries. Ent
The same serial or batch was selected twice in the split dialog. Each entity can appear only once — deselect the duplicate.
### "Failed to accept lot" / "Failed to reject lot"
-The inbound-inspection disposition failed. Usual causes: the lot was already dispositioned by someone else, or its tracked entities changed state (consumed, moved) since the page loaded. Refresh the inspection and check its current status before retrying.
+The lot was already dispositioned, or its tracked entities changed state after the page loaded. Refresh the inspection and verify its current status before retrying.
</AgentContext>
diff --git a/docs/content/docs/reference/quotes.mdx b/docs/content/docs/reference/quotes.mdx
index ae02d0547b..206a5ffdc8 100644
--- a/docs/content/docs/reference/quotes.mdx
+++ b/docs/content/docs/reference/quotes.mdx
@@ -3,9 +3,9 @@ title: Quotes
description: A priced offer to a customer — the front of the sales flow.
---
-A **quote** is a priced offer to a customer: the line items they asked about, what each costs, and for how long. It's where a sale begins, before there's any commitment to build or ship. Accept it and it becomes a <Term id="sales-order">sales order</Term>; let it lapse and it closes on its own.
+A **quote** is a time-limited, priced offer to a customer. Acceptance converts it into a <Term id="sales-order">sales order</Term>; expiration closes it without creating an order.
-A quote is where pricing is negotiated and recorded. Lines support quantity breaks, so the price for ten can differ from the price for a hundred, and the number you settle on is what carries forward to the order. Quotes are optional, since an order can be raised directly, but when used, a quote and its eventual order are tied together through a shared <Term>opportunity</Term> rather than a rigid link.
+Quote lines support quantity breaks, and the selected price carries into the order. Quotes are optional because sales orders can be created directly. When a quote is used, it and the resulting order share an <Term>opportunity</Term> rather than a direct link.
## Fields
diff --git a/docs/content/docs/reference/receipts.mdx b/docs/content/docs/reference/receipts.mdx
index df45275618..71f315ae7e 100644
--- a/docs/content/docs/reference/receipts.mdx
+++ b/docs/content/docs/reference/receipts.mdx
@@ -3,9 +3,9 @@ title: Receipts
description: "Goods coming in: receiving against a purchase order and posting to inventory."
---
-A **receipt** brings goods in. Like <Term id="shipment">shipments</Term>, one receipt model serves several sources: most often a <Term id="purchase-order">purchase order</Term>, but also inbound transfers. <Term id="posting">Posting</Term> is what turns a delivery into stock on hand.
+A **receipt** records incoming goods from a <Term id="purchase-order">purchase order</Term> or inbound transfer. <Term id="posting">Posting</Term> the receipt adds the delivery to stock on hand.
-A receipt line soft-links back to the purchase order line it fulfills. Posting adds the quantity to inventory, raises the order line's received quantity, and advances the order. When accounting is enabled, it also debits inventory (or <Term id="wip">work-in-process</Term>, for outside processing) against a <Term id="gr-ir">goods-received-not-invoiced</Term> accrual that the supplier invoice later clears.
+Each receipt line references the purchase-order line it fulfills. Posting increases inventory and the order line's received quantity. When accounting is enabled, it debits inventory—or <Term id="wip">work-in-process</Term> for outside processing—and credits a <Term id="gr-ir">goods-received-not-invoiced</Term> accrual that the supplier invoice later clears.
## Fields
diff --git a/docs/content/docs/reference/reordering.mdx b/docs/content/docs/reference/reordering.mdx
index 2e873d6a6f..8e7c1567db 100644
--- a/docs/content/docs/reference/reordering.mdx
+++ b/docs/content/docs/reference/reordering.mdx
@@ -3,8 +3,7 @@ title: Reordering policy
description: "How each part decides when and how much to replenish: the policy and the numbers that drive planning."
---
-Every part carries a **reordering policy** that tells planning how to replenish it. The policy decides
-*when and how much*; the **<Term>replenishment system</Term>** decides whether that becomes a <Term id="purchase-order">purchase order</Term> or a <Term id="job">job</Term>.
+Each part has a **reordering policy** that determines when and how much to replenish. Its **<Term>replenishment system</Term>** determines whether the result is a <Term id="purchase-order">purchase order</Term> or a <Term id="job">job</Term>.
## Policies
diff --git a/docs/content/docs/reference/risks.mdx b/docs/content/docs/reference/risks.mdx
index d155df8e50..6d3178d644 100644
--- a/docs/content/docs/reference/risks.mdx
+++ b/docs/content/docs/reference/risks.mdx
@@ -3,9 +3,9 @@ title: Risk register
description: Track risks and opportunities against any entity, rated by severity and likelihood, and drive each to a resolution.
---
-A risk entry is a titled concern you raise against something in Carbon: a supplier who ships late, an item that fails inspection, a job with a tight deadline. Each entry carries a **type** (a downside risk or an upside opportunity), two independent 1–5 ratings for **severity** and **likelihood**, an assignee, and a status you move from `"Open"` toward `"Closed"` or `"Accepted"`. The <Term id="risk-register">register</Term> lives in the quality module and reads back into the entity it's attached to, so a part's risks show on the part, a supplier's show on the supplier.
+A risk entry records a concern or opportunity associated with another Carbon entity. It has a **type**, independent 1–5 ratings for **severity** and **likelihood**, an assignee, and a status that moves from `"Open"` to `"Closed"` or `"Accepted"`. The quality module's <Term id="risk-register">risk register</Term> provides the company-wide view; each source entity also displays its related risks.
-Open the register at **Quality → Risks** for the company-wide list, or add one inline from an item, customer, supplier, job, quote line, or maintenance dispatch page.
+Open **Quality → Risks** for the company-wide register. You can also create risks from item, customer, supplier, job, quote-line, and maintenance-dispatch pages.
## What a risk entry holds
diff --git a/docs/content/docs/reference/rmas.mdx b/docs/content/docs/reference/rmas.mdx
index bc57db33e0..c0a791534b 100644
--- a/docs/content/docs/reference/rmas.mdx
+++ b/docs/content/docs/reference/rmas.mdx
@@ -3,7 +3,7 @@ title: RMAs
description: "Customer return authorizations: receive shipped goods, disposition them, issue credit, and create replacements."
---
-A **return merchandise authorization (RMA)** records what a customer is allowed to send back. It ties the returned quantity to the original sale when possible, then keeps receiving, material disposition, customer credit, and replacement fulfillment connected without treating them as one event.
+A **return merchandise authorization (RMA)** defines the goods and quantities a customer may return. When possible, it links them to the original sale. Receipt, disposition, customer credit, and replacement fulfillment remain separate, auditable events associated with the RMA.
<Screenshot label="RMA detail with returned lines, received quantities, return reasons, and disposition" caption="The RMA keeps the commercial authorization and the physical return together." ratio="wide" />
diff --git a/docs/content/docs/reference/routings.mdx b/docs/content/docs/reference/routings.mdx
index a4e03e63d4..ccfa0643e4 100644
--- a/docs/content/docs/reference/routings.mdx
+++ b/docs/content/docs/reference/routings.mdx
@@ -3,13 +3,7 @@ title: Routings
description: The ordered operations and work centers a part flows through to get made.
---
-A **routing** is the recipe the shop floor follows to make a part: the ordered list of <Term id="operation">operations</Term> and
-the <Term>work center</Term> each one runs on. It's what turns "we have an order" into "here's exactly what happens,
-in what order, where."
-
-Without a routing, a <Term id="job">job</Term> can't be scheduled or costed. There's nothing to place on the board and
-nothing to estimate run time from. The routing is the bridge between *what* you're making (the item) and
-*how* it gets made (the schedule).
+A **routing** defines the ordered <Term id="operation">operations</Term> required to make a part and the <Term>work center</Term> assigned to each operation. A <Term id="job">job</Term> needs a routing for scheduling, run-time estimation, and costing.
## Fields
diff --git a/docs/content/docs/reference/sales-orders.mdx b/docs/content/docs/reference/sales-orders.mdx
index 7c39fdfe9d..311548e27f 100644
--- a/docs/content/docs/reference/sales-orders.mdx
+++ b/docs/content/docs/reference/sales-orders.mdx
@@ -3,9 +3,9 @@ title: Sales orders
description: "A confirmed customer commitment: what to ship and invoice, tracked line by line."
---
-A **sales order** is a confirmed commitment to deliver items to a customer. It may begin as a <Term>quote</Term>, or be entered directly; either way it's the document the rest of fulfillment keys off: <Term id="shipment">shipments</Term>, <Term id="invoice">invoices</Term>, and any make-to-order jobs all trace back to its lines.
+A **sales order** is a confirmed commitment to deliver items to a customer. It can be created directly or from a <Term>quote</Term>. <Term id="shipment">Shipments</Term>, <Term id="invoice">invoices</Term>, and make-to-order jobs reference its lines.
-The order line is where fulfillment is scored. Each line tracks how much was sold against how much has shipped and how much has been invoiced, and it stays open until both are complete, which is what lets one order be delivered and billed in batches without losing the remainder.
+Each line tracks ordered, shipped, and invoiced quantities independently. It remains open until shipping and invoicing are complete, allowing partial fulfillment and billing.
## Line fields
@@ -63,5 +63,5 @@ Same lock as above, hit from the line editor. Reopen the order to Draft before a
The convert-lines-to-jobs action found no eligible lines — none of the selected lines is fulfilled by making (Make method). Check each line's method; *Pull from Inventory* and *Purchase to Order* lines never produce jobs.
### "Failed to insert job"
-Converting a line to a job failed. Usual causes: the item has no active make method, or no valid location is set. Check the item's method status and the order's location, then retry.
+The item has no active make method, or the order has no valid location. Check both values, then retry.
</AgentContext>
diff --git a/docs/content/docs/reference/sales-rules.mdx b/docs/content/docs/reference/sales-rules.mdx
index a680690395..be42532205 100644
--- a/docs/content/docs/reference/sales-rules.mdx
+++ b/docs/content/docs/reference/sales-rules.mdx
@@ -4,21 +4,12 @@ plan: Business
description: "Predicate guards on sales documents: block a restricted item with an error, or warn and let the user acknowledge and continue."
---
-A **sales rule** is a guard that runs when an item is put on a sales document. It checks the line against a
-condition you define and, if the condition fails, either **blocks** the write or **warns** and lets the user
-acknowledge and continue. Rules fire on **quote lines**, **<Term>sales order</Term> lines**, and **sales
-invoice lines**.
+A **sales rule** validates an item on a sales document. If its condition fails, the rule either **blocks** the write or **warns** and allows the user to acknowledge the warning. Rules apply to **quote lines**, **<Term>sales order</Term> lines**, and **sales invoice lines**.
-For example, to keep an export-controlled part away from a restricted destination: scope the rule to the
-item's group, fire on all three surfaces, and require `customer.location.countryCode` `notIn` your restricted
-list. Severity **error**, message `` `{item.id}` cannot ship to this destination``. Add that item to a quote
-for a customer in a listed country and the line is stopped with exactly that message.
+For example, to restrict an export-controlled part, scope the rule to its item group, enable all three document types, and require `customer.location.countryCode` `notIn` the restricted-country list. Set severity to **error** and the message to `` `{item.id}` cannot ship to this destination``. A matching line is then rejected with that message.
<Callout type="note">
-Sales rules are a **compliance** layer, not a hint. They re-run at every commitment point — finalizing a
-quote, converting it to an order, confirming the order, posting the shipment, posting the invoice — so a line
-that slipped in through a conversion, an import, or the API is still caught before it matters. A blocked
-document writes nothing.
+Sales rules run when Carbon finalizes a quote, converts it to an order, confirms an order, posts a shipment, or posts an invoice. This catches lines created through conversions, imports, and the API. A blocked document writes nothing.
</Callout>
## What a rule checks
diff --git a/docs/content/docs/reference/scheduling.mdx b/docs/content/docs/reference/scheduling.mdx
index 61ded75c97..cfb6fb1413 100644
--- a/docs/content/docs/reference/scheduling.mdx
+++ b/docs/content/docs/reference/scheduling.mdx
@@ -3,7 +3,7 @@ title: Scheduling
description: Finite-capacity scheduling — how jobs are placed onto real work-center and operator calendars, and the boards that show and steer the result.
---
-Scheduling in Carbon answers three questions for the floor: *when* will each [job](/docs/reference/jobs) actually run, *in what order* does each [work center](/docs/reference/work-centers) pick up its operations, and *does the plan fit* the capacity you really have. The engine is **finite-capacity**: it places every operation forward onto real work-center operating hours and, where an operation needs a qualified operator, onto real people's shifts. A machine can hold one operation at a time, so a busy shop genuinely pushes work out rather than pretending everything fits.
+Scheduling assigns each [job](/docs/reference/jobs) operation a time and sequence on a [work center](/docs/reference/work-centers). The **finite-capacity** engine places operations within work-center operating hours and, when required, qualified employees' shifts. Because a machine can run only one operation at a time, existing work delays later operations.
## Where scheduling lives
@@ -30,8 +30,8 @@ When a process can run on more than one work center, the engine picks the candid
The dispatch order the boards show falls straight out of placement. The engine groups placed operations by work center, sorts by projected start, and numbers them 1, 2, 3. The top card in a column is the next thing to run there. The job's <Term id="job-deadline-type">deadline type</Term> matters here as a *ranking* signal: jobs claim capacity in deadline-class order (ASAP first, then Hard Deadline, Soft Deadline, No Deadline), then by due date. No deadline type blocks or gates placement.
-<Callout type="info" title="Capacity is finite, and that's the point">
-The old model computed dates as if every machine had infinite room, and load only picked which station won a tie. Now a full machine or a booked-up operator pool delays the operation, and the delay is visible and explained. A job with no due date still schedules fine; the due date is the yardstick lateness is measured against, not a placement anchor.
+<Callout type="info" title="Finite capacity affects completion dates">
+A full machine or unavailable operator pool delays the operation, and Carbon explains the delay. Jobs without due dates still schedule; the due date measures lateness but does not anchor placement.
</Callout>
## People are part of capacity
@@ -41,7 +41,7 @@ A process can be marked as **requiring an ability**. Operations of that process
Each location also has a staffing policy on the Production settings page, described there as: *"Require an assigned operator before the scheduler places work at a location. When on, unstaffed work centers get no work and an operation with no manned coverage shows as unschedulable. Lights-out (24×7) work centers are exempt."* With **"Staffing required"** on, the floater fallback is off and even ability-free operations need a manned station, so work routes only to where you've put people.
<Callout type="warn" title="Moving your only qualified operator strands the work">
-If one person holds the ability a station needs and you man them elsewhere, that station's operations become unschedulable rather than double-booking the person or sneaking onto an unmanned night shift. The Forecast flags them as "can't be scheduled" so you can see the gap and fix the manning.
+If the only qualified employee is assigned elsewhere, the station's operations become unschedulable. Carbon does not double-book the employee or place the operation on an unmanned shift. Forecast marks the operations **"Can't be scheduled"** so you can correct staffing.
</Callout>
## Two dates on every operation
@@ -82,7 +82,7 @@ The engine always produces a complete answer. Late work is placed and flagged, u
Scheduling reacts to its inputs. Editing anything the engine reads — a due date on the Priorities board, a manning assignment, a shift, a work center's hours or active flag, an operator qualification, a process's ability requirement, machine downtime — stamps the affected jobs **schedule outdated** and queues a **replan wave**. The wave is debounced about 30 seconds, so a burst of edits triggers a single regeneration of each affected location rather than one run per keystroke. The Forecast's **Regenerate** button runs the same whole-location regeneration on demand.
-Two paths skip the wave and reschedule immediately: releasing or changing the status of a job, and the kanban auto-release flow. And a nightly pass re-anchors any schedule whose planned start has slipped into the past, so a quiet shop's forecast doesn't drift stale.
+Job release or status changes and the kanban auto-release flow reschedule immediately. A nightly pass also recalculates schedules whose planned start is in the past.
When a regeneration pushes jobs past their due dates that were previously on time, each affected job's assignee gets a **"Jobs projected late"** notification listing the newly late jobs. Silence means the change fit.
diff --git a/docs/content/docs/reference/scrap.mdx b/docs/content/docs/reference/scrap.mdx
index e7b974449b..e472bc3ca0 100644
--- a/docs/content/docs/reference/scrap.mdx
+++ b/docs/content/docs/reference/scrap.mdx
@@ -3,15 +3,15 @@ title: Scrap and unscrap
description: Writing off defective or lost material, and restoring it if the write-off was a mistake.
---
-<Term id="scrap">Scrap</Term> is how Carbon records material you can't recover: a unit ruined at an operation, a subcomponent that failed, or stock lost in the warehouse. Every scrap names a **reason**, moves the value off inventory or out of <Term id="wip">work-in-process</Term>, and (when accounting is on) posts a journal. If you scrapped in error, **Unscrap** puts it back exactly as it was.
+<Term id="scrap">Scrap</Term> records unrecoverable material, such as a damaged unit, failed component, or lost stock. Each transaction includes a **reason**, removes value from inventory or <Term id="wip">work-in-process</Term>, and posts a journal when accounting is enabled. **Unscrap** reverses an erroneous scrap.
-There are three places you can scrap, and they behave differently. What they share: the affected <Term id="tracked-entity">tracked entity</Term> ends at status **"Scrapped"**, which keeps its quantity as the record of what was lost and, unlike **"Consumed"** or **"Rejected"**, can be reversed.
+Carbon supports three scrap contexts with different behavior. In each, the affected <Term id="tracked-entity">tracked entity</Term> receives status **"Scrapped"** and retains the lost quantity. Unlike **"Consumed"** or **"Rejected"**, this status is reversible.
## Scrapping a unit on the floor
When the unit you're building goes bad, an operator taps **"Log Scrap"** on the operation, enters a quantity, and picks a required **"Scrap Reason"**. For a <Term id="serial">Serial</Term> part the currently selected serial is the one scrapped.
-Carbon records a **Scrap** production quantity, <Term id="backflush">backflushes</Term> the unit's bill of material into WIP (the material really was consumed making the ruined unit), flips the serial to **"Scrapped"**, and spawns a fresh replacement serial for you to keep working.
+Carbon records a **Scrap** production quantity, <Term id="backflush">backflushes</Term> the unit's bill of material into WIP, marks the serial **"Scrapped"**, and creates a replacement serial for continued production.
<Callout type="info" title="Scrapping reopens the routing instead of counting against the target.">
A scrapped unit is not treated as output. Its quantity never counts toward the operation's target, completed operations reopen to **"Ready"**, and a replacement serial is spawned automatically, so the job keeps producing until the *good* quantity meets the target. The planned quantity itself is never rewritten; Carbon only tops up the operation's run quantity when cumulative scrap runs past the allowance you planned for.
@@ -51,7 +51,7 @@ Scrap posts to the ledger only when [accounting](/docs/reference/accounting) is
| Unscrap | Inventory | Scrap |
<Callout type="note" title="There's one scrap account, sliced by dimension tags.">
-Carbon deliberately posts all scrap to one account rather than a per-reason chart of accounts. It tags each scrap journal line with **ScrapReason**, **WorkCenter**, and **Employee** <Term id="reporting-dimension">dimensions</Term> (work center only where there's an operation behind the scrap), so you slice scrap by reason, cell, or operator in reporting without proliferating accounts. The ScrapReason dimension reads its values live from your scrap-reason list, so a new reason is immediately reportable.
+Carbon posts all scrap to one account and tags each journal line with **ScrapReason**, **WorkCenter**, and **Employee** <Term id="reporting-dimension">dimensions</Term>. WorkCenter applies only when the scrap has an operation. These dimensions support reporting by reason, cell, or operator without separate accounts. ScrapReason values come directly from the scrap-reason list, so new reasons are immediately available for reporting.
</Callout>
This scrap is distinct from a quality **disposition** of *Scrap*: closing a quality [issue](/docs/reference/issues) with a Scrap disposition writes the material off to a cost-of-quality account and flips the entity to **"Rejected"**, not **"Scrapped"**.
diff --git a/docs/content/docs/reference/sequences.mdx b/docs/content/docs/reference/sequences.mdx
index 5c8bb469a4..5229614101 100644
--- a/docs/content/docs/reference/sequences.mdx
+++ b/docs/content/docs/reference/sequences.mdx
@@ -3,9 +3,9 @@ title: Numbering sequences
description: The per-company generator behind every readable document number — jobs, change notices, payments, and more.
---
-Every document Carbon creates gets a <Term id="readable-id">human-readable number</Term>: a job is `J000001`, a change notice is `CN-000001`, a payment is `PAY-2026-07-000001`. Those numbers come from <Term id="numbering-sequence">sequences</Term>, one small counter per document type per company. Sequences live under **Settings → Sequences**; every company is seeded with a full set, and you can retune any of them (prefix, counter, padding) without touching code.
+Each Carbon document receives a <Term id="readable-id">human-readable number</Term>, such as `J000001`, `CN-000001`, or `PAY-2026-07-000001`. A company-scoped <Term id="numbering-sequence">sequence</Term> maintains the counter for each document type. Under **Settings → Sequences**, you can change a sequence's prefix, counter, and padding.
-When something needs a number, Carbon assembles it from three parts and advances the counter in the same operation, so two documents never collide:
+Carbon formats and advances the counter atomically to prevent duplicate numbers:
```
{prefix}{next + step, zero-padded to size}{suffix}
diff --git a/docs/content/docs/reference/sharing.mdx b/docs/content/docs/reference/sharing.mdx
index 1b11454c59..29ee614f07 100644
--- a/docs/content/docs/reference/sharing.mdx
+++ b/docs/content/docs/reference/sharing.mdx
@@ -3,9 +3,9 @@ title: External sharing
description: How Carbon's private, login-free links work — a customer accepts a quote, a supplier prices a request or answers a SCAR, a buyer watches order status.
---
-Some of Carbon's work happens with people who don't have a Carbon login. Rather than email a PDF and wait, Carbon hands them a **private link** to a single, live document: open it and you act right there in the browser — no account, no password, just the one record the link points at. The link is the only credential, so guard it like a password: whoever holds the URL gets in.
+Carbon can give external participants a **private link** to one live document without requiring a login. The URL is the only credential; anyone who has it can access the shared record.
-Four things reach an outside party this way. Each is documented where the feature lives:
+Four features use external links:
<Cards>
<Card title="Digital quotes" href="/docs/reference/quotes#digital-quotes">A **"Sent"** quote the customer accepts or rejects.</Card>
@@ -18,4 +18,4 @@ Four things reach an outside party this way. Each is documented where the featur
Each link is only as live as the record behind it: an expired or answered quote turns its page read-only, and a closed issue locks its SCAR. There is no separate link-revocation step to remember.
</Callout>
-Two other pages *look* shared but aren't: the RFQ preview is an internal view of how a supplier's request will look (purchasing login required), and training assignments require an employee login. Neither hands anything to an outside party.
+The RFQ preview and training assignments are not external shares. RFQ previews require a purchasing login, and training assignments require an employee login.
diff --git a/docs/content/docs/reference/shelf-life.mdx b/docs/content/docs/reference/shelf-life.mdx
index 8094a98150..53426c9bb2 100644
--- a/docs/content/docs/reference/shelf-life.mdx
+++ b/docs/content/docs/reference/shelf-life.mdx
@@ -3,16 +3,11 @@ title: Shelf life
description: How Carbon stamps expiration dates on tracked stock, and blocks consuming it once expired.
---
-**Shelf life** is how Carbon decides when a batch or serial of an item *expires*, and what happens when
-someone tries to use it after that. It only applies to **<Term id="serial">Serial-</Term>** or **<Term id="batch">Batch-tracked</Term>** items, because the
-expiration date lives on the physical lot, the **<Term id="tracked-entity">tracked entity</Term>**, not on the item master.
+**Shelf life** determines when serial- or batch-tracked stock expires and whether it can be used afterward. The expiration date belongs to the physical **<Term id="tracked-entity">tracked entity</Term>**, so shelf life applies only to **<Term id="serial">Serial-</Term>** and **<Term id="batch">Batch-tracked</Term>** items.
-Three records work together: a **policy** per item (how expiry is decided), an **expiration date** per
-tracked entity (the actual date), and a **company-wide rule** for what to do with expired stock.
+Three values control shelf life: an item-level **policy**, a tracked entity's **expiration date**, and a **company-wide rule** for expired stock.
-Say a batch of adhesive is received under a **180-day** policy: Carbon stamps that lot to expire about six
-months out. Try to issue it to a job on day 200 and the issue is **blocked**. Expired stock can't flow into
-a build unless someone with permission overrides it.
+For example, receiving a batch under a **180-day** policy sets its expiration date 180 days later. After that date, Carbon blocks issue to a job unless an authorized user overrides the block.
## How a date gets set: the three modes
diff --git a/docs/content/docs/reference/shipments.mdx b/docs/content/docs/reference/shipments.mdx
index 1e58993548..5137493f03 100644
--- a/docs/content/docs/reference/shipments.mdx
+++ b/docs/content/docs/reference/shipments.mdx
@@ -3,9 +3,9 @@ title: Shipments
description: Goods going out — one posting model serving sales orders, returns, and transfers.
---
-A **shipment** moves goods out the door. One shipment model serves several source documents: a <Term id="sales-order">sales order</Term>, a purchase order, an outbound transfer. Each is tagged by what it came from, so the same posting logic handles them all.
+A **shipment** records goods leaving the company against a <Term id="sales-order">sales order</Term>, purchase order, or outbound transfer. Its source type selects the corresponding posting behavior.
-Creating a shipment changes nothing on hand. **<Term id="posting">Posting</Term>** it is the event that matters: it relieves inventory, advances the source document, and, when accounting is enabled, books the cost of what left. A shipment can be partial, so an order can go out in several.
+Creating a shipment does not affect inventory. **<Term id="posting">Posting</Term>** relieves inventory, updates the source document, and records cost when accounting is enabled. Partial shipments allow one order to be fulfilled in multiple deliveries.
## Fields
diff --git a/docs/content/docs/reference/single-sign-on.mdx b/docs/content/docs/reference/single-sign-on.mdx
index 8eb2ee0b56..2cc94a25ea 100644
--- a/docs/content/docs/reference/single-sign-on.mdx
+++ b/docs/content/docs/reference/single-sign-on.mdx
@@ -3,7 +3,7 @@ title: Single sign-on
description: Route sign-in for your company's email domains through your own identity provider with enterprise SAML SSO.
---
-Single sign-on hands control of Carbon sign-in to your own <Term>identity provider</Term>: Okta, Entra ID, Google Workspace, or any SAML 2.0 IdP. Register your email domains once, proving you own each with a DNS record, and everyone on them signs in to both ERP and MES with their normal work email — Carbon recognizes the domain and routes to your IdP automatically, no SSO button to find. Registering takes nothing away: the <Term>magic link</Term> and other methods keep working until you turn on [Require SSO](#requiring-sso).
+Single sign-on delegates Carbon authentication to a SAML 2.0 <Term>identity provider</Term>, such as Okta, Entra ID, or Google Workspace. After you verify an email domain through DNS, Carbon routes ERP and MES users on that domain to the identity provider automatically. <Term>Magic link</Term> and other sign-in methods remain available until you enable [Require SSO](#requiring-sso).
## Requirements
@@ -54,13 +54,13 @@ Only one company can hold a domain verified, first to prove DNS control wins, an
## How sign-in works
-The login page is email-first and the SSO fork is invisible: the user types their email, presses **"Continue"**, and Carbon either redirects to your IdP (active connection on that domain) or falls through to the ordinary magic-link flow. Before any session is created, the asserted email's domain must be one of the connection's **verified** domains, so even a misconfigured or hostile IdP can't sign someone into another company.
+On the email-first login page, selecting **"Continue"** either redirects the user to the domain's active IdP or continues to the standard magic-link flow. Before creating a session, Carbon requires the asserted email domain to match a **verified** domain on the connection.
-Provisioning is **invite-first**: no self-serve signup through SSO. An existing member signs straight in (their first SSO sign-in quietly links the SAML identity to their account; the magic link keeps working). Someone with a pending invite has it accepted by their first SSO sign-in, landing with exactly the invite's role. Anyone else is rejected by name and nothing is provisioned; create the invite in the [employees directory](/docs/reference/people) and the retry just works.
+SSO provisioning is **invite-first**; it does not support self-service signup. An existing member's first SSO login links the SAML identity to their account. A pending invite is accepted during the first SSO login and applies its assigned role. Carbon rejects all other users without provisioning an account. Create their invite in the [employees directory](/docs/reference/people), then retry.
## Requiring SSO
-Once a sign-in has worked, the **"Require SSO"** switch on the Identity Provider card makes the IdP the only way in for verified domains: magic links, Google, Outlook, and passkeys are all refused server-side. The switch exists only on an active connection, so the path is always *set up, prove a sign-in works, enforce last*. Turning it off — or **"Deactivate"**, which deletes the connection and releases the domain claims — immediately restores the other methods.
+The **"Require SSO"** switch makes the IdP the only permitted authentication method for verified domains. Carbon rejects magic links, Google, Outlook, and passkeys server-side. The switch appears only for an active connection, allowing you to verify sign-in before enforcement. Turning it off restores other methods. **"Deactivate"** deletes the connection, releases its domain claims, and also restores other methods.
<Callout type="warn" title="Break-glass recovery">
If enforcement is on and your IdP is unreachable, nobody on the covered domains can sign in to turn it off. Operators can lift it directly in the database, and magic-link sign-in works on the next attempt:
@@ -70,7 +70,7 @@ UPDATE "ssoConnection" SET "requireSso" = false WHERE "companyId" = '<id>';
```
</Callout>
-SSO sessions skip Carbon's [two-factor challenge](/docs/reference/two-factor) and the company-wide requirement in every environment, including controlled (ITAR) deployments: your IdP already enforced its own MFA policy at sign-in. Magic-link logins still get Carbon's own challenge.
+SSO sessions bypass Carbon's [two-factor challenge](/docs/reference/two-factor), including in controlled deployments, because the IdP enforces its own MFA policy. Magic-link logins still use Carbon's challenge.
<AgentContext>
## Behavior details and exact messages
diff --git a/docs/content/docs/reference/storage-rules.mdx b/docs/content/docs/reference/storage-rules.mdx
index 3eaf7edd2c..0a0889cf5a 100644
--- a/docs/content/docs/reference/storage-rules.mdx
+++ b/docs/content/docs/reference/storage-rules.mdx
@@ -4,18 +4,12 @@ plan: Business
description: "Predicate guards that validate inventory transactions: block with an error, or warn and let the user continue."
---
-A **storage rule** is a guard that runs when an inventory transaction posts. It checks the line against a
-condition you define and, if the condition fails, either **blocks** the transaction or **warns** and lets the
-user acknowledge and continue. Rules attach to **items** or to **<Term id="work-center">work centers</Term>**.
+A **storage rule** validates an inventory transaction during posting. If its condition fails, the rule either **blocks** the transaction or **warns** and allows the user to acknowledge the warning. Rules apply to **items** or **<Term id="work-center">work centers</Term>**.
-For example, to keep batch chemicals out of ambient bins: target **items** in your chemicals group, fire on
-**<Term>receipt</Term>** and **place** (put-away), and require `storageUnit.storageTypeId` `eq` your cold-storage type.
-Severity **error**, message `{item.id} must be stored in cold storage`. Receive that item into the wrong
-bin and the post is stopped with exactly that message.
+For example, to prevent batch chemicals from entering ambient bins, target **items** in the chemicals group, enable **<Term>receipt</Term>** and **place** operations, and require `storageUnit.storageTypeId` `eq` the cold-storage type. Set severity to **error** and the message to `{item.id} must be stored in cold storage`. A receipt into any other storage type is rejected with that message.
<Callout type="note">
-Storage rules are a **validation** layer. A rule never transforms data, sets defaults, or computes a
-price. Its only output is a message and a severity.
+Storage rules only validate data. They do not transform values, set defaults, or compute prices. A rule returns a message and severity.
</Callout>
## What a rule checks
diff --git a/docs/content/docs/reference/supplier-quotes.mdx b/docs/content/docs/reference/supplier-quotes.mdx
index e8e7a6f444..5aec7cca78 100644
--- a/docs/content/docs/reference/supplier-quotes.mdx
+++ b/docs/content/docs/reference/supplier-quotes.mdx
@@ -3,9 +3,9 @@ title: Supplier quotes
description: "A supplier's priced response to your RFQ, one per supplier, ready to convert into a purchase order."
---
-A **supplier quote** is a vendor's priced answer to a <Term id="rfq">purchasing RFQ</Term>: for the items you asked about, at the quantities you named, here's my price, my lead time, and my shipping. It's the buy side of a quote, and it is not a <Term id="quote">sales quote</Term>. A sales quote is what *you* send a customer; a supplier quote is what a *supplier* sends *you*.
+A **supplier quote** is a supplier's priced response to a <Term id="rfq">purchasing RFQ</Term>. It records price, lead time, and shipping for each requested item and quantity. It is distinct from a <Term id="quote">sales quote</Term>, which your company sends to a customer.
-You keep one quote per supplier per exchange, and once you've compared them you convert the winner into a <Term id="purchase-order">purchase order</Term>. Converting also writes the supplier's prices back onto the item's supplier part, so the next order already knows what this vendor charges.
+Each RFQ exchange stores one quote per supplier. You can compare the responses and convert the selected quote into a <Term id="purchase-order">purchase order</Term>. Conversion also updates the item's supplier-part price for later orders.
## Where a quote comes from
@@ -47,7 +47,7 @@ A quote is editable only while it's a **"Draft"**. Finalizing moves it to **"Act
</StatusFlow>
<Callout type="warning" title="Locked once it leaves Draft">
-Any status other than Draft locks the quote. If a supplier revises their pricing after you've finalized, you record the new numbers on a fresh quote rather than editing the old one, which keeps the paper trail intact for the comparison.
+Any status other than Draft locks the quote. Record post-finalization price revisions on a new quote to preserve the comparison history.
</Callout>
## The supplier's link
@@ -60,7 +60,7 @@ Both flows are open only while the quote is a **"Draft"**; once submitted or dec
When you've picked a winning quote, **"Convert to Order"** turns it into a purchase order. You choose which lines and which quantity tier to buy, and Carbon raises a purchase order for that supplier with the item lines, the supplier's contact and location, and the exchange rate all carried across from the quote. If the quote came from an RFQ, the new order is linked back to that RFQ.
-Converting does one more thing that matters: it updates the item's **supplier part**. For each converted line Carbon writes the quantity-break prices onto that supplier's `supplierPart` for the item (source: `Purchase Order`), and sets the supplier part's headline unit price to the best tier. So the quote doesn't just produce one order, it teaches Carbon what this vendor charges for the part going forward.
+Conversion also updates the item's **supplier part**. For each converted line, Carbon writes quantity-break prices to the supplier's `supplierPart` record (source: `Purchase Order`) and sets its primary unit price to the best tier. Later orders can reuse these prices.
<Callout type="note" title="Converting updates item costs">
The quantity-break prices land on the supplier part in *inventory* units: the supplier's per-purchase-unit price is divided by both the exchange rate and the conversion factor before it's stored. That's why a quote in another currency, in the supplier's pack size, still shows a sensible per-stock-unit cost afterward.
diff --git a/docs/content/docs/reference/supplier-returns.mdx b/docs/content/docs/reference/supplier-returns.mdx
index f07808bed1..ff3f189c32 100644
--- a/docs/content/docs/reference/supplier-returns.mdx
+++ b/docs/content/docs/reference/supplier-returns.mdx
@@ -3,7 +3,7 @@ title: Supplier returns
description: "Return received goods to a supplier, preserve serial or batch identity, claim credit, and create a replacement PO."
---
-A **Supplier Return** records goods your company is authorized to send back to a supplier. It connects the original receipt or purchase order to the outbound shipment, supplier credit, quality issue, and any replacement order while keeping those events independently auditable.
+A **Supplier Return** authorizes goods to be sent back to a supplier. It associates the original receipt or purchase order with the outbound shipment, supplier credit, quality issue, and replacement order while preserving each event as a separate audit record.
<Screenshot label="Supplier Return detail with return lines, shipped quantities, source links, and selected serials or batches" caption="A supplier return controls what may leave and preserves where the goods came from." ratio="wide" />
diff --git a/docs/content/docs/reference/suppliers-and-customers.mdx b/docs/content/docs/reference/suppliers-and-customers.mdx
index 20a0fa52dd..9e6e201d12 100644
--- a/docs/content/docs/reference/suppliers-and-customers.mdx
+++ b/docs/content/docs/reference/suppliers-and-customers.mdx
@@ -3,7 +3,7 @@ title: Suppliers & customers
description: The parties you buy from and sell to, and the ways their records differ.
---
-**Suppliers** and **customers** are the two trading parties. They look symmetrical, but Carbon models them through different modules with a few deliberate differences worth knowing.
+**Suppliers** are parties the company buys from; **customers** are parties it sells to. Carbon manages them in separate modules with different fields and workflows.
## Suppliers
diff --git a/docs/content/docs/reference/traceability.mdx b/docs/content/docs/reference/traceability.mdx
index 8212ffd401..615a8fc65e 100644
--- a/docs/content/docs/reference/traceability.mdx
+++ b/docs/content/docs/reference/traceability.mdx
@@ -3,7 +3,7 @@ title: Traceability
description: Serial and batch tracking, and the genealogy that links what went into what.
---
-For items that need it, Carbon tracks individual units and lots as **<Term id="tracked-entity">tracked entities</Term>**, and records every consume-and-produce as it happens, so you can prove what went into a finished unit, and trace a suspect lot forward to everything it touched.
+Carbon represents individual serials and batches as **<Term id="tracked-entity">tracked entities</Term>**. Consumption and production records create a genealogy that supports backward tracing from a finished unit and forward tracing from a suspect lot.
## Tracked entities
diff --git a/docs/content/docs/reference/training.mdx b/docs/content/docs/reference/training.mdx
index ebab4d5a5e..2b504bedaf 100644
--- a/docs/content/docs/reference/training.mdx
+++ b/docs/content/docs/reference/training.mdx
@@ -3,13 +3,13 @@ title: Training
description: Training programs, quiz questions, group assignments, per-period completion tracking, and the weekly reminder digest.
---
-**Training** is where you build the courses your team has to complete, assign them to groups of employees, and track who has finished. A training is a named program with rich content and an optional quiz. You assign it to employee groups, and Carbon tracks completion per employee for the current period, chases the stragglers with a weekly email, and lets a manager mark someone complete by hand. It lives in the [resources](/docs/reference/work-centers) area and is governed by the `resources` permission.
+**Training** manages required courses, employee-group assignments, and completion records. A training program contains rich content and an optional quiz. Carbon tracks completion for each employee and period, sends weekly reminders for outstanding assignments, and allows managers to record manual completion. Training belongs to the [resources](/docs/reference/work-centers) area and uses the `resources` permission.
-A quick example: you create a "Lockout/Tagout" training, set its type to **"Mandatory"** and frequency to **"Annual"**, write the material, add a few quiz questions, then assign it to the "Machinists" group. Every machinist now shows as **"Pending"** for the current year until they complete it — and every Sunday night anyone still outstanding gets a reminder.
+For example, create a "Lockout/Tagout" training with type **"Mandatory"** and frequency **"Annual"**, then assign it to the "Machinists" group. Each group member remains **"Pending"** for the current year until completion and receives a Sunday reminder while outstanding.
## The training catalog
-Each training is one row in the `training` table (`packages/database/supabase/migrations/20251205021915_training.sql:18`). You create one from the training list with just a **Name** — the create form is deliberately minimal (`apps/erp/app/modules/resources/ui/Training/TrainingForm.tsx:76`). Everything else is edited afterward from the training's **Properties** panel (`apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx`), which saves each field on change through a bulk-update action.
+Each training is a row in the `training` table (`packages/database/supabase/migrations/20251205021915_training.sql:18`). The create form requires only a **Name** (`apps/erp/app/modules/resources/ui/Training/TrainingForm.tsx:76`). Configure the remaining fields in the **Properties** panel (`apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx`), which saves each change through a bulk-update action.
<FieldTable>
<Field name="name" required>The training's title.</Field>
@@ -46,7 +46,7 @@ Questions are authored on the training detail page and can be reordered. The sto
## Assigning training to groups
-You don't assign a training to individuals one at a time — you assign it to **groups**. A `trainingAssignment` (`20251205021915_training.sql:93`) links one `trainingId` to an array of `groupIds`. Every employee who belongs to one of those groups is on the hook for the training.
+Trainings are assigned to **groups**, not individual employees. A `trainingAssignment` (`20251205021915_training.sql:93`) links one `trainingId` to an array of `groupIds`. Every employee in those groups receives the assignment.
<Callout type="note" title="Assignments target groups, then expand to people">
The assignment stores `groupIds`, not employee ids. Carbon expands the groups to their members when it computes who owes the training, so adding a person to a group automatically enrolls them — you don't re-assign.
@@ -83,7 +83,7 @@ A manager marks completion from the assignment's Status tab; the action posts to
## The weekly reminder
-Every Sunday at 21:00 UTC, a scheduled job sweeps outstanding training and emails the stragglers (`packages/jobs/src/inngest/functions/scheduled/weekly.ts`, cron `0 21 * * 0`). For each company it pulls the assignment status, keeps only the employees whose status is a reminder-worthy one (**"Pending"** or **"Overdue"**), groups them by person, and sends one digest per employee.
+Every Sunday at 21:00 UTC, a scheduled job finds outstanding training (`packages/jobs/src/inngest/functions/scheduled/weekly.ts`, cron `0 21 * * 0`). It selects **"Pending"** and **"Overdue"** assignments and sends one digest to each employee.
The notification is the `TrainingReminder` event (`training-reminder`) under the `Training` topic. Its email heading is **"Training reminder"** and the call-to-action button reads **"View training"** (`packages/notifications/src/index.ts`). It's the only *recurring* notification event in Carbon — so it needs a guard against nagging forever.
@@ -91,7 +91,7 @@ The notification is the `TrainingReminder` event (`training-reminder`) under the
A recurring reminder is capped: once an outstanding training has had five successful reminder emails delivered for the current period, Carbon stops re-sending it. For quarterly and annual trainings the count is keyed to the period, so the cap resets when a new period begins. If a reminder "stopped coming," this cap is usually why.
</Callout>
-Two related one-shot events fire when work is handed to people rather than chased: **"Training assigned to you"** (`training-assignment`) and **"New training available"** (`resource-training-assignment`). See [notifications](/docs/reference/notifications) for how these are delivered and how a person tunes them.
+Two one-time events announce assignments: **"Training assigned to you"** (`training-assignment`) and **"New training available"** (`resource-training-assignment`). See [notifications](/docs/reference/notifications) for delivery and preferences.
## Abilities are a separate system
diff --git a/docs/content/docs/reference/two-factor.mdx b/docs/content/docs/reference/two-factor.mdx
index 5b3089d794..6f28d60fba 100644
--- a/docs/content/docs/reference/two-factor.mdx
+++ b/docs/content/docs/reference/two-factor.mdx
@@ -3,7 +3,7 @@ title: Two-factor authentication
description: Add authenticator-app codes to sign-in, require them company-wide, and reset a lost device.
---
-Two-factor authentication adds a second proof to sign-in: a six-digit code from an authenticator app on your phone, changing every thirty seconds. You can turn it on for yourself, and an admin can require it for everyone in a company. The two are related but not the same: **the requirement belongs to a company; the authenticator belongs to you.**
+Two-factor authentication adds a six-digit, time-based authenticator code to sign-in. Users enroll their own authenticators; an administrator can require enrollment for a company. **The requirement is company-scoped, while the authenticator is user-scoped.**
## Turn it on for yourself
diff --git a/docs/content/docs/reference/work-centers.mdx b/docs/content/docs/reference/work-centers.mdx
index 6efb7a3146..563abf9866 100644
--- a/docs/content/docs/reference/work-centers.mdx
+++ b/docs/content/docs/reference/work-centers.mdx
@@ -3,9 +3,9 @@ title: Work centers
description: Where operations run — the stations and machines, their rates, and the processes they perform.
---
-A **work center** is a place on the floor where <Term id="operation">operations</Term> run, tied to a location: a station, a machine, a cell. It carries the rates used to cost and schedule work, and performs one or more **processes** (the capabilities, like *cut* or *weld*).
+A **work center** is a location-specific station, machine, or cell where <Term id="operation">operations</Term> run. It defines scheduling and cost rates and supports one or more **processes**, such as cutting or welding.
-<Term id="routing">Routing</Term> operations are scheduled onto work centers, and a work center's rates price the labor and machine time logged against it. It's the link between an operation in the abstract and a real place with a cost and a calendar.
+<Term id="routing">Routing</Term> operations are assigned to work centers. The work center's rates price logged labor and machine time, and its calendar constrains scheduling.
## Fields
diff --git a/docs/content/docs/reference/workflows.mdx b/docs/content/docs/reference/workflows.mdx
index a703bb628a..0697e0f2dd 100644
--- a/docs/content/docs/reference/workflows.mdx
+++ b/docs/content/docs/reference/workflows.mdx
@@ -4,7 +4,7 @@ description: "Build an automation on a canvas: one trigger, conditions, and step
plan: Business
---
-A <Term>workflow</Term> watches for something happening in Carbon and then does something about it: notify the account manager when a sales order changes hands, open an issue when a job is put on hold, or call your own service when a shipment is posted. You build one on a canvas under **Automate → Workflows**, wire the steps together, and press **"Publish"**. It is a canvas, not a list of rules: steps are cards you drag from the palette and connect by their handles, so one trigger can fan out into several branches that each end differently. Every firing is recorded step by step; see [runs and history](#runs-and-history) below.
+A <Term>workflow</Term> reacts to a Carbon event by evaluating conditions and running actions. Examples include notifying an account manager after a sales-order assignment, creating an issue when a job is put on hold, or calling an external service after shipment posting. Build the workflow under **Automate → Workflows** by connecting one trigger to condition and action cards, then select **"Publish"**. A trigger can fan out into multiple branches. Carbon records each execution in [runs and history](#runs-and-history).
<Screenshot label="The workflow builder canvas under Automate → Workflows: a trigger card wired to condition and action steps, with the palette and the Publish button" caption="One trigger, fanning out into branches that each end differently." />
@@ -29,7 +29,7 @@ You pick the exact field you care about. Ten record types can be watched — pur
**Schedules.** In **"Schedule"** mode you pick a **"Frequency"** of Daily, Weekly, or Monthly, the days it applies to, a **"Time of day"**, and a **"Timezone"**; the builder shows a live **"Next fires at:"** line as you change it.
<Callout type="warn" title="Schedules never catch up">
-The time is stored as wall-clock time plus a zone, so 09:00 stays 09:00 across daylight-saving changes. A monthly schedule set to the 31st simply **skips** months with no 31st, and after an outage Carbon resumes from the next due time instead of replaying missed ones. Anything more than an hour late is recorded as skipped. Each workflow also carries a small fixed offset of up to five minutes, so a 9:00 schedule fires somewhere in 9:00–9:05.
+Carbon stores the wall-clock time and time zone separately, so 09:00 remains 09:00 across daylight-saving changes. A monthly schedule on day 31 **skips** months without that date. After an outage, Carbon resumes at the next due time and records runs more than one hour late as skipped. A fixed offset of up to five minutes spreads load, so a 09:00 schedule runs between 09:00 and 09:05.
</Callout>
**"Triggered by".** Event triggers also choose *who* caused the change: **"People"**, **"Workflows"**, or **"Both"**. A new trigger starts at **"People"**, which is the safe answer: it stops a workflow from reacting to edits made by workflows, including its own. Switch it to **"Both"** deliberately, when you want one automation to feed another.
@@ -57,7 +57,7 @@ An update step can only set the fields Carbon lists for that record: an assignee
Most fields take either a value you type or a value from an earlier step. Type `{` in a text field and a menu opens listing the steps above this one, their outputs, and up to two levels of properties. Only steps *guaranteed* to have run before this one are offered — a value from the other side of a condition is not on the menu, and referring to one is rejected at publish.
-**Repeating steps.** There is no repeat checkbox. Wire a list into a field that expects a single value and the step runs once per item, which the form confirms in place, up to 100 items. Wiring two lists into the same step is an error at publish time rather than a guess about which one to loop over.
+**Repeating steps.** Connecting a list to a single-value field runs the step once per item, up to 100 items. The form displays this behavior. Connecting two lists to one step causes a publish-time error because the loop source is ambiguous.
## Calling an outside URL
@@ -113,7 +113,7 @@ If a condition matches none of its paths and has no **"Otherwise"**, that step *
A failed step stops its branch, not the run: other branches keep going, and a wired **Failure** handle is followed, though the run is marked failed at the end regardless. The one exception is a permission failure, which stops the branch outright even when a failure path exists.
-**Chains.** When a workflow's writes trigger another workflow, the runs are linked and the drawer draws the whole chain. Two guards record a **Blocked** run rather than looping forever: a cycle (the same workflow already ran in this chain) and a depth limit of ten hops. The [**"Triggered by"**](#what-starts-a-workflow) setting is the first line of defence.
+**Chains.** When one workflow's writes trigger another, Carbon links the runs and displays the complete chain. A repeated workflow or a chain deeper than ten hops records a **Blocked** run. Use [**"Triggered by"**](#what-starts-a-workflow) to limit which changes can start a workflow.
<Callout type="warn" title="There is no retry button">
A finished run cannot be re-run from the Runs page. Fix the outside cause and let the next trigger fire, or use the builder's **"Test run"**. A run that crashes mid-flight is retried automatically by the queue, and because each step is claimed before it acts, the retry cannot repeat work that already completed.
diff --git a/docs/content/guides/build.mdx b/docs/content/guides/build.mdx
index 0f8193af37..d4d6f4436a 100644
--- a/docs/content/guides/build.mdx
+++ b/docs/content/guides/build.mdx
@@ -1,57 +1,57 @@
---
-title: Inside the build
-description: How each satellite part is made or bought.
+title: Define the build method
+description: Configure how each component is made, purchased, or issued from inventory.
label: "(II)"
index: 1
---
-Open the job you just released and look at what it actually takes to build a satellite bus. This is where the product structure you set up in PLM meets the reality of the floor.
+Open the released job to inspect the product structure and the process used to build it.
-> PLM specifies the parts. The method adds the clarity: how each part is obtained, and whether it's built, bought, or pulled from the shelf.
+> PLM defines the parts. The method defines how each part is supplied: manufactured, purchased, or issued from inventory.
## The bill of materials
-A satellite bus's <Term id="bom">bill of materials</Term> (BoM) is a tree. SAT-1000 is built from subassemblies — the BUS-STR-001 structural frame, the EPS-001 electrical power subsystem, ADCS-001, COMMS-001 and the rest — and each of those is built from parts of its own: the power subsystem from solar array wings and a battery pack, the frame from aluminium plate and fasteners. Carbon shows the whole structure at a glance, with every node carrying an icon for how it's obtained.
+A <Term id="bom">bill of materials</Term> (BoM) is hierarchical. SAT-1000 contains subassemblies such as the BUS-STR-001 structural frame and EPS-001 electrical power subsystem. Each subassembly contains its own components. Carbon displays the complete structure and identifies how each node is supplied.
<Figure illustration="bom-tree" caption="The robot BoM: made parts in blue, bought parts in amber, every leaf pulled from stock." />
## Method types
-Every item in that tree carries a <Term>method type</Term>, and it's the single most load-bearing field in your whole catalog. There are three values, and each one routes the item down a completely different path:
+Each item has one of three <Term>method types</Term>. The value determines how Carbon supplies the item:
<Figure illustration="method-types" caption="One field, three values: Make to Order becomes a job, Purchase to Order a PO, Pull from Inventory a stock pull." />
-- <Term>Make to Order</Term>: you manufacture it. The structural frame and the solar array wings are built in-house, so each becomes its own <Term>job</Term> with its own operations.
-- <Term>Purchase to Order</Term>: you purchase it. The battery packs come from a supplier, so they flow through [purchasing](/guides/rfq-to-po) as a <Term>purchase order</Term>, never touching the floor.
-- <Term>Pull from Inventory</Term>: you pull it from stock when the parent is built, whether you originally made it or bought it.
+- <Term>Make to Order</Term>: manufacture the item on a <Term>job</Term> with its own operations.
+- <Term>Purchase to Order</Term>: buy the item through a [purchase order](/guides/rfq-to-po).
+- <Term>Pull from Inventory</Term>: issue existing stock when building the parent, regardless of how that stock was replenished.
-You don't tag this on each BoM line by hand. The method type lives on [the item itself](/docs/reference/items), and every BoM that uses that item mirrors it. Switch a part's method type once, and it cascades everywhere the part appears.
+The method type is defined on [the item](/docs/reference/items), not independently on each BoM line. Changing it updates every BoM that uses the item.
<Callout tone="blue" badge="TWO DIFFERENT QUESTIONS" title="Method type and replenishment system aren't the same axis.">
-Method type answers "how does this part get into its parent?": Make to Order, Purchase to Order, or Pull from Inventory. The <Term>replenishment system</Term>, Buy, Make, or Buy and Make, answers "how is this part stocked overall, and which planning queue does it land in?" A part can be made for one parent and pulled from stock for another.
+Method type determines how a component enters its parent: Make to Order, Purchase to Order, or Pull from Inventory. The <Term>replenishment system</Term> determines how the item is stocked and which planning queue receives demand: Buy, Make, or Buy and Make. A part can be manufactured for one parent and issued from stock for another.
</Callout>
## Kits & subassemblies
-Because the structural frame and the power subsystem are Make to Order parts, they aren't just line items — they're built things. But Carbon gives a made item in a BoM two flavors, and the choice changes how the floor handles it:
+A Make to Order component can be configured as a subassembly or a kit:
<Figure illustration="kit-vs-subassembly" caption="Same frame, two treatments: a Subassembly builds as its own job; a Kit is issued straight into the parent." />
-- <Term>Subassembly</Term>: built as its own job, with its own <Term>routing</Term> and its own completion. You can release the structural frame independently of the final satellite, and Carbon keeps the hierarchy in sync.
-- <Term>Kit</Term>: not built separately at all. Its components are issued together straight into the parent job, as a set. There's no kit job and no kit operation — just the parts, grouped.
+- <Term>Subassembly</Term>: built and completed on a separate job with its own <Term>routing</Term>. It can be released independently of the parent job.
+- <Term>Kit</Term>: a group of components issued directly to the parent job. Carbon creates no separate job or operation for the kit.
-Reach for a subassembly when the thing is genuinely manufactured and worth tracking on its own. Reach for a kit when a cluster of parts always goes in together and a separate build would just be ceremony.
+Use a subassembly when the component requires an independently tracked build. Use a kit when grouped components should be issued together without a separate build.
<Screenshot src="/screens/build-subassembly-kit-toggle.png" label="BoM — Subassembly / Kit toggle" caption="Switching the BUS-STR-001 structural frame on the SAT-1000 BoM between a tracked Subassembly and an issued-together Kit." ratio="wide" />
## Methods on the job
-Back on the job, you're looking at that working copy of the method from the last chapter, and you can drill the whole way down. The bus's method lists the structural frame, the power subsystem, and their siblings; open the power subsystem and you're in its method, its solar array wings set to Make to Order and its battery pack set to Purchase to Order. The tree is as deep as the product.
+The job contains a working copy of the method. Expand any component to inspect its nested method and supply type. The hierarchy can contain as many levels as the product requires.
-Methods are versioned, which is what keeps a busy shop sane. A method is Draft, Active, or Archived, and only a Draft can be edited. An Active method is frozen, the jobs running against it won't shift under anyone's feet, so you revise by publishing a new version, not by editing a live one.
+Methods are versioned as **Draft**, **Active**, or **Archived**. Only a Draft can be edited. To change an Active method, create and publish a new version. Existing jobs retain the version copied when they were created.
<Callout tone="amber" badge="FROZEN WHEN ACTIVE" title="Live work builds against a version that can't change mid-stream.">
-Draft is the workbench; Active is the published, locked recipe; Archived is history. Changes flow forward into the next version and the next job — never backward into a build that's already moving.
+Draft is editable, Active is published and locked, and Archived is retained for history. New versions affect future jobs, not jobs already in progress.
</Callout>
<Screenshot src="/screens/build-job-method-explorer.png" label="Job method explorer" caption="Job J000001's method expanded: the SAT-1000's subassemblies — structural frame, power subsystem, ADCS and the rest — each with its own materials and operations." ratio="wide" />
diff --git a/docs/content/guides/change-order.mdx b/docs/content/guides/change-order.mdx
index 666dc95feb..d702aa4fb3 100644
--- a/docs/content/guides/change-order.mdx
+++ b/docs/content/guides/change-order.mdx
@@ -8,138 +8,115 @@ flowName: Engineering change
flowIndex: 4
---
-The satellite bus's antenna pointing bracket needs a thicker wall and one fewer fastener. In a lot of systems that means editing
-the live part and hoping nothing in flight notices. Carbon makes you do it deliberately: you open a
-<Term id="change-order">change notice</Term>, edit a hidden draft of the part's method, review exactly what changed, and release
-when it's ready. Until that moment, every job, plan, and cost calculation still sees the old bracket.
+The satellite bus's antenna pointing bracket needs a thicker wall and one fewer fastener. Create a
+<Term id="change-order">change notice</Term>, edit a hidden draft of the part's method, review the diff, and release
+the change. Until release, jobs, planning, and costing continue to use the current bracket.
-> A change notice is the paper trail and the workbench at once. You revise on a draft that no one else can
-> see, and release turns that draft into the new truth.
+> A change notice records the change and contains its working draft. Release makes that draft active.
## Start with the parts, not the change
-You can start from **Items → Change Notices → New**, but you'll usually start from the bracket itself. Its part
-header has a **"Create Change Notice"** action, its row in the parts table has the same, and the method's
-version menu — the one with **New Version** — offers **New Change Notice** right where you're looking at the
-recipe. Each of those pre-attaches the bracket as the first affected item. A change can even start from a
-quality issue, which links the non-conformance to the change notice so the fix traces back to the problem.
-
-However you start, the header form is short: a **"Name"**, a **"Category"** (your change-notice types, seeded
-with a starter set like *Design Improvement*, *Cost Reduction*, and *Obsolescence / End-of-Life*), a **"Reason for Change"** and **"Description
-of Change"**, an **"Owner"**, **"Priority"**, and dates. If you started from a quality issue, that
-non-conformance rides along as the linked issue. The affected item is the unit of work, and once you're on the
-change notice the **Add Affected Item** picker is deliberately narrow: **Parts only**. A material, consumable,
-or service doesn't carry an engineering revision, so it never appears.
-
-Before you touch the bracket, though, its own page already warned you this was coming. A part that's on an
-open change notice shows a heading right on its detail page — *"This part is on 1 open change notice"* — with the
-change notice linked, so nobody revises a design that's already mid-change. The alert informs rather than
-blocks: a second change notice on the same part is allowed, and Carbon keeps their draft versions from
-colliding, so a deliberate parallel change is fine.
+Start from **Items → Change Notices → New**, the part header, the part's table row, or **New Change Notice** in
+the method-version menu. Item-based entry points attach the bracket as the first affected item. Creating a
+notice from a quality issue links the non-conformance to the resulting change.
+
+The header form contains **Name**, **Category**, **Reason for Change**, **Description of Change**, **Owner**,
+**Priority**, and dates. Categories come from the configured change-notice types, initially seeded with values
+such as *Design Improvement*, *Cost Reduction*, and *Obsolescence / End-of-Life*. A quality-issue entry point
+also links its non-conformance. After creation, **Add Affected Item** accepts Parts only; materials,
+consumables, and services are excluded.
+
+A part on an open change notice displays *"This part is on 1 open change notice"* with a link to the notice.
+This warning is informational. Carbon permits parallel notices for the same part and assigns independent
+draft versions to avoid version collisions.
<Screenshot src="/screens/co-new-notice.png" label="New change notice form" caption="Name, category, reason, owner, and priority. The header before any affected item is added." ratio="wide" />
<Callout tone="blue" badge="TOP-DOWN, NOT BOTTOM-UP" title="You pick the parts first, then edit them in place.">
-Carbon doesn't ask you to describe a change as a list of add-this, delete-that rows. You select the affected
-part and then edit its actual bill of materials and bill of process inside the change notice. The change is
-whatever the finished draft says it is.
+Select the affected part, then edit its bill of materials and bill of process inside the change notice. The
+completed draft defines the change.
</Callout>
## Draft the change in place
-Add the bracket and Carbon quietly snapshots its live <Term id="bom">method</Term> into a new **Draft**
-version stamped to this change notice. That draft is invisible everywhere else — it won't show in a version
-switcher, a copy-target list, or anything MRP, jobs, or costing read. You edit it with the same **Bill of
-Material** and **Bill of Process** editors you'd use on the part directly.
+Adding the bracket copies its active <Term id="bom">method</Term> into a **Draft** version associated with the
+change notice. The draft is excluded from version selectors, copy-target lists, MRP, jobs, and costing. Edit it
+with the standard **Bill of Material** and **Bill of Process** editors.
-Before you edit, pick a **change type** on the affected item. It's the most consequential choice on the whole
-change notice, because it decides both what you can touch and what release will create. You can switch it
-later, but not for free: switching discards the draft and mints a fresh one from the live method, so any
-edits you'd made are reset. Decide the type first, then edit.
+Before editing, select a **change type** for the affected item. The type determines which fields are editable
+and what release creates. Changing the type later discards the draft and creates a new one from the live
+method, removing all draft edits.
<Screenshot src="/screens/co-affected-item.png" label="Affected item with change-type selector" caption="An affected item's draft method open for editing on CN-000001, with the 'Change type' select on the item card." ratio="wide" />
-- <Term id="change-order-change-type">Version</Term> revises how the *same* part is made. You edit its BoM and
- BoP; release publishes a new method version and archives the old one. No new part, nothing superseded.
-- **Revision** mints a new revision of the part (same Part ID, next revision). You edit its attributes,
- documents, and method; release reveals the new revision and supersedes the old one.
-- **Replacement Part** derives a brand-new part *number* from this one. Release reveals it and supersedes the
- old part with it. The 1:1 replacement.
-- **New Part** introduces a genuinely new part with no old part behind it. Release reveals it, but supersedes
- nothing, because there's no predecessor to phase out.
+- <Term id="change-order-change-type">Version</Term> changes the BoM or BoP for the same part. Release activates
+ a new method version and archives the previous version. It creates no item or supersession.
+- **Revision** creates the next revision under the same Part ID. Its draft supports attributes, documents, and
+ method edits. Release activates the revision and supersedes the previous one.
+- **Replacement Part** derives a new part number from the affected part. Release activates it and supersedes
+ the affected part in a one-to-one replacement.
+- **New Part** creates a part without a predecessor. Release activates it without creating a supersession.
<Callout tone="amber" badge="A VERSION MOVES THE METHOD, NOT THE PART" title="Only Revision and Replacement Part supersede.">
-This trips people up. A **Version** bumps the recipe on the existing bracket, so existing stock and history
-stay put and nothing is superseded. A **Revision** and a **Replacement Part** each derive a new item *from* the
-old one, so each auto-writes a supersession at release. A **New Part** is net-new — there's no old part to
-phase out, so it supersedes nothing. Pick the wrong type and you either strand stock or fail to phase it over.
-A purchased part has no method to version, so adding a **Buy** item lands on **Revision** automatically.
+A **Version** changes the method on the existing item, preserving its stock and history without supersession.
+A **Revision** or **Replacement Part** derives a new item and writes a supersession at release. A **New Part**
+has no predecessor and creates none. Because a purchased part has no method to version, a **Buy** item defaults
+to **Revision**.
</Callout>
-For the bracket we want the wall change to carry a new drawing revision and phase over cleanly, so this is a
-**Revision**. You thicken the wall in the attributes, drop the extra fastener line from the BoM, and attach
-the updated drawing — all on the draft.
+This bracket requires a new drawing revision and a stock phase-over, so select **Revision**. Update the wall
+attribute, remove the fastener from the BoM, and attach the revised drawing to the draft.
<Callout tone="amber" badge="PURCHASED PARTS NEED A SUPPLIER" title="A bought revision releases un-buyable unless you set its supplier up first.">
-If the revised part were purchased instead of made, its line would carry a **Supplier Parts** grid. The draft
-starts with none, because the old revision's suppliers aren't copied over. Leave it empty and the new part
-releases with nowhere to buy it — no purchase order can reference it. So for a **Buy** revision you add the
-supplier, part number, price, and order quantities on the line before you release.
+A purchased revision includes a **Supplier Parts** grid. Supplier parts are not copied from the old revision.
+Before releasing a **Buy** revision, add its supplier, supplier part number, price, and ordering quantities.
+Without a supplier part, the released item cannot be added to a purchase order.
</Callout>
## Review the diff
-Advance the change notice through its stages: **Draft**, then **"Start"**, then **"Engineering Complete"**,
-then **"Implementation"**. It only moves forward, one step at a time, and **"Start"**, **"Implementation"**,
-and **"Done"** each notify the assignee and the action-task assignees, so the people working the change hear
-about every stage it enters. There's no separate approval step to configure — the stages are the
-workflow, and the change notice is its own gate. If the change doesn't pan out, you're not trapped in the
-forward march either: a **"Cancel"** action sits in the header at every open stage. Cancelling locks the
-change notice but keeps every draft, and **"Reopen"** takes it back to **Draft** later with your edits
-intact, so shelving a change costs nothing.
+Advance the notice one stage at a time: **Draft**, **Start**, **Engineering Complete**, then **Implementation**.
+Entering **Start**, **Implementation**, or **Done** notifies the notice assignee and action-task assignees.
+The stages are the approval and release workflow; there is no separate approval configuration. **Cancel** is
+available at every open stage. It locks the notice but preserves its drafts. **Reopen** returns a Cancelled
+notice to Draft with its edits intact.
-You don't have to reach Implementation to see what you've done. The overview page carries a **Changes** card
-that rolls up every affected item's diff as you edit — the dropped fastener, the thicker wall, any supplier you
-added — so the review is available the whole time, not just at the gate.
+The overview's **Changes** card displays each affected item's current diff throughout authoring, including
+material, property, and supplier-part changes.
-At **"Implementation"** the **"Release"** action opens. It doesn't just apply the change: it shows you every
-affected item's change as a read-only diff first. Materials added and removed, operations and their steps
-changed, attributes that moved — laid out line by line against the method you snapshotted from.
+At **Implementation**, **Release** first displays a read-only diff for every affected item. It compares added
+and removed materials, operation and step changes, and modified attributes with the snapshotted method.
<Screenshot src="/screens/co-release-diff.png" label="Release change notice — diff review" caption="The dropped fastener line and the thicker-wall attribute, shown as a diff before you confirm." ratio="tall" />
<Callout tone="neutral" badge="EXACT BY CONSTRUCTION" title="The diff is real because the draft is real.">
-There's no shadow copy of your edits to drift out of sync. You edited an actual draft method, so the diff is
-simply that draft compared against the live one it came from. What you review is exactly what releases.
+The diff compares the actual draft method with its live source method. The reviewed draft is the artifact that
+release activates.
</Callout>
## Release, and let supersession carry it
-Confirm the release and Carbon walks the affected items. For the bracket revision it activates the draft
-method, archives the prior version, reveals the new revision as a live item, and writes a
-<Term>supersession</Term> from the old revision to the new one. When every item is done, the change notice
-flips to **"Done"** and locks as a read-only record.
+On confirmation, Carbon processes each affected item. For the bracket revision, it activates the draft method,
+archives the previous version, activates the new revision, and writes a <Term>supersession</Term> from the old
+revision to the new one. After all items are released, the notice becomes read-only in **Done**.
-You never wrote that supersession by hand. You only chose *how* it phases over, through the affected item's
-cutover fields: a <Term id="supersession-mode">supersession mode</Term> (defaulting to **Consume First**), a
-discontinuation date, and a successor effectivity date. From there, planning takes over.
+Configure phase-over through the affected item's cutover fields: a <Term id="supersession-mode">supersession
+mode</Term>, which defaults to **Consume First**, a discontinuation date, and a successor effectivity date.
+Release creates the supersession automatically.
<Figure illustration="conversion-factor" caption="Once effective, the old bracket's demand redirects to the new revision, times its conversion factor." />
-**Consume First** exhausts on-hand of the old bracket before switching; **Prefer New** redirects new demand
-immediately. Once the successor is effective, MRP redirects planned demand to the new revision and **Get
-Method** substitutes it onto new jobs, recording where the substitution came from.
+**Consume First** uses on-hand stock of the old bracket before redirecting demand. **Prefer New** redirects new
+demand immediately. After the successor becomes effective, MRP redirects planned demand to the new revision,
+and **Get Method** substitutes it on new jobs while retaining the source item for traceability.
<Callout tone="green" badge="NOTHING IN FLIGHT SHIFTS" title="Release steers the future, not the past.">
-Existing stock stays on the old bracket, and any job already created keeps the exact material and method
-version it was built against. The same goes for paperwork: an open purchase order or quote line that names
-the old revision keeps it, and nothing warns or rewrites it at release. Supersession only touches forward
-planning — a job cut after the effectivity date picks up the new revision, one cut before it does not.
-That's what makes releasing safe on a busy floor.
+Existing stock remains on the old bracket. Existing jobs retain their materials and method versions. Open
+purchase orders and quote lines also retain the old revision without warning or rewrite. Supersession affects
+only forward planning: jobs created after the effectivity date use the new revision; earlier jobs do not.
</Callout>
<Divider />
-Afterward the new revision carries a *"Created by CN-…"* back-link to the change notice that made it, and the
-bracket's page shows its full change history. The trail from "the wall was too thin" to the released revision
-is one click, and the floor never built a single bracket against a design that wasn't done.
+The new revision contains a *"Created by CN-…"* link to its change notice, and the bracket page retains the
+complete change-notice history.
diff --git a/docs/content/guides/fixed-assets-acquire.mdx b/docs/content/guides/fixed-assets-acquire.mdx
index 06b5b926fc..a14b4fe5d8 100644
--- a/docs/content/guides/fixed-assets-acquire.mdx
+++ b/docs/content/guides/fixed-assets-acquire.mdx
@@ -8,44 +8,44 @@ flowName: Manufacturing accounting
flowIndex: 3
---
-Job costing followed the money a job spends. The books also carry the machines that do the building. Carbon tracks those as **<Term id="fixed-asset">fixed assets</Term>**: a press, a CNC, a forklift, anything you capitalize and <Term id="depreciation">depreciate</Term> rather than expense. These last two chapters follow one asset from the day it lands on the books to the day it leaves them.
+Carbon tracks capitalized equipment, such as presses, CNC machines, and forklifts, as **<Term id="fixed-asset">fixed assets</Term>**. Their value enters the books at acquisition and decreases through <Term id="depreciation">depreciation</Term> until sale or disposal.
-A fixed asset is an accounting record, not a production resource. It belongs to an **<Term>asset class</Term>**, which carries the general-ledger accounts every asset of that kind posts to: the asset account, accumulated depreciation, depreciation expense, and the accounts used when it's written off.
+A fixed asset is an accounting record, not a production resource. Its **<Term>asset class</Term>** defines the general-ledger accounts for acquisition cost, accumulated depreciation, depreciation expense, and write-offs.
<Callout tone="amber" badge="ASSET ≠ WORK CENTER" title="A fixed asset is not the same record as a work center.">
-The machine you schedule production on is a <Term>work center</Term>; the machine you depreciate is a fixed asset. Carbon keeps these independent (there's no link between them), so the same physical press can be a work center on the floor and a fixed asset in the books without the two being wired together.
+The machine used for production scheduling is a <Term>work center</Term>; the accounting record you depreciate is a fixed asset. Carbon does not link these records. The same physical machine may therefore exist independently as both.
</Callout>
## Onto the books
-An asset comes onto the books one of two ways, and both start at **"Draft"**.
+Assets enter the books through manual registration or a purchase receipt. Both paths start with a **"Draft"** asset.
-**Register one you already have.** Create the asset, then register it, supplying its acquisition cost, acquisition date, and the date depreciation should start. Registering moves it to **"Active"**. No money posts; you're recording something you already own.
+**Register an existing asset.** Enter its acquisition cost, acquisition date, and depreciation start date. Registration moves the asset to **"Active"** without posting a transaction because it records property the company already owns.
-**Buy one through purchasing.** Put a **"Fixed Asset"** line on a purchase order pointed at the asset, then receive it. When the receipt posts, and only if accounting is enabled, Carbon debits the asset account, credits goods-received-not-invoiced, **adds** the cost to the asset, stamps the dates, and flips it from **"Draft"** to **"Active"**. Because the cost is added, an asset can accumulate value across several receipts.
+**Purchase an asset.** Add a **"Fixed Asset"** line to a purchase order and associate it with the asset. When the receipt posts with accounting enabled, Carbon debits the asset account, credits goods-received-not-invoiced, adds the receipt cost to the asset, sets its dates, and moves it from **"Draft"** to **"Active"**. Multiple receipts can accumulate cost on one asset.
<Callout tone="blue" badge="ACCOUNTING GATES ACQUISITION" title="Receiving activates the asset only when accounting is on.">
-The purchase-receipt path posts the acquisition entry and the Draft → Active flip inside the same gate as every other ledger posting. With accounting off, the PO line is received but the asset itself is left untouched. Register it manually instead.
+The purchase-receipt path creates the acquisition entry and activates the asset only when accounting is enabled. With accounting disabled, the PO line is received but the asset remains unchanged; register it manually instead.
</Callout>
<Screenshot src="/screens/fa-register.png" label="Fixed asset — register" caption="Bringing an asset to Active with its acquisition cost and depreciation start date." ratio="wide" />
## Depreciate it
-Once an asset is **"Active"**, it depreciates. Carbon runs depreciation as a **monthly batch you trigger** — there's no background job quietly posting in the night. You create a depreciation run for a period, Carbon pulls every active asset and computes each one's charge, and you review it as a **"Draft"** before posting.
+Depreciation applies to **"Active"** assets. It runs as a user-initiated monthly batch, not as a scheduled background job. Create a run for a period, review the calculated charges in **"Draft"**, and then post it.
-The book charge follows the asset's method (**<Term>straight line</Term>**, **<Term>declining balance</Term>**, or **units of production**), and posting the run debits depreciation expense and credits accumulated depreciation, period by period.
+Carbon calculates the book charge using the asset's method: **<Term>straight line</Term>**, **<Term>declining balance</Term>**, or **units of production**. Posting debits depreciation expense and credits accumulated depreciation for the period.
<Figure illustration="depreciation-curve" caption="Net book value falls from acquisition cost toward residual: straight line in equal steps, declining balance faster early." />
<Callout tone="neutral" badge="DRAFT THEN POST" title="Depreciation is computed at run time, reviewed, then posted.">
-Each run's amounts are calculated when you create it and held as a draft, so you can check the period's charges before they hit the ledger. When an asset's <Term>net book value</Term> reaches its <Term>residual value</Term>, posting flips it to **"Fully Depreciated"** and it stops accruing.
+Carbon calculates amounts when it creates the run and holds them in draft for review. When posting reduces an asset's <Term>net book value</Term> to its <Term>residual value</Term>, Carbon marks it **"Fully Depreciated"** and stops further depreciation.
</Callout>
<Screenshot src="/screens/fa-depreciation-run.png" label="Depreciation run" caption="A monthly run: every active asset's charge, computed and held as a draft for review before posting." ratio="wide" />
## Two books at once
-The depreciation you report on the books and the depreciation you claim for tax rarely match, so Carbon keeps both. Every asset runs a **book** schedule and a separate **tax** schedule, each free to use its own method, the tax side including full **<Term>MACRS</Term>** with the IRS property-class tables. The two accumulate independently against the same asset.
+Each asset has independent **book** and **tax** depreciation schedules. They can use different methods; the tax schedule supports **<Term>MACRS</Term>** and IRS property-class tables.
-With tax depreciation enabled, posting a run can also book the **deferred tax** the gap between the two creates, so that timing difference shows up in the ledger as it happens rather than as a year-end surprise.
+When tax depreciation is enabled, posting a run can also recognize the **deferred tax** created by the difference between the two schedules.
diff --git a/docs/content/guides/fixed-assets-sell.mdx b/docs/content/guides/fixed-assets-sell.mdx
index 634f02f7cd..faf9d0868f 100644
--- a/docs/content/guides/fixed-assets-sell.mdx
+++ b/docs/content/guides/fixed-assets-sell.mdx
@@ -8,34 +8,34 @@ flowName: Manufacturing accounting
flowIndex: 3
---
-Eventually an asset leaves the books. There are two ways out, and Carbon treats them as genuinely different actions, handled by different teams, with different effects. You **sell** an asset to a buyer, or you **<Term id="disposal">dispose</Term>** of it when it's done. Both start from an asset that's **"Active"** or **"Fully Depreciated"**.
+An **"Active"** or **"Fully Depreciated"** asset leaves the books through either a sale or a **<Term id="disposal">disposal</Term>**. A sale enters the sales workflow; a disposal writes off the asset directly.
-The number that anchors both is **<Term>net book value</Term>**, what the asset is still worth on the books: its acquisition cost minus the <Term id="depreciation">depreciation</Term> accumulated against it.
+Both paths use the asset's **<Term>net book value</Term>**: acquisition cost minus accumulated <Term id="depreciation">depreciation</Term>.
<Figure illustration="asset-exit" caption="Two ways an asset leaves the books: sold through a sales order at net book value, or disposed as a write-off." />
## Sell it
-Selling a piece of equipment is a sales act, so it lives with the sales team. The **Sell** action drafts a real **<Term>sales order</Term>** with a single **"Fixed Asset"** line pointed at the asset, priced at its **net book value**. From there it's the ordinary quote-to-cash flow (ship it, invoice it, collect), with the order line carrying a link back to the asset it came from.
+The **Sell** action creates a draft **<Term>sales order</Term>** with one **"Fixed Asset"** line. The line references the asset and uses its **net book value** as the price. The order then follows the standard shipment, invoice, and collection workflow.
<Callout tone="blue" badge="SEEDS A SALES ORDER" title="Selling an asset hands it to quote-to-cash at book value.">
-The Sell action doesn't invent a separate sale mechanism. It creates a normal sales order, lined up at net book value, that ships and invoices like any other. The fixed-asset line just remembers which asset was sold.
+The Sell action uses the standard sales-order workflow at net book value. The fixed-asset line retains the link to the asset being sold.
</Callout>
<Screenshot src="/screens/fa-sell.png" label="Sell fixed asset" caption="The Sell action drafts a sales order for the asset at its net book value." ratio="wide" />
## Dispose it
-When an asset is retired rather than sold, you **dispose** of it, an accounting action. Carbon posts the disposal as a write-off: it clears the accumulated depreciation, removes the asset at its full acquisition cost, and books the remaining **net book value** as a loss. The asset moves to **"Disposed"**.
+Use **Dispose** to retire an asset without a sale. Carbon clears accumulated depreciation, removes the full acquisition cost from the asset account, records the remaining **net book value** as a loss, and moves the asset to **"Disposed"**.
<Callout tone="amber" badge="DISPOSAL IS A WRITE-OFF" title="Disposing scraps the asset and books its remaining value as a loss.">
-The disposal entry reverses the asset off the books (debit accumulated depreciation, debit the write-off account for whatever book value remains, credit the asset account for its cost) and records that remaining value as a loss. It's a retirement, not a sale: no proceeds are collected on this path.
+The disposal entry debits accumulated depreciation, debits the write-off account for the remaining book value, and credits the asset account for its acquisition cost. This path records no proceeds.
</Callout>
<Callout tone="green" badge="SELL vs DISPOSE" title="They're separate exits, not two names for one thing.">
-Selling drafts a sales order and leaves the accounting to the invoice; disposing posts the write-off directly and marks the asset **"Disposed"**. One is a sales action at book value, the other an accounting action that retires the asset — choose by whether money is coming in or the asset is simply going away.
+Selling creates a sales order and defers accounting to the invoice. Disposing posts the write-off immediately and marks the asset **"Disposed"**. Use a sale when proceeds are expected and a disposal when retiring the asset without proceeds.
</Callout>
<Divider />
-That's the asset lifecycle end to end: capitalized onto the books through a register or a purchase receipt, written down month by month through depreciation runs, and finally either sold at book value through quote-to-cash or disposed of as a write-off, the financial half-life of every machine on the floor.
+The fixed-asset lifecycle consists of registration or purchase receipt, periodic depreciation, and either sale through quote-to-cash or disposal through a write-off.
diff --git a/docs/content/guides/floor.mdx b/docs/content/guides/floor.mdx
index ba697ef683..a3770cc928 100644
--- a/docs/content/guides/floor.mdx
+++ b/docs/content/guides/floor.mdx
@@ -5,83 +5,85 @@ label: "(IV)"
index: 3
---
-Time to build. You release the first <Term id="job">production job</Term> to the shop floor, along with the <Term>subassembly</Term> jobs for the parts that feed it. This is the handoff most shops fumble; in Carbon it's a single, traceable step.
+Release the <Term id="job">production job</Term> and its supporting <Term>subassembly</Term> jobs to make them available on the shop floor.
<Figure illustration="shopfloor-loop" caption="On the floor, every operation reports back: material consumed, labor logged, parts scanned." />
## The schedule
-The released work lands on the MES "Schedule" board, a Kanban with one column per <Term>work center</Term>. Each column holds the <Term id="operation">operations</Term> queued at that center, sorted by dispatch priority so the operator always sees what to run next. The Display popover lets each station tune its own board, toggling empty work centers on or off and showing or hiding the customer, description, due date, duration, progress, status, sales order, and thumbnail on each card. Filters narrow it further, by work center, process, tag, or assignee.
+Released work appears on the MES **Schedule** board, with one Kanban column per <Term>work center</Term>. Each column lists its queued <Term id="operation">operations</Term> by dispatch priority. The Display popover controls whether empty work centers and card fields—customer, description, due date, duration, progress, status, sales order, and thumbnail—are visible. Filters limit the board by work center, process, tag, or assignee.
<Figure illustration="schedule-board" caption="The MES schedule: operations grouped into work-center columns, ordered by dispatch priority." />
<Callout tone="amber" badge="DISPLAY, NOT DISPATCH" title="On the floor the board shows the plan; it doesn't reshuffle it.">
-The MES board is a live read of the schedule, so operators can filter and focus but they don't drag work to reschedule it. Rebalancing the plan, moving an operation to a different work center or shifting a job's dates so Carbon reschedules it, happens on the [ERP scheduling boards](/docs/reference/scheduling), where a planner owns the sequence. What lands here is the result.
+The MES board is read-only scheduling output. Operators can filter it but cannot drag work to reschedule it. Planners change work centers, dates, and sequence on the [ERP scheduling boards](/docs/reference/scheduling).
</Callout>
<Screenshot src="/screens/floor-mes-schedule.png" label="MES schedule board" caption="Released operations queued across the work-center columns: Clean Room Bay A, CNC Mill, PCB Lab, Potting Station, and QC Bench." ratio="wide" />
## Operations & work centers
-Open a job and its <Term>routing</Term> is an ordered list of operations. Each operation names a process (Mill, Weld, Anodize, Assemble) and the work center that runs it, with separate setup, labor, and machine time so estimates and costs are honest about where the hours go.
+A job's <Term>routing</Term> is an ordered list of operations. Each operation specifies a process, such as Mill, Weld, Anodize, or Assemble; its work center; and separate setup, labor, and machine times for scheduling and costing.
-Most operations run on your floor. But some don't, and Carbon plans for that explicitly:
+Carbon supports two operation types:
-- Inside operation: runs at one of your work centers, by your people.
-- <Term>Outside operation</Term>: performed by a supplier. Hard-anodizing the structural panels, say: the step leaves your floor, goes out, and comes back to finish its routing.
+- Inside operation: runs at one of the company's work centers.
+- <Term>Outside operation</Term>: runs at a supplier and returns to continue the routing.
<Figure illustration="outside-processing" caption="An outside step leaves the floor for a supplier and raises its own PO — then rejoins the routing." />
<Callout tone="blue" badge="OUTSIDE PROCESSING" title="A supplier-run step raises its own purchase order.">
-Tie a process to a supplier and mark the operation Outside. Releasing the job raises an Outside Processing PO for that step, priced at the supplier's rate, and its lead time takes its place in the routing, so the schedule knows the frame is away being anodized.
+Associate the process with a supplier and mark the operation Outside. Releasing the job creates an Outside Processing PO at the supplier's rate. The operation's lead time is included in the routing schedule.
</Callout>
<Screenshot src="/screens/floor-outside-operation.png" label="Job routing with an outside operation" caption="The structural frame's routing on J000001: machining and welding in-house, then a hard-anodize step outside at AstroMill Machining." ratio="wide" />
## Work instructions
-On the shop-floor view, an operator doesn't see a spreadsheet — they see rich work instructions: an ordered checklist of steps, each with its description and the measurement tolerance it has to meet, for the exact operation in front of them. It reads like a great minimal manual, and it's always the current revision.
+The shop-floor view presents the current revision of the operation's work instructions. Each ordered step can include a description and measurement tolerance.
<Screenshot src="/screens/floor-work-instructions.png" label="Shop-floor work instructions" caption="The step checklist for J000001's final assembly and torque operation, with the torque and squareness tolerances each step must hit." ratio="wide" />
## At the station
-When the operator opens their operation on the MES, the controls feel physical, closer to a machine panel than a form. A big Play button reads "Start"; press it and it becomes "Pause". Everything they do here flows straight back to the job:
+The MES operation screen provides **Start** and **Pause** controls and records each action against the job:
-- Clock time against the operation's work type: the button beside the Play control reads "Labor", and starting and stopping it opens and closes a <Term id="production-event">production event</Term>, so the operation's estimated hours meet the actual ones. An operation that also carries setup or machine time offers those work types in the same control.
-- "Issue Material" to <Term id="material-issue">issue</Term> the operation's components onto the job as they're consumed.
-- "Log Completed" for good units, "Log Scrap" with a <Term>scrap</Term> reason, or "Log <Term>Rework</Term>" as pieces come off the operation. "Complete All" reports the whole remaining quantity in one tap.
-- "Finish" to close the operation. It ends every active production event in one move and flips the operation to "Done".
+- Select a work type and use **Start** or **Pause** to open or close a <Term id="production-event">production event</Term>. **Labor** is available by default; operations with setup or machine time expose those work types in the same control.
+- Select **Issue Material** to <Term id="material-issue">issue</Term> components as they are consumed.
+- Use **Log Completed** for good units, **Log Scrap** with a <Term>scrap</Term> reason, or **Log <Term>Rework</Term>** for reworked units. **Complete All** reports the entire remaining quantity.
+- Select **Finish** to end all active production events and set the operation to **"Done"**.
<Figure illustration="mes-station" caption="The operator's panel: Setup, Labor, and Machine time toggles, quantity logging, and Finish." />
<Callout tone="green" badge="HOURS BECOME COST" title="Every toggle and every issue lands on the job's real cost.">
-Logged hours multiply by the work center's labor and machine rates; issued material posts at its cost. By the time the operation reads "Done", the job already knows [what it actually took to build](/guides/job-costing).
+Carbon prices logged hours at the work center's labor and machine rates and posts issued material at cost. These amounts contribute to the job's [actual cost](/guides/job-costing).
</Callout>
<Callout tone="neutral" badge="FINISH vs END OPERATIONS" title="Ending your shift is not the same as finishing the work.">
-"Finish" closes one operation for good. "End Operations", from the sidebar, is the end-of-shift move: it stops every production event you have running without completing or finishing any of them, so the clock stops but the work stays open for the next person to pick up. If time cards are turned on, clocking out does the same to your labor clock.
+**Finish** closes one operation. **End Operations** in the sidebar stops all of the operator's active production events without completing their operations. When time cards are enabled, clocking out also stops the operator's labor event.
</Callout>
<Screenshot src="/screens/floor-mes-operation.png" label="MES operation screen" caption="An operator on J000001's 'Machine structural panels' operation at the CNC Mill: the Labor work type, quantities, and the material list." ratio="wide" />
## Backflush & issue
-Material leaves inventory two ways in Carbon, and the BoM decides which one applies to each component, so stock stays accurate without busywork:
+Carbon consumes tracked and non-tracked bill-of-material components differently:
-- Issued: tracked material, like the serialized frames or the batch-tracked battery packs, is issued to the operation (or picked to the line) so every unit is accounted for by its lot.
-- <Term id="backflush">Backflushed</Term>: non-tracked material is pulled from stock automatically the moment the operation or job reports complete. No transactions, no keystrokes.
+- Issued: operators explicitly issue tracked material when it is consumed, recording its serial or batch identity against the operation. Picking is separate: it transfers material from a warehouse shelf to the lineside shelf without consuming it.
+- <Term id="backflush">Backflushed</Term>: Carbon automatically consumes non-tracked material when the operation or job reports completion.
+
+Picked material that remains unconsumed returns to its warehouse source when the operation or job completes, according to the company's inventory setting.
<Callout tone="green" badge="BACKFLUSH" title="The everyday consumables update themselves as the floor builds.">
-Flag a material to backflush and you never reconcile it by hand. The moment an operation reports complete, what it consumed is gone from stock and [its cost is on the job](/guides/job-costing) — while the parts that truly need tracing stay explicitly issued.
+When an operation reports completion, Carbon removes backflushed material from stock and posts [its cost to the job](/guides/job-costing). Tracked parts remain explicitly issued.
</Callout>
## Scan & trace
-For parts that demand a paper trail, operators scan as they build. Under the hood, every physical thing (a serial, a batch, a lot) is a <Term>tracked entity</Term>. Scanning a child into the unit you're building records a [tracked activity](/docs/reference/traceability): the child is marked consumed, the unit is marked produced, and the link between them is permanent.
+Operators scan tracked parts during production. Carbon represents each serial, batch, or lot as a <Term>tracked entity</Term>. Scanning a component into a parent unit records a [tracked activity](/docs/reference/traceability), marks the component consumed, marks the parent produced, and permanently links them.
<Callout tone="blue" badge="SERIAL vs BATCH" title="Two tracking modes, one genealogy.">
-<Term id="serial">Serialize</Term> what you track one-by-one: the finished satellite, its structural frame, its solar array wings. <Term id="batch">Batch-track</Term> what moves in lots: battery packs, fasteners, aluminium plate. Scan a serial into a batch and Carbon records the link, so the satellite's record knows exactly which battery lot it carries.
+Use <Term id="serial">serial tracking</Term> for individual units and <Term id="batch">batch tracking</Term> for lots. Scanning either tracking type into a parent records the genealogy, including links between serials and batches.
</Callout>
<Screenshot src="/screens/floor-shopfloor-scan.png" label="Shop-floor material issue" caption="An operator issuing one tracked Structural Frame Assembly into the job at the station." ratio="wide" />
diff --git a/docs/content/guides/job-costing.mdx b/docs/content/guides/job-costing.mdx
index aab942731b..41551848a4 100644
--- a/docs/content/guides/job-costing.mdx
+++ b/docs/content/guides/job-costing.mdx
@@ -8,48 +8,48 @@ flowName: Manufacturing accounting
flowIndex: 3
---
-The [make-to-order tour](/guides/order) built satellites. This flow follows the money those jobs spend. As a job is worked, Carbon accumulates its cost (materials consumed, plus labor, machine, and overhead time) into <Term id="wip">work-in-process</Term>, then releases that cost into finished-goods inventory when the job completes. Every figure here is grounded in real ledger postings, so it's worth being precise about what posts, when, and to which account.
+As production proceeds, Carbon accumulates consumed material and labor, machine, and overhead costs in <Term id="wip">work-in-process</Term>. Job completion transfers that cost to finished-goods inventory. This guide describes the ledger entries, timing, and accounts for that flow.
## Accounting is a switch
-The first thing to know is that costing is gated. A company setting, **accounting enabled**, is **off by default**. With it off, the physical world still moves: the item ledger records quantities, job and operation statuses advance, material gets issued. But no general-ledger entries and no cost layers are written. Turn it on and the same operations also post money.
+The company-level **accounting enabled** setting is **off by default**. When disabled, Carbon still updates item-ledger quantities, job and operation statuses, and material issues, but it does not create general-ledger entries or cost layers. When enabled, the same operations also post financial entries.
<Callout tone="amber" badge="OFF BY DEFAULT" title="Quantities always move; money only moves when accounting is on.">
-Receiving, issuing, completing: the physical and status changes happen regardless. The GL postings described in this flow are written only when accounting is enabled for the company, so a shop can run operationally before it runs its books.
+Receiving, issuing, and completion always update physical inventory and status. The GL postings in this guide occur only when accounting is enabled.
</Callout>
## Cost lands in WIP
-As the job runs, cost flows **into** its work-in-process. Two streams feed it.
+Two cost streams enter a job's work-in-process balance.
<Figure illustration="wip-inflow" caption="Two streams feed a job's WIP: material out of inventory, plus labor, machine, and overhead time at the work center's rates." />
-**Material.** When a job consumes a part (<Term id="material-issue">issued</Term> to an operation, or <Term id="backflush">backflushed</Term> at completion), Carbon moves that part's cost out of inventory and into WIP. The ledger entry is a debit to the work-in-process account and a credit to inventory, tagged *Job Consumption*.
+**Material.** When a job consumes a part through <Term id="material-issue">issue</Term> or completion <Term id="backflush">backflush</Term>, Carbon moves its cost from inventory to WIP. The *Job Consumption* entry debits work-in-process and credits inventory.
-**Labor, machine, and overhead.** Every production event a worker or machine logs carries a duration. Carbon prices it against the **work center's** rates and posts it in real time: a debit to WIP, a credit to an absorption account, tagged *Production Event*. Labor and machine time each post at their own rate (hours times the rate); if the work center also carries an overhead rate, the event books a second pair, a debit to WIP and a credit to an overhead-absorption account, at that rate. All three rates come from the <Term>work center</Term>, not from the operation's estimate.
+**Labor, machine, and overhead.** Each production event has a duration that Carbon prices at the **work center's** rates and posts in real time. The *Production Event* entry debits WIP and credits the applicable absorption account. Labor and machine time post at their respective hourly rates. If the work center has an overhead rate, Carbon also debits WIP and credits overhead absorption. All rates come from the <Term>work center</Term>, not the operation estimate.
<Callout tone="blue" badge="WHAT LANDS IN WIP" title="WIP collects real material plus labor, machine, and overhead time.">
-WIP is the sum of consumed material and the priced production events. Each event posts labor and machine at the work center's rates, and when the work center has an overhead rate, that too is absorbed into WIP alongside the time, gated on the overhead-absorption account being configured. WIP is real material plus real time, not a standard estimate.
+WIP consists of consumed material and production events priced at work-center labor, machine, and overhead rates. Overhead posts only when the overhead-absorption account is configured. These are actual costs, not standard estimates.
</Callout>
<Screenshot src="/screens/job-production-events.png" label="Job — production events" caption="Production events on J000001 — setup, labor, and machine time logged against each work center — priced into WIP at that work center's rates." ratio="wide" />
## Issued or backflushed
-That material reaches WIP one of two ways, and the difference is *when*. **Issuing** pushes a part to an operation as the work happens, the same move the picking list drives when it stages material to the line. **Backflushing** waits for the finish: when the job completes, Carbon consumes whatever the method called for that wasn't already issued, in a single sweep.
+Material reaches WIP through **issue** or **backflush**. Issuing consumes a part during the operation, including after a picking list stages it at the line. At job completion, backflush consumes required material that has not already been issued.
-The posting is identical either way (cost out of inventory, into WIP), so the choice is about floor discipline, not accounting. Issue as you go when you need tight control over what's consumed; lean on backflush for the routine material you'd rather not hand-count.
+Both methods credit inventory and debit WIP. Use issue for explicit consumption control and backflush for routine material.
<Callout tone="neutral" badge="SCRAP LEAVES WIP" title="Ruined cost is relieved to a scrap account, not carried to close.">
-<Term>Scrap</Term> and <Term>rework</Term> are recorded as their own production quantities. Scrapping a tracked part relieves its cost from the job: debited to a dedicated scrap account and credited out of WIP (or straight out of inventory, for a part still in stock), tagged with the reason, work center, and operator. The ruined value leaves the job rather than riding along to close, and the scrap reopens the routing so a replacement gets built. See [scrap and unscrap](/docs/reference/scrap).
+<Term>Scrap</Term> and <Term>rework</Term> are separate production quantities. Scrapping a tracked part debits the scrap account and credits WIP, or inventory if the part remains in stock. The entry includes the reason, work center, and operator. Scrap removes the cost from the job and reopens the routing for a replacement. See [scrap and unscrap](/docs/reference/scrap).
</Callout>
## WIP isn't a table
-Here's the part most ERPs hide. In Carbon, work-in-process is not a column or a table you can read off a job. It's a **balance in the [general ledger](/docs/reference/accounting)**, the sum of every posting against the work-in-process account that carries this job's id. A job's WIP is a query, not a field.
+Work-in-process is not stored as a job field or separate table. It is the **[general-ledger](/docs/reference/accounting) balance** of entries posted to the work-in-process account with the job ID.
-The cost itself lives in the **cost ledger**, where each inbound entry opens a layer with a remaining quantity. How a consumed part is priced depends on the item's <Term>costing method</Term>: **FIFO** or **LIFO** walk the open layers, **Average** uses the running unit cost, **Standard** uses the standard cost. That choice changes the *amount* of the WIP entry, but the shape never changes: cost in from inventory, cost out to finished goods.
+The **cost ledger** stores each inbound cost layer and its remaining quantity. The item's <Term>costing method</Term> determines consumption value: **FIFO** and **LIFO** select open layers, **Average** uses the running unit cost, and **Standard** uses the standard cost. The method changes the amount but not the flow from inventory to WIP and then finished goods.
<Callout tone="neutral" badge="COST LAYERS" title="A layer is a cost-ledger row with quantity left on it.">
-There is no separate cost-layer table. Open layers are cost-ledger rows that still have remaining quantity. Consuming walks those layers by date for FIFO or LIFO; the costing method only decides which cost a consumption picks up, never whether WIP is tracked.
+An open cost layer is a cost-ledger row with remaining quantity; there is no separate layer table. FIFO and LIFO traverse these rows by date. The costing method selects the consumption cost but does not affect WIP tracking.
</Callout>
diff --git a/docs/content/guides/job-finish-close.mdx b/docs/content/guides/job-finish-close.mdx
index 811cd45acc..6ee47b1c31 100644
--- a/docs/content/guides/job-finish-close.mdx
+++ b/docs/content/guides/job-finish-close.mdx
@@ -8,46 +8,46 @@ flowName: Manufacturing accounting
flowIndex: 3
---
-A <Term>job</Term> has been collecting cost in <Term id="wip">work-in-process</Term>. Three events turn that running balance into a settled set of books: the job **finishes** into inventory, the goods are **sold** out of inventory, and the job is **closed**. Each is a distinct posting, and the order matters.
+A <Term>job</Term> accumulates cost in <Term id="wip">work-in-process</Term>. Three distinct postings settle that balance in sequence: job completion transfers WIP to inventory, shipment transfers inventory to cost of goods sold, and job close clears any residual WIP.
<Figure illustration="wip-to-cogs" caption="A job's WIP empties into inventory at finish, flows to COGS at the sale, and any residual sweeps to Production Variance at close." />
## Finish into inventory
-When the last operation is done, you complete the job. The **"Complete Job"** dialog confirms the move — it shows the **"Quantity Completed"**, derived from the serials and batches completed in MES rather than typed in, and warns that the job will no longer be available on the shop floor. Carbon then <Term id="backflush">backflushes</Term> any untracked material still owed — serial- and batch-tracked material has to be scanned in on the floor, so it is never backflushed — catches up any labor that hasn't posted yet, and **receives the finished goods into inventory**: a debit to inventory, a credit to work-in-process, tagged *Job Receipt*. The job moves to **"Completed"**.
+After the final operation, use **"Complete Job"**. The dialog displays **"Quantity Completed"**, derived from serials and batches completed in MES and not editable here, and warns that the job will leave the shop-floor view. Carbon <Term id="backflush">backflushes</Term> outstanding untracked material, posts any outstanding labor, and receives finished goods into inventory. Serial- and batch-tracked material must be scanned and is never backflushed. The *Job Receipt* entry debits inventory and credits work-in-process, and the job moves to **"Completed"**.
-The receipt is valued at the job's **actual accumulated WIP cost** — whatever really went in. Carbon does not receive finished goods at standard and book a variance; the finished unit's cost is simply the sum of what the job spent.
+The receipt uses the job's **actual accumulated WIP cost**. Carbon does not receive finished goods at standard cost or post a completion variance.
<Callout tone="blue" badge="ACTUAL, NOT STANDARD" title="Finished goods are valued at what the job actually cost.">
-Completion moves the whole WIP balance into inventory one-for-one, equal debit and credit, so there's no variance at finish time. The item's costing method only decides how that cost is carried forward onto the part, not the value it's received at.
+Completion transfers the entire WIP balance to inventory with equal debit and credit entries, so it creates no variance. The item's costing method determines how inventory carries the cost forward, not the receipt value.
</Callout>
<Screenshot src="/screens/job-completion.png" label="Job completion" caption="The Complete Job dialog: the quantity completed comes from the serials and batches finished in MES and can't be edited here." ratio="wide" />
## Make-to-order still goes through stock
-It's tempting to think a make-to-order job ships straight to the customer. It doesn't. A make-to-order job is marked by its link to a <Term>sales order</Term> line, but its costing is **identical** to a stock job: it receives into inventory first, and the sales order then ships *from inventory*. The job and the shipment are separate postings.
+A make-to-order job links to a <Term>sales order</Term> line but follows the same costing flow as a stock job. Completion receives the output into inventory, and the sales order ships it from inventory. Job completion and shipment are separate postings.
<Callout tone="amber" badge="MTO = MTS, FOR COSTING" title="A make-to-order job receives to stock, then ships from stock.">
-There is no path that ships finished goods directly off a job. Whether a job was raised for stock or for a specific order, it completes into inventory the same way, which keeps cost in one place and makes the sale a clean, separate event.
+Finished goods never ship directly from a job. Stock and make-to-order jobs both complete into inventory before shipment.
</Callout>
## Sell it
-When the order ships, the cost of those goods comes **out of inventory**, not out of WIP. Posting the <Term>shipment</Term> reads the inventory cost layers, prices what left, and posts a debit to <Term id="cogs">cost of goods sold</Term> and a credit to inventory, tagged *Sales Shipment*. This is the same shipment posting the [quote-to-cash flow](/guides/order-to-cash) covers. Here we're just watching the cost side of it.
+When the order ships, cost leaves **inventory**, not WIP. Posting the <Term>shipment</Term> values the quantity from inventory cost layers and creates a *Sales Shipment* entry that debits <Term id="cogs">cost of goods sold</Term> and credits inventory. See the [quote-to-cash flow](/guides/order-to-cash) for the complete shipment process.
-By the time a unit is sold, its WIP is long gone, relieved at completion. COGS is always drawn from the inventory layer, so the sale's margin reflects the real landed cost of that specific stock.
+Completion has already cleared the unit's WIP. COGS comes from the inventory layer, so margin uses that stock's landed cost.
## Close the job
-Completion zeroes WIP into finished goods one-for-one, so in the clean case a finished job's WIP balance is already nil. But rounding, late material, or a late event can leave a few cents stranded against the job's work-in-process account. **Closing** the job sweeps it.
+Completion normally reduces job WIP to zero. Rounding, late material, or late production events can leave a residual balance, which **closing** clears.
-Closing sums whatever remains in WIP for the job and, if it's more than a rounding sliver, posts it to a production-variance account (a debit to **Production Variance**, a credit to work-in-process), tagged *Job Close*. The job moves to **"Closed"**, and its WIP is provably zero. This is the one place a job's variance lands.
+Closing calculates the job's remaining WIP. If it exceeds the rounding threshold, the *Job Close* entry debits **Production Variance** and credits work-in-process. The job moves to **"Closed"** with zero WIP. Carbon posts job variance only at this step.
<Callout tone="green" badge="CLOSE = SWEEP WIP" title="Closing settles the residual to Production Variance.">
-There's no standard-cost variance booked along the way. Finish is at actual, and the only variance Carbon posts for a job is whatever WIP is left over at close. A closed job has zero work-in-process and a complete trail from material in to variance out.
+Carbon does not post standard-cost variance during production or completion. Completion uses actual cost, and close posts only the residual WIP as variance.
</Callout>
<Divider />
-That's the cost of a job, start to finish: cost flows into WIP as it's worked, out to inventory when it finishes, on to COGS when it sells, and any remainder swept to variance when it closes, every move a real ledger posting, gated on whether the shop is keeping books at all. The same ledger carries the machines that did the work, which is where this flow turns next.
+Job cost flows into WIP during production, into inventory at completion, into COGS at shipment, and into production variance for any residual at close. Carbon creates these ledger postings only when accounting is enabled.
diff --git a/docs/content/guides/order-to-cash.mdx b/docs/content/guides/order-to-cash.mdx
index 39b33c686a..18dc4c55a4 100644
--- a/docs/content/guides/order-to-cash.mdx
+++ b/docs/content/guides/order-to-cash.mdx
@@ -8,13 +8,13 @@ flowName: Quote to cash
flowIndex: 1
---
-You have a <Term>sales order</Term> sitting at **"To Ship and Invoice"**. Cash is four moves away: fulfill the lines, post a <Term>shipment</Term>, raise an invoice, apply a payment against it. None of them auto-chain. Each is a discrete, posted step you take when the work is actually ready.
+A <Term>sales order</Term> at **"To Ship and Invoice"** requires four explicit steps: fulfill the lines, post a <Term>shipment</Term>, create and post an invoice, and apply a payment. Carbon does not chain these actions automatically.
<Figure illustration="cash-cycle" caption="Four posted moves carry a confirmed order to recorded cash. None of them auto-chains." />
## The line stays open
-A sales order line keeps score. It tracks `saleQuantity` against `quantitySent` and `quantityInvoiced`, with the remaining `quantityToSend` and `quantityToInvoice` computed for you. The line only closes when it is **both** fully sent and fully invoiced. That single rule is what lets one order ship and bill in pieces without losing the remainder.
+A sales order line tracks `saleQuantity`, `quantitySent`, and `quantityInvoiced`. Carbon computes `quantityToSend` and `quantityToInvoice`. The line closes only when it is fully shipped and fully invoiced, so partial shipments and invoices retain the outstanding quantities.
## Three ways to fulfill a line
@@ -24,44 +24,44 @@ The <Term>method type</Term> on each line decides where the goods come from:
- **<Term>Pull from Inventory</Term>** ships from stock you already hold: no job, just a pick.
- **<Term>Purchase to Order</Term>** buys it in for this order; its **<Term>drop-ship</Term>** variant has the supplier ship straight to your customer, so the goods never touch your dock.
-However a line is sourced, every fulfillment resolves to one of two kinds, from **inventory** or from a **job**, and that's what the shipment posts against.
+Regardless of sourcing method, a shipment fulfills the line from either inventory or a job.
<Callout tone="blue" badge="STATUS vs DISPLAY" title="The list can read 'In Progress' before the stored status changes.">
-The sales order list computes a display status: while a make-to-order line still has incomplete jobs, it shows **"In Progress"** even though the order's stored status is **"To Ship and Invoice"**. The raw status drives filtering and the flow; the display status reflects what's really happening on the floor.
+The sales-order list shows **"In Progress"** while a make-to-order line has incomplete jobs, even when the stored status is **"To Ship and Invoice"**. Filters and workflow use the stored status; the display status summarizes production progress.
</Callout>
## Post the shipment
-Create a shipment against the order. One shipment table serves sales orders, purchase orders, and transfers alike, tagged here with a "Sales Order" source. It opens at **"Draft"**.
+Create a **Draft** shipment from the order. The shipment records **Sales Order** as its source.
-Creating it changes nothing on hand: **<Term id="posting">posting</Term>** is the event that matters. Post the shipment and four things happen at once: the shipment moves to **"Posted"**, inventory drops via the item ledger, the line's `quantitySent` rises, and the order advances to **"To Invoice"** (or **"Completed"** once everything is both shipped and billed). `sentComplete` flips only when the cumulative shipped quantity reaches the ordered quantity, so partial and repeated shipments are first-class.
+Creating a shipment does not change inventory. **<Term id="posting">Posting</Term>** it moves the shipment to **"Posted"**, reduces inventory through the item ledger, increments `quantitySent`, and recalculates the order status. `sentComplete` becomes true only when cumulative shipments reach the ordered quantity.
<Callout tone="amber" badge="POSTING ≠ CREATING" title="Posting moves inventory and the order — and stops there.">
-A posted shipment decrements stock and advances the order, and if accounting is enabled it writes the <Term id="cogs">COGS</Term> journal entries. What it does **not** do is create the invoice. Fulfillment and billing are deliberately separate steps.
+A posted shipment reduces stock and advances the order. If accounting is enabled, it also writes the <Term id="cogs">COGS</Term> entries. It does not create an invoice.
</Callout>
<Screenshot src="/screens/otc-post-shipment.png" label="Post shipment" caption="The Post Shipment confirmation. Posting is the move that drops inventory, raises the line's sent quantity, and advances the order." ratio="wide" />
## Raise the invoice
-A sales invoice has two possible sources. You can bill straight from the **sales order**, or from a **posted shipment**. The shipment path links the invoice back to that shipment and clamps the billed quantity to what actually shipped. Bill-on-ship or bill-on-order: Carbon supports both.
+Create a sales invoice from either the **sales order** or a **posted shipment**. A shipment-based invoice links to that shipment and limits the invoiced quantity to the shipped quantity.
-The invoice opens at **"Draft"**, fully editable. The moment it leaves "Draft" it locks, a guard against changing numbers that have already entered the books.
+The invoice is editable while **"Draft"** and locks when it leaves Draft.
<Screenshot src="/screens/otc-sales-invoice.png" label="Sales invoice" caption="AR000001 in Draft, its SAT-1000 line and Net 30 terms carried across from the order, still fully editable until it's posted." ratio="wide" />
## Post and get paid
-Posting the invoice writes the general ledger (Accounts Receivable against Sales, and COGS against Inventory), but only when accounting is switched on for the company. Posting also bumps each line's `quantityInvoiced`, stamps the posting date, and moves the invoice to **"Submitted"**. Note what it is *not*: posting never marks an invoice **"Paid"**.
+Posting increments each line's `quantityInvoiced`, records the posting date, and moves the invoice to **"Submitted"**. If accounting is enabled, it posts Accounts Receivable against Sales and COGS against Inventory. Posting does not mark the invoice **"Paid"**.
-Payment is its own posted entity now, not a checkbox on the invoice. You record a **<Term>payment</Term>** (a **"Receipt"** on the sales side) and apply it to one or more invoices through a **<Term id="invoice-settlement">settlement</Term>**. Each settlement line carries the principal it applies, plus any early-payment discount or write-off. A **credit memo** works the same way: it's a posted balance you apply via a settlement rather than cash. The payment itself moves through **"Draft"**, **"Posted"**, **"Voided"**, and posting it writes the cash-account and Accounts-Receivable entries.
+Record cash received as a **<Term>payment</Term>** of type **"Receipt"**. Apply it to one or more invoices through **<Term id="invoice-settlement">settlements</Term>**. Each settlement records applied principal plus any discount or write-off. Apply a posted credit memo through the same mechanism. A payment moves through **"Draft"**, **"Posted"**, and **"Voided"**; posting writes the cash and Accounts Receivable entries.
-The invoice's paid status is *derived* from those settlements, not stored by hand. Once applied settlements cover the total the invoice reads **"Paid"**; part-way there it reads **"Partially Paid"**; past its due date and unsettled it reads **"Overdue"**. Need to undo a posted invoice? Voiding writes compensating reversing entries; you can't simply delete it.
+Carbon derives invoice status from its settlements: **"Partially Paid"** when partially covered, **"Paid"** when fully covered, and **"Overdue"** after the due date while a balance remains. Voiding a posted invoice writes reversing entries instead of deleting the transaction.
<Callout tone="green" badge="PAYMENT IS AN ENTITY" title="Settlement is a posted payment applied to the invoice, not a field.">
-There's a real payment record (a **"Receipt"** for cash in) that you apply to invoices through settlements, and credit memos settle the same way. The invoice's **"Paid"** / **"Partially Paid"** status is computed from what's been applied, so the ledger and the balance always agree. All postings are gated on accounting being enabled.
+A **"Receipt"** records incoming cash. Settlements apply receipts or credit memos to invoices. Carbon computes payment status from the applied amounts. General-ledger postings require accounting to be enabled.
</Callout>
<Divider />
-That's quote to cash end to end: an opportunity priced into a quote, accepted into an order, shipped, invoiced, and settled by an applied payment, each step its own posted move, each leaving a trail you can stand behind.
+The quote-to-cash sequence is quote, order, shipment, invoice, and settlement. Each step creates a separate auditable transaction.
diff --git a/docs/content/guides/order.mdx b/docs/content/guides/order.mdx
index 0e1978cc96..79fa905e4e 100644
--- a/docs/content/guides/order.mdx
+++ b/docs/content/guides/order.mdx
@@ -1,69 +1,74 @@
---
-title: Start with the order
-description: A 90-unit solar array wing order becomes real work.
+title: Create production jobs from an order
+description: Convert a 90-unit solar-array order into scheduled production jobs.
label: "(I)"
index: 0
---
-Meet the shop we'll follow through this guide: Nebula Aerospace, an <Term>OEM</Term> that builds satellites. One customer, NovaSat Networks, just placed an order for 90 solar array wings. By the end, you'll have followed that order all the way from the sales desk to 90 finished wings on the shipping dock — and seen most of Carbon along the way.
+This guide follows Nebula Aerospace, an <Term>OEM</Term>, as it fulfills an order for 90 solar array wings. The example connects sales, production planning, and shop-floor execution.
-Carbon spans the office and the floor: ERP for orders, purchasing, and planning; MES for the people actually building. The thread that ties them together is a single order, so that's where we start.
+Carbon ERP manages orders, purchasing, and planning. Carbon MES executes the resulting production work. The sales order connects both systems.
<Figure illustration="flow-overview" caption="The path one order travels through Carbon, and the shape of this guide." />
## The sales order
-Open the <Term>sales order</Term> dashboard. There's already an order on the books: SO000009, 90 SAW-001 Solar Array Wings at $35,000 each. But the customer doesn't want all 90 at once, so the order carries three lines of 30 — one this week, one next week, one the week after. That delivery schedule is going to shape everything downstream.
+Open sales order SO000009. It contains three lines of 30 SAW-001 Solar Array Wings at $35,000 each, due over three weeks. Each line can be produced and shipped independently.
-Shipping part of an order doesn't close it. The badge on the header reads **"In Progress"**, the display status Carbon shows while the order's make-to-order lines still have production to finish; the stored status underneath is **"To Ship and Invoice"** while any unit has yet to ship. Once every unit has shipped but you haven't billed yet, it moves to **"To Invoice"**. The order closes only when everything has both shipped and been invoiced. That's what lets one order be fulfilled in batches without losing track of what's left.
+A partial shipment does not close the order. Carbon displays **"In Progress"** while make-to-order lines still require production. The stored status remains **"To Ship and Invoice"** while units remain to ship. After all units ship, an uninvoiced order moves to **"To Invoice"**. The order closes only after all units are shipped and invoiced.
<Screenshot src="/screens/order-dashboard.png" label="Sales order dashboard" caption="SO000009 for NovaSat Networks: three lines of 30 Solar Array Wings, an 'In Progress' badge, and a 'Jobs Required' banner waiting on you to create the jobs." ratio="wide" />
<Callout tone="neutral" badge="UPSTREAM" title="The order often starts as a quote.">
-Carbon has a full <Term>Quote</Term> module with quantity-break pricing, so the 90-unit price could have been negotiated in <Term>quote to cash</Term> first. We'll pick the story up at the confirmed sales order, where the build truly begins.
+The order may originate from a <Term>quote</Term> with quantity-break pricing. This guide starts with the confirmed sales order. See [quote to cash](/guides/quote-to-cash) for the preceding workflow.
</Callout>
## Batch it into jobs
-You don't build 90 wings as one monolithic job. To match the three-week delivery schedule, the order's three lines of 30 become three <Term id="job">jobs</Term> of 30, one per delivery, each scheduled, released, and shipped on its own timeline.
+Create three <Term id="job">jobs</Term> of 30 to match the delivery schedule. Each job can be scheduled, released, completed, and shipped independently.
-You create those jobs from the sales order itself. The **"Jobs Required"** banner at the top of the order is the prompt; its **"Create Jobs"** button covers the whole order at once. To do it line by line, use the line's **Jobs** card: click **"Make to Order"** and the **"Convert Line to Job"** dialog opens with the **Quantity** already prefilled at the line's 30. Create the first job, then repeat for the second and third lines. Carbon counts down the units still waiting on a job (90 → 60 → 30), so you always know how much of the order is left to batch. To build only part of a line, lower the prefilled **Quantity** and convert the remainder later.
+Create jobs from the sales order in either of two ways:
+
+- Select **Create Jobs** in the **Jobs Required** banner to process the full order.
+- On a line's **Jobs** card, select **Make to Order**. The **Convert Line to Job** dialog defaults **Quantity** to the unallocated line quantity. Reduce it to create a partial job and convert the remainder later.
+
+Carbon decreases the quantity that still requires a job after each conversion.
<Figure illustration="order-split" caption="One 90-unit order, batched into three 30-unit jobs across three weeks." />
<Screenshot src="/screens/order-convert-line-to-job.png" label="Sales order line: Jobs card and the Convert Line to Job dialog" caption="Where you batch: the line's Jobs card. 'Make to Order' opens 'Convert Line to Job' with the Quantity prefilled at the line's 30. Create each batch, repeating until the order is fully covered." ratio="wide" />
<Callout tone="blue" badge="WHY BATCH" title="Batching matches your build to the delivery promise.">
-Three jobs of 30 let you release week one now, keep weeks two and three in planning, and ship each batch the moment it's done — instead of waiting on all 90.
+Separate jobs let you release the first delivery while later deliveries remain in planning. Completed batches can ship without waiting for all 90 units.
</Callout>
## Create the job
-From the sales order, create the job. Carbon carries the part, quantity, and due date across automatically. The job inherits exactly what was sold. That way, the shop floor always has the up-to-date specifications and requirements for the job.
+When you create a job from the sales order, Carbon copies the part, quantity, and due date to the job.
-Carbon carries one more thing across, and it's the most important: the part's <Term id="method">manufacturing method</Term>, its full recipe of materials and operations. The job doesn't point at the part's master recipe, though. It gets its own copy.
+Carbon also copies the part's <Term id="method">manufacturing method</Term>, including its materials and operations. The job owns this copy; it does not reference the editable master method.
<Screenshot src="/screens/order-job-overview.png" label="Job overview with its copied method" caption="A job created this way — here J000001 for the SAT-1000 satellite bus — carries its own copy of the part's method, with part, quantity, and due date inherited from the sales order line." ratio="wide" />
## Get the method
-Pulling that recipe into the job is an explicit action in Carbon called <Term>Get Method</Term>. It clones the part's method, every material and every operation, into a job-specific method that belongs to this job alone.
+<Term>Get Method</Term> clones the part's materials and operations into a job-specific method.
-That copy is the whole point. Say this batch needs a one-off substitution, like a different fastener or an extra inspection step. You edit the job's method, and the part master stays untouched. And when a change proves itself, you can push it back up to the part so every future job inherits it.
+Edit the job method for batch-specific substitutions or operations without changing the part master. If the change should become standard, push it to the part method for future jobs.
<Figure illustration="get-method" caption="Get Method copies the part's recipe into the job. Edits stay local until you push a proven change back up." />
<Callout tone="blue" badge="GET METHOD" title="The part holds the master recipe; the job holds a working copy.">
-Editing a job never silently rewrites your part library, and updating a part never disturbs a job already in flight. Nothing flows between them automatically: you copy the recipe down when the job is created, and push improvements back up only when you choose to.
+Editing a job does not update the part library. Updating a part does not alter an existing job. Changes move between them only through explicit copy and push actions.
</Callout>
## Release or plan
-Now the key decision. You'll release one job, week one, and leave the other two in planning. The difference is what each action sets in motion:
+Release the first job and plan the other two. The actions have different effects:
-- Release: generates inventory alerts for any required material that isn't in stock, and adds the job's tasks to the shop-floor schedule. This is work the floor can start.
-- Plan: generates the same inventory alerts, but does not schedule anything. It's how you see what a future job will need without the shop floor seeing it on the schedule. They are not yet notified about this job in any way.
+- **Release** generates shortage alerts and adds job tasks to the shop-floor schedule.
+- **Plan** generates the same shortage alerts without scheduling work or notifying the shop floor.
<Callout tone="amber" badge="RELEASE ≠ PLAN" title="Plan = See demand early | Release = Put work in motion">
-Planning weeks two and three now means you can order materials that have a long lead time — without cluttering this week's schedule with jobs the floor can't touch yet.
+Plan future jobs to identify long-lead material demand without adding those jobs to the current shop-floor schedule.
</Callout>
diff --git a/docs/content/guides/plan.mdx b/docs/content/guides/plan.mdx
index fbf6065ce1..345126085a 100644
--- a/docs/content/guides/plan.mdx
+++ b/docs/content/guides/plan.mdx
@@ -1,17 +1,17 @@
---
-title: Plan ahead
-description: Orders and forecast become jobs and POs.
+title: Plan supply from demand
+description: Convert orders and forecasts into production jobs and purchase orders.
label: "(III)"
index: 2
---
-Creating that first <Term>job</Term> created demand. Carbon now knows it needs structural frames, battery packs, and machine time. But your <Term id="sales-order">sales orders</Term> only show part of the picture. The pipeline says more satellite buses are coming, even though no order exists yet.
+Creating a <Term>job</Term> generates demand for its materials and capacity. <Term id="sales-order">Sales orders</Term> provide confirmed demand, while forecasts represent expected demand that is not yet ordered.
-Planning on confirmed orders alone means you're always reacting. Carbon lets you plan on what you expect, too — and lets each part decide for itself how aggressively to replenish.
+Carbon plans against both sources and applies each part's replenishment policy.
## Demand forecasting
-Under Production, open Projections and enter what you expect to need in the coming weeks. Here, the pipeline points to two SAT-1000 satellite buses a week for the next fortnight, climbing to four a week by week six, and to the subsystems that ride with them: ADCS-001 and EPS-001. That's real demand with no order behind it yet. <Term id="demand-forecast">Forecasting</Term> puts it into the plan anyway.
+Under **Production**, open **Projections** and enter expected weekly quantities. In this example, demand for SAT-1000 increases from two units per week to four by week six, with corresponding demand for ADCS-001 and EPS-001. <Term id="demand-forecast">Forecasting</Term> adds these quantities to the plan without creating sales orders.
<Figure illustration="demand-forecast" caption="Confirmed orders (weeks 1–3) plus forecasted demand (weeks 4–5), the full picture Carbon plans against." />
@@ -19,31 +19,31 @@ Under Production, open Projections and enter what you expect to need in the comi
## Reordering policy
-Not every part should wait for demand to pull it. A fast-moving fastener wants a standing buffer; a custom casting wants to be ordered only when a job needs it. Each part carries a <Term>reordering policy</Term> that tells planning exactly which behavior to use:
+Each part has a <Term>reordering policy</Term> that controls when and how much Carbon proposes to replenish:
-- Manual Reorder: planning stays hands-off. You decide when to order. Good for the parts a human should always eyeball.
-- Demand-Based Reorder: order just what demand needs, when it needs it, grouped into a demand accumulation period so a week of small pulls becomes one sensible order.
-- Fixed Reorder Quantity: when on-hand falls to the <Term>reorder point</Term>, order a fixed reorder quantity. Predictable, supplier-friendly batch sizes.
-- Maximum Quantity: when on-hand falls to the reorder point, top back up to the maximum inventory quantity. Classic min/max for shelf stock.
+- **Manual Reorder**: Carbon creates no proposal; a planner decides when and how much to order.
+- **Demand-Based Reorder**: replenish net demand, grouped by the configured demand-accumulation period.
+- **Fixed Reorder Quantity**: when on-hand reaches the <Term>reorder point</Term>, propose the configured reorder quantity.
+- **Maximum Quantity**: when on-hand reaches the reorder point, propose enough to reach the maximum inventory quantity.
<Figure illustration="reorder-policy" caption="Reorder point in action: on-hand falls to the trigger, and an order tops it back up." />
<Callout tone="blue" badge="BUY OR MAKE" title="The policy decides how much; the replenishment system decides what kind of order.">
-A part set to Buy turns a replenishment into a <Term id="purchase-order">purchase order</Term>; set to Make, it turns into a job. The reorder quantity and the minimum / maximum order quantities round the raw number into something you can actually order or build.
+The policy determines quantity. The replenishment system determines the document: **Buy** creates a <Term id="purchase-order">purchase order</Term>, while **Make** creates a job. Reorder, minimum, and maximum quantities adjust the proposed quantity to an orderable amount.
</Callout>
<Screenshot src="/screens/plan-part-planning.png" label="Part: Planning tab" caption="A part's Reordering Policy, Reorder Point, and Reorder Quantity that drive every suggestion." ratio="wide" />
## Into jobs & POs
-Now Carbon turns the whole picture (orders, forecast, and each part's policy) into the work that fulfills it. It nets demand against what you already have (on-hand stock plus open jobs and purchase orders) and proposes the difference: [production planning](/docs/reference/planning) suggests the jobs to build, purchasing planning suggests the purchase orders to raise.
+Carbon nets order and forecast demand against on-hand inventory, open jobs, and open purchase orders. [Production planning](/docs/reference/planning) proposes jobs for manufactured parts; purchasing planning proposes purchase orders for purchased parts.
<Figure illustration="planning-engine" caption="Demand in, plan out: production planning suggests jobs, purchasing planning suggests POs." />
-Purchasing planning applies <Term id="conversion-factor">conversion factors</Term> as it goes, so a satellite's worth of demand becomes the right quantity in the units you actually buy. Nothing is committed until you confirm a suggestion. That's the moment a proposed line becomes a real job or a real PO.
+Purchasing planning applies <Term id="conversion-factor">conversion factors</Term> to translate inventory units into purchasing units. A proposal becomes a job or purchase order only after confirmation.
<Callout tone="neutral" badge="BY LOCATION" title="Demand and planning can differ by location.">
-Run different plans for different sites, and let each part replenish the way that site needs: full demand-driven planning in one, simple min/max for high-runners in another.
+Run plans by location. The same part can use different replenishment settings at different sites.
</Callout>
<Screenshot src="/screens/plan-production-planning.png" label="Production planning" caption="Suggested jobs for the parts you make, with the weekly shortfall that triggered each one." ratio="wide" />
@@ -52,9 +52,9 @@ Run different plans for different sites, and let each part replenish the way tha
## Receiving
-When a purchase order arrives, you receive it. A <Term>receipt</Term> starts as a Draft against the PO, auto-fills its lines from what was ordered, and validates the quantities; <Term id="posting">posting</Term> it turns the goods into on-hand stock on a shelf.
+When a purchase order arrives, create a <Term>receipt</Term>. Carbon initializes the Draft receipt from the order and validates its quantities. <Term id="posting">Posting</Term> the receipt adds the goods to on-hand inventory.
-For a <Term id="batch">batch-tracked</Term> part like the BAT-LIION-48V battery packs, Carbon captures the batch number right on the receipt line, and a conversion factor converts what you bought into what you stock, so a case of ten packs becomes ten units on the shelf. Months later, you can answer exactly which lot of packs went into which satellites.
+For a <Term id="batch">batch-tracked</Term> item, record the batch number on the receipt line. The conversion factor converts the purchased quantity to the inventory quantity. Carbon retains the batch identity for later genealogy queries.
<Figure illustration="conversion-factor" caption="A conversion factor reconciles units: one purchased box of ten lands as ten stocked Each." />
diff --git a/docs/content/guides/quote-to-cash.mdx b/docs/content/guides/quote-to-cash.mdx
index a627a8d3b3..e6e01b80e2 100644
--- a/docs/content/guides/quote-to-cash.mdx
+++ b/docs/content/guides/quote-to-cash.mdx
@@ -8,62 +8,65 @@ flowName: Quote to cash
flowIndex: 1
---
-The make-to-order tour started at a confirmed sales order. This flow rewinds to where that order comes from: a customer asking for a price, a quote that answers it, an acceptance that turns it into work. Quote to cash is the commercial spine that runs alongside the build — pricing on one end, a settled invoice on the other.
-
-We'll follow one inquiry from a blank quote all the way to an order Carbon is ready to ship.
+This guide follows a customer inquiry from quote creation through conversion to a sales order. The [next guide](/guides/order-to-cash) covers shipment, invoicing, and payment.
## One opportunity, many documents
-In Carbon, a <Term id="rfq">request for quote</Term>, a <Term>quote</Term>, and a <Term>sales order</Term> aren't a rigid chain. They're three documents that hang off a single **<Term>opportunity</Term>**. The opportunity holds a slot for each (`salesRfqId`, `quoteId`, `salesOrderId`), and any of them can be empty.
+In Carbon, a <Term id="rfq">request for quote</Term>, <Term>quote</Term>, and <Term>sales order</Term> link to one **<Term>opportunity</Term>**. The opportunity can reference each document through `salesRfqId`, `quoteId`, and `salesOrderId`; none is required.
<Figure illustration="opportunity-thread" caption="Three documents (RFQ, quote, order) hang off one opportunity, and any slot can be empty." />
-That design has a practical consequence: none of the steps are mandatory. You can raise a sales order cold, quote without a formal RFQ, or carry one opportunity through all three. Carbon tracks the relationship through the opportunity, not through a foreign key that forces the sequence.
+You can therefore create a sales order directly, create a quote without an RFQ, or use all three documents. The opportunity records the relationship without enforcing a sequence.
<Callout tone="neutral" badge="NO RIGID CHAIN" title="Quotes are optional. The opportunity is the thread.">
-A sales order does not require a quote, and a quote does not require an RFQ. Each document links back to the same opportunity, so you can enter the flow at whatever point a deal actually starts.
+A sales order does not require a quote, and a quote does not require an RFQ. Link the documents to one opportunity regardless of where the sales process starts.
</Callout>
## Build the quote
-Open a new quote and add a line per item the customer asked about. Pricing lives on the line and supports quantity breaks, so the unit price for one can differ from the price for twenty-five. The negotiated number you land on is what carries forward later.
+Create a quote and add one line for each requested item. Each line supports quantity-break pricing. The negotiated net unit price carries forward to the sales order.
-A fresh quote sits at **"Draft"**. Each line moves through its own state as you work it up: **"Draft"**, **"In Progress"**, then **"Complete"** once you've settled its pricing. The line states let you quote a multi-item inquiry piecemeal instead of all at once, marking lines complete one by one rather than all at once.
+A new quote is **"Draft"**. Each line progresses independently through **"Draft"**, **"In Progress"**, and **"Complete"**, allowing a multi-item quote to be priced incrementally.
<Screenshot src="/screens/quote-builder.png" label="Quote builder" caption="A multi-line quote with quantity-break pricing, each line worked up independently." ratio="wide" />
-When the numbers are ready, finalizing the quote moves it to **"Sent"** and marks its lines **"Complete"**. That status is also the gate for the next step.
+Finalizing the quote moves it to **"Sent"** and marks its lines **"Complete"**. Only a Sent quote can proceed to customer action.
## Send it to the customer
-Carbon can hand the customer the quote directly. With digital quotes enabled, a **"Sent"** quote exposes a private share link: an unguessable id, no login required. Internal notes are stripped before anything reaches the customer.
+With digital quotes enabled, a **"Sent"** quote provides a private, unguessable share link that requires no login. The customer view excludes internal notes.
+
+The customer can:
+
+- Select **Accept Quote** to create a sales order, then optionally attach their purchase order as a PDF.
+- Select **Reject Quote** to move the quote to **"Lost"**.
-From that link the customer does one of two things. They **accept** — the page ends with an **"Accept Quote"** button — and the quote converts straight into a sales order; the option to attach their PO as a PDF appears once they've accepted. Or they **reject**, via the **"Reject Quote"** link underneath, and the quote moves to **"Lost"**. Either way the outcome lands back in Carbon without a single email thread.
+Carbon records either result on the quote.
<Callout tone="blue" badge="DIGITAL QUOTE" title="Acceptance is a first-class action, not an inbox.">
-The customer-facing share link turns an accept into a real conversion and a reject into a recorded outcome. A companion customer portal then shows them live order and job status as the work proceeds.
+Acceptance converts the quote; rejection records the outcome. The customer portal can then display order and job status.
</Callout>
<Screenshot src="/screens/quote-digital-customer.png" label="Digital quote: customer view" caption="What the customer sees: line pricing, an 'Accept Quote' button, and a 'Reject Quote' link beneath it." ratio="wide" />
## When a quote doesn't land
-Not every quote converts, and Carbon keeps a distinct status for each ending. A quote whose validity date passes turns **"Expired"**; one the customer rejects becomes **"Lost"**; one you withdraw yourself is **"Cancelled"**. Each is a real outcome on the record, not a quote left hanging.
+Carbon records non-converted quotes as **"Expired"** after the validity date, **"Lost"** after customer rejection, or **"Cancelled"** after internal withdrawal.
-None of them ends the conversation. A quote carries a **revision** number, so when a price needs reworking you re-quote rather than start over: the revision bumps, the customer sees the current terms, and the history of what changed stays intact.
+To revise pricing or terms, create a new quote revision. Carbon increments the revision number and retains the previous terms.
<Callout tone="neutral" badge="REVISE, DON'T RESTART" title="Re-quoting bumps a revision and keeps the trail.">
-A lost or expired quote isn't wasted work. Raise a new revision off it and the prior terms stay on the record, so a negotiation that runs three rounds leaves three readable versions, not three disconnected quotes.
+Create a revision from a lost or expired quote to retain the complete negotiation history.
</Callout>
## Into a sales order
-Whether you convert internally or the customer accepts, the same thing happens: Carbon builds a sales order from the quote. The order lines carry the negotiated net unit price, the new order reuses the quote's opportunity, and the quote flips to **"Ordered"**, or **"Partial"** if only some lines converted. The order itself opens at **"To Ship and Invoice"**.
+Internal conversion and customer acceptance both create a sales order. The order inherits the negotiated net unit prices and opportunity. Carbon moves the quote to **"Ordered"**, or **"Partial"** if only some lines convert. The new order opens at **"To Ship and Invoice"**.
-That status is the handoff. Everything from here (production, shipment, invoice) keys off the sales order, exactly where the make-to-order tour began.
+Production, shipment, and invoicing use the sales order as their source.
<Callout tone="amber" badge="ORDER → JOB, NOT QUOTE → JOB" title="Jobs come from the order, never the quote.">
-There is no path from a quote straight to a production job. A [make-to-order](/guides/order) line on the *sales order* is what spawns a job, so the sequence is always quote → order → job. The order is the source of truth the floor builds against.
+A quote cannot create a production job. A [make-to-order](/guides/order) sales-order line creates the job, so the sequence is quote → order → job.
</Callout>
<Screenshot src="/screens/quote-sales-order.png" label="Sales order" caption="The converted order, priced from the accepted quote. Its badge reads 'In Progress' while the make-to-order lines still have jobs to finish." ratio="wide" />
diff --git a/docs/content/guides/receive-and-bill.mdx b/docs/content/guides/receive-and-bill.mdx
index 9223933239..27f1446d1c 100644
--- a/docs/content/guides/receive-and-bill.mdx
+++ b/docs/content/guides/receive-and-bill.mdx
@@ -8,62 +8,62 @@ flowName: RFQ to bill
flowIndex: 2
---
-The order is placed and sitting at **"To Receive and Invoice"**. Two things now happen on their own schedules: the goods show up, and the supplier's bill shows up. They rarely arrive together, and Carbon is built around that fact: receiving and invoicing are separate posted steps that reconcile against the order, not against each other directly.
+A purchase order at **"To Receive and Invoice"** tracks receipt and invoicing independently. Both processes reconcile against the purchase-order line rather than directly against each other.
<Figure illustration="receive-bill-axes" caption="Received and invoiced are two independent axes on one purchase order line; the line closes only when both complete." />
## The line keeps score
-A <Term>purchase order</Term> line tracks `purchaseQuantity` against two independent counters: `quantityReceived` and `quantityInvoiced`. The amounts still owed, `quantityToReceive` and `quantityToInvoice`, are computed for you. A line carries two flags, `receivedComplete` and `invoicedComplete`, and only when both are true is that line done.
+A <Term>purchase order</Term> line tracks `purchaseQuantity`, `quantityReceived`, and `quantityInvoiced`. Carbon computes `quantityToReceive` and `quantityToInvoice`. The line is complete only when `receivedComplete` and `invoicedComplete` are both true.
-Those two flags are exactly what the order's status rolls up. Receive everything and the order drops to **"To Invoice"**; bill everything and it drops to **"To Receive"**; once a line is both received and invoiced, it's **"Completed"**. Receiving and billing move the same order along two separate axes.
+Carbon derives the order status from those flags. A fully received order moves to **"To Invoice"**; a fully invoiced order moves to **"To Receive"**; an order that is both moves to **"Completed"**.
## Receive the goods
-Create a receipt from the order and Carbon pre-fills it from the outstanding lines, linking each receipt line back to its purchase order line. The receipt opens at **"Draft"**. And like a shipment, creating it changes nothing on hand.
+Create a **Draft** receipt from the order. Carbon copies the outstanding lines and links each receipt line to its purchase-order line. Creating the receipt does not change inventory.
-**<Term id="posting">Posting</Term>** is the event. Post the receipt and stock comes in through the item ledger as a *Purchase Receipt*, the order line's `quantityReceived` rises, `receivedComplete` flips once the full quantity is in, and the order advances. The receipt moves to **"Posted"**.
+**<Term id="posting">Posting</Term>** the receipt adds stock through a *Purchase Receipt* item-ledger entry, increments `quantityReceived`, updates `receivedComplete`, recalculates the order status, and moves the receipt to **"Posted"**.
<Callout tone="amber" badge="INVENTORY vs LEDGER" title="Stock moves whether or not accounting is on.">
-Posting a receipt always updates inventory. The accounting entries are written only when accounting is enabled for the company: debit inventory or <Term id="wip">WIP</Term>, credit the <Term id="gr-ir">goods-received-not-invoiced (GR/IR)</Term> clearing account. Inventory and the general ledger advance on different switches.
+Posting always updates inventory. If accounting is enabled, Carbon also debits inventory or <Term id="wip">WIP</Term> and credits the <Term id="gr-ir">goods-received-not-invoiced (GR/IR)</Term> clearing account.
</Callout>
<Callout tone="green" badge="QUALITY HANDOFF" title="Inspected parts land on hold, not on the shelf.">
-Receive an item flagged for inspection and its <Term id="tracked-entity">tracked units</Term> come in **"On Hold"**, with an inbound inspection opened at **"Pending"** — received, but quarantined until quality clears them for use.
+For an item that requires inspection, received <Term id="tracked-entity">tracked units</Term> enter **"On Hold"** and Carbon creates a **"Pending"** inbound inspection. The units remain unavailable until quality releases them.
</Callout>
<Screenshot src="/screens/receive-post-receipt.png" label="Post receipt" caption="Posting the receipt: stock enters the item ledger, the line's received quantity rises, the order advances." ratio="wide" />
## Buy by the box, stock by the each
-Suppliers rarely sell in your stock unit. You might buy fasteners by the thousand-count box but stock and issue them as eaches. Every purchase order line carries a **<Term>conversion factor</Term>** between the two units, so the price and quantity you agree with the supplier stay in *their* terms while inventory moves in *yours*.
+A purchase-order line stores a **<Term>conversion factor</Term>** between the purchasing unit and inventory unit. Supplier pricing and quantities remain in the purchasing unit; inventory transactions use the inventory unit.
<Figure illustration="conversion-factor" caption="Buy by the box, stock by the each: the line's conversion factor turns one purchased box into ten stocked units." />
-Posting the receipt does the translation: the outstanding purchase quantity is multiplied by the factor, so the receipt lands stock, and moves the item ledger, in your *inventory* unit. You still agree the order with the supplier in *their* unit, and the floor pulls stock in the unit it builds with. Neither side has to do the arithmetic in its head.
+When the receipt posts, Carbon multiplies the purchase quantity by the conversion factor and records the result in the inventory unit.
## The supplier bill
-When the invoice arrives, draw a purchase invoice from the order. Carbon keeps the lines that still have something to bill and opens the invoice at **"Draft"**. Each invoice line links back to its **purchase order line**. And that is the only structural link in the chain.
+Create a **Draft** purchase invoice from the order. Carbon includes lines with an outstanding invoice quantity and links each invoice line to its purchase-order line.
-There is, deliberately, no direct link from an invoice to a receipt. A receipt isn't even required before you bill: a direct invoice can create its own receipt as it posts. Carbon reconciles on the shared order line, not on a receipt-to-invoice match.
+Invoices do not link directly to receipts. A direct invoice can create a receipt when it posts. Reconciliation uses the shared purchase-order line.
<Callout tone="blue" badge="THREE-WAY MATCH" title="The match is on the order line, not a receipt record.">
-Order, receipt, and bill are reconciled through the quantities on their shared purchase order line. Posting the invoice clears the GR/IR accrual the receipt booked, at the receipt's cost, and books any difference between order price and bill to a purchase price-variance account.
+Carbon reconciles order, receipt, and invoice quantities on the purchase-order line. Posting clears the receipt's GR/IR accrual at receipt cost and posts any difference from the invoice price to purchase price variance.
</Callout>
<Screenshot src="/screens/receive-purchase-invoice.png" label="Purchase invoice" caption="A draft supplier invoice drawn from the order, lines matched on the purchase order line." ratio="wide" />
## Match and post
-Posting the purchase invoice writes the payable side of the ledger, all gated on accounting being enabled: credit Accounts Payable, debit inventory or WIP, reverse the GR/IR clearing the receipt set up, and send any price difference to variance. It bumps each order line's `quantityInvoiced`, flips `invoicedComplete`, and recomputes the order's status. The invoice itself lands on **"Open"**.
+Posting increments each order line's `quantityInvoiced`, updates `invoicedComplete`, recalculates the order status, and moves the invoice to **"Open"**. If accounting is enabled, Carbon credits Accounts Payable, debits inventory or WIP, clears GR/IR, and posts price differences to variance.
-Note what posting does *not* do: it never marks the invoice **"Paid"**. As on the sales side, a payment is its own posted entity, not a field. You record a **<Term>payment</Term>** (a **"Disbursement"** for cash out) and apply it to the bill through a **<Term id="invoice-settlement">settlement</Term>** that carries the principal plus any discount or write-off; a **debit memo** settles the same way without cash. The bill's status is *derived* from what's applied: **"Partially Paid"** part-way, **"Paid"** once covered, **"Overdue"** if the due date passes first. Voiding a posted invoice writes reversing entries rather than deleting it.
+Posting does not mark the invoice **"Paid"**. Record outgoing cash as a **<Term>payment</Term>** of type **"Disbursement"** and apply it through a **<Term id="invoice-settlement">settlement</Term>**. A settlement records principal plus any discount or write-off; a debit memo uses the same process without cash. Carbon derives **"Partially Paid"**, **"Paid"**, and **"Overdue"** from the applied amount and due date. Voiding a posted invoice writes reversing entries.
<Callout tone="green" badge="POSTED ≠ PAID" title="A posted bill is 'Open' until a payment is applied.">
-Posting settles the accounting against the order and receipt; it doesn't disburse cash. The bill waits at **"Open"** until you post a payment (a **"Disbursement"**) and apply it via a settlement, which is what records the outflow and flips the bill to **"Paid"**.
+Posting the invoice does not disburse cash. The bill remains **"Open"** until a posted **"Disbursement"** is applied through a settlement.
</Callout>
<Divider />
-That's RFQ to bill end to end: one part shopped to several suppliers, ordered from the best, received into stock, and billed against the very same order line — the buy-side mirror of quote to cash, reconciled on the order, not on paperwork.
+The RFQ-to-bill sequence is RFQ, supplier quote, purchase order, receipt, invoice, and settlement. Receipt and invoice quantities reconcile on the purchase-order line.
diff --git a/docs/content/guides/rfq-to-po.mdx b/docs/content/guides/rfq-to-po.mdx
index 50836beb8a..8218350e38 100644
--- a/docs/content/guides/rfq-to-po.mdx
+++ b/docs/content/guides/rfq-to-po.mdx
@@ -8,54 +8,50 @@ flowName: RFQ to bill
flowIndex: 2
---
-Every satellite the shop builds is mostly parts it buys. RFQ to bill is the procurement side of the house, the mirror image of quote to cash, run from the buyer's chair. You ask suppliers for a price, you place an order, the goods arrive, and a supplier bill lands that you reconcile against what you actually ordered and received.
-
-We'll follow one purchased part from a blank request all the way to a posted supplier invoice.
+This guide covers supplier solicitation and purchase-order creation. The [next guide](/guides/receive-and-bill) covers receipt, invoice matching, and payment.
<Figure illustration="rfq-fanout" caption="One purchasing RFQ fans out to a supplier quote each; the winning bid converts to a purchase order." />
## One RFQ, many suppliers
-Start with a <Term id="rfq">purchasing RFQ</Term>. Unlike a sales <Term>quote</Term>, which is one document for one customer, a purchasing RFQ is built to fan out: one request, the same lines, sent to several suppliers at once so you can compare what comes back. A fresh RFQ sits at **"Draft"**.
+A <Term id="rfq">purchasing RFQ</Term> sends the same requested lines to multiple suppliers for comparison. A new RFQ starts in **"Draft"**.
-When you finalize it, Carbon does the fan-out for you. It creates one **supplier quote** per supplier off the RFQ's lines, links each back to the request, and, if you want, emails the supplier a private link to respond. The RFQ moves to **"Requested"**; each new supplier quote opens at **"Draft"**.
+Finalizing the RFQ creates one **Draft supplier quote** per supplier and links each quote to the request. Carbon can email each supplier a private response link. The RFQ moves to **"Requested"**.
<Callout tone="neutral" badge="LOOSELY COUPLED" title="RFQ and supplier quote are both optional.">
-You can start at the purchase order and skip the shopping-around entirely. When you do use them, the RFQ, the supplier quotes, and the eventual PO are tied together by junction records, not a rigid chain, so one request can spread across many suppliers and many orders.
+RFQs and supplier quotes are optional; you can create a purchase order directly. When used, junction records connect one RFQ to multiple supplier quotes and purchase orders.
</Callout>
<Screenshot src="/screens/rfq-supplier-comparison.png" label="Purchasing RFQ — supplier comparison" caption="One request, the same lines, fanned out to several suppliers to compare." ratio="wide" />
## Suppliers quote back
-Each supplier quote carries a private share link. The supplier opens it, no login, and enters their pricing, including quantity breaks and lead times. Submitting moves their quote to **"Active"** and writes the prices back into Carbon; declining moves it to **"Declined"**.
-
-It's the same digital-quote machinery as the sales side, pointed the other way: there, customers accept your price; here, suppliers send you theirs.
+Each supplier quote has a private share link that requires no login. The supplier enters pricing, quantity breaks, and lead times. Submission moves the quote to **"Active"** and records the prices; rejection moves it to **"Declined"**.
<Callout tone="blue" badge="SUPPLIER PORTAL" title="The portal hangs off the quote, not the request.">
-The share link lives on each supplier quote, so every supplier responds in their own document. You see the bids side by side and pick the one to turn into an order.
+Each supplier responds through a separate quote. Compare the quotes and convert the selected one to an order.
</Callout>
<Screenshot src="/screens/rfq-supplier-portal.png" label="Supplier quote portal" caption="The supplier's view: enter unit price, quantity breaks, and lead time, then submit." ratio="wide" />
## Into a purchase order
-Convert the winning supplier quote and Carbon builds a <Term>purchase order</Term> from it — carrying the supplier, the lines, the negotiated pricing (converted through the line's <Term>conversion factor</Term> and exchange rate), and the same supplier-interaction thread. A PO is one of two kinds: a plain **"Purchase"**, or **<Term id="outside-operation">"Outside Processing"</Term>** for sending parts out to a vendor for a step.
+Converting a supplier quote creates a <Term>purchase order</Term> with its supplier, lines, negotiated pricing, <Term>conversion factors</Term>, exchange rate, and supplier-interaction history. The order type is **"Purchase"** for items or **<Term id="outside-operation">"Outside Processing"</Term>** for subcontracted operations.
-A purchase order's status is never typed in by hand. Carbon computes it from the state of its lines. Finalize a fresh order and it lands at **"To Receive and Invoice"**: nothing has arrived, nothing has been billed. If the order's value crosses an approval threshold, it stops at **"Needs Approval"** until someone signs off.
+Carbon derives the purchase-order status from its lines. A finalized order starts at **"To Receive and Invoice"**. If its value exceeds an approval threshold, it moves to **"Needs Approval"** until approved.
<Callout tone="amber" badge="STATUS IS COMPUTED" title="A PO's status is derived from its lines, every time.">
-Each line tracks whether it's fully received and fully invoiced. The order rolls those up: "To Receive and Invoice" → "To Receive" or "To Invoice" → "Completed", so the header always reflects what's actually outstanding, never a stale label.
+Each line tracks whether it is fully received and invoiced. Carbon rolls those values into **"To Receive and Invoice"**, **"To Receive"**, **"To Invoice"**, or **"Completed"**.
</Callout>
<Screenshot src="/screens/rfq-purchase-order.png" label="Purchase order" caption="The order converted from the chosen supplier quote, sitting at 'To Receive and Invoice'." ratio="wide" />
## Send work out, too
-Not every purchase order buys a part — some buy a *step*. When an operation on one of your own jobs goes to an outside vendor (plating, heat-treat, anodizing), you raise a purchase order of type **"Outside Processing"**, tied to that job's operation rather than to a stock item.
+Use an **"Outside Processing"** order for a job operation performed by a vendor, such as plating, heat treatment, or anodizing. The order links to the job operation instead of a stock item.
-It receives differently, too. Posting an outside-processing receipt adds nothing to a shelf; instead it advances the job operation and posts the vendor's charge straight into the job's [work-in-process](/guides/job-costing). The subcontracted step lands in the same cost balance as the operations you ran in-house.
+Posting an outside-processing receipt does not add inventory. It advances the job operation and posts the vendor charge to the job's [work-in-process](/guides/job-costing).
<Callout tone="blue" badge="OUTSIDE PROCESSING" title="A PO can buy an operation, not just an item.">
-Outside-processing orders bridge purchasing and the floor: the vendor performs a step on your part, and receiving the PO both moves the [make-to-order](/guides/order) job's operation forward and charges its cost to WIP. Purchasing, production, and accounting meet on one document.
+Receiving an outside-processing order advances the [make-to-order](/guides/order) operation and charges its cost to WIP.
</Callout>
diff --git a/docs/content/guides/ship.mdx b/docs/content/guides/ship.mdx
index b8bfba49b2..5186fc887a 100644
--- a/docs/content/guides/ship.mdx
+++ b/docs/content/guides/ship.mdx
@@ -5,11 +5,11 @@ label: "(V)"
index: 4
---
-Building the satellite is most of the work, but it isn't the whole job. You still have to prove it was built right, and close the loop with the customer and your books.
+After production, verify quality, preserve traceability, ship the finished units, and invoice the customer.
## Raise an issue
-Say an operator flags a short in the EPS wiring harness. You open an Issue, Carbon's name for a <Term id="nonconformance">non-conformance</Term>. It moves through a clear lifecycle, from Registered to In Progress to Closed, and it links to the part and the job operation it was found on, so the bus now carries that open issue everywhere it appears in the system.
+When an operator finds a defect, such as a short in the EPS wiring harness, create an Issue to record the <Term id="nonconformance">non-conformance</Term>. The issue moves from **Registered** to **In Progress** to **Closed** and links to the affected part and job operation.
<Figure illustration="eight-d" caption="An issue moves through its workflow (contain, correct, verify) until the fix is proven." />
@@ -17,48 +17,50 @@ Say an operator flags a short in the EPS wiring harness. You open an Issue, Carb
## Workflows & actions
-An issue doesn't just sit there — it runs a workflow you define. A classic <Term>8D</Term> is one such workflow; a quick containment-only response is another. Whichever you pick, it spins up the required actions as tasks, each one started and completed on its own:
+Each issue follows a configured workflow, such as <Term>8D</Term> or a containment-only response. The workflow creates required actions as independently tracked tasks:
<Figure illustration="issue-workflow" caption="An issue moves Registered → In Progress → Closed, spinning up its required-action tasks along the way." />
-- <Term id="containment-action">Containment</Term>: stop the bad parts from spreading. Set it on the affected process and it surfaces on the shop floor, so the next operator can't keep building the defect.
-- <Term id="corrective-action">Corrective</Term>: find and fix the root cause.
-- <Term id="preventive-action">Preventive</Term>: change something so it can't recur.
-- Verification: prove the fix actually worked.
-- Communication: keep the customer in the loop.
+- <Term id="containment-action">Containment</Term>: prevent affected parts from proceeding. When applied to a process, it appears on the shop floor.
+- <Term id="corrective-action">Corrective</Term>: identify and correct the root cause.
+- <Term id="preventive-action">Preventive</Term>: prevent recurrence.
+- Verification: confirm that the correction worked.
+- Communication: update the customer.
<Callout tone="amber" badge="DISPOSITION" title="Held material doesn't move until someone signs off.">
-A review step gates what happens to the non-conforming assemblies: use as is, <Term>rework</Term>, <Term>scrap</Term>, or return to the supplier. Nothing is dispositioned on a hunch; the decision is recorded against the issue alongside its actions.
+A review determines the disposition of non-conforming assemblies: use as is, <Term>rework</Term>, <Term>scrap</Term>, or return to supplier. Carbon records the decision and related actions on the issue.
</Callout>
## Versioned procedures
-Those work instructions the operator followed didn't appear from nowhere. They're generated from versioned procedures, the same Draft / Active / Archived discipline you saw on <Term id="method">methods</Term>. When a corrective action changes how the structural frame is assembled, you publish a new revision; every future job picks it up, and every job already running keeps the revision it started on.
+Work instructions come from versioned procedures with **Draft**, **Active**, and **Archived** states, like <Term id="method">methods</Term>. Publishing a corrective revision applies it to future jobs while in-progress jobs retain their original revision.
<Callout tone="green" badge="REVISIONS" title="Change the procedure once; the floor follows everywhere.">
-New jobs pick up the latest published version; in-flight jobs never shift mid-build. And every satellite's record pins the exact procedure revision it was actually built to.
+New jobs use the latest published version. In-progress jobs retain their assigned version, and each finished unit records the procedure revision used to build it.
</Callout>
<Screenshot src="/screens/ship-procedure-versions.png" label="Procedure version history" caption="V2 of the Structural Frame Assembly procedure, active, with V1 archived behind it." ratio="wide" />
## Traceability
-Because everything was captured at build time, the <Term>genealogy</Term> of a finished satellite is complete. Carbon stores it as a graph of <Term id="tracked-entity">tracked entities</Term> and the activities that link them, so from one serial you can walk backward to every ancestor (which frame, which battery lot, which plate of aluminium) or forward to every place a lot was used.
+Carbon stores the finished unit's <Term>genealogy</Term> as a graph of <Term id="tracked-entity">tracked entities</Term> and their activities. From one serial, you can trace backward to its components and material lots or forward from a lot to every unit that consumed it.
<Figure illustration="traceability-graph" caption="The genealogy of one finished robot, from serial number down to material lots." />
-One click, or one scan of the satellite's QR label, answers the question every auditor and every recall asks: what exactly went into this unit, and where else did that lot go?
+Open the record or scan its QR label to identify the material in the unit and every other use of the same lots.
<Screenshot src="/screens/ship-traceability-graph.png" label="Traceability graph" caption="The full as-built genealogy for SAT-1000 serial SAT1000-SN-0001, down to the aluminium plate and reaction wheels it consumed." ratio="wide" />
## Ship & invoice
-The first finished units are ready. You create a [shipment](/guides/order-to-cash) against the <Term id="sales-order">sales order</Term>. It drafts its lines from what's outstanding, and you ship only what's actually built: on SHP000001 the line reads 2 shipped against 3 ordered, so 1 stays outstanding. Post it, then <Term id="invoice">invoice</Term> that same 2. Because the order still has a unit to ship, it stays at "To Ship and Invoice" and simply carries the remainder forward; the line's shipped count rolls up as each batch goes.
+Create a [shipment](/guides/order-to-cash) against the <Term id="sales-order">sales order</Term>. Carbon drafts lines from the outstanding quantity. If SHP000001 ships 2 of 3 ordered units, 1 remains outstanding. Post the shipment, then <Term id="invoice">invoice</Term> the 2 shipped units. Because shipping and invoicing both remain, the sales order stays **"To Ship and Invoice"**.
-Carbon ties the invoice straight into your accounting system, so the build that started at the [sales desk](/guides/quote-to-cash) closes on the books — partial quantity and all.
+After the final unit ships, the sales order moves to **"To Invoice"** until that unit is invoiced; it then becomes **"Completed"**.
+
+Posting submits the invoice. When accounting is enabled and the invoice produces journal lines, Carbon also creates a posted sales-invoice journal. Payment remains separate: applying a posted payment or credit creates settlements and moves the invoice to **"Partially Paid"** or **"Paid"**.
<Screenshot src="/screens/ship-partial-shipment.png" label="Partial shipment" caption="Shipping part of the order — SHP000001 sends 2 of the 3 ordered, leaving 1 outstanding, so the order stays open." ratio="wide" />
<Divider />
-That's the whole loop: a 90-unit promise became three jobs, a tree of made and bought parts, a forecast-aware plan, traceable work on the floor, a quality save, and a shipped, invoiced, fully-traceable satellite. Every entity you saw (methods, kits, policies, operations, issues) has its own page in the Reference when you're ready for the detail.
+The complete flow converts demand into planned production, traceable floor execution, quality control, shipment, and invoicing. See the Reference for details about methods, kits, policies, operations, and issues.