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.

feat: use description in BoM

Brad Barbin04c6c85d0cae
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index 3632d1b50c..154090b2f0 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -198,7 +198,9 @@ export default BoMExplorer;
function NodeText({ node }: { node: FlatTreeItem<Method> }) {
return (
<div className="flex flex-col items-start gap-0">
- <span className="text-sm truncate">{node.data.itemReadableId}</span>
+ <span className="text-sm truncate">
+ {node.data.description ?? node.data.itemReadableId}
+ </span>
</div>
);
}
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
index cb845699cc..0f0af14296 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -187,7 +187,7 @@ function NodeText({ node }: { node: FlatTreeItem<JobMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="text-sm font-medium truncate">
- {node.data.itemReadableId}
+ {node.data.description ?? node.data.itemReadableId}
</span>
</div>
);
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
index d60b7aeb86..9ee199aaeb 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -191,7 +191,7 @@ function NodeText({ node }: { node: FlatTreeItem<QuoteMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="text-sm font-medium truncate">
- {node.data.itemReadableId}
+ {node.data.description ?? node.data.itemReadableId}
</span>
</div>
);