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: only set the end time for production events where endTime is null on end shift
Brad Barbin866a53245ff4
diff --git a/apps/mes/app/services/operations.service.ts b/apps/mes/app/services/operations.service.tsindex b24bb2bbe3..0202dd0d41 100644--- a/apps/mes/app/services/operations.service.ts+++ b/apps/mes/app/services/operations.service.ts@@ -423,6 +423,7 @@ export async function endProductionEvents(.update({endTime: args.endTime,})+ .is("endTime", null).eq("employeeId", args.employeeId).eq("companyId", args.companyId);}