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
feat: fetch job materials in material manager
Brad Barbine240634c8531
diff --git a/packages/database/supabase/functions/lib/scheduling/material-manager.ts b/packages/database/supabase/functions/lib/scheduling/material-manager.tsindex e0d483adfc..5d5800b3e3 100644--- a/packages/database/supabase/functions/lib/scheduling/material-manager.ts+++ b/packages/database/supabase/functions/lib/scheduling/material-manager.ts@@ -16,7 +16,15 @@ class MaterialManager {throw new Error("Database connection is not initialized");}- console.log({ jobId });+ const materialToAssign = await this.db+ .selectFrom("jobMaterial")+ .selectAll()+ .where("jobId", "=", jobId)+ .where("jobOperationId", "is", null)+ .where("companyId", "=", this.companyId)+ .execute();++ console.log({ materialToAssign });}}