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: supplier type value
Sidwebworks76332e50a6da
diff --git a/apps/erp/app/modules/purchasing/purchasing.models.ts b/apps/erp/app/modules/purchasing/purchasing.models.tsindex 08f4bb6013..d33cd527ee 100644--- a/apps/erp/app/modules/purchasing/purchasing.models.ts+++ b/apps/erp/app/modules/purchasing/purchasing.models.ts@@ -299,7 +299,10 @@ export const selectedLinesValidator = z.record(z.string(), selectedLineSchema);export const supplierValidator = z.object({id: zfd.text(z.string().optional()),name: z.string().min(1, { message: "Name is required" }),- supplierStatus: z.enum(supplierStatusType).optional().nullable(),+ supplierStatus: z.preprocess(+ (val) => (val === "" ? undefined : val),+ z.enum(supplierStatusType).optional().nullable()+ ),supplierTypeId: zfd.text(z.string().optional()),accountManagerId: zfd.text(z.string().optional()),currencyCode: zfd.text(z.string().optional()),