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: don't use company view for getCompay function

Brad Barbinef77981fe3db
diff --git a/apps/erp/app/modules/settings/settings.service.ts b/apps/erp/app/modules/settings/settings.service.ts
index a16779018f..052235cc4a 100644
--- a/apps/erp/app/modules/settings/settings.service.ts
+++ b/apps/erp/app/modules/settings/settings.service.ts
@@ -150,7 +150,7 @@ export async function getCompany(
companyId: string
) {
const company = await client
- .from("companies")
+ .from("company")
.select("*")
.eq("id", companyId)
.single();