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: create issue from slack

Brad Barbin749f7e6a6c4c
diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
index 1d46995be3..5708d83741 100644
--- a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
@@ -79,7 +79,6 @@ const IssueProperties = () => {
field:
| "source"
| "priority"
- | "investigationTypeIds"
| "requiredActionIds"
| "approvalRequirements"
| "name"
diff --git a/apps/erp/app/routes/api+/integrations.slack.interactive.ts b/apps/erp/app/routes/api+/integrations.slack.interactive.ts
index 4f9f917221..c3febcf282 100644
--- a/apps/erp/app/routes/api+/integrations.slack.interactive.ts
+++ b/apps/erp/app/routes/api+/integrations.slack.interactive.ts
@@ -420,7 +420,6 @@ async function handleViewSubmission(
companyId,
createdBy: employee.data?.id,
description,
- investigationTypeIds: [],
locationId: employee.data?.locationId || "",
name: title,
nonConformanceTypeId: typeId,
diff --git a/apps/erp/app/routes/x+/issue+/update.tsx b/apps/erp/app/routes/x+/issue+/update.tsx
index 8587e0161f..f00ff75c4f 100644
--- a/apps/erp/app/routes/x+/issue+/update.tsx
+++ b/apps/erp/app/routes/x+/issue+/update.tsx
@@ -21,7 +21,6 @@ export async function action({ request }: ActionFunctionArgs) {
}
switch (field) {
- case "investigationTypeIds":
case "requiredActionIds":
case "approvalRequirements":
const arrayValue = value ? value.split(",") : [];
diff --git a/llm/cache/issue-module.md b/llm/cache/issue-module.md
index aa11d65312..3422bdf249 100644
--- a/llm/cache/issue-module.md
+++ b/llm/cache/issue-module.md
@@ -20,23 +20,16 @@ Issues have the following status progression:
## Task Types
-Issues can have three types of tasks that are created automatically based on the issue configuration:
+Issues can have two types of tasks that are created automatically based on the issue configuration:
-### 1. Investigation Tasks
+### 1. Action Tasks
-- Created based on `investigationTypeIds` array in the issue
-- Each investigation type creates one task
-- Stored in `nonConformanceInvestigationTask` table
-- Examples: Root Cause Analysis, Material Analysis, Process Review
-
-### 2. Action Tasks
-
-- Created based on `requiredActionIds` array in the issue
+- Created based on `requiredActionIds` array in the issue (includes former investigation types, merged in migration 20251120214020)
- Each action type creates one task
- Stored in `nonConformanceActionTask` table
-- Examples: Corrective Action, Preventive Action, Containment
+- Examples: Root Cause Analysis, Corrective Action, Preventive Action, Containment
-### 3. Approval Tasks
+### 2. Approval Tasks
- Created based on `approvalRequirements` array in the issue
- Each approval type creates one task