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: phone should not be enum

Brad Barbin966e20f2385b
diff --git a/apps/carbon/app/modules/shared/imports.models.ts b/apps/carbon/app/modules/shared/imports.models.ts
index 48ba0de0fe..b394835d8b 100644
--- a/apps/carbon/app/modules/shared/imports.models.ts
+++ b/apps/carbon/app/modules/shared/imports.models.ts
@@ -146,20 +146,7 @@ export const fieldMappings = {
phone: {
label: "Phone",
required: false,
- type: "enum",
- enumData: {
- description: "The account manager of the customer",
- fetcher: async (
- client: SupabaseClient<Database>,
- companyId: string
- ) => {
- return client
- .from("employees")
- .select("id, name, avatarUrl")
- .eq("companyId", companyId)
- .order("name");
- },
- },
+ type: "string",
},
fax: {
label: "Fax",