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.

style: use human-readable text in bom explorer

Brad Barbinb6331076f2f5
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index ac9155fe77..107d0b0d3d 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -229,7 +229,7 @@ function NodeText({ node }: { node: FlatTreeItem<Method> }) {
return (
<div className="flex flex-col items-start gap-0">
<span className="text-sm truncate font-medium">
- {node.data.itemReadableId || node.data.description}
+ {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 1051c805f1..fd5191e1d6 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -223,7 +223,7 @@ function NodeText({ node }: { node: FlatTreeItem<JobMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="font-medium text-sm truncate">
- {node.data.itemReadableId || node.data.description}
+ {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 b538ab2f7d..8bec499332 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -231,7 +231,7 @@ function NodeText({ node }: { node: FlatTreeItem<QuoteMethod> }) {
return (
<div className="flex items-center gap-1">
<span className="font-medium text-sm truncate">
- {node.data.itemReadableId || node.data.description}
+ {node.data.description || node.data.itemReadableId}
</span>
</div>
);