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: add key to job operations to re-suspend
Brad Barbin1b62dd2914cb
diff --git a/apps/carbon/app/modules/sales/sales.service.ts b/apps/carbon/app/modules/sales/sales.service.tsindex 8297818470..0fc369a0e5 100644--- a/apps/carbon/app/modules/sales/sales.service.ts+++ b/apps/carbon/app/modules/sales/sales.service.ts@@ -673,16 +673,6 @@ export async function getSalesOrderCustomerDetails(.single();}-export async function getSalesOrderExternalDocuments(- client: SupabaseClient<Database>,- companyId: string,- salesOrderId: string-) {- return client.storage- .from("private")- .list(`${companyId}/sales/external/${salesOrderId}`);-}-export async function getQuoteByExternalId(client: SupabaseClient<Database>,externalId: stringdiff --git a/apps/carbon/app/modules/sales/types.ts b/apps/carbon/app/modules/sales/types.tsindex bccd0f47b2..2ab2c63bee 100644--- a/apps/carbon/app/modules/sales/types.ts+++ b/apps/carbon/app/modules/sales/types.ts@@ -8,7 +8,6 @@ import type {getCustomerStatuses,getCustomerTypes,getOpportunityByQuote,- getQuoteDocuments,getQuoteLinePrices,getQuoteLines,getQuoteMakeMethod,@@ -18,7 +17,6 @@ import type {getQuotePayment,getQuotes,getQuoteShipment,- getSalesOrderExternalDocuments,getSalesOrderLines,getSalesOrders,getSalesRFQLines,@@ -93,10 +91,6 @@ export type QuotationMakeMethod = NonNullable<Awaited<ReturnType<typeof getQuoteMakeMethod>>["data"]>;-export type QuotationAttachment = NonNullable<- Awaited<ReturnType<typeof getQuoteDocuments>>["data"]->[number];-export type Quotation = NonNullable<Awaited<ReturnType<typeof getQuotes>>["data"]>[number];@@ -131,11 +125,6 @@ export type SalesOrder = NonNullable<Awaited<ReturnType<typeof getSalesOrders>>["data"]>[number];-// TODO: we should just use the FileObject type from supabase-export type SalesOrderAttachment = NonNullable<- Awaited<ReturnType<typeof getSalesOrderExternalDocuments>>["data"]->[number];-export type SalesOrderLine = NonNullable<Awaited<ReturnType<typeof getSalesOrderLines>>["data"]>[number];diff --git a/apps/mes/app/routes/x+/active.$operationId.tsx b/apps/mes/app/routes/x+/active.$operationId.tsxindex f541b86094..638fee4e85 100644--- a/apps/mes/app/routes/x+/active.$operationId.tsx+++ b/apps/mes/app/routes/x+/active.$operationId.tsx@@ -80,6 +80,7 @@ export default function OperationRoute() {return (<JobOperation+ key={operationId}backPath={path.to.active}events={events}files={files}diff --git a/apps/mes/app/routes/x+/jobs.$workCenterId.$operationId.tsx b/apps/mes/app/routes/x+/jobs.$workCenterId.$operationId.tsxindex 2d92405765..75b4313e5b 100644--- a/apps/mes/app/routes/x+/jobs.$workCenterId.$operationId.tsx+++ b/apps/mes/app/routes/x+/jobs.$workCenterId.$operationId.tsx@@ -81,6 +81,7 @@ export default function OperationRoute() {return (<JobOperation+ key={operationId}backPath={path.to.workCenter(workCenterId)}events={events}files={files}diff --git a/apps/mes/app/routes/x+/recent.$operationId.tsx b/apps/mes/app/routes/x+/recent.$operationId.tsxindex 6acce3ce3a..32f8a8b18f 100644--- a/apps/mes/app/routes/x+/recent.$operationId.tsx+++ b/apps/mes/app/routes/x+/recent.$operationId.tsx@@ -80,6 +80,7 @@ export default function OperationRoute() {return (<JobOperation+ key={operationId}backPath={path.to.recent}events={events}files={files}