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: add work centers to process table

Brad Barbin767cdcbd933e
diff --git a/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx b/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
index c9d74e7d79..3888b60f13 100644
--- a/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
+++ b/apps/carbon/app/modules/resources/ui/Processes/ProcessesTable.tsx
@@ -42,6 +42,19 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {
/>
),
},
+ {
+ id: "workCenters",
+ header: "Work Centers",
+ cell: ({ row }) => (
+ <span className="flex gap-2 items-center flex-wrap py-2">
+ {((row.original.workCenters ?? []) as Array<{ name: string }>).map(
+ (wc) => (
+ <Enumerable key={wc.name} value={wc.name} />
+ )
+ )}
+ </span>
+ ),
+ },
{
accessorKey: "defaultStandardFactor",
header: "Default Unit",