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(capacity): size Coverage with the rounding API

naveenkash544dcd328104
diff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
index abdba32c81..c78a3354df 100644
--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
@@ -17,6 +17,7 @@ import {
TooltipTrigger,
Tr
} from "@carbon/react";
+import { RoundingMode, round } from "@carbon/utils";
import {
today as calendarToday,
getLocalTimeZone
@@ -212,7 +213,7 @@ export function PeopleMatrix({
const neededCount = (workCenterId: string, date: string) => {
const attended = attendedByWorkCenter[workCenterId]?.[date] ?? 0;
- return Math.ceil(attended / personDayHours);
+ return round(attended / personDayHours, 0, RoundingMode.Up);
};
const dayHeaders = weekDates.map((date) => (