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(scheduling): say who can run unschedulable work; keep other departments' days visible
naveenkashed3ea4201cb3
diff --git a/.claude/rules/scheduling-data-structures.md b/.claude/rules/scheduling-data-structures.mdindex 3d6c313bfd..2382313d79 100644--- a/.claude/rules/scheduling-data-structures.md+++ b/.claude/rules/scheduling-data-structures.md@@ -416,6 +416,11 @@ only; its output is read by nothing in the placement path (specnights/weekends a per-date clip would leave open (the bug an earlier per-date versioncaused — the op landed on a future Saturday and fell out of the current-week view).Blank board => every qualified person is a floater => fallback unchanged.+ When people ARE qualified but every one is on the board elsewhere, the reason says so+ (`composeNoFreeOperator`: "No free operator for X: … assigned to other stations on+ the manning board"), the Forecast detail lists who is qualified and the stations+ the board has them at (`getQualifiedPeopleByProcess`), and the ability page warns+ how many operations of its process can't be scheduled (`getAbilityScheduleImpact`).- **Require-staffing policy** (`location.requiresStaffing`, `20260820151847_location-requires-staffing.sql`;per-location, default false; edited on the Production settings page): when ON, the finite schedulerplaces work ONLY where an operator is manned. `buildFiniteContext` reads itdiff --git a/apps/erp/app/modules/production/AGENTS.md b/apps/erp/app/modules/production/AGENTS.mdindex 131d988e98..144c7d873c 100644--- a/apps/erp/app/modules/production/AGENTS.md+++ b/apps/erp/app/modules/production/AGENTS.md@@ -135,7 +135,7 @@ pnpm --filter erp test- `getBatchOutputLots` — a completed batch's MERGEABLE output lots: each member's WIP `trackedEntity` (by `attributes->>Job Make Method`), narrowed in-query to `Available` with stock. Drives the drawer's "Merge output lots"; a merged batch returns none (parents `Consumed`). The merge itself is `inventory`'s `mergeTrackedEntities` wrapper over `issue` `mergeTrackedEntities`- `getUnbatchedBatchableOperationCount` — head count of open (Todo/Ready/Waiting) unbatched operations on a batchable process for live jobs, mirroring the `get_batchable_operations` candidate branch; drives the production dashboard's "Unbatched Operations" card (links to `/x/production/batches/new`)- `getJobOperationBatches` / `getJobOperationBatchMemberStats` / `getJobOperationBatchMembers` / `getJobOperationBatchWithMembers` — the `/x/production/batches` list (filterable, member count + summed quantity merged in the loader; `getJobOperationBatchMembers` is a single grouped `.in()` read of the page's member rows — job/item/quantity — powering the table's expandable member sub-rows, mirroring the ECO change-notices table's `renderExpandedRow`) and its detail drawer-- `getPeopleAssignments` / `getPeopleAbsences` (single date) and `getPeopleAssignmentsRange` / `getPeopleAbsencesRange` (week) — people board/matrix reads; `upsertPeopleAssignment` (move semantics, optional partial-day `hours`) / `movePeopleAssignment` (station move with same-station merge, Kysely txn; returns `previousWorkCenterId` so `movePerson` reschedules BOTH the source and destination work centers — otherwise the station the person LEFT keeps a stale booking) / `setPeopleAssignmentHours` (per-station hours; null = whole shift — lowering releases the remainder to the board's free-hours pool) / `setPeopleAssignmentOvertime` / `setPeopleOvertimeBulk` (one date or a `date`→`toDate` range — the board's Week horizon applies a whole week; optional department/shift scope, single UPDATE) / `deletePeopleAssignment` / `setPeopleAbsence` / `setPeopleAbsenceRange` (vacation as one action — a row per date, duplicates skipped) / `clearPeopleAbsence` / `copyPeopleBoard` (day; copies splits, not overtime) / `copyPeopleWeek` (whole Monday-start week, same skip rules) / `assignPeopleWeek` / `unassignPeopleWeek` / `movePeopleWeek` (week-basis manning for the Board's Week range: one row per working day from the shift's weekday flags, Mon–Fri fallback) / `setPeopleDay` (atomic reconciliation of a person's whole day — the `PeopleHoursModal` Working-hours editor's Save, also anchored on Matrix cells) — people mutations. They are building blocks (never tools): the board posts to `x+/priority+/people.update.tsx`, which makes one service-function call per intent (`assignPerson`, `unassignPerson`, `movePerson`, `setPersonDay`, `setPersonHours`, `setPeopleOvertime`, `markPersonAbsent`, `markPersonAbsentRange`, `clearPersonAbsence`, `copyPeopleDay`, `assignPersonWeek`, `unassignPersonWeek`, `movePersonWeek`, `copyPeopleWeekBoard`, in `production.server.ts`); each checks the board's ids belong to the company (`requireBoardReferences`) and tells the scheduler. `usePeopleBoardFeedback` (`ui/Schedule/People/`) toasts their answers+- `getPeopleAssignments` / `getPeopleAbsences` (single date) and `getPeopleAssignmentsRange` / `getPeopleAbsencesRange` (week) — people board/matrix reads; `upsertPeopleAssignment` (move semantics, optional partial-day `hours`) / `movePeopleAssignment` (station move with same-station merge, Kysely txn; returns `previousWorkCenterId` so `movePerson` reschedules BOTH the source and destination work centers — otherwise the station the person LEFT keeps a stale booking) / `setPeopleAssignmentHours` (per-station hours; null = whole shift — lowering releases the remainder to the board's free-hours pool) / `setPeopleAssignmentOvertime` / `setPeopleOvertimeBulk` (one date or a `date`→`toDate` range — the board's Week horizon applies a whole week; optional department/shift scope, single UPDATE) / `deletePeopleAssignment` / `setPeopleAbsence` / `setPeopleAbsenceRange` (vacation as one action — a row per date, duplicates skipped) / `clearPeopleAbsence` / `copyPeopleBoard` (day; copies splits, not overtime) / `copyPeopleWeek` (whole Monday-start week, same skip rules) / `assignPeopleWeek` / `unassignPeopleWeek` / `movePeopleWeek` (week-basis manning for the Board's Week range: one row per working day from the shift's weekday flags, Mon–Fri fallback) / `setPeopleDay` (atomic reconciliation of a person's whole day — the `PeopleHoursModal` Working-hours editor's Save, also anchored on Matrix cells; it deletes the day's rows it is not sent, so every editor gets the person's whole day even under a department filter — `assignmentsElsewhere`) — people mutations. They are building blocks (never tools): the board posts to `x+/priority+/people.update.tsx`, which makes one service-function call per intent (`assignPerson`, `unassignPerson`, `movePerson`, `setPersonDay`, `setPersonHours`, `setPeopleOvertime`, `markPersonAbsent`, `markPersonAbsentRange`, `clearPersonAbsence`, `copyPeopleDay`, `assignPersonWeek`, `unassignPersonWeek`, `movePersonWeek`, `copyPeopleWeekBoard`, in `production.server.ts`); each checks the board's ids belong to the company (`requireBoardReferences`) and tells the scheduler. `usePeopleBoardFeedback` (`ui/Schedule/People/`) toasts their answers- `getPeopleCapacityOperations` — open `jobOperation` hours for the Capacity view (excludes Done/Canceled ops and Draft/Planned/Completed/Cancelled/Closed jobs — released load only), with `quantityComplete` and `started` (any production event) so Due nets remaining work as the scheduler does- `getWorkCenterOutages` / `workingHoursByDay` / `attendedHoursByDay` / `getOperationAttendedShares` — the Capacity view's Available (working windows less open offline maintenance) and the Matrix Coverage's attended hours per station-day- `getCapacityReservationsForResources` — live reservations across jobs (resource timeline + Capacity view's Scheduled series)diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.tsindex cf110c85e6..46ab076147 100644--- a/apps/erp/app/modules/production/production.service.ts+++ b/apps/erp/app/modules/production/production.service.ts@@ -1337,7 +1337,7 @@ export async function getCapacityReservationsForResources(.select(`id, operationId, jobId, resourceKind, resourceId, startAt, endAt, scheduleNote, workHours, isPlaceholder, jobOperationBatchId,job!inner(jobId, status, dueDate, locationId),- jobOperation(description, status, hasConflict, conflictReason, jobMakeMethod(item(readableIdWithRevision, name, thumbnailPath, type))),+ jobOperation(description, status, processId, hasConflict, conflictReason, jobMakeMethod(item(readableIdWithRevision, name, thumbnailPath, type))),jobOperationBatch(readableId)`).eq("companyId", companyId)@@ -5661,6 +5661,92 @@ export async function getWorkCenterRequiredAbilities(return { data: rows, error: null };}+/**+ * For operations the scheduler could not place: per process that requires an+ * ability, the people qualified for it on `fromDate` and the stations the+ * manning board has each of them at from then on. The board is a commitment,+ * so a person on it is never pulled to another station — this is who to move.+ */+export async function getQualifiedPeopleByProcess(+ client: SupabaseClient<Database>,+ companyId: string,+ args: { processIds: string[]; locationId: string; fromDate: string }+): Promise<{+ data: Map<string, { name: string; stations: string[] }[]>;+ error: PostgrestError | null;+}> {+ const empty = new Map<string, { name: string; stations: string[] }[]>();+ if (args.processIds.length === 0) return { data: empty, error: null };++ const abilities = await client+ .from("ability")+ .select("id, processId, process!inner(requiresAbility)")+ .eq("companyId", companyId)+ .eq("process.requiresAbility", true)+ .in("processId", args.processIds);+ if (abilities.error) return { data: empty, error: abilities.error };+ const processByAbility = new Map(+ abilities.data.flatMap((ability) =>+ ability.processId ? [[ability.id, ability.processId] as const] : []+ )+ );+ if (processByAbility.size === 0) return { data: empty, error: null };++ const qualified = await client+ .from("employeeAbility")+ .select("employeeId, abilityId, expiresAt")+ .eq("companyId", companyId)+ .in("abilityId", [...processByAbility.keys()]);+ if (qualified.error) return { data: empty, error: qualified.error };+ // Expiring on the day is not qualified that day, as in the scheduler.+ const current = qualified.data.filter(+ (row) => !row.expiresAt || row.expiresAt.slice(0, 10) > args.fromDate+ );+ const employeeIds = [...new Set(current.map((row) => row.employeeId))];++ // Every process that needs an ability gets an entry, so "nobody" shows.+ const result = new Map<string, { name: string; stations: string[] }[]>(+ [...new Set(processByAbility.values())].map((processId) => [processId, []])+ );+ if (employeeIds.length === 0) return { data: result, error: null };+ const [users, assignments] = await Promise.all([+ client.from("user").select("id, fullName").in("id", employeeIds),+ client+ .from("peopleAssignment")+ .select("employeeId, workCenter(name)")+ .eq("companyId", companyId)+ .eq("locationId", args.locationId)+ .gte("date", args.fromDate)+ .in("employeeId", employeeIds)+ ]);+ if (users.error) return { data: empty, error: users.error };+ if (assignments.error) return { data: empty, error: assignments.error };+ const nameById = new Map(users.data.map((user) => [user.id, user.fullName]));+ const stationsByEmployee = new Map<string, Set<string>>();+ for (const row of assignments.data) {+ const name = row.workCenter?.name;+ if (!name) continue;+ const stations = stationsByEmployee.get(row.employeeId) ?? new Set();+ stations.add(name);+ stationsByEmployee.set(row.employeeId, stations);+ }++ for (const row of current) {+ const processId = processByAbility.get(row.abilityId);+ if (!processId) continue;+ const people = result.get(processId) ?? [];+ people.push({+ name: nameById.get(row.employeeId) ?? "",+ stations: [...(stationsByEmployee.get(row.employeeId) ?? [])].sort()+ });+ result.set(processId, people);+ }+ for (const people of result.values()) {+ people.sort((a, b) => a.name.localeCompare(b.name));+ }+ return { data: result, error: null };+}+export async function getActiveEmployeeAbilities(client: SupabaseClient<Database>,companyId: stringdiff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleBoard.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleBoard.tsxindex d9fa091589..5c98f93c3c 100644--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleBoard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleBoard.tsx@@ -61,6 +61,13 @@ type PeopleBoardProps = {employees: PeopleEmployee[];workCenters: { id: string; name: string }[];assignments: PeopleAssignment[];+ /**+ * The day's rows at stations the department filter hides. Not drawn, but+ * the day editor saves a person's whole day, so it must see them.+ */+ assignmentsElsewhere?: PeopleAssignment[];+ /** Every station at the location, for the day editor's rows. */+ allWorkCenters?: { id: string; name: string }[];absences: PeopleAbsence[];requiredAbilities: {workCenterId: string;@@ -118,6 +125,8 @@ const PeopleBoard = ({employees,workCenters,assignments,+ assignmentsElsewhere = [],+ allWorkCenters,absences,requiredAbilities,requiredHoursByWorkCenter,@@ -258,13 +267,18 @@ const PeopleBoard = ({for (const employee of employees) {const absence = absenceByEmployee.get(employee.id) ?? null;const rows = assignmentsByEmployee.get(employee.id) ?? [];- const dayRows = dayRowsFor(rows);- const overtimeForDay = dayOvertime(rows);+ // The editor saves the whole day, so it gets the hidden stations too.+ const wholeDay = [+ ...rows,+ ...assignmentsElsewhere.filter((row) => row.employeeId === employee.id)+ ];+ const dayRows = dayRowsFor(wholeDay);+ const overtimeForDay = dayOvertime(wholeDay);const baseHours = baseShiftHoursFor(employee.id);- const dayStartTime = dayStartFor(employee.id, rows);- const dayEndTime = dayEndFor(employee.id, rows);+ const dayStartTime = dayStartFor(employee.id, wholeDay);+ const dayEndTime = dayEndFor(employee.id, wholeDay);// day-scoped note (setPeopleDay writes it to every row)- const note = rows.find((row) => row.note)?.note ?? null;+ const note = wholeDay.find((row) => row.note)?.note ?? null;const abilities = employeeAbilityNames[employee.id] ?? [];// Absent people always sit (grayed) at the bottom of Unassigned — their@@ -360,6 +374,7 @@ const PeopleBoard = ({employees,workCenters,assignmentsByEmployee,+ assignmentsElsewhere,absenceByEmployee,requiredByWorkCenter,qualifiedAbilitiesByEmployee,@@ -551,7 +566,7 @@ const PeopleBoard = ({shiftId={shiftForEmployee(editorItem.employee.id)}locationId={locationId}locationTimeZone={locationTimeZone}- workCenters={workCenters}+ workCenters={allWorkCenters ?? workCenters}rows={editorItem.dayRows}note={editorItem.note}overtimeHours={editorItem.overtimeHours}diff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsxindex c78a3354df..383e0342f3 100644--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx@@ -22,7 +22,7 @@ import {today as calendarToday,getLocalTimeZone} from "@internationalized/date";-import { Trans } from "@lingui/react/macro";+import { Trans, useLingui } from "@lingui/react/macro";import { useMemo, useState } from "react";import { LuInfo } from "react-icons/lu";import { DateTime, EmployeeAvatar } from "~/components";@@ -78,7 +78,11 @@ type PeopleMatrixProps = {departmentId: string | null;/** employeeId → their department, for the department-first ordering */employeeDepartments: Record<string, string | null>;+ /** The stations shown: the department filter's, else all. */workCenters: MatrixWorkCenter[];+ /** Every station at the location: names a day spent elsewhere. */+ allWorkCenters: MatrixWorkCenter[];+ /** Every assignment of the week, at any station. */assignments: MatrixAssignment[];absences: { id: string; employeeId: string; date: string }[];/** work center → date → hands-on hours the schedule books there */@@ -105,6 +109,7 @@ export function PeopleMatrix({departmentId,employeeDepartments,workCenters,+ allWorkCenters,assignments,absences,attendedByWorkCenter,@@ -121,6 +126,7 @@ export function PeopleMatrix({defaultShiftStart,defaultShiftEnd}: PeopleMatrixProps) {+ const { t } = useLingui();const permissions = usePermissions();const canEdit = permissions.can("update", "production");const [tab, setTab] = useState<"assignments" | "coverage">("assignments");@@ -128,7 +134,13 @@ export function PeopleMatrix({const today = calendarToday(getLocalTimeZone()).toString();const workCenterById = useMemo(- () => new Map(workCenters.map((wc) => [wc.id, wc])),+ () => new Map(allWorkCenters.map((wc) => [wc.id, wc])),+ [allWorkCenters]+ );+ // A day at a station the department filter hides still shows, greyed: the+ // person is committed there.+ const shownWorkCenterIds = useMemo(+ () => new Set(workCenters.map((wc) => wc.id)),[workCenters]);const chipClassByWorkCenter = useMemo(@@ -344,12 +356,24 @@ export function PeopleMatrix({const workCenter = workCenterById.get(assignment.workCenterId);+ const elsewhere = !shownWorkCenterIds.has(+ assignment.workCenterId+ );return (<PeopleChipkey={assignment.id}- className={chipClassByWorkCenter.get(- assignment.workCenterId- )}+ tooltip={+ elsewhere+ ? t`At a station outside this department`+ : undefined+ }+ className={+ elsewhere+ ? "border border-dashed border-border bg-transparent text-muted-foreground"+ : chipClassByWorkCenter.get(+ assignment.workCenterId+ )+ }>{workCenter?.name ?? assignment.workCenterId}{assignment.hours != null && (@@ -396,7 +420,7 @@ export function PeopleMatrix({shiftId={employeeShiftId[employee.id] ?? null}locationId={locationId}locationTimeZone={locationTimeZone}- workCenters={workCenters}+ workCenters={allWorkCenters}rows={dayAssignments.map((assignment) => ({workCenterId: assignment.workCenterId,hours: assignment.hoursdiff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleWeekBoard.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleWeekBoard.tsxindex af45dfaab8..84fedfaa8c 100644--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleWeekBoard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleWeekBoard.tsx@@ -62,6 +62,8 @@ type WeekCardItem = {days: number;/** distinct absence days this week */daysOff: number;+ /** distinct days at stations the department filter hides */+ daysElsewhere: number;/** the person's qualified (non-expired) abilities — badged on the card */abilities: string[];};@@ -73,6 +75,11 @@ type PeopleWeekBoardProps = {employees: WeekEmployee[];workCenters: { id: string; name: string }[];assignments: WeekAssignment[];+ /**+ * The week's rows at stations the department filter hides: the person is+ * committed on those days, and assigning the week skips them.+ */+ assignmentsElsewhere?: WeekAssignment[];absences: { employeeId: string; date: string }[];/** each person's own shift — what new assignments get stamped with */employeeShiftId: Record<string, string>;@@ -151,6 +158,11 @@ function WeekCard({<Trans>{item.daysOff}d off</Trans></span>)}+ {item.daysElsewhere > 0 && (+ <span className="inline-flex items-center rounded-md border border-dashed border-border px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground tabular-nums">+ <Trans>{item.daysElsewhere}d elsewhere</Trans>+ </span>+ )}{item.workCenterId && !isDisabled && !isOverlay && (<buttontype="button"@@ -293,6 +305,7 @@ const PeopleWeekBoard = ({employees,workCenters,assignments,+ assignmentsElsewhere = [],absences,employeeShiftId,employeeAbilityNames@@ -321,6 +334,16 @@ const PeopleWeekBoard = ({[assignments, shiftId, employeeShiftId]);+ const daysElsewhereByEmployee = useMemo(() => {+ const map = new Map<string, Set<string>>();+ for (const assignment of assignmentsElsewhere) {+ const set = map.get(assignment.employeeId) ?? new Set<string>();+ set.add(assignment.date);+ map.set(assignment.employeeId, set);+ }+ return map;+ }, [assignmentsElsewhere]);+const daysOffByEmployee = useMemo(() => {const map = new Map<string, Set<string>>();for (const absence of absences) {@@ -351,6 +374,7 @@ const PeopleWeekBoard = ({for (const employee of employees) {const stations = byEmployeeStation.get(employee.id);const daysOff = daysOffByEmployee.get(employee.id)?.size ?? 0;+ const daysElsewhere = daysElsewhereByEmployee.get(employee.id)?.size ?? 0;const abilities = employeeAbilityNames[employee.id] ?? [];if (!stations || stations.size === 0) {map.get(UNASSIGNED)!.push({@@ -358,6 +382,7 @@ const PeopleWeekBoard = ({workCenterId: null,days: 0,daysOff,+ daysElsewhere,abilities});continue;@@ -369,6 +394,7 @@ const PeopleWeekBoard = ({workCenterId,days: days.size,daysOff,+ daysElsewhere,abilities});}@@ -379,6 +405,7 @@ const PeopleWeekBoard = ({workCenters,scopedAssignments,daysOffByEmployee,+ daysElsewhereByEmployee,employeeAbilityNames]);@@ -475,7 +502,12 @@ const PeopleWeekBoard = ({weekStart,...(weekShiftId ? { shiftId: weekShiftId } : {})});- toast.success(t`Assigned ${employeeName} to ${targetName} for the week`);+ // Days the person already works elsewhere are kept, not overwritten.+ toast.success(+ item.daysElsewhere > 0+ ? t`Assigned ${employeeName} to ${targetName} for the week; days already assigned in other departments were kept`+ : t`Assigned ${employeeName} to ${targetName} for the week`+ );}const columnTargets: MoveTarget[] = [diff --git a/apps/erp/app/modules/production/ui/Schedule/TimelineDetail.tsx b/apps/erp/app/modules/production/ui/Schedule/TimelineDetail.tsxindex a16afe6cd7..7096e7db01 100644--- a/apps/erp/app/modules/production/ui/Schedule/TimelineDetail.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/TimelineDetail.tsx@@ -312,6 +312,38 @@ export function TimelineDetail({</p>))}+ {isUnschedulablePlaceholder && detail.qualifiedPeople && (+ <div className="space-y-1.5">+ <p className="text-xs font-medium text-muted-foreground">+ <Trans>Qualified to run it</Trans>+ </p>+ {detail.qualifiedPeople.length === 0 ? (+ <p className="text-sm text-pretty">+ <Trans>+ Nobody is qualified. Add someone to the process's ability.+ </Trans>+ </p>+ ) : (+ <ul className="space-y-1 text-sm">+ {detail.qualifiedPeople.map((person) => (+ <li key={person.name} className="text-pretty">+ <span className="font-medium">{person.name}</span>{" "}+ <span className="text-muted-foreground">+ {person.stations.length > 0 ? (+ <Trans>+ — on the manning board at {person.stations.join(", ")}+ </Trans>+ ) : (+ <Trans>— not on the manning board</Trans>+ )}+ </span>+ </li>+ ))}+ </ul>+ )}+ </div>+ )}+{/* Why the row starts when it does — hidden when a conflict is shown,the conflict message already names the same cause */}{detail.scheduleNote && !detail.conflictReason && (diff --git a/apps/erp/app/modules/production/ui/Schedule/resourceTimeline.ts b/apps/erp/app/modules/production/ui/Schedule/resourceTimeline.tsindex f7d6670c17..0ecfe9d463 100644--- a/apps/erp/app/modules/production/ui/Schedule/resourceTimeline.ts+++ b/apps/erp/app/modules/production/ui/Schedule/resourceTimeline.ts@@ -74,6 +74,8 @@ export type ResourceTimelineReservation = {workHours?: number | null;/** The operation is In Progress: what the board's In Process switch shows. */inProgress?: boolean;+ /** `TimelineNodeDetail.qualifiedPeople` */+ qualifiedPeople?: { name: string; stations: string[] }[];};export type ResourceTimeline = {@@ -421,6 +423,7 @@ export function buildResourceTimeline(input: {employeeName: r.resourceKind === "Employee" ? r.resourceName : null,conflictReason: r.hasConflict ? r.conflictReason : null,unschedulable: r.unschedulable,+ qualifiedPeople: r.qualifiedPeople,scheduleNote: r.scheduleNote ?? null,workMs: r.workHours ? r.workHours * 3_600_000 : undefined,jobId: r.jobId,diff --git a/apps/erp/app/modules/production/ui/Schedule/timeline.ts b/apps/erp/app/modules/production/ui/Schedule/timeline.tsindex f441de7ae5..39046b01d1 100644--- a/apps/erp/app/modules/production/ui/Schedule/timeline.ts+++ b/apps/erp/app/modules/production/ui/Schedule/timeline.ts@@ -32,6 +32,11 @@ export type TimelineNodeDetail = {* a "where it would run" marker, not a real booking, and it holds no capacity.*/unschedulable?: boolean;+ /**+ * For an unschedulable operation whose process needs a qualified operator:+ * who is qualified, and the stations the manning board has them at.+ */+ qualifiedPeople?: { name: string; stations: string[] }[];/** Why the row starts when it does (queue, predecessor, operator) */scheduleNote?: string | null;/** Time spent waiting for capacity before the start */diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.tsindex 0f5e022620..a255c4518f 100644--- a/apps/erp/app/modules/resources/resources.service.ts+++ b/apps/erp/app/modules/resources/resources.service.ts@@ -290,6 +290,43 @@ export async function getAbilitiesList(.order("name");}+/**+ * Whether an ability's process gates scheduling on it, and how many+ * operations of that process the scheduler could not place.+ */+export async function getAbilityScheduleImpact(+ client: SupabaseClient<Database>,+ companyId: string,+ processId: string+) {+ const [process, unplaced] = await Promise.all([+ client+ .from("process")+ .select("requiresAbility")+ .eq("id", processId)+ .eq("companyId", companyId)+ .maybeSingle(),+ client+ .from("capacityReservation")+ .select("id, jobOperation!inner(processId)", {+ count: "exact",+ head: true+ })+ .eq("companyId", companyId)+ .eq("resourceKind", "WorkCenter")+ .eq("isPlaceholder", true)+ .is("scenarioId", null)+ .eq("jobOperation.processId", processId)+ ]);+ return {+ data: {+ requiresAbility: process.data?.requiresAbility ?? false,+ unschedulable: unplaced.count ?? 0+ },+ error: process.error ?? unplaced.error+ };+}+export async function getAbility(client: SupabaseClient<Database>,abilityId: stringdiff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.jsonindex 1a994a2993..a6824f8344 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json@@ -728,7 +728,7 @@{"name":"production_getBatchableOperations","classification":"READ","schema":"45d95a2d3af4","response":"1c2a1e7a3a05","permission":"production:view","paginates":false},{"name":"production_getBatchableProcesses","classification":"READ","schema":"31b84d65b2ac","response":"b0ab8957f96e","permission":"production:view","paginates":false},{"name":"production_getBatchOutputLots","classification":"READ","schema":"1a62d6c430a5","response":"7783e113d7a1","permission":"production:view","paginates":false},- {"name":"production_getCapacityReservationsForResources","classification":"READ","schema":"be3a7444e5b1","response":"922ba2e168ae","permission":"production:view","paginates":false},+ {"name":"production_getCapacityReservationsForResources","classification":"READ","schema":"be3a7444e5b1","response":"34765d1f4c98","permission":"production:view","paginates":false},{"name":"production_getCompletionJobs","classification":"READ","schema":"a7b47bee6c23","response":"7bef4749f130","permission":"production:view","paginates":false},{"name":"production_getDemandProjections","classification":"READ","schema":"1f5f7428664d","response":"f963e0e91868","permission":"production:view","paginates":false},{"name":"production_getFailureMode","classification":"READ","schema":"2557649b1a5e","response":"412854326fc3","permission":"production:view","paginates":false},diff --git a/apps/erp/app/routes/x+/priority+/people.tsx b/apps/erp/app/routes/x+/priority+/people.tsxindex c05905f0dd..dc2aec015d 100644--- a/apps/erp/app/routes/x+/priority+/people.tsx+++ b/apps/erp/app/routes/x+/priority+/people.tsx@@ -800,6 +800,14 @@ export default function SchedulePeopleRoute() {employees={employeesForMatrix}workCenters={displayedWorkCenters}assignments={matrixAssignments}+ assignmentsElsewhere={+ departmentId+ ? weekAssignments.filter(+ (assignment) =>+ !displayedWorkCenterIds.has(assignment.workCenterId)+ )+ : undefined+ }absences={weekAbsences}employeeShiftId={employeeShiftId}employeeAbilityNames={employeeAbilityNames}@@ -813,6 +821,15 @@ export default function SchedulePeopleRoute() {employees={employeesForBoard}workCenters={displayedWorkCenters}assignments={boardAssignments}+ assignmentsElsewhere={+ departmentId+ ? assignments.filter(+ (assignment) =>+ !displayedWorkCenterIds.has(assignment.workCenterId)+ )+ : undefined+ }+ allWorkCenters={workCenters}absences={absences}requiredAbilities={requiredAbilities}requiredHoursByWorkCenter={requiredHoursByWorkCenter}@@ -838,7 +855,8 @@ export default function SchedulePeopleRoute() {departmentId={departmentId}employeeDepartments={employeeDepartments}workCenters={displayedWorkCenters}- assignments={matrixAssignments}+ allWorkCenters={workCenters}+ assignments={weekAssignments}absences={weekAbsences}attendedByWorkCenter={attendedByWorkCenter}shiftId={shiftId}diff --git a/apps/erp/app/routes/x+/resources+/ability.$id.tsx b/apps/erp/app/routes/x+/resources+/ability.$id.tsxindex a0ea9004dd..9c575f337d 100644--- a/apps/erp/app/routes/x+/resources+/ability.$id.tsx+++ b/apps/erp/app/routes/x+/resources+/ability.$id.tsx@@ -5,12 +5,23 @@import { error, notFound } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";-import { RecordOutlet, VStack } from "@carbon/react";+import {+ Alert,+ AlertDescription,+ AlertTitle,+ RecordOutlet,+ VStack+} from "@carbon/react";import { redirect } from "@carbon/utils";import { msg } from "@lingui/core/macro";+import { Plural, Trans } from "@lingui/react/macro";+import { LuTriangleAlert } from "react-icons/lu";import type { LoaderFunctionArgs } from "react-router";import { useLoaderData } from "react-router";-import { getAbility } from "~/modules/resources/resources.service";+import {+ getAbility,+ getAbilityScheduleImpact+} from "~/modules/resources/resources.service";import { AbilityEmployeesTable } from "~/modules/resources/ui";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -21,7 +32,7 @@ export const handle: Handle = {};export async function loader({ request, params }: LoaderFunctionArgs) {- const { client } = await requirePermissions(request, {+ const { client, companyId } = await requirePermissions(request, {view: "resources",role: "employee"});@@ -37,14 +48,55 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);}- return { ability: ability.data };+ const impact = ability.data.processId+ ? await getAbilityScheduleImpact(client, companyId, ability.data.processId)+ : null;+ if (impact?.error) {+ throw redirect(+ path.to.abilities,+ await flash(request, error(impact.error, "Failed to fetch ability"))+ );+ }+ return { ability: ability.data, impact: impact?.data ?? null };}export default function AbilityRoute() {- const { ability } = useLoaderData<typeof loader>();+ const { ability, impact } = useLoaderData<typeof loader>();+ const qualified = ability.employeeAbility?.length ?? 0;return (<VStack spacing={0} className="h-full">+ {impact?.requiresAbility &&+ (qualified === 0 || impact.unschedulable > 0) && (+ <div className="w-full p-4 pb-0">+ <Alert variant="warning">+ <LuTriangleAlert className="h-4 w-4" />+ <AlertTitle>+ {qualified === 0 ? (+ <Trans>Nobody is qualified for {ability.name}</Trans>+ ) : (+ <Trans>Qualified people are committed elsewhere</Trans>+ )}+ </AlertTitle>+ <AlertDescription>+ {qualified === 0 ? (+ <Plural+ value={impact.unschedulable}+ _0="Its process needs a qualified operator, so its operations can't be scheduled until someone is added."+ one="Its process needs a qualified operator: # operation can't be scheduled until someone is added."+ other="Its process needs a qualified operator: # operations can't be scheduled until someone is added."+ />+ ) : (+ <Plural+ value={impact.unschedulable}+ one="# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else."+ other="# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else."+ />+ )}+ </AlertDescription>+ </Alert>+ </div>+ )}<AbilityEmployeesTable ability={ability} /><RecordOutlet /></VStack>diff --git a/apps/erp/app/routes/x+/scheduling+/forecast.tsx b/apps/erp/app/routes/x+/scheduling+/forecast.tsxindex bf347a6e3d..6054beea80 100644--- a/apps/erp/app/routes/x+/scheduling+/forecast.tsx+++ b/apps/erp/app/routes/x+/scheduling+/forecast.tsx@@ -44,6 +44,7 @@ import {getForecastNonWorkingIntervals,getHolidayDates,getMaintenanceDowntimeForResources,+ getQualifiedPeopleByProcess,getWorkCenterNonWorkingIntervals} from "~/modules/production/production.service";import ForecastUpgradeOverlay from "~/modules/production/ui/ForecastUpgradeOverlay";@@ -485,6 +486,32 @@ export async function loader({ request }: LoaderFunctionArgs) {);}+ // Who could run the work the scheduler could not place, and where the board+ // has them — the people to move.+ const unschedulableProcessIds = [+ ...new Set(+ rows.flatMap((r) =>+ r.isPlaceholder && r.jobOperation?.processId+ ? [r.jobOperation.processId]+ : []+ )+ )+ ];+ const qualifiedPeople = await getQualifiedPeopleByProcess(client, companyId, {+ processIds: unschedulableProcessIds,+ locationId,+ fromDate: toCalendarDate(now(timeZone)).toString()+ });+ if (qualifiedPeople.error) {+ throw redirect(+ path.to.production,+ await flash(+ request,+ error(qualifiedPeople.error, "Failed to load qualified people")+ )+ );+ }+const workCenterNames = new Map((workCenters.data ?? []).map((w) => [w.id, w.name]));@@ -530,7 +557,11 @@ export async function loader({ request }: LoaderFunctionArgs) {unschedulable: r.isPlaceholder ?? false,scheduleNote: r.scheduleNote,workHours: r.workHours,- inProgress: r.jobOperation?.status === "In Progress"+ inProgress: r.jobOperation?.status === "In Progress",+ qualifiedPeople:+ r.isPlaceholder && r.jobOperation?.processId+ ? qualifiedPeople.data.get(r.jobOperation.processId)+ : undefined})),// Only outages on the work centers actually shown (respects the department// filter, and avoids conjuring a lane for a hidden station).diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 27e0f2a331..ef75531e7b 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -19,6 +19,13 @@ msgstr "Ein Lieferant ist ein Unternehmen oder eine Person, die dir Teile oder Dmsgid "— last checked {0}"msgstr "— zuletzt überprüft {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% Restbetrag"@@ -60,6 +67,10 @@ msgstr "(auf mehr als ein Carbon-Konto abgebildet)"msgid "(not an Equity posting account)"msgstr "(kein Eigenkapital-Buchungskonto)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# blockierter Datensatz} other {# blockierte Datensätze}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# Tag zu kurz} other {# Tage zu kurz}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# Arbeitsgang hat keine Zeitstandards} other {# Arbeitsgänge haben keine Zeitstandards}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}d früh"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d spät"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName} für die Woche auf {targetName} zugewiesen"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Annahmen"msgid "At {locationName}"msgstr "Bei {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "Bei Inbetriebnahme"@@ -15445,6 +15470,13 @@ msgstr "Keine Arbeitsplätze vorhanden"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Qualifiziert"msgid "Qualified Employees"msgstr "Qualifizierte Mitarbeiter"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "qualität"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 3290cb0211..0db8792a9b 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -19,6 +19,13 @@ msgstr " A supplier is a business or person who sells you parts or services."msgid "— last checked {0}"msgstr "— last checked {0}"+msgid "— not on the manning board"+msgstr "— not on the manning board"++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr "— on the manning board at {0}"+msgid ", {residual}% residual"msgstr ", {residual}% residual"@@ -60,6 +67,10 @@ msgstr "(mapped to more than one Carbon account)"msgid "(not an Equity posting account)"msgstr "(not an Equity posting account)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# blocking record} other {# blocking records}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# day short} other {# days short}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr "{0, plural, one {# job} other {# jobs}}"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}d early"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr "{0}d elsewhere"+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d late"@@ -3730,6 +3749,9 @@ msgstr "Assigned {changed} planning actions"msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Assigned {employeeName} to {targetName} for the week"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgid "Assigned 1 planning action"msgstr "Assigned 1 planning action"@@ -3766,6 +3788,9 @@ msgstr "Assumptions"msgid "At {locationName}"msgstr "At {locationName}"+msgid "At a station outside this department"+msgstr "At a station outside this department"+msgid "At Commencement"msgstr "At Commencement"@@ -15445,6 +15470,13 @@ msgstr "No work centers exist"msgid "No work centers in {departmentLabel}"msgstr "No work centers in {departmentLabel}"+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr "Nobody is qualified for {0}"++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr "Nobody is qualified. Add someone to the process's ability."+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Qualified"msgid "Qualified Employees"msgstr "Qualified Employees"+msgid "Qualified people are committed elsewhere"+msgstr "Qualified people are committed elsewhere"++msgid "Qualified to run it"+msgstr "Qualified to run it"+msgid "quality"msgstr "quality"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex ad4df65c84..2ab6385011 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -19,6 +19,13 @@ msgstr "Un proveedor es una empresa o persona que te vende piezas o servicios."msgid "— last checked {0}"msgstr "— última verificación {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% residual"@@ -60,6 +67,10 @@ msgstr "(asignado a más de una cuenta de Carbon)"msgid "(not an Equity posting account)"msgstr "(no es una cuenta de Contabilización de Patrimonio)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# registro bloqueante} other {# registros bloqueantes}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# día de atraso} other {# días de atraso}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operación no tiene estándares de tiempo} other {# operaciones no tienen estándares de tiempo}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}d adelantado"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d atrasado"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Asignado {employeeName} a {targetName} para la semana"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Supuestos"msgid "At {locationName}"msgstr "En {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "En la fecha de comienzo"@@ -15445,6 +15470,13 @@ msgstr "No existen centros de trabajo"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Calificado"msgid "Qualified Employees"msgstr "Empleados calificados"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "Calidad"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 46e5ba2a1b..e88bdc2235 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -19,6 +19,13 @@ msgstr "Un fournisseur est une entreprise ou une personne qui vous vend des pièmsgid "— last checked {0}"msgstr "— dernier vérification {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% résiduel"@@ -60,6 +67,10 @@ msgstr "(Associé à plusieurs comptes Carbon)"msgid "(not an Equity posting account)"msgstr "(pas un compte de comptabilisation de capitaux propres)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# enregistrement bloquant} other {# enregistrements bloquants}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# jour de retard} other {# jours de retard}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# opération n'a pas de normes de temps} other {# opérations n'ont pas de normes de temps}}"@@ -463,6 +478,10 @@ msgstr "{0}j"msgid "{0}d early"msgstr "{0}j en avance"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}j en retard"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName} assigné à {targetName} pour la semaine"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Hypothèses"msgid "At {locationName}"msgstr "À {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "À la date de commencement"@@ -15445,6 +15470,13 @@ msgstr "Aucun poste de travail n'existe"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Qualifié"msgid "Qualified Employees"msgstr "Employés qualifiés"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "qualité"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex bf5e6ad707..06a581d0d8 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -19,6 +19,13 @@ msgstr "एक आपूर्तिकर्ता एक व्यवसायmsgid "— last checked {0}"msgstr "— अंतिम जांच {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% अवशेष"@@ -60,6 +67,10 @@ msgstr "(एक से अधिक Carbon खातों में मैपmsgid "(not an Equity posting account)"msgstr "(इक्विटी पोस्टिंग खाता नहीं है)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# अवरोधक रिकॉर्ड} other {# अवरोधक रिकॉर्डें}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# दिन की कमी} other {# दिन कीmsgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# ऑपरेशन के लिए कोई समय मानक नहीं है} other {# ऑपरेशन के लिए कोई समय मानक नहीं हैं}}"@@ -463,6 +478,10 @@ msgstr "{0}द"msgid "{0}d early"msgstr "{0}d जल्दी"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d देर से"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName} को सप्ताह के लिए {targetName} पर असाइन किया"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "मान्यताएँ"msgid "At {locationName}"msgstr "{locationName} पर"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "आरंभ पर"@@ -15445,6 +15470,13 @@ msgstr "कोई वर्क सेंटर मौजूद नहीं हmsgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "नाम"@@ -18040,6 +18072,12 @@ msgstr "योग्य"msgid "Qualified Employees"msgstr "योग्य कर्मचारी"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "गुणवत्ता"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex decde5482d..879c19e3d5 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -19,6 +19,13 @@ msgstr "Un fornitore è un'azienda o una persona che ti vende componenti o servimsgid "— last checked {0}"msgstr "— ultimo controllo {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% residuo"@@ -60,6 +67,10 @@ msgstr "(associato a più di un account Carbon)"msgid "(not an Equity posting account)"msgstr "(non un account di registrazione Patrimonio netto)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# record bloccante} other {# record bloccanti}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# giorno di ritardo} other {# giorni di ritardo}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operazione senza standard di tempo} other {# operazioni senza standard di tempo}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}g anticipato"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}g in ritardo"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Assegnato {employeeName} a {targetName} per la settimana"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Presupposti"msgid "At {locationName}"msgstr "A {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "All'inizio"@@ -15445,6 +15470,13 @@ msgstr "Non esistono centri di lavoro"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Qualificato"msgid "Qualified Employees"msgstr "Dipendenti Qualificati"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "qualità"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 217377ac78..777a0a4e14 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -19,6 +19,13 @@ msgstr " 仕入先は、部品または外注サービスを販売するビジmsgid "— last checked {0}"msgstr "— 最終確認: {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% 残存価額"@@ -60,6 +67,10 @@ msgstr "(複数のCarbonアカウントにマップされています)"msgid "(not an Equity posting account)"msgstr "(純資産転記勘定科目ではありません)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# ブロック中のレコード} other {# ブロック中のレコード}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# 日の不足} other {# 日の不足}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# 工程に標準時間がない} other {# 工程に標準時間がない}}"@@ -463,6 +478,10 @@ msgstr "{0}日"msgid "{0}d early"msgstr "{0}日早い"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}日遅い"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName}を1週間の{targetName}に配置しました"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "前提条件"msgid "At {locationName}"msgstr "{locationName}で"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "開始時に"@@ -15445,6 +15470,13 @@ msgstr "作業区がありません"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "公称値"@@ -18040,6 +18072,12 @@ msgstr "適格"msgid "Qualified Employees"msgstr "適格従業員"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "品質"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 136536f22c..3a3cda5ffa 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -19,6 +19,13 @@ msgstr " 공급업체는 귀사에 부품이나 서비스를 판매하는 회사msgid "— last checked {0}"msgstr "— 마지막 확인 {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% 잔존"@@ -60,6 +67,10 @@ msgstr "(하나 이상의 Carbon 계정에 매핑됨)"msgid "(not an Equity posting account)"msgstr "(자본 전기 계정이 아님)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# 차단 레코드} other {# 차단 레코드}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# 일 부족} other {# 일 부족}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# 공정에 표준시간이 없습니다} other {# 공정에 표준시간이 없습니다}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}일 조기"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}일 늦음"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName}을(를) 주간으로 {targetName}에 배정"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "가정사항"msgid "At {locationName}"msgstr "{locationName}에서"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "개시 시점에"@@ -15445,6 +15470,13 @@ msgstr "존재하는 작업장이 없습니다"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "명목"@@ -18040,6 +18072,12 @@ msgstr "자격 있음"msgid "Qualified Employees"msgstr "자격 있는 직원"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "품질"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 06354288de..6bc024a97c 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -19,6 +19,13 @@ msgstr "Dostawca to firma lub osoba, która sprzedaje Ci części lub usługi."msgid "— last checked {0}"msgstr "— ostatnia weryfikacja {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% pozostałe"@@ -60,6 +67,10 @@ msgstr "(zmapowane na więcej niż jedno konto Carbon)"msgid "(not an Equity posting account)"msgstr "(nie jest kontem Kapitału własnego do księgowania)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# rekord blokujący} other {# rekordy blokujące}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# dzień za krótko} few {# dni za krótko} many {# dnimsgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operacja nie ma standardów czasu} few {# operacje nie mają standardów czasu} many {# operacji nie ma standardów czasu} other {# operacji nie ma standardów czasu}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}d wcześniej"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d opóźnienia"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Przydzielono {employeeName} do {targetName} na tydzień"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Założenia"msgid "At {locationName}"msgstr "W {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "W momencie rozpoczęcia"@@ -15445,6 +15470,13 @@ msgstr "Nie istnieją stanowiska robocze"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Wykwalifikowany"msgid "Qualified Employees"msgstr "Wykwalifikowani Pracownicy"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "jakość"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 7cdd58b1db..869a4aff94 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -19,6 +19,13 @@ msgstr "Um fornecedor é uma empresa ou pessoa que vende peças ou serviços parmsgid "— last checked {0}"msgstr "— última verificação {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% residual"@@ -60,6 +67,10 @@ msgstr "(mapeado para mais de uma conta Carbon)"msgid "(not an Equity posting account)"msgstr "(não é uma conta de contabilização de Patrimônio líquido)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# registro bloqueador} other {# registros bloqueadores}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# dia de falta} other {# dias de falta}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operação não tem padrões de tempo} other {# operações não têm padrões de tempo}}"@@ -463,6 +478,10 @@ msgstr "{0}d"msgid "{0}d early"msgstr "{0}d cedo"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}d atrasado"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Atribuído {employeeName} a {targetName} para a semana"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Premissas"msgid "At {locationName}"msgstr "Em {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "No Início"@@ -15445,6 +15470,13 @@ msgstr "Nenhum centro de trabalho existe"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Qualificado"msgid "Qualified Employees"msgstr "Funcionários Qualificados"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "qualidade"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 7eca1226c9..81f5a8a38a 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -19,6 +19,13 @@ msgstr "Поставщик — это компания или лицо, котоmsgid "— last checked {0}"msgstr "— последняя проверка {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% остаточная"@@ -60,6 +67,10 @@ msgstr "(сопоставлено с несколькими счетами Carbomsgid "(not an Equity posting account)"msgstr "(не счет проведения собственного капитала)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# блокирующая запись} other {# блокирующие записи}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# день недостатка} few {# дня недоmsgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# операция не имеет временных нормативов} few {# операции не имеют временных нормативов} many {# операций не имеют временных нормативов} other {# операций не имеют временных нормативов}}"@@ -463,6 +478,10 @@ msgstr "{0}д"msgid "{0}d early"msgstr "{0}д рано"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}д поздно"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "Назначен {employeeName} на {targetName} на неделю"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Предположения"msgid "At {locationName}"msgstr "В {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "При начислении"@@ -15445,6 +15470,13 @@ msgstr "Рабочих центров не существует"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Номин"@@ -18040,6 +18072,12 @@ msgstr "Квалифицирован"msgid "Qualified Employees"msgstr "Квалифицированные сотрудники"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "качество"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 625393f5c2..bddd41796d 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -19,6 +19,13 @@ msgstr "Bir tedarikçi, size parça veya hizmet satan bir işletme veya kişidirmsgid "— last checked {0}"msgstr "— son kontrol {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% kalıntı"@@ -60,6 +67,10 @@ msgstr "(birden fazla Carbon hesabına eşleştirildi)"msgid "(not an Equity posting account)"msgstr "(Özkaynak muhasebeleştirme hesabı değildir)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# engelleme kaydı} other {# engelleme kaydı}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {# gün gecikme} other {# gün gecikme}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# operasyon için zaman standardı yok} other {# operasyon için zaman standardı yok}}"@@ -463,6 +478,10 @@ msgstr "{0}g"msgid "{0}d early"msgstr "{0}g erken"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}g geç"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "{employeeName} öğesi hafta boyunca {targetName} için atandı"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "Varsayımlar"msgid "At {locationName}"msgstr "{locationName}'da"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "Başlangıçta"@@ -15445,6 +15470,13 @@ msgstr "İş merkezi bulunmamaktadır"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "Nom"@@ -18040,6 +18072,12 @@ msgstr "Nitelikli"msgid "Qualified Employees"msgstr "Nitelikli Çalışanlar"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "kalite"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 7da03596f2..7e36b2774c 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -19,6 +19,13 @@ msgstr "供应商是向您销售零件或服务的企业或个人。"msgid "— last checked {0}"msgstr "— 上次检查于 {0}"+msgid "— not on the manning board"+msgstr ""++#. placeholder {0}: person.stations.join(", ")+msgid "— on the manning board at {0}"+msgstr ""+msgid ", {residual}% residual"msgstr ", {residual}% 残差"@@ -60,6 +67,10 @@ msgstr "(映射到多个 Carbon 账户)"msgid "(not an Equity posting account)"msgstr "(非所有者权益过账账户)"+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, =0 {Its process needs a qualified operator, so its operations can't be scheduled until someone is added.} one {Its process needs a qualified operator: # operation can't be scheduled until someone is added.} other {Its process needs a qualified operator: # operations can't be scheduled until someone is added.}}"+msgstr ""+#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# 条阻止记录} other {# 条阻止记录}}"@@ -93,6 +104,10 @@ msgstr "{0, plural, one {缺# 天} other {缺# 天}}"msgid "{0, plural, one {# job} other {# jobs}}"msgstr ""+#. placeholder {0}: impact.unschedulable+msgid "{0, plural, one {# operation can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.} other {# operations can't be scheduled: everyone qualified is assigned to other stations on the manning board. Assign one of them to a station that runs it, or qualify someone else.}}"+msgstr ""+#. placeholder {0}: forecast.zeroStandardOperationCountmsgid "{0, plural, one {# operation has no time standards} other {# operations have no time standards}}"msgstr "{0, plural, one {# 道工序无工时定额} other {# 道工序无工时定额}}"@@ -463,6 +478,10 @@ msgstr "{0}天"msgid "{0}d early"msgstr "{0}天提前"+#. placeholder {0}: item.daysElsewhere+msgid "{0}d elsewhere"+msgstr ""+#. placeholder {0}: slack.absDaysmsgid "{0}d late"msgstr "{0}天延迟"@@ -3730,6 +3749,9 @@ msgstr ""msgid "Assigned {employeeName} to {targetName} for the week"msgstr "将 {employeeName} 分配给 {targetName},为期一周"+msgid "Assigned {employeeName} to {targetName} for the week; days already assigned in other departments were kept"+msgstr ""+msgid "Assigned 1 planning action"msgstr ""@@ -3766,6 +3788,9 @@ msgstr "假设"msgid "At {locationName}"msgstr "在 {locationName}"+msgid "At a station outside this department"+msgstr ""+msgid "At Commencement"msgstr "在开始时"@@ -15445,6 +15470,13 @@ msgstr "没有工作中心存在"msgid "No work centers in {departmentLabel}"msgstr ""+#. placeholder {0}: ability.name+msgid "Nobody is qualified for {0}"+msgstr ""++msgid "Nobody is qualified. Add someone to the process's ability."+msgstr ""+msgid "Nom"msgstr "标称值"@@ -18040,6 +18072,12 @@ msgstr "合格"msgid "Qualified Employees"msgstr "合格员工"+msgid "Qualified people are committed elsewhere"+msgstr ""++msgid "Qualified to run it"+msgstr ""+msgid "quality"msgstr "质量"diff --git a/packages/planning/src/scheduling/conflict-messages.test.ts b/packages/planning/src/scheduling/conflict-messages.test.tsindex b81dec27be..0aff083773 100644--- a/packages/planning/src/scheduling/conflict-messages.test.ts+++ b/packages/planning/src/scheduling/conflict-messages.test.ts@@ -8,6 +8,7 @@ import {classifyLatePlacement,composeBehindTarget,composeLateConflict,+ composeNoFreeOperator,composePlacementNote,formatWaitDuration,type LatePlacementCause,@@ -294,3 +295,11 @@ describe("composeBehindTarget", () => {);});});++describe("composeNoFreeOperator", () => {+ it("says everyone qualified is committed elsewhere on the board", () => {+ expect(composeNoFreeOperator("Weld", 3)).toBe(+ "No free operator for Weld: all 3 people qualified are assigned to other stations on the manning board"+ );+ });+});diff --git a/packages/planning/src/scheduling/conflict-messages.ts b/packages/planning/src/scheduling/conflict-messages.tsindex 7e231a7f61..f554eec8e8 100644--- a/packages/planning/src/scheduling/conflict-messages.ts+++ b/packages/planning/src/scheduling/conflict-messages.ts@@ -200,6 +200,22 @@ export function composeBehindTarget(return null;}+/**+ * Why gated work waits when people ARE qualified: every one of them is on the+ * manning board at another station, and the board is a commitment, so none is+ * free to float here. Names the fix — assign one of them to the station.+ */+export function composeNoFreeOperator(+ abilityName: string,+ qualifiedCount: number+): string {+ const people =+ qualifiedCount === 1+ ? "the 1 person qualified is"+ : `all ${qualifiedCount} people qualified are`;+ return `No free operator for ${abilityName}: ${people} assigned to other stations on the manning board`;+}+export function composeLateConflict(finishDate: string, // "YYYY-MM-DD"jobDueDate: string, // "YYYY-MM-DD"diff --git a/packages/planning/src/scheduling/work-center-selector.test.ts b/packages/planning/src/scheduling/work-center-selector.test.tsindex 7c3225c1bb..dd37ed91cb 100644--- a/packages/planning/src/scheduling/work-center-selector.test.ts+++ b/packages/planning/src/scheduling/work-center-selector.test.ts@@ -661,9 +661,10 @@ it("a person on the board is not pulled to another station by the fallback", asymakeMannedElsewhereContext("wc2"));- assert(+ // The reason names the cause: the one welder is committed elsewhere.+ assertEquals(selection?.conflict,- "the op surfaces a conflict rather than a placement"+ "No free operator for Weld: the 1 person qualified is assigned to other stations on the manning board");assertEquals(selection?.placedStart, undefined);const bradBookings = selectordiff --git a/packages/planning/src/scheduling/work-center-selector.ts b/packages/planning/src/scheduling/work-center-selector.tsindex 892eb42156..26709c85be 100644--- a/packages/planning/src/scheduling/work-center-selector.ts+++ b/packages/planning/src/scheduling/work-center-selector.ts@@ -13,6 +13,7 @@ import {classifyLatePlacement,composeBatchPredecessorConflict,composeLateConflict,+ composeNoFreeOperator,composePlacementNote} from "./conflict-messages.ts";import {@@ -681,6 +682,15 @@ export class WorkCenterSelector {employeeId: m.employeeId,windows: intersectWindows(m.windows, capacity.windows)}));+ if (relayMembers.length === 0) {+ if (!firstConflict) {+ firstConflict = composeNoFreeOperator(+ requirement.abilityName,+ members?.length ?? 0+ );+ }+ continue;+ }const pass2 = allocateAttendedOperation({attendedHours,totalHours: durationHours,