Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
docs(api): list item method tables under Items (#1717)
Brad Barbine28833321e65
diff --git a/docs/scripts/generate-api-docs.mjs b/docs/scripts/generate-api-docs.mjsindex cc0587a390..6b06ff13e6 100644--- a/docs/scripts/generate-api-docs.mjs+++ b/docs/scripts/generate-api-docs.mjs@@ -51,7 +51,7 @@ const MODULE_RULES = [["Sales", ["salesorder", "salesrfq", "customer", "quote", "opportunity", "salesperson", "noquotereason", "pricing"]],["Purchasing", ["purchaseorder", "purchasingrfq", "supplier", "buymethod"]],["Quality", ["nonconformance", "quality", "gauge", "inspection", "investigation", "issue", "risk"]],- ["Production", ["job", "makemethod", "methodoperation", "methodmaterial", "production", "scrapreason", "procedure", "workinstruction", "operation"]],+ ["Production", ["job", "production", "scrapreason", "procedure", "workinstruction", "operation"]],["Maintenance", ["maintenance"]],["Planning", ["demand", "supply", "forecast"]],["Inventory", ["itemledger", "shelf", "warehouse", "pickmethod", "trackedentity", "trackedactivity", "kanban", "receipt", "shipment", "stocktransfer", "batch", "serial", "inventory", "warehousetransfer", "shipping", "storage", "fulfillment"]],@@ -63,8 +63,14 @@ const MODULE_RULES = [["Settings", ["setting", "integration", "customfield", "sequence", "theme", "documenttemplate", "documentlabel", "notification", "webhook", "tag", "approval", "audit", "config", "country", "eventsystem", "feedback", "note", "plan", "printer", "searchindex", "suggestion", "tableview", "terms"]],["Documents", ["document", "externallink", "modelupload"]],];+// An item's own method (its BOM + BOP) is item master data, so it lives with Items.+// Checked before the keyword rules, whose `operation`/`material` would otherwise send+// `methodOperation*`/`methodMaterial*` to Production. `jobMakeMethod`/`quoteMakeMethod`+// don't match a prefix and stay with their job/quote.+const ITEM_METHOD_PREFIXES = ["method", "makemethod", "activemakemethod"];function moduleFor(table) {const t = table.toLowerCase();+ if (ITEM_METHOD_PREFIXES.some((p) => t.startsWith(p))) return "Items";for (const [mod, keys] of MODULE_RULES) if (keys.some((k) => t.includes(k))) return mod;return "Other";}