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.

feat: default parts, materials, consumables, and tools to active

Brad Barbin22134371c832
diff --git a/apps/erp/app/components/Form/Item.tsx b/apps/erp/app/components/Form/Item.tsx
index 6d70e9b5eb..6a74f2c5ab 100644
--- a/apps/erp/app/components/Form/Item.tsx
+++ b/apps/erp/app/components/Form/Item.tsx
@@ -339,7 +339,7 @@ const Item = ({
unitOfMeasureCode: "EA",
defaultMethodType:
props?.replenishmentSystem === "Buy" ? "Pick" : "Make",
- active: props?.includeInactive === undefined,
+ active: true,
unitCost: 0,
tags: [],
}}
@@ -361,7 +361,7 @@ const Item = ({
unitOfMeasureCode: "EA",
replenishmentSystem: "Buy",
defaultMethodType: "Buy",
- active: props?.includeInactive === undefined,
+ active: true,
unitCost: 0,
tags: [],
}}
@@ -385,7 +385,7 @@ const Item = ({
unitOfMeasureCode: "EA",
replenishmentSystem: "Buy",
defaultMethodType: "Buy",
- active: props?.includeInactive === undefined,
+ active: true,
unitCost: 0,
tags: [],
}}
@@ -409,7 +409,7 @@ const Item = ({
replenishmentSystem: props?.replenishmentSystem ?? "Buy",
defaultMethodType:
props?.replenishmentSystem === "Buy" ? "Pick" : "Make",
- active: props?.includeInactive === undefined,
+ active: true,
unitCost: 0,
tags: [],
}}
diff --git a/apps/erp/app/components/Form/Tool.tsx b/apps/erp/app/components/Form/Tool.tsx
index 0ec787f51a..f3c274191b 100644
--- a/apps/erp/app/components/Form/Tool.tsx
+++ b/apps/erp/app/components/Form/Tool.tsx
@@ -129,7 +129,7 @@ const Tool = ({ name, label, helperText, ...props }: ToolSelectProps) => {
unitOfMeasureCode: "EA",
replenishmentSystem: "Buy",
defaultMethodType: "Buy",
- active: props?.includeInactive === undefined,
+ active: true,
unitCost: 0,
tags: [],
}}