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.

fix: pass company id to make method

Brad Barbine486694810ff
diff --git a/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx b/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx
index 7790b650c5..009a5f0b1c 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.make.$methodId.tsx
@@ -43,7 +43,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
if (!methodId) throw new Error("Could not find methodId");
const [makeMethod, materials, operations, tags] = await Promise.all([
- getJobMakeMethodById(client, methodId),
+ getJobMakeMethodById(client, methodId, companyId),
getJobMaterialsByMethodId(client, methodId),
getJobOperationsByMethodId(client, methodId),
getTagsList(client, companyId, "operation"),