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: route data for subassembly configuration

Brad Barbin5a2fa405b872
diff --git a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
index 3a48ed02af..02ee4a813d 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
@@ -125,8 +125,9 @@ export default function MethodMaterialMakePage() {
const { makeMethod, makeMethods, methodMaterials, methodOperations, tags } =
loaderData;
- const { itemId, makeMethodId } = useParams();
+ const { itemId, methodId, makeMethodId } = useParams();
if (!itemId) throw new Error("Could not find itemId");
+ if (!methodId) throw new Error("Could not find methodId");
if (!makeMethodId) throw new Error("Could not find makeMethodId");
const routeData = useRouteData<{
@@ -138,7 +139,7 @@ export default function MethodMaterialMakePage() {
parameters: ConfigurationParameter[];
};
configurationRules: ConfigurationRule[];
- }>(path.to.partManufacturing(itemId));
+ }>(path.to.partMethod(itemId, methodId));
return (
<VStack spacing={2} className="p-2">
diff --git a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
index 07ab3630c5..213268acdc 100644
--- a/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
+++ b/apps/erp/app/routes/x+/tool+/$itemId.manufacturing.$methodId.make.$makeMethodId.tsx
@@ -117,8 +117,9 @@ export default function MethodMaterialMakePage() {
const { makeMethod, makeMethods, methodMaterials, methodOperations, tags } =
loaderData;
- const { itemId, makeMethodId } = useParams();
+ const { itemId, methodId, makeMethodId } = useParams();
if (!itemId) throw new Error("Could not find itemId");
+ if (!methodId) throw new Error("Could not find methodId");
if (!makeMethodId) throw new Error("Could not find makeMethodId");
return (