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: display custom groups in user group picker
Brad Barbinc1f7f476bb2e
diff --git a/apps/erp/app/routes/api+/users.groups.tsx b/apps/erp/app/routes/api+/users.groups.tsxindex 98fb37aedd..6b66181184 100644--- a/apps/erp/app/routes/api+/users.groups.tsx+++ b/apps/erp/app/routes/api+/users.groups.tsx@@ -17,9 +17,14 @@ export async function loader({ request }: LoaderFunctionArgs) {const query = client.from("groups").select("*").eq("companyId", companyId);- if (type === "employee") query.eq("isEmployeeTypeGroup", true);- if (type === "customer") query.eq("isCustomerOrgGroup", true);- if (type === "supplier") query.eq("isSupplierOrgGroup", true);+ if (type === "employee") {+ query.eq("isCustomerOrgGroup", false);+ query.eq("isSupplierOrgGroup", false);+ } else if (type === "customer") {+ query.eq("isCustomerTypeGroup", true);+ } else if (type === "supplier") {+ query.eq("isSupplierTypeGroup", true);+ }const groups = await query;diff --git a/packages/database/supabase/migrations/20251213004847_groups-fix.sql b/packages/database/supabase/migrations/20251213004847_groups-fix.sqlnew file mode 100644index 0000000000..e69de29bb2