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
fix: reorder estimates vs actuals in mes
Brad Barbin28571b63c8c5
diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobMakeMethodTools.tsxindex 0a1bf3cb43..95254b3b7c 100644--- a/apps/carbon/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx+++ b/apps/carbon/app/modules/production/ui/Jobs/JobMakeMethodTools.tsx@@ -57,7 +57,7 @@ const JobBreadcrumbs = () => {method: Tree<JobMethod>;}>(path.to.job(jobId));- const isDisabled = ["Completed", "Cancelled"].includes(+ const isDisabled = ["Completed", "Cancelled", "In Progress"].includes(routeData?.job?.status ?? "");diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex 1463b422e9..569d8a47eb 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -466,6 +466,8 @@ export const JobOperation = ({{material.methodType}</Badge></Td>++ <Td>{material.estimatedQuantity}</Td><Td>{material.methodType === "Make" ? (<MethodIcon type="Make" />@@ -473,7 +475,6 @@ export const JobOperation = ({material.quantityIssued)}</Td>- <Td>{material.estimatedQuantity}</Td><Td className="text-right">{material.methodType !== "Make" && (<IconButtondiff --git a/apps/mes/app/routes/x+/operations.tsx b/apps/mes/app/routes/x+/operations.tsxindex 00939e2ed0..05afb60e8d 100644--- a/apps/mes/app/routes/x+/operations.tsx+++ b/apps/mes/app/routes/x+/operations.tsx@@ -301,7 +301,7 @@ export default function Operations() {<LuAlertTriangle className="h-6 w-6" /></div><span className="text-xs font-mono font-light text-foreground uppercase">- No work centers exist+ No operations are scheduled</span></div>)}diff --git a/packages/database/supabase/functions/get-method/index.ts b/packages/database/supabase/functions/get-method/index.tsindex 430f0557c3..34b707cce7 100644--- a/packages/database/supabase/functions/get-method/index.ts+++ b/packages/database/supabase/functions/get-method/index.ts@@ -1263,7 +1263,7 @@ serve(async (req: Request) => {operationInserts.push({makeMethodId: op.makeMethodId!,processId: op.processId!,- workCenterId: op.workCenterId,+ // workCenterId: op.workCenterId,description: op.description ?? "",setupTime: op.setupTime ?? 0,setupUnit: op.setupUnit ?? "Total Minutes",