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: get method from quote line to job with attributes
Brad Barbinc06b68729695
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex 2eb2104f19..33cb11edba 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -1835,8 +1835,8 @@ export const JobOperation = ({<DeleteAttributeRecordModalonClose={onDeselectAttribute}id={selectedAttribute.id}- title="Delete Attribute Record"- description="Are you sure you want to delete this attribute record?"+ title="Delete Step"+ description="Are you sure you want to delete this step?"/>)}</>@@ -2895,10 +2895,9 @@ function QuantityModal({{type === "finish" && !allAttributesRecorded && (<Alert variant="destructive"><LuTriangleAlert className="h-4 w-4" />- <AlertTitle>Attributes are missing</AlertTitle>+ <AlertTitle>Steps are missing</AlertTitle><AlertDescription>- Please record all attributes for this operation before- closing.+ Please record all steps for this operation before closing.</AlertDescription></Alert>)}diff --git a/apps/mes/app/routes/x+/record.$id.delete.tsx b/apps/mes/app/routes/x+/record.$id.delete.tsxindex 4088d9bb22..f6ac5505ea 100644--- a/apps/mes/app/routes/x+/record.$id.delete.tsx+++ b/apps/mes/app/routes/x+/record.$id.delete.tsx@@ -33,13 +33,13 @@ export async function action({ params, request }: ActionFunctionArgs) {{ success: false },await flash(request,- error(attributeDelete.error, "Failed to delete attribute")+ error(attributeDelete.error, "Failed to delete step")));}return json({ success: true },- await flash(request, success("Attribute record deleted successfully"))+ await flash(request, success("Step deleted successfully")));}diff --git a/packages/database/supabase/functions/get-method/index.ts b/packages/database/supabase/functions/get-method/index.tsindex 28793011b1..05ea60b9c1 100644--- a/packages/database/supabase/functions/get-method/index.ts+++ b/packages/database/supabase/functions/get-method/index.ts@@ -3643,7 +3643,7 @@ serve(async (req: Request) => {quoteOperationAttribute.length > 0) {await trx- .insertInto("quoteOperationAttribute")+ .insertInto("jobOperationAttribute").values(quoteOperationAttribute.map(({ id: _id, ...attribute }) => ({