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
feat: add setup time to bill of process operation
Brad Barbinb6988e4791a4
diff --git a/apps/carbon/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/carbon/app/modules/items/ui/Item/BillOfProcess.tsxindex 6673bff3ad..925168c166 100644--- a/apps/carbon/app/modules/items/ui/Item/BillOfProcess.tsx+++ b/apps/carbon/app/modules/items/ui/Item/BillOfProcess.tsx@@ -83,6 +83,12 @@ function makeItem(operation: Operation): ItemWithData {<Badge>Outside</Badge>) : (<>+ {(operation?.setupTime ?? 0) > 0 && (+ <Badge variant="secondary">+ <TimeTypeIcon type="Setup" className="h-3 w-3 mr-1" />+ {operation.setupTime} {operation.setupUnit}+ </Badge>+ )}{(operation?.laborTime ?? 0) > 0 && (<Badge variant="secondary"><TimeTypeIcon type="Labor" className="h-3 w-3 mr-1" />diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 352e954e33..103b231e39 100644--- a/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/carbon/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -96,6 +96,12 @@ function makeItem(operation: Operation): ItemWithData {<Badge>Outside</Badge>) : (<>+ {(operation?.setupTime ?? 0) > 0 && (+ <Badge variant="secondary">+ <TimeTypeIcon type="Setup" className="h-3 w-3 mr-1" />+ {operation.setupTime} {operation.setupUnit}+ </Badge>+ )}{(operation?.laborTime ?? 0) > 0 && (<Badge variant="secondary"><TimeTypeIcon type="Labor" className="h-3 w-3 mr-1" />diff --git a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex fbd5678a98..c9b51083d4 100644--- a/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/carbon/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -84,6 +84,12 @@ function makeItem(operation: Operation): ItemWithData {<Badge>Outside</Badge>) : (<>+ {(operation?.setupTime ?? 0) > 0 && (+ <Badge variant="secondary">+ <TimeTypeIcon type="Setup" className="h-3 w-3 mr-1" />+ {operation.setupTime} {operation.setupUnit}+ </Badge>+ )}{(operation?.laborTime ?? 0) > 0 && (<Badge variant="secondary"><TimeTypeIcon type="Labor" className="h-3 w-3 mr-1" />diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex cf41f9986b..25c16e3f17 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -1196,9 +1196,9 @@ function StartStopButton({<Hidden name="type" value={eventType} /><Hidden name="workCenterId" value={operation.workCenterId ?? undefined} />{isActive ? (- <PauseButton disabled={fetcher.state !== "idle"} type="submit" />+ <PauseButton disabled={fetcher.state === "submitting"} type="submit" />) : (- <PlayButton disabled={fetcher.state !== "idle"} type="submit" />+ <PlayButton disabled={fetcher.state === "submitting"} type="submit" />)}</ValidatedForm>);