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: harden training completions and drop the duplicate assignment roster
aashub74921625966
diff --git a/apps/erp/app/modules/people/ui/Person/PersonTrainings.tsx b/apps/erp/app/modules/people/ui/Person/PersonTrainings.tsxindex 481f924c1a..e0e869b458 100644--- a/apps/erp/app/modules/people/ui/Person/PersonTrainings.tsx+++ b/apps/erp/app/modules/people/ui/Person/PersonTrainings.tsx@@ -24,7 +24,6 @@ import { getPrivateUrl, path } from "~/utils/path";type PersonTrainingsProps = {trainings: TrainingAssignmentStatusItem[];- certificatePaths?: Record<number, string>;};function TrainingStatusBadge({ status }: { status: string }) {@@ -61,10 +60,7 @@ function TrainingStatusBadge({ status }: { status: string }) {}}-const PersonTrainings = ({- trainings,- certificatePaths = {}-}: PersonTrainingsProps) => {+const PersonTrainings = ({ trainings }: PersonTrainingsProps) => {return (<Card><CardHeader>@@ -90,20 +86,17 @@ const PersonTrainings = ({<TrainingStatusBadge status={training.status} /></HStack><HStack spacing={3}>- {training.completionId &&- certificatePaths[training.completionId] && (- <a- className="flex items-center gap-1 text-sm"- href={getPrivateUrl(- certificatePaths[training.completionId]- )}- target="_blank"- rel="noreferrer"- >- <LuFileCheck />- <Trans>View Certificate</Trans>- </a>- )}+ {training.certificatePath && (+ <a+ className="flex items-center gap-1 text-sm"+ href={getPrivateUrl(training.certificatePath)}+ target="_blank"+ rel="noreferrer"+ >+ <LuFileCheck />+ <Trans>View Certificate</Trans>+ </a>+ )}{training.completedAt && (<p className="text-sm text-muted-foreground"><DateTimediff --git a/apps/erp/app/modules/resources/AGENTS.md b/apps/erp/app/modules/resources/AGENTS.mdindex 3665b06df0..84f6874750 100644--- a/apps/erp/app/modules/resources/AGENTS.md+++ b/apps/erp/app/modules/resources/AGENTS.md@@ -13,7 +13,7 @@ Locations, work centers, processes, abilities (skills), partners, contractors, e- **Maintenance Dispatch** — reactive or scheduled work order for equipment. Statuses: Open → Assigned → In Progress → Completed / Cancelled. Tracks time events, consumed parts, and affected work centers.- **Maintenance Schedule** — preventive maintenance plan with frequency, priority, estimated duration, and required spare parts. `takesWorkCenterOffline` marks the PM as blocking the machine; the nightly generator (`packages/jobs/.../scheduled/dispatch.ts`) copies it onto each generated dispatch and sets `plannedEndTime = plannedStartTime + estimatedDuration` (so the offline window is bounded — the validator requires a duration when offline is on).- **Failure Mode** — categorized failure type used by maintenance dispatches and quality NCRs.-- **Training** — training programs with assignments, quiz questions, and frequency-based recertification. Completion tracked via `trainingCompletion`. **Status changes only from the header** (`TrainingHeader`): Draft shows Publish, Active shows Archive, and Reopen (back to Draft) is in the ⋯ menu — each through a `Confirm` posting `field=status` to `x+/training+/update.tsx`; Properties has no Status field. The name is edited in Properties (the content editor has no title block). The **Content** card holds a **Write | Upload PDF** toggle: a training's content is written (`content`) OR one PDF (`training.guidePath`, key `{companyId}/training/{trainingId}/{uploadId}/{file name}`, checked by `isValidTrainingGuideKey`), never both — a training with a `guidePath` is a PDF training, and the employee page shows the PDF instead of the written content. Switching back to Write clears `guidePath`. `guidePath` changes only while Draft (`refuseUnlessDraft` in `update.tsx`). **External training is an assignment, not a training**: `trainingAssignment.trainingId` is nullable and an external assignment carries only `name` (CHECK `num_nonnulls("trainingId", "name") = 1`, `20261014164752_external-training-assignments.sql`). It is one-time (the status RPCs report frequency `Once`), sends no notifications or weekly reminders, and has no employee page (`share/training.$id` 404s it). The status and summary RPCs LEFT JOIN `training`, return `isExternal`, and the summary is one row per assignment; the assignments list and roster drawer (`assignments.$assignmentId.tsx`, `path.to.trainingAssignmentDetail(assignmentId)`) are keyed by assignment. Every completion — the employee's quiz (`share/training.$id`) and an admin's Mark Complete (`assignments.complete`) — goes through `recordTrainingCompletion` (`resources.server.ts`): it refuses an internal training that is not Active, uploads the OPTIONAL certificate of an external assignment (`validateTrainingCertificate`: PDF/PNG/JPG, 10 MB; key `{companyId}/training-certificates/{assignmentId}/{employeeId}/…` built on the server), works out the period on the server, removes the uploaded file when the insert fails, treats a duplicate completion as already recorded, and restamps the scheduler for a granted ability. `assignments.uncomplete` (`delete: resources`) removes a wrong completion; the granted ability stays (the grant trigger only adds). The assignment status RPC does not return the certificate: read it with `getTrainingCertificatePaths` (one `.in()` query).+- **Training** — training programs with assignments, quiz questions, and frequency-based recertification. Completion tracked via `trainingCompletion`. **Status changes only from the header** (`TrainingHeader`): Draft shows Publish, Active shows Archive, and Reopen (back to Draft) is in the ⋯ menu — each through a `Confirm` posting `field=status` to `x+/training+/update.tsx`; Properties has no Status field. The name is edited in Properties (the content editor has no title block). The **Content** card holds a **Write | Upload PDF** toggle: a training's content is written (`content`) OR one PDF (`training.guidePath`, key `{companyId}/training/{trainingId}/{uploadId}/{file name}`, checked by `isValidTrainingGuideKey`), never both — a training with a `guidePath` is a PDF training, and the employee page shows the PDF instead of the written content. Switching back to Write clears `guidePath`. `guidePath` changes only while Draft (`update.tsx` filters its update on `status = 'Draft'` and refuses when no row changed). **External training is an assignment, not a training**: `trainingAssignment.trainingId` is nullable and an external assignment carries only `name` (CHECK `num_nonnulls("trainingId", "name") = 1`, `20261014164752_external-training-assignments.sql`). It is one-time (the status RPCs report frequency `Once`), sends no notifications or weekly reminders, and has no employee page (`share/training.$id` 404s it). The status and summary RPCs LEFT JOIN `training`, return `isExternal`, and the summary is one row per assignment; the assignments list and roster drawer (`assignments.$assignmentId.tsx`, `path.to.trainingAssignmentDetail(assignmentId)`) are keyed by assignment. Every completion — the employee's quiz (`share/training.$id`) and an admin's Mark Complete (`assignments.complete`) — goes through `recordTrainingCompletion` (`resources.server.ts`): it refuses an internal training that is not Active, uploads the OPTIONAL certificate of an external assignment (`validateTrainingCertificate`, async: PDF/PNG/JPG by extension AND file signature, 10 MB; key `{companyId}/training-certificates/{assignmentId}/{employeeId}/…` built on the server), works out the period on the server, removes the uploaded file when the insert fails, treats a duplicate completion as already recorded, and restamps the scheduler for a granted ability. `assignments.complete` refuses an employee outside the assignment's groups (`users_for_groups`). The edit route reads internal/external from the stored assignment, never the form. `assignments.uncomplete` (`delete: resources`) removes a wrong completion and its certificate file; the granted ability stays (the grant trigger only adds). The status RPC returns each completion's `certificatePath`. The assignment drawer (`assignments.$assignmentId.tsx`) is the only per-employee roster; the edit form has no Status tab.## Safety@@ -73,7 +73,7 @@ pnpm --filter @carbon/erp test -- --testPathPattern=resources- `getMaintenanceDispatchEvents` / `getMaintenanceDispatchComments` / `getMaintenanceDispatchItems` — dispatch details- `getMaintenanceSchedule(s)` / `upsertMaintenanceSchedule` — PM plans- `getFailureModes` / `upsertFailureMode` — failure categorization-- `getTraining(s)` / `getTrainingAssignment(s)` / `getTrainingAssignmentStatus` / `getOutstandingTrainingsForUser` / `getTrainingGrantedAbilityId` / `getTrainingCertificatePaths` / `deleteTrainingCompletion` — training management (`getTrainingGrantedAbilityId` returns the ability a completion grants, so the completion routes can `notifyScheduleInputsChanged` for that operator pool)+- `getTraining(s)` / `getTrainingAssignment(s)` / `getTrainingAssignmentStatus` / `getOutstandingTrainingsForUser` / `getTrainingGrantedAbilityId` / `deleteTrainingCompletion` — training management (`getTrainingGrantedAbilityId` returns the ability a completion grants, so the completion routes can `notifyScheduleInputsChanged` for that operator pool)- `getSuggestion(s)` — suggestion management## Key Exportsdiff --git a/apps/erp/app/modules/resources/resources.models.test.ts b/apps/erp/app/modules/resources/resources.models.test.tsindex b3e28e3f85..08f23bb8f4 100644--- a/apps/erp/app/modules/resources/resources.models.test.ts+++ b/apps/erp/app/modules/resources/resources.models.test.ts@@ -88,39 +88,60 @@ describe("isValidTrainingGuideKey", async () => {describe("validateTrainingCertificate", async () => {const { TRAINING_CERTIFICATE_MAX_BYTES, validateTrainingCertificate } =await import("./resources.models");- const file = (name: string, size = 10) =>- new File([new Uint8Array(size)], name);-- it("accepts a PDF, PNG or JPG and returns its extension", () => {- expect(validateTrainingCertificate(file("cert.PDF")).extension).toBe("pdf");- expect(validateTrainingCertificate(file("photo.jpeg")).extension).toBe(- "jpeg"- );- expect(validateTrainingCertificate(file("scan.png")).error).toBeNull();+ const PDF = [0x25, 0x50, 0x44, 0x46, 0x2d];+ const PNG = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a];+ const JPG = [0xff, 0xd8, 0xff];+ const file = (name: string, head: number[] = [], size = 10) => {+ const bytes = new Uint8Array(Math.max(size, head.length));+ bytes.set(head);+ return new File([bytes], name);+ };++ it("accepts a PDF, PNG or JPG and returns its extension", async () => {+ expect(+ (await validateTrainingCertificate(file("cert.PDF", PDF))).extension+ ).toBe("pdf");+ expect(+ (await validateTrainingCertificate(file("photo.jpeg", JPG))).extension+ ).toBe("jpeg");+ expect(+ (await validateTrainingCertificate(file("scan.png", PNG))).error+ ).toBeNull();});- it("refuses a missing or empty file", () => {- expect(validateTrainingCertificate(null).error).toBe(- "Upload a certificate file"- );- expect(validateTrainingCertificate(file("cert.pdf", 0)).error).toBe(+ it("refuses a missing or empty file", async () => {+ expect((await validateTrainingCertificate(null)).error).toBe("Upload a certificate file");+ expect(+ (await validateTrainingCertificate(file("cert.pdf", [], 0))).error+ ).toBe("Upload a certificate file");});- it("refuses another type", () => {- expect(validateTrainingCertificate(file("notes.txt")).error).toBe(+ it("refuses another type", async () => {+ expect((await validateTrainingCertificate(file("notes.txt"))).error).toBe("The certificate must be a PDF, PNG or JPG");- expect(validateTrainingCertificate(file("photo.heic")).error).toBe(+ expect((await validateTrainingCertificate(file("photo.heic"))).error).toBe("The certificate must be a PDF, PNG or JPG");});- it("refuses a file over the size limit", () => {+ it("refuses a file whose bytes do not match its extension", async () => {expect(- validateTrainingCertificate(- file("cert.pdf", TRAINING_CERTIFICATE_MAX_BYTES + 1)+ (await validateTrainingCertificate(file("cert.pdf", PNG))).error+ ).toBe("The certificate must be a PDF, PNG or JPG");+ expect((await validateTrainingCertificate(file("scan.png"))).error).toBe(+ "The certificate must be a PDF, PNG or JPG"+ );+ });++ it("refuses a file over the size limit", async () => {+ expect(+ (+ await validateTrainingCertificate(+ file("cert.pdf", PDF, TRAINING_CERTIFICATE_MAX_BYTES + 1)+ )).error).toBe("The certificate must be 10 MB or smaller");});diff --git a/apps/erp/app/modules/resources/resources.models.ts b/apps/erp/app/modules/resources/resources.models.tsindex 5dd30b8e8f..01ff096ffd 100644--- a/apps/erp/app/modules/resources/resources.models.ts+++ b/apps/erp/app/modules/resources/resources.models.ts@@ -458,16 +458,27 @@ const trainingCertificateExtensions = Object.values(trainingCertificateAccept).flat().map((extension) => extension.slice(1));-export function validateTrainingCertificate(+// The first bytes of each accepted type. The extension alone can be renamed+// onto any file.+const trainingCertificateSignatures: Record<string, number[]> = {+ pdf: [0x25, 0x50, 0x44, 0x46, 0x2d], // %PDF-+ png: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a],+ jpg: [0xff, 0xd8, 0xff],+ jpeg: [0xff, 0xd8, 0xff]+};++export async function validateTrainingCertificate(file: FormDataEntryValue | null-):+): Promise<| { file: File; extension: string; error: null }- | { file: null; extension: null; error: string } {+ | { file: null; extension: null; error: string }+> {if (!(file instanceof File) || file.size === 0) {return { file: null, extension: null, error: "Upload a certificate file" };}const extension = file.name.split(".").pop()?.toLowerCase() ?? "";- if (!trainingCertificateExtensions.includes(extension)) {+ const signature = trainingCertificateSignatures[extension];+ if (!trainingCertificateExtensions.includes(extension) || !signature) {return {file: null,extension: null,@@ -481,6 +492,16 @@ export function validateTrainingCertificate(error: "The certificate must be 10 MB or smaller"};}+ const head = new Uint8Array(+ await file.slice(0, signature.length).arrayBuffer()+ );+ if (!signature.every((byte, index) => head[index] === byte)) {+ return {+ file: null,+ extension: null,+ error: "The certificate must be a PDF, PNG or JPG"+ };+ }return { file, extension, error: null };}diff --git a/apps/erp/app/modules/resources/resources.server.ts b/apps/erp/app/modules/resources/resources.server.tsindex b14ac99ca0..82a8a65260 100644--- a/apps/erp/app/modules/resources/resources.server.ts+++ b/apps/erp/app/modules/resources/resources.server.ts@@ -86,7 +86,9 @@ export async function recordTrainingCompletion(const hasCertificate =args.certificate instanceof File && args.certificate.size > 0;if (isExternal && hasCertificate) {- const certificate = validateTrainingCertificate(args.certificate ?? null);+ const certificate = await validateTrainingCertificate(+ args.certificate ?? null+ );if (certificate.error !== null) {return { error: certificate.error, status: 400 };}diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.tsindex b9f3becd97..d00a2bd0fe 100644--- a/apps/erp/app/modules/resources/resources.service.ts+++ b/apps/erp/app/modules/resources/resources.service.ts@@ -1317,35 +1317,8 @@ export async function deleteTrainingCompletion(.from("trainingCompletion").delete().eq("id", id)- .eq("companyId", companyId);-}--/**- * The assignment status RPC does not return the certificate path.- * @mcp read- */-export async function getTrainingCertificatePaths(- client: SupabaseClient<Database>,- companyId: string,- completionIds: number[]-) {- if (completionIds.length === 0) {- return { data: {} as Record<number, string>, error: null };- }-- const { data, error } = await client- .from("trainingCompletion")- .select("id, certificatePath").eq("companyId", companyId)- .in("id", completionIds);-- if (error) return { data: null, error };-- const paths: Record<number, string> = {};- for (const row of data ?? []) {- if (row.certificatePath) paths[row.id] = row.certificatePath;- }- return { data: paths, error: null };+ .select("certificatePath");}/**@@ -2167,6 +2140,7 @@ export async function upsertTrainingAssignment(updatedBy: assignment.updatedBy}).eq("id", assignment.id)+ .eq("companyId", assignment.companyId).select("id").single();}diff --git a/apps/erp/app/modules/resources/types.ts b/apps/erp/app/modules/resources/types.tsindex 896c297216..94a75f578c 100644--- a/apps/erp/app/modules/resources/types.ts+++ b/apps/erp/app/modules/resources/types.ts@@ -108,6 +108,7 @@ export type TrainingAssignmentStatusItem = {currentPeriod: string | null;completionId: number | null;completedAt: string | null;+ certificatePath: string | null;status: (typeof trainingAssignmentStatusOptions)[number];};diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsxindex 93f62349a2..73db87fe66 100644--- a/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx+++ b/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx@@ -4,13 +4,12 @@import { Select, ValidatedForm } from "@carbon/form";import {- Badge,Button,ChoiceCardGroup,- Count,- cn,+ FormControl,+ FormLabel,HStack,- Input,+ LabelWithHelp,ModalDrawer,ModalDrawerBody,ModalDrawerContent,@@ -18,306 +17,28 @@ import {ModalDrawerHeader,ModalDrawerProvider,ModalDrawerTitle,- Tabs,- TabsContent,- TabsList,- TabsTrigger,- ToggleGroup,- ToggleGroupItem,VStack} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";-import { memo, useMemo, useState } from "react";-import {- LuCalendar,- LuCircleCheck,- LuClock,- LuSearch,- LuTriangleAlert-} from "react-icons/lu";+import { useState } from "react";import { useFetcher } from "react-router";import type { z } from "zod";-import { DateTime, EmployeeAvatar, Empty } from "~/components";import { Input as FormInput, Hidden, Submit, Users } from "~/components/Form";import { usePermissions } from "~/hooks";import { trainingAssignmentValidator } from "~/modules/resources";-import type {- TrainingAssignmentStatusItem,- TrainingListItem-} from "~/modules/resources/types";+import type { TrainingListItem } from "~/modules/resources/types";import { path } from "~/utils/path";type TrainingAssignmentFormProps = {initialValues: z.infer<typeof trainingAssignmentValidator>;trainings: TrainingListItem[];- assignmentStatus?: TrainingAssignmentStatusItem[];- currentPeriod?: string | null;open?: boolean;onClose: () => void;};-function StatusBadge({ status }: { status: string }) {- switch (status) {- case "Completed":- return (- <Badge variant="green">- <LuCircleCheck className="mr-1" />- Completed- </Badge>- );- case "Pending":- return (- <Badge variant="secondary">- <LuClock className="mr-1" />- Pending- </Badge>- );- case "Overdue":- return (- <Badge variant="red">- <LuTriangleAlert className="mr-1" />- Overdue- </Badge>- );- case "Not Required":- return <Badge variant="outline">Not Required</Badge>;- default:- return <Badge variant="secondary">{status}</Badge>;- }-}--type StatusFilter =- | "All"- | "Completed"- | "Pending"- | "Overdue"- | "Not Required";--function AssignmentListItem({- assignment,- currentPeriod,- disabled,- isLast-}: {- assignment: TrainingAssignmentStatusItem;- currentPeriod: string | null;- disabled: boolean;- isLast: boolean;-}) {- const fetcher = useFetcher();- const isSubmitting = fetcher.state !== "idle";- const canMarkComplete =- assignment.status !== "Completed" && assignment.status !== "Not Required";-- return (- <div className={cn("p-4", !isLast && "border-b w-full")}>- <div className="flex flex-1 justify-between items-center w-full">- <HStack spacing={4} className="flex-1">- <VStack spacing={0} className="flex-1">- <EmployeeAvatar employeeId={assignment.employeeId} />- {assignment.employeeStartDate && (- <HStack spacing={1} className="text-xs text-muted-foreground">- <LuCalendar className="size-3" />- <span>- Started{" "}- <DateTime- value={assignment.employeeStartDate}- variant="date"- />- </span>- </HStack>- )}- </VStack>- </HStack>- <HStack spacing={4}>- <StatusBadge status={assignment.status} />- {assignment.completedAt && (- <span className="text-xs text-muted-foreground">- <LuClock className="inline mr-1 size-3" />- <DateTime value={assignment.completedAt} variant="date" />- </span>- )}- {canMarkComplete && (- <fetcher.Form method="post" action={path.to.markTrainingComplete}>- <input- type="hidden"- name="trainingAssignmentId"- value={assignment.trainingAssignmentId}- />- <input- type="hidden"- name="employeeId"- value={assignment.employeeId}- />- <input type="hidden" name="period" value={currentPeriod ?? ""} />- <Button- type="submit"- variant="secondary"- size="sm"- disabled={disabled || isSubmitting}- isLoading={isSubmitting}- leftIcon={<LuCircleCheck />}- >- <Trans>Mark Complete</Trans>- </Button>- </fetcher.Form>- )}- </HStack>- </div>- </div>- );-}--const StatusList = memo(- ({- data,- currentPeriod- }: {- data: TrainingAssignmentStatusItem[];- currentPeriod: string | null;- }) => {- const { t } = useLingui();- const permissions = usePermissions();- const [search, setSearch] = useState("");- const [statusFilter, setStatusFilter] = useState<StatusFilter>("All");-- const filteredAssignments = useMemo(() => {- return data.filter((assignment) => {- const matchesSearch =- (search === "" ||- assignment.employeeName- ?.toLowerCase()- .includes(search.toLowerCase())) ??- false;- const matchesStatus =- statusFilter === "All" || assignment.status === statusFilter;- return matchesSearch && matchesStatus;- });- }, [data, search, statusFilter]);-- const statusCounts = useMemo(() => {- return data.reduce(- (acc, assignment) => {- acc[assignment.status] = (acc[assignment.status] || 0) + 1;- return acc;- },- {} as Record<string, number>- );- }, [data]);-- return (- <VStack spacing={0} className="h-full w-full">- <div className="flex flex-col gap-4 w-full">- <div className="relative">- <LuSearch className="absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" />- <Input- placeholder={t`Search employees...`}- value={search}- onChange={(e) => setSearch(e.target.value)}- className="pl-9"- />- </div>- <ToggleGroup- type="single"- value={statusFilter}- onValueChange={(value) => {- if (value) setStatusFilter(value as StatusFilter);- }}- className="justify-start flex-wrap"- >- <ToggleGroupItem- className="flex gap-1.5 items-center"- size="sm"- value="All"- >- All <Count count={data.length} />- </ToggleGroupItem>- <ToggleGroupItem- className="flex gap-1.5 items-center"- size="sm"- value="Completed"- >- <LuCircleCheck className="mr-1 size-3" />- Completed{" "}- {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}- <Count count={statusCounts["Completed"] || 0} />- </ToggleGroupItem>- <ToggleGroupItem- className="flex gap-1.5 items-center"- size="sm"- value="Pending"- >- <LuClock className="mr-1 size-3" />- Pending{" "}- {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}- <Count count={statusCounts["Pending"] || 0} />- </ToggleGroupItem>- <ToggleGroupItem- className="flex gap-1.5 items-center"- size="sm"- value="Overdue"- >- <LuTriangleAlert className="mr-1 size-3" />- Overdue{" "}- {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}- <Count count={statusCounts["Overdue"] || 0} />- </ToggleGroupItem>- <ToggleGroupItem- className="flex gap-1.5 items-center"- size="sm"- value="Not Required"- >- Not Required <Count count={statusCounts["Not Required"] || 0} />- </ToggleGroupItem>- </ToggleGroup>- </div>- <div className="flex-1 overflow-y-auto w-full pt-4">- {filteredAssignments.length > 0 ? (- <div className="border rounded-lg w-full">- {filteredAssignments.map((assignment, index) => (- <AssignmentListItem- key={`${assignment.employeeId}-${assignment.trainingAssignmentId}`}- assignment={assignment}- currentPeriod={currentPeriod}- disabled={!permissions.can("update", "resources")}- isLast={index === filteredAssignments.length - 1}- />- ))}- </div>- ) : (- <div className="flex items-center justify-center h-full text-muted-foreground p-8">- <VStack- spacing={2}- className="w-full items-center justify-center"- >- <Empty>- <Trans>No employees found</Trans>- </Empty>- {search && (- <Button- variant="ghost"- size="sm"- onClick={() => setSearch("")}- >- <Trans>Clear search</Trans>- </Button>- )}- </VStack>- </div>- )}- </div>- </VStack>- );- }-);--StatusList.displayName = "StatusList";-const TrainingAssignmentForm = ({initialValues,trainings,- assignmentStatus = [],- currentPeriod = null,open = true,onClose}: TrainingAssignmentFormProps) => {@@ -329,11 +50,6 @@ const TrainingAssignmentForm = ({? !permissions.can("update", "resources"): !permissions.can("create", "resources");- const [activeTab, setActiveTab] = useState<string>("details");-- // Drawer grows when status tab is visible- const drawerSize = activeTab === "status" ? "lg" : undefined;-return (<ModalDrawerProvider type="drawer"><ModalDrawer@@ -342,103 +58,50 @@ const TrainingAssignmentForm = ({if (!open) onClose?.();}}>- <ModalDrawerContent size={drawerSize}>- <Tabs- value={activeTab}- onValueChange={setActiveTab}+ <ModalDrawerContent>+ <ValidatedForm+ method="post"+ validator={trainingAssignmentValidator}+ defaultValues={initialValues}+ fetcher={fetcher}+ action={+ isEditing+ ? path.to.trainingAssignment(initialValues.id!)+ : path.to.newTrainingAssignment+ }className="flex flex-col h-full">- <ValidatedForm- method="post"- validator={trainingAssignmentValidator}- defaultValues={initialValues}- fetcher={fetcher}- action={- isEditing- ? path.to.trainingAssignment(initialValues.id!)- : path.to.newTrainingAssignment- }- className="flex flex-col h-full"- >- <ModalDrawerHeader className="flex flex-col gap-4">- <HStack className="w-full justify-between pr-8">- <VStack>- <ModalDrawerTitle>- {isEditing ? (- <Trans>Edit Assignment</Trans>- ) : (- <Trans>New Assignment</Trans>- )}- </ModalDrawerTitle>- </VStack>-- {isEditing && (- <div>- <TabsList>- <TabsTrigger value="details">- <Trans>Details</Trans>- </TabsTrigger>- <TabsTrigger value="status">- <Trans>Status</Trans>- </TabsTrigger>- </TabsList>- </div>- )}- </HStack>- </ModalDrawerHeader>- <ModalDrawerBody className="w-full">- <Hidden name="id" />-+ <ModalDrawerHeader>+ <ModalDrawerTitle>{isEditing ? (- <>- <TabsContent value="details" className="w-full">- <AssignmentFormContent- trainings={trainings}- isEditing={isEditing}- defaultIsExternal={initialValues.isExternal}- />- </TabsContent>- <TabsContent- value="status"- className="w-full flex flex-col gap-4"- >- {assignmentStatus.length > 0 ? (- <StatusList- data={assignmentStatus}- currentPeriod={currentPeriod}- />- ) : (- <div className="py-8 text-center text-muted-foreground">- <Trans>- No employees assigned yet. Add groups to see status.- </Trans>- </div>- )}- </TabsContent>- </>+ <Trans>Edit Assignment</Trans>) : (- <AssignmentFormContent- trainings={trainings}- isEditing={isEditing}- defaultIsExternal={initialValues.isExternal}- />+ <Trans>New Assignment</Trans>)}- </ModalDrawerBody>- <ModalDrawerFooter>- <HStack>- <Submit- isLoading={fetcher.state !== "idle"}- isDisabled={fetcher.state !== "idle" || isDisabled}- >- <Trans>Save</Trans>- </Submit>- <Button size="md" variant="solid" onClick={onClose}>- <Trans>Cancel</Trans>- </Button>- </HStack>- </ModalDrawerFooter>- </ValidatedForm>- </Tabs>+ </ModalDrawerTitle>+ </ModalDrawerHeader>+ <ModalDrawerBody className="w-full">+ <Hidden name="id" />+ <AssignmentFormContent+ trainings={trainings}+ isEditing={isEditing}+ defaultIsExternal={initialValues.isExternal}+ />+ </ModalDrawerBody>+ <ModalDrawerFooter>+ <HStack>+ <Submit+ isLoading={fetcher.state !== "idle"}+ isDisabled={fetcher.state !== "idle" || isDisabled}+ >+ <Trans>Save</Trans>+ </Submit>+ <Button size="md" variant="solid" onClick={onClose}>+ <Trans>Cancel</Trans>+ </Button>+ </HStack>+ </ModalDrawerFooter>+ </ValidatedForm></ModalDrawerContent></ModalDrawer></ModalDrawerProvider>@@ -466,24 +129,29 @@ function AssignmentFormContent({<VStack spacing={4}>{/* An assignment's source is fixed once it exists. */}{!isEditing && (- <ChoiceCardGroup<TrainingSource>- label={t`Training`}- termId="external-training"- value={source}- onChange={setSource}- options={[- {- value: "internal",- title: t`Internal`,- description: t`Employees complete a training in Carbon`- },- {- value: "external",- title: t`External`,- description: t`Taken outside Carbon. You mark each employee complete.`- }- ]}- />+ <FormControl>+ <FormLabel>+ <LabelWithHelp termId="external-training">+ {t`Training`}+ </LabelWithHelp>+ </FormLabel>+ <ChoiceCardGroup<TrainingSource>+ value={source}+ onChange={setSource}+ options={[+ {+ value: "internal",+ title: t`Internal`,+ description: t`Employees complete a training in Carbon`+ },+ {+ value: "external",+ title: t`External`,+ description: t`Taken outside Carbon. You mark each employee complete.`+ }+ ]}+ />+ </FormControl>)}{isExternal && <input type="hidden" name="isExternal" value="on" />}{isExternal ? (diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingGuide.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingGuide.tsxindex 29da42790c..82a69b236f 100644--- a/apps/erp/app/modules/resources/ui/Training/TrainingGuide.tsx+++ b/apps/erp/app/modules/resources/ui/Training/TrainingGuide.tsx@@ -9,7 +9,7 @@ import { File as FileButton, HStack, Skeleton, toast } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { nanoid } from "nanoid";import type { ChangeEvent } from "react";-import { lazy, Suspense, useState } from "react";+import { lazy, Suspense, useRef, useState } from "react";import { LuFileText, LuUpload } from "react-icons/lu";import { FileDropzone } from "~/components";import { useUser } from "~/hooks";@@ -46,9 +46,20 @@ const TrainingGuide = ({const { company } = useUser();const [isUploading, setIsUploading] = useState(false);+ // The file is stored before the training points at it. If the update is+ // refused (the training is no longer Draft), remove the new file.+ const uploadedPath = useRef<string | null>(null);const fetcher = useAction<typeof action>({+ onSuccess: () => {+ uploadedPath.current = null;+ },onError: (data) => {if (data?.error) toast.error(data.error.message);+ const path = uploadedPath.current;+ uploadedPath.current = null;+ if (path && carbon) {+ storage(carbon).company(company.id).remove([path]);+ }}});const isBusy = isUploading || fetcher.state !== "idle";@@ -69,6 +80,7 @@ const TrainingGuide = ({return;}+ uploadedPath.current = result.data.path;const formData = new FormData();formData.append("ids", trainingId);formData.append("field", "guidePath");diff --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 7fbbe81fc6..b2d29f4480 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@@ -1,5 +1,5 @@{- "totalTools": 1557,+ "totalTools": 1556,"modules": 15,"tools": [{"name":"account_deleteUserAttributeValue","classification":"DESTRUCTIVE","paramCount":2,"schema":"0d38e12233b4","response":"bcde375ebd4c","injectAuth":"companyId+userId","permission":"none","paginates":false},@@ -1092,7 +1092,7 @@{"name":"resources_deleteSuggestion","classification":"DESTRUCTIVE","paramCount":1,"schema":"3a7f44ccb395","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},{"name":"resources_deleteTraining","classification":"DESTRUCTIVE","paramCount":1,"schema":"3f6f0a410b0f","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},{"name":"resources_deleteTrainingAssignment","classification":"DESTRUCTIVE","paramCount":1,"schema":"7d3fe60cc8ed","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},- {"name":"resources_deleteTrainingCompletion","classification":"DESTRUCTIVE","paramCount":1,"schema":"656576baec15","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},+ {"name":"resources_deleteTrainingCompletion","classification":"DESTRUCTIVE","paramCount":1,"schema":"656576baec15","response":"a390c0860228","injectAuth":"companyId","permission":"resources:delete","paginates":false},{"name":"resources_deleteTrainingQuestion","classification":"DESTRUCTIVE","paramCount":1,"schema":"b4f48c09ba9f","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},{"name":"resources_deleteWorkCenter","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"resources:delete","paginates":false},{"name":"resources_ensureProcessAbility","classification":"WRITE","paramCount":2,"schema":"6381d05a75ce","response":"3797626bd17e","injectAuth":"companyId+userId","permission":"resources:update","paginates":false},@@ -1121,7 +1121,7 @@{"name":"resources_getMaintenanceScheduleItems","classification":"READ","paramCount":1,"schema":"c61245800a33","response":"6e7c564b202a","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getMaintenanceSchedules","classification":"READ","paramCount":4,"schema":"d55eeae51beb","response":"69ee71e3d5a8","injectAuth":"companyId","permission":"resources:view","paginates":true,"defaults":"always"},{"name":"resources_getMaintenanceSchedulesByLocation","classification":"READ","paramCount":2,"schema":"68aa9154c497","response":"71889eb4641f","injectAuth":"companyId","permission":"resources:view","paginates":true,"defaults":"always"},- {"name":"resources_getOutstandingTrainingsForUser","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"6cec1c458c55","injectAuth":"companyId","permission":"resources:view","paginates":false},+ {"name":"resources_getOutstandingTrainingsForUser","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"912a69b68c49","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getPartner","classification":"READ","paramCount":2,"schema":"7a4efbb751fd","response":"690aa589fb9c","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getPartnerBySupplierId","classification":"READ","paramCount":1,"schema":"74d289586b4f","response":"690aa589fb9c","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getPartners","classification":"READ","paramCount":3,"schema":"c61cae75d189","response":"f1a7446bd053","injectAuth":"companyId","permission":"resources:view","paginates":true,"defaults":"always"},@@ -1135,10 +1135,9 @@{"name":"resources_getTrainingAssignment","classification":"READ","paramCount":1,"schema":"7d3fe60cc8ed","response":"c9862a5e4a1f","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainingAssignmentForCompletion","classification":"READ","paramCount":1,"schema":"7d3fe60cc8ed","response":"099b764ee26c","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainingAssignments","classification":"READ","paramCount":1,"schema":"d541f0a7e11f","response":"5afd387c50a2","injectAuth":"companyId","permission":"resources:view","paginates":false},- {"name":"resources_getTrainingAssignmentStatus","classification":"READ","paramCount":4,"schema":"12f3ccba8f51","response":"6cec1c458c55","injectAuth":"companyId","permission":"resources:view","paginates":false},- {"name":"resources_getTrainingAssignmentStatusForEmployee","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"6cec1c458c55","injectAuth":"companyId","permission":"resources:view","paginates":false},+ {"name":"resources_getTrainingAssignmentStatus","classification":"READ","paramCount":4,"schema":"12f3ccba8f51","response":"912a69b68c49","injectAuth":"companyId","permission":"resources:view","paginates":false},+ {"name":"resources_getTrainingAssignmentStatusForEmployee","classification":"READ","paramCount":1,"schema":"3d90cb5d0437","response":"912a69b68c49","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainingAssignmentSummary","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"9528aa75cdb8","injectAuth":"companyId","permission":"resources:view","paginates":false},- {"name":"resources_getTrainingCertificatePaths","classification":"READ","paramCount":1,"schema":"2cc02431606f","response":"3f161562db4a","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainingGrantedAbilityId","classification":"READ","paramCount":1,"schema":"fbebd108a3c4","response":"174e29b899b9","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainingQuestions","classification":"READ","paramCount":1,"schema":"3f6f0a410b0f","response":"cbc84076fe3b","injectAuth":"companyId","permission":"resources:view","paginates":false},{"name":"resources_getTrainings","classification":"READ","paramCount":1,"schema":"ed8b79d0644f","response":"cc28f2dfe36f","injectAuth":"companyId","permission":"resources:view","paginates":true,"defaults":"always"},diff --git a/apps/erp/app/routes/x+/person+/$personId.abilities.tsx b/apps/erp/app/routes/x+/person+/$personId.abilities.tsxindex 7b85a6460a..342ca3fe7f 100644--- a/apps/erp/app/routes/x+/person+/$personId.abilities.tsx+++ b/apps/erp/app/routes/x+/person+/$personId.abilities.tsx@@ -5,7 +5,6 @@import { error } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";-import { getLogger } from "@carbon/logger";import { VStack } from "@carbon/react";import { redirect } from "@carbon/utils";import type { LoaderFunctionArgs } from "react-router";@@ -13,14 +12,11 @@ import { useLoaderData, useParams } from "react-router";import { PersonAbilities, PersonTrainings } from "~/modules/people/ui/Person";import {getEmployeeAbilities,- getTrainingAssignmentStatusForEmployee,- getTrainingCertificatePaths+ getTrainingAssignmentStatusForEmployee} from "~/modules/resources";import type { TrainingAssignmentStatusItem } from "~/modules/resources/types";import { path } from "~/utils/path";-const logger = getLogger("erp", "person-trainings");-export async function loader({ request, params }: LoaderFunctionArgs) {const { client, companyId } = await requirePermissions(request, {view: "people"@@ -44,41 +40,21 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);}- const trainingRows = (trainings.data ?? []) as TrainingAssignmentStatusItem[];- const certificatePaths = await getTrainingCertificatePaths(- client,- companyId,- trainingRows.flatMap((t) => (t.completionId ? [t.completionId] : []))- );-- // The certificate links are optional: the page still loads without them.- if (certificatePaths.error) {- logger.error("Failed to load training certificate paths", {- companyId,- error: certificatePaths.error- });- }-return {abilities: employeeAbilities.data ?? [],- trainings: trainingRows,- certificatePaths: certificatePaths.data ?? {}+ trainings: (trainings.data ?? []) as TrainingAssignmentStatusItem[]};}export default function PersonAbilitiesRoute() {- const { abilities, trainings, certificatePaths } =- useLoaderData<typeof loader>();+ const { abilities, trainings } = useLoaderData<typeof loader>();const { personId } = useParams();if (!personId) throw new Error("Could not find personId");return (<VStack spacing={4}><PersonAbilities personId={personId} abilities={abilities} />- <PersonTrainings- trainings={trainings}- certificatePaths={certificatePaths}- />+ <PersonTrainings trainings={trainings} /></VStack>);}diff --git a/apps/erp/app/routes/x+/resources+/assignments.$assignmentId.tsx b/apps/erp/app/routes/x+/resources+/assignments.$assignmentId.tsxindex 87324cc099..0a6d99f491 100644--- a/apps/erp/app/routes/x+/resources+/assignments.$assignmentId.tsx+++ b/apps/erp/app/routes/x+/resources+/assignments.$assignmentId.tsx@@ -5,7 +5,6 @@import { error } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";-import { getLogger } from "@carbon/logger";import { useAction } from "@carbon/query";import {Badge,@@ -51,7 +50,6 @@ import { usePermissions } from "~/hooks";import {getTrainingAssignment,getTrainingAssignmentStatus,- getTrainingCertificatePaths,trainingCertificateAccept} from "~/modules/resources";import type { TrainingAssignmentStatusItem } from "~/modules/resources/types";@@ -59,8 +57,6 @@ import type { action as completeAction } from "~/routes/x+/resources+/assignmentimport type { Handle } from "~/utils/handle";import { getPrivateUrl, path } from "~/utils/path";-const logger = getLogger("erp", "training-assignments");-export const handle: Handle = {breadcrumb: msg`Detail`,to: path.to.trainingAssignments@@ -113,28 +109,10 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);}- const assignments = (assignmentStatus.data ??- []) as TrainingAssignmentStatusItem[];-- const certificatePaths = await getTrainingCertificatePaths(- client,- companyId,- assignments.flatMap((a) => (a.completionId ? [a.completionId] : []))- );-- // The certificate links are optional: the page still loads without them.- if (certificatePaths.error) {- logger.error("Failed to load training certificate paths", {- companyId,- error: certificatePaths.error- });- }-return {name: assignment.data.training?.name ?? assignment.data.name ?? "",isExternal: assignment.data.trainingId === null,- assignments,- certificatePaths: certificatePaths.data ?? {}+ assignments: (assignmentStatus.data ?? []) as TrainingAssignmentStatusItem[]};}@@ -263,14 +241,12 @@ function CertificateCompleteModal({function AssignmentListItem({assignment,- certificatePath,isExternal,canRemove,disabled,isLast}: {assignment: TrainingAssignmentStatusItem;- certificatePath: string | null;isExternal: boolean;canRemove: boolean;disabled: boolean;@@ -318,7 +294,7 @@ function AssignmentListItem({<DateTime value={assignment.completedAt} variant="date" /></span>)}- {certificatePath && (+ {assignment.certificatePath && (<Buttonvariant="secondary"size="sm"@@ -326,7 +302,7 @@ function AssignmentListItem({asChild><a- href={getPrivateUrl(certificatePath)}+ href={getPrivateUrl(assignment.certificatePath)}target="_blank"rel="noreferrer">@@ -408,8 +384,7 @@ function AssignmentListItem({export default function TrainingAssignmentDetailRoute() {const { t } = useLingui();- const { name, isExternal, assignments, certificatePaths } =- useLoaderData<typeof loader>();+ const { name, isExternal, assignments } = useLoaderData<typeof loader>();const permissions = usePermissions();const navigate = useNavigate();const [search, setSearch] = useState("");@@ -531,11 +506,6 @@ export default function TrainingAssignmentDetailRoute() {<AssignmentListItemkey={`${assignment.employeeId}-${assignment.trainingAssignmentId}`}assignment={assignment}- certificatePath={- assignment.completionId- ? (certificatePaths[assignment.completionId] ?? null)- : null- }isExternal={isExternal}canRemove={permissions.can("delete", "resources")}disabled={!permissions.can("update", "resources")}diff --git a/apps/erp/app/routes/x+/resources+/assignments.assignment.$assignmentId.tsx b/apps/erp/app/routes/x+/resources+/assignments.assignment.$assignmentId.tsxindex f5adfce9de..d97facfcd1 100644--- a/apps/erp/app/routes/x+/resources+/assignments.assignment.$assignmentId.tsx+++ b/apps/erp/app/routes/x+/resources+/assignments.assignment.$assignmentId.tsx@@ -15,16 +15,12 @@ import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";import { data, useLoaderData, useNavigate, useParams } from "react-router";import {getTrainingAssignment,- getTrainingAssignmentStatus,getTrainingsList,TrainingAssignmentForm,trainingAssignmentValidator,upsertTrainingAssignment} from "~/modules/resources";-import type {- TrainingAssignmentStatusItem,- TrainingListItem-} from "~/modules/resources/types";+import type { TrainingListItem } from "~/modules/resources/types";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -49,16 +45,12 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);}- const [assignment, trainings, assignmentStatus] = await Promise.all([+ const [assignment, trainings] = await Promise.all([getTrainingAssignment(client, assignmentId),- getTrainingsList(client, companyId),- // @ts-expect-error TS2345 - TODO: fix type- getTrainingAssignmentStatus(client, companyId, {- // We'll filter by trainingId which we'll get from the assignment- })+ getTrainingsList(client, companyId)]);- if (assignment.error) {+ if (assignment.error || assignment.data.companyId !== companyId) {throw redirect(path.to.trainingAssignments,await flash(request, error(assignment.error, "Error loading assignment"))@@ -72,19 +64,9 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);}- // Filter assignment status by trainingAssignmentId- const filteredStatus = (assignmentStatus.data ?? []).filter(- (s) => s.trainingAssignmentId === assignmentId- );-- const currentPeriod =- filteredStatus.length > 0 ? filteredStatus[0].currentPeriod : null;-return {assignment: assignment.data,- trainings: (trainings.data ?? []) as TrainingListItem[],- assignmentStatus: filteredStatus as TrainingAssignmentStatusItem[],- currentPeriod+ trainings: (trainings.data ?? []) as TrainingListItem[]};}@@ -108,14 +90,26 @@ export async function action({ request, params }: ActionFunctionArgs) {return validationError(validation.error);}- const { isExternal, trainingId, name, groupIds } = validation.data;+ // Internal or external is fixed at creation: read it from the stored+ // assignment, never from the form.+ const stored = await getTrainingAssignment(client, assignmentId);+ if (stored.error || stored.data.companyId !== companyId) {+ logger.error("Training assignment not found", {+ companyId,+ assignmentId,+ error: stored.error+ });+ return data({ error: "Training assignment not found" }, { status: 404 });+ }+ const isExternal = stored.data.trainingId === null;++ const { name, groupIds } = validation.data;const result = await upsertTrainingAssignment(client, {id: assignmentId,- trainingId,name: isExternal ? name : null,groupIds,- companyId: "", // not used for updates+ companyId,updatedBy: userId});@@ -160,8 +154,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}export default function EditTrainingAssignmentRoute() {- const { assignment, trainings, assignmentStatus, currentPeriod } =- useLoaderData<typeof loader>();+ const { assignment, trainings } = useLoaderData<typeof loader>();const navigate = useNavigate();const params = useParams();@@ -177,8 +170,6 @@ export default function EditTrainingAssignmentRoute() {<TrainingAssignmentForminitialValues={initialValues}trainings={trainings}- assignmentStatus={assignmentStatus}- currentPeriod={currentPeriod}onClose={() => navigate(path.to.trainingAssignments)}/>);diff --git a/apps/erp/app/routes/x+/resources+/assignments.complete.tsx b/apps/erp/app/routes/x+/resources+/assignments.complete.tsxindex 337fed399a..9a14496523 100644--- a/apps/erp/app/routes/x+/resources+/assignments.complete.tsx+++ b/apps/erp/app/routes/x+/resources+/assignments.complete.tsx@@ -59,6 +59,32 @@ export async function action({ request }: ActionFunctionArgs) {);}+ // Only the people the assignment targets can complete it: a completion can+ // grant an ability, which gates scheduling.+ const recipients = await client.rpc("users_for_groups", {+ groups: assignment.data.groupIds ?? []+ });+ const recipientIds = (recipients.data ?? []) as string[];+ if (recipients.error || !recipientIds.includes(employeeId.toString())) {+ logger.error("Employee is not assigned this training", {+ companyId,+ trainingAssignmentId: trainingAssignmentId.toString(),+ employeeId: employeeId.toString(),+ error: recipients.error+ });+ return data(+ { error: "This employee is not assigned this training" },+ {+ status: 400,+ // @ts-expect-error TS2322 - TODO: fix type+ headers: await flash(+ request,+ error(null, "This employee is not assigned this training")+ )+ }+ );+ }+const recorded = await recordTrainingCompletion(client, {companyId,trainingAssignmentId: trainingAssignmentId.toString(),diff --git a/apps/erp/app/routes/x+/resources+/assignments.uncomplete.tsx b/apps/erp/app/routes/x+/resources+/assignments.uncomplete.tsxindex fb54d7f2a7..4793fa1d7d 100644--- a/apps/erp/app/routes/x+/resources+/assignments.uncomplete.tsx+++ b/apps/erp/app/routes/x+/resources+/assignments.uncomplete.tsx@@ -5,6 +5,7 @@import { assertIsPost, error, success } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";+import { storage } from "@carbon/files";import { getLogger } from "@carbon/logger";import { redirect } from "@carbon/utils";import type { ActionFunctionArgs } from "react-router";@@ -62,6 +63,23 @@ export async function action({ request }: ActionFunctionArgs) {);}+ // The certificate holds employee data; nothing points at it any more.+ const certificatePaths = (result.data ?? [])+ .map((row) => row.certificatePath)+ .filter((path): path is string => !!path);+ if (certificatePaths.length > 0) {+ const removed = await storage(client)+ .company(companyId)+ .remove(certificatePaths);+ if (removed.error) {+ logger.error("Failed to remove training certificate", {+ companyId,+ completionId,+ error: removed.error+ });+ }+ }+return data({ success: true },{diff --git a/apps/erp/app/routes/x+/training+/update.tsx b/apps/erp/app/routes/x+/training+/update.tsxindex bcf3de945c..e585830758 100644--- a/apps/erp/app/routes/x+/training+/update.tsx+++ b/apps/erp/app/routes/x+/training+/update.tsx@@ -3,9 +3,7 @@// including ports, remain AGPLv3; serving them over a network requires releasing their source.import { requirePermissions } from "@carbon/auth/auth.server";-import type { Database } from "@carbon/database";import { unchecked } from "@carbon/utils";-import type { SupabaseClient } from "@supabase/supabase-js";import type { ActionFunctionArgs } from "react-router";import {isValidTrainingGuideKey,@@ -54,10 +52,6 @@ export async function action({ request }: ActionFunctionArgs) {}).in("id", ids as string[]);case "guidePath": {- // The guide is the training's content, so it changes only while Draft.- const refusal = await refuseUnlessDraft(client, companyId, ids);- if (refusal) return refusal;-const trainingId = ids[0] as string;if (ids.length !== 1 ||@@ -69,7 +63,9 @@ export async function action({ request }: ActionFunctionArgs) {) {return { error: { message: "Invalid guide file" }, data: null };}- return await client+ // The guide is the training's content, so it changes only while Draft.+ // Filtering the update on status makes the check and the write one step.+ const updated = await client.from("training").update({guidePath: value === "" ? null : value,@@ -77,7 +73,19 @@ export async function action({ request }: ActionFunctionArgs) {updatedAt: new Date().toISOString()}).eq("id", trainingId)- .eq("companyId", companyId);+ .eq("companyId", companyId)+ .eq("status", "Draft")+ .select("id");+ if (updated.error) return updated;+ if (updated.data.length === 0) {+ return {+ error: {+ message: "The guide can only change while the training is Draft"+ },+ data: null+ };+ }+ return updated;}case "tags":return await client@@ -93,27 +101,3 @@ export async function action({ request }: ActionFunctionArgs) {return { error: { message: "Invalid field" }, data: null };}}--async function refuseUnlessDraft(- client: SupabaseClient<Database>,- companyId: string,- ids: FormDataEntryValue[]-) {- const trainings = await client- .from("training")- .select("status")- .in("id", ids as string[])- .eq("companyId", companyId);- if (trainings.error || trainings.data.length !== ids.length) {- return { error: { message: "Training not found" }, data: null };- }- if (trainings.data.some((training) => training.status !== "Draft")) {- return {- error: {- message: "The guide can only change while the training is Draft"- },- data: null- };- }- return null;-}diff --git a/docs/content/docs/reference/training.mdx b/docs/content/docs/reference/training.mdxindex 1a94349959..48516b0976 100644--- a/docs/content/docs/reference/training.mdx+++ b/docs/content/docs/reference/training.mdx@@ -72,7 +72,7 @@ A new assignment is **Internal** or **External**. An internal assignment picks aThe assignment stores `groupIds`, not employee ids. Carbon expands the groups to their members when it computes who owes the training, so adding a person to a group automatically enrolls them — you don't re-assign.</Callout>-Open an existing assignment and switch to the **Status** tab to see the per-employee roster: each member with their current status, a completion date if they've finished, and a **"Mark Complete"** button (`apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx`). Assigning an internal training also fires a notification to the newly-covered employees (see [notifications](/docs/reference/notifications)).+Click an assignment in the list to open its roster: each member with their current status, a completion date if they've finished, and a **"Mark Complete"** button (`apps/erp/app/routes/x+/resources+/assignments.$assignmentId.tsx`). **Edit Assignment** in the row menu changes its name or groups. Assigning an internal training also fires a notification to the newly-covered employees (see [notifications](/docs/reference/notifications)).## External training@@ -109,9 +109,9 @@ An employee's status is *computed*, not stored — Carbon evaluates it from whetRecurring trainings check the employee's start date against the period. Someone who joined after a past period closed shows **"Not Required"** for that period, not **"Overdue"** — so onboarding a new hire doesn't instantly paint their record red.</Callout>-A manager marks completion from the assignment's Status tab with **"Mark Complete"**; Carbon works out the current period on the server (`recordTrainingCompletion`, `apps/erp/app/modules/resources/resources.server.ts`). An employee already **"Completed"** or **"Not Required"** has no button — there's nothing to mark.+A manager marks completion from the assignment's roster with **"Mark Complete"**; Carbon works out the current period on the server (`recordTrainingCompletion`, `apps/erp/app/modules/resources/resources.server.ts`). An employee already **"Completed"** or **"Not Required"** has no button — there's nothing to mark.-To undo a wrong completion, **"Remove Completion"** on the roster deletes it and the employee goes back to **"Pending"** (or **"Overdue"**). It needs the `resources_delete` permission. Any ability the training granted stays with the employee; remove it on their Abilities page if needed.+To undo a wrong completion, **"Remove Completion"** on the roster deletes it and the employee goes back to **"Pending"** (or **"Overdue"**). It needs the `resources_delete` permission, and it also deletes the attached certificate file. Any ability the training granted stays with the employee; remove it on their Abilities page if needed.## The weekly reminder@@ -152,7 +152,7 @@ An internal assignment needs a training, and an external one needs a name (`traiAn assignment must target at least one group; the `groupIds` array was empty. Add one or more groups in **"Assign to Groups"** before saving.### "Training assignment is required" / "Employee is required"-The mark-complete action needs both `trainingAssignmentId` and `employeeId` (`apps/erp/app/modules/resources/resources.models.ts:333`). These come from hidden fields on the Status-tab row; an empty value means the row didn't carry them — reload the assignment and try again from the Status tab.+The mark-complete action needs both `trainingAssignmentId` and `employeeId` (`apps/erp/app/modules/resources/resources.models.ts:333`). These come from the roster row; an empty value means the row didn't carry them — reload the assignment and try again from its roster.### "Why didn't a reminder send?"Not an error string — a common question. Checklist of preconditions for the weekly digest (`packages/jobs/src/inngest/functions/scheduled/weekly.ts`, cron `0 21 * * 0`, Sunday 21:00 UTC):@@ -168,7 +168,10 @@ The action is gated by the `resources` permission — `resources_update` to markThe employee or manager tried to complete a training that is **"Draft"** or **"Archived"**. Publish it (or **Reopen** and publish) first.### "The certificate must be a PDF, PNG or JPG" / "The certificate must be 10 MB or smaller"-A certificate attached to an external assignment's **Mark Complete** must be of an accepted type and size (`validateTrainingCertificate`, `apps/erp/app/modules/resources/resources.models.ts`). The dialog converts HEIC to JPEG.+A certificate attached to an external assignment's **Mark Complete** must be of an accepted type and size (`validateTrainingCertificate`, `apps/erp/app/modules/resources/resources.models.ts`). Carbon checks the file's first bytes, so a file renamed to `.pdf` is refused. The dialog converts HEIC to JPEG.++### "This employee is not assigned this training"+**Mark Complete** was sent for a person outside the assignment's groups (`assignments.complete.tsx`). Add the person to one of its groups first.### "The guide can only change while the training is Draft"The PDF was changed on an Active or Archived training. **Reopen** it first.diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 0e351681ce..59a9fb40cb 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -93983,6 +93983,7 @@ export type Database = {Args: { p_company_id: string; p_employee_id?: string }Returns: {avatarUrl: string+ certificatePath: stringcompanyId: stringcompletedAt: stringcompletionId: numberdiff --git a/packages/database/supabase/migrations/20261014085812_training-guides-and-certificates.sql b/packages/database/supabase/migrations/20261014085812_training-guides-and-certificates.sqlindex a49a9b60f0..4239049740 100644--- a/packages/database/supabase/migrations/20261014085812_training-guides-and-certificates.sql+++ b/packages/database/supabase/migrations/20261014085812_training-guides-and-certificates.sql@@ -1,8 +1,7 @@--- A training can carry one PDF guide, and an External training is completed by--- uploading a certificate instead of passing the quiz.+-- A training's content can be one PDF, and a completion can carry the+-- certificate an admin attached.ALTER TABLE "training"- ADD COLUMN "guidePath" TEXT,- ADD COLUMN "isExternal" BOOLEAN NOT NULL DEFAULT false;+ ADD COLUMN IF NOT EXISTS "guidePath" TEXT;ALTER TABLE "trainingCompletion"- ADD COLUMN "certificatePath" TEXT;+ ADD COLUMN IF NOT EXISTS "certificatePath" TEXT;diff --git a/packages/database/supabase/migrations/20261014164752_external-training-assignments.sql b/packages/database/supabase/migrations/20261014164752_external-training-assignments.sqlindex 7701fcbfa4..4c89c91948 100644--- a/packages/database/supabase/migrations/20261014164752_external-training-assignments.sql+++ b/packages/database/supabase/migrations/20261014164752_external-training-assignments.sql@@ -2,19 +2,19 @@-- name, has no training, and is completed by an admin. It is one-time.ALTER TABLE "trainingAssignment"ALTER COLUMN "trainingId" DROP NOT NULL,- ADD COLUMN "name" TEXT,+ ADD COLUMN IF NOT EXISTS "name" TEXT,+ DROP CONSTRAINT IF EXISTS "trainingAssignment_training_or_name";++ALTER TABLE "trainingAssignment"ADD CONSTRAINT "trainingAssignment_training_or_name"CHECK (num_nonnulls("trainingId", "name") = 1);--- Replaced by external assignments.-ALTER TABLE "training" DROP COLUMN "isExternal";--- Both return types change, and the summary reads the status function.DROP FUNCTION IF EXISTS public.get_training_assignment_summary(text);DROP FUNCTION IF EXISTS public.get_training_assignment_status(text, text);-CREATE FUNCTION public.get_training_assignment_status(p_company_id text, p_employee_id text DEFAULT NULL::text)- RETURNS TABLE("trainingAssignmentId" text, "trainingId" text, "trainingName" text, frequency "trainingFrequency", "trainingType" "trainingType", "isExternal" boolean, "employeeId" text, "employeeName" text, "avatarUrl" text, "employeeStartDate" date, "companyId" text, "currentPeriod" text, "completionId" integer, "completedAt" timestamp with time zone, status text)+CREATE OR REPLACE FUNCTION public.get_training_assignment_status(p_company_id text, p_employee_id text DEFAULT NULL::text)+ RETURNS TABLE("trainingAssignmentId" text, "trainingId" text, "trainingName" text, frequency "trainingFrequency", "trainingType" "trainingType", "isExternal" boolean, "employeeId" text, "employeeName" text, "avatarUrl" text, "employeeStartDate" date, "companyId" text, "currentPeriod" text, "completionId" integer, "completedAt" timestamp with time zone, "certificatePath" text, status text)LANGUAGE plpgsqlSECURITY DEFINERAS $function$@@ -72,6 +72,7 @@ BEGINwp."currentPeriod",tc.id AS "completionId",tc."completedAt" AS "completedAt",+ tc."certificatePath" AS "certificatePath",CASEWHEN wp."frequency" = 'Once' THENCASE WHEN tc.id IS NOT NULL THEN 'Completed' ELSE 'Pending' END@@ -89,7 +90,7 @@ END;$function$;-- One row per assignment: an external assignment has no training to group by.-CREATE FUNCTION public.get_training_assignment_summary(p_company_id text)+CREATE OR REPLACE FUNCTION public.get_training_assignment_summary(p_company_id text)RETURNS TABLE("trainingAssignmentId" text, "trainingId" text, "trainingName" text, frequency "trainingFrequency", "isExternal" boolean, "currentPeriod" text, "totalAssigned" bigint, completed bigint, pending bigint, overdue bigint, "completionPercent" numeric)LANGUAGE plpgsqlSECURITY DEFINERdiff --git a/packages/jobs/manifests/schema.json b/packages/jobs/manifests/schema.jsonindex 47b2d695be..3c62ecfabf 100644--- a/packages/jobs/manifests/schema.json+++ b/packages/jobs/manifests/schema.json@@ -5,7 +5,7 @@"sourceCompanyId": "schema-baseline","sourceCompanyGroupId": null,"sourceCompanyName": null,- "exportedAt": "2026-10-14T17:06:25.796Z",+ "exportedAt": "2026-10-14T17:39:46.819Z","exportedBy": "schema-baseline","label": "schema baseline","includeStorage": "none",diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 57819e37c7..e4073cf57c 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Mitarbeiter können diese Schulung nicht mehr öffnen."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Mitarbeiter schließen eine Schulung in Carbon ab"msgid "Empty"msgstr "Leer"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Externe Referenz"msgid "External training"-msgstr ""+msgstr "Externe Schulung"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Zusätzliche Felder zum Erfassen von Daten, die Carbon standardmäßig nicht verfolgt"@@ -13038,7 +13038,7 @@ msgstr "Markiere „{0}\" als bestanden?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Schließe {0} ab. Füge sein Zertifikat bei, falls vorhanden."msgid "Mark absent"msgstr "Als abwesend markieren"@@ -14449,9 +14449,6 @@ msgstr "Keine E-Mail-Adresse für diesen Kunden"msgid "No employees assigned this week"msgstr "Keine Mitarbeiter in dieser Woche zugewiesen"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Noch keine Mitarbeiter zugewiesen. Fügen Sie Gruppen hinzu, um den Status zu sehen."-msgid "No employees found"msgstr "Keine Mitarbeiter gefunden"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Noch keine Zahlungen."msgid "No PDF uploaded"-msgstr ""+msgstr "Kein PDF hochgeladen"msgid "No planned invoices are removed."msgstr "Es werden keine geplanten Rechnungen entfernt."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Pfad entfernen"msgid "Remove PDF"-msgstr ""+msgstr "PDF entfernen"msgid "Remove row"msgstr "Zeile entfernen"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Zum Auswahlmodus wechseln"msgid "Switch to Written Content"-msgstr ""+msgstr "Zu schriftlichen Inhalten wechseln"msgid "Switch users over and confirm access"msgstr "Benutzer wechseln und Zugriff bestätigen"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "genommen"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Außerhalb von Carbon absolviert. Markiere jeden Mitarbeiter als abgeschlossen."msgid "Takes Effect"msgstr "Wird wirksam"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Dieses Quartal"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Dies entfernt das PDF. Mitarbeiter sehen stattdessen den schriftlichen Inhalt."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Dies entfernt ihre Authentifizierungs-App, daher benötigt ihre nächste Anmeldung nur einen Magic Link. Verwenden Sie dies, wenn sie den Zugriff auf ihre Authentifizierungs-App verloren haben. Dies wirkt sich auf ihre Anmeldung bei jedem Unternehmen aus, zu dem sie gehören."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Schulungsplan"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Schulung außerhalb von Carbon absolviert, z.B. ein Lieferantenkurs. Die Zuweisung hat nur einen Namen. Ein Admin markiert jeden Mitarbeiter als abgeschlossen und kann sein Zertifikat anhängen."msgid "Training your team via the Academy and in-app guides"msgstr "Schulung Ihres Teams über die Academy und In-App-Leitfäden"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Neue Sicherung hochladen…"msgid "Upload PDF"-msgstr ""+msgstr "PDF hochladen"msgid "Uploaded model"msgstr "Modell hochgeladen"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "Welche Zahlung jeder Periode für dieses Anlagegut im ersten Jahr ist"msgid "What employees read before the questions"-msgstr ""+msgstr "Was Mitarbeiter vor den Fragen lesen"msgid "What happens to an invoice once it is created"msgstr "Was mit einer Rechnung geschieht, nachdem sie erstellt wird"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Schlechteste Maschinen"msgid "Write"-msgstr ""+msgstr "Schreiben"msgid "Write a note…"msgstr "Notiz schreiben…"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex c406b31e7b..9918fa0d89 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -14449,9 +14449,6 @@ msgstr "No email address for this customer"msgid "No employees assigned this week"msgstr "No employees assigned this week"-msgid "No employees assigned yet. Add groups to see status."-msgstr "No employees assigned yet. Add groups to see status."-msgid "No employees found"msgstr "No employees found"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 8eab7d6e03..a5387057a0 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Los empleados ya no pueden abrir esta capacitación."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Los empleados completan una capacitación en Carbon"msgid "Empty"msgstr "Vacío"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Referencia Externa"msgid "External training"-msgstr ""+msgstr "Capacitación externa"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Campos adicionales para capturar datos que Carbon no rastrea de forma predeterminada"@@ -13038,7 +13038,7 @@ msgstr "¿Marcar \"{0}\" como superado?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Completar {0}. Adjunta su certificado si tienes uno."msgid "Mark absent"msgstr "Marcar ausente"@@ -14449,9 +14449,6 @@ msgstr "No hay dirección de correo para este Cliente"msgid "No employees assigned this week"msgstr "Sin empleados asignados esta semana"-msgid "No employees assigned yet. Add groups to see status."-msgstr "No hay empleados asignados aún. Agregue grupos para ver el estado."-msgid "No employees found"msgstr "No se encontraron empleados"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Sin pagos aún."msgid "No PDF uploaded"-msgstr ""+msgstr "Sin PDF subido"msgid "No planned invoices are removed."msgstr "No se eliminan facturas planificadas."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Quitar ruta"msgid "Remove PDF"-msgstr ""+msgstr "Quitar PDF"msgid "Remove row"msgstr "Quitar fila"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Cambiar a modo selección"msgid "Switch to Written Content"-msgstr ""+msgstr "Cambiar a contenido escrito"msgid "Switch users over and confirm access"msgstr "Cambiar usuarios y confirmar acceso"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "tomado"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Realizada fuera de Carbon. Marcas como completado a cada empleado."msgid "Takes Effect"msgstr "Entra en vigencia"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Este Trimestre"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Esto quita el PDF. Los empleados verán el contenido escrito en su lugar."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Esto elimina su aplicación autenticadora, por lo que su próximo inicio de sesión solo necesita un enlace mágico. Usa esto cuando hayan perdido acceso a su autenticador. Afecta su inicio de sesión en cada empresa a la que pertenecen."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Plan de Capacitación"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Capacitación realizada fuera de Carbon, como un curso de proveedor. La asignación solo tiene un nombre. Un administrador marca como completado a cada empleado y puede adjuntar su certificado."msgid "Training your team via the Academy and in-app guides"msgstr "Capacitar a tu equipo a través de la Academia y guías en la aplicación"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Subir nueva copia de seguridad…"msgid "Upload PDF"-msgstr ""+msgstr "Subir PDF"msgid "Uploaded model"msgstr "Modelo cargado"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "Cuál es el pago de cada período para este activo en el primer año"msgid "What employees read before the questions"-msgstr ""+msgstr "Lo que los empleados leen antes de las preguntas"msgid "What happens to an invoice once it is created"msgstr "Qué sucede a una factura una vez que se crea"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Máquinas con Peor Desempeño"msgid "Write"-msgstr ""+msgstr "Escribir"msgid "Write a note…"msgstr "Escribir una nota…"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex b0282b06c4..ccca0c1092 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Les employés ne peuvent plus ouvrir cette formation."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Les employés terminent une formation dans Carbon"msgid "Empty"msgstr "Vide"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Référence externe"msgid "External training"-msgstr ""+msgstr "Formation externe"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Champs supplémentaires pour capturer les données que Carbon ne suit pas par défaut"@@ -13038,7 +13038,7 @@ msgstr "Marquer « {0} » comme réussi ?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Marquer {0} comme terminé. Joindre son certificat si vous en avez un."msgid "Mark absent"msgstr "Marquer comme absent"@@ -14449,9 +14449,6 @@ msgstr "Pas d'adresse e-mail pour ce client"msgid "No employees assigned this week"msgstr "Aucun employé affecté cette semaine"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Aucun employé assigné pour le moment. Ajoutez des groupes pour voir le statut."-msgid "No employees found"msgstr "Aucun employé trouvé"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Aucun paiement pour le moment."msgid "No PDF uploaded"-msgstr ""+msgstr "Aucun PDF téléversé"msgid "No planned invoices are removed."msgstr "Aucune facture planifiée n'est supprimée."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Retirer le chemin"msgid "Remove PDF"-msgstr ""+msgstr "Retirer le PDF"msgid "Remove row"msgstr "Retirer la ligne"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Passer en mode sélection"msgid "Switch to Written Content"-msgstr ""+msgstr "Passer au contenu écrit"msgid "Switch users over and confirm access"msgstr "Basculer les utilisateurs et confirmer l'accès"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "prise"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Suivi en dehors de Carbon. Vous marquez chaque employé comme terminé."msgid "Takes Effect"msgstr "Prend effet"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Ce trimestre"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Cela supprime le PDF. Les employés verront le contenu écrit à la place."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Ceci supprime leur application d'authentification, de sorte que leur prochain accès ne nécessite qu'un lien magique. Utilisez cette option lorsqu'ils ont perdu l'accès à leur authentificateur. Cela affecte leur accès pour chaque société à laquelle ils appartiennent."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Plan de formation"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Formation suivie en dehors de Carbon, comme une formation de fournisseur. L'affectation n'a qu'un nom. Un administrateur marque chaque employé comme terminé et peut joindre son certificat."msgid "Training your team via the Academy and in-app guides"msgstr "Formation de votre équipe via l'Academy et les guides intégrés"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Téléverser une nouvelle sauvegarde…"msgid "Upload PDF"-msgstr ""+msgstr "Téléverser un PDF"msgid "Uploaded model"msgstr "Modèle téléchargé"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "Quel est le paiement de chaque période pour cette immobilisation la première année"msgid "What employees read before the questions"-msgstr ""+msgstr "Ce que les employés lisent avant les questions"msgid "What happens to an invoice once it is created"msgstr "Ce qui se passe pour une facture une fois créée"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Machines les plus défaillantes"msgid "Write"-msgstr ""+msgstr "Écrire"msgid "Write a note…"msgstr "Rédiger une note…"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 76a5631229..9aceee304b 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "कर्मचारी अब इस प्रशिक्षण को खोल नहीं सकते।"msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "कर्मचारी Carbon में प्रशिक्षण को पूर्ण करते हैं"msgid "Empty"msgstr "खाली"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "बाहरी संदर्भ"msgid "External training"-msgstr ""+msgstr "बाहरी प्रशिक्षण"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "कार्बन डिफ़ॉल्ट रूप से ट्रैक नहीं करता है ऐसा डेटा कैप्चर करने के लिए अतिरिक्त फ़ील्ड"@@ -13038,7 +13038,7 @@ msgstr "क्या \"{0}\" को उत्तीर्ण के रूप#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "{0} को पूर्ण करें। यदि आपके पास है तो उनका प्रमाण पत्र संलग्न करें।"msgid "Mark absent"msgstr "अनुपस्थित चिह्नित करें"@@ -14449,9 +14449,6 @@ msgstr "इस ग्राहक के लिए कोई ईमेल पतmsgid "No employees assigned this week"msgstr "इस सप्ताह कोई कर्मचारी निर्धारित नहीं"-msgid "No employees assigned yet. Add groups to see status."-msgstr "अभी तक कोई कर्मचारी असाइन नहीं किया गया है। स्थिति देखने के लिए समूह जोड़ें।"-msgid "No employees found"msgstr "कोई कर्मचारी नहीं मिला"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "अभी तक कोई भुगतान नहीं।"msgid "No PDF uploaded"-msgstr ""+msgstr "कोई PDF अपलोड नहीं किया गया"msgid "No planned invoices are removed."msgstr "कोई योजनाबद्ध चालान हटाया नहीं गया।"@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "पथ निकालें"msgid "Remove PDF"-msgstr ""+msgstr "PDF निकालें"msgid "Remove row"msgstr "पंक्ति निकालें"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "चयन मोड में स्विच करें"msgid "Switch to Written Content"-msgstr ""+msgstr "लिखित सामग्री पर स्विच करें"msgid "Switch users over and confirm access"msgstr "उपयोगकर्ताओं को स्विच करें और एक्सेस की पुष्टि करें"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "लिया गया"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Carbon के बाहर लिया गया। आप प्रत्येक कर्मचारी को पूर्ण करते हैं।"msgid "Takes Effect"msgstr "प्रभावी होता है"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "इस त्रैमासिक"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "यह PDF को हटाता है। कर्मचारी इसके बजाय लिखित सामग्री देखेंगे।"msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "यह उनके प्रमाणीकरणकर्ता ऐप को निकालता है, इसलिए उनके अगले साइन-इन के लिए केवल एक जादुई लिंक की आवश्यकता होती है। जब वे अपने प्रमाणीकरणकर्ता तक पहुंच खो गए हों तो इसका उपयोग करें। यह उनके साइन-इन को उन सभी कंपनियों के लिए प्रभावित करता है जिनसे वे संबंधित हैं।"@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "प्रशिक्षण योजना"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Carbon के बाहर लिया गया प्रशिक्षण, जैसे विक्रेता पाठ्यक्रम। असाइनमेंट के पास केवल एक नाम है। एक प्रशासक प्रत्येक कर्मचारी को पूर्ण करता है और उनके प्रमाण पत्र को संलग्न कर सकता है।"msgid "Training your team via the Academy and in-app guides"msgstr "Academy और इन-ऐप गाइड के माध्यम से अपनी टीम को प्रशिक्षण दें"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "नया बैकअप अपलोड करें…"msgid "Upload PDF"-msgstr ""+msgstr "PDF अपलोड करें"msgid "Uploaded model"msgstr "अपलोड किया गया मॉडल"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "पहले वर्ष में इस संपत्ति के लिए प्रत्येक अवधि का भुगतान क्या है"msgid "What employees read before the questions"-msgstr ""+msgstr "कर्मचारी प्रश्नों से पहले क्या पढ़ते हैं"msgid "What happens to an invoice once it is created"msgstr "एक चालान बनाए जाने के बाद क्या होता है"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "सबसे खराब प्रदर्शन करने वाली मशीनें"msgid "Write"-msgstr ""+msgstr "लिखें"msgid "Write a note…"msgstr "एक नोट लिखें…"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 14b487f8da..6021750cf6 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "I dipendenti non possono più aprire questa formazione."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "I dipendenti completano una formazione in Carbon"msgid "Empty"msgstr "Vuoto"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Riferimento Esterno"msgid "External training"-msgstr ""+msgstr "Formazione esterna"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Campi aggiuntivi per acquisire dati che Carbon non traccia per impostazione predefinita"@@ -13038,7 +13038,7 @@ msgstr "Contrassegna \"{0}\" come superato?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Contrassegna {0} come completato. Allega il certificato se ne hai uno."msgid "Mark absent"msgstr "Segna come assente"@@ -14449,9 +14449,6 @@ msgstr "Nessun indirizzo email per questo cliente"msgid "No employees assigned this week"msgstr "Nessun dipendente assegnato questa settimana"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Nessun dipendente assegnato ancora. Aggiungi gruppi per visualizzare lo stato."-msgid "No employees found"msgstr "Nessun dipendente trovato"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Nessun pagamento ancora."msgid "No PDF uploaded"-msgstr ""+msgstr "Nessun PDF caricato"msgid "No planned invoices are removed."msgstr "Nessuna fattura pianificata viene rimossa."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Rimuovi percorso"msgid "Remove PDF"-msgstr ""+msgstr "Rimuovi PDF"msgid "Remove row"msgstr "Rimuovi riga"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Passa alla modalità selezione"msgid "Switch to Written Content"-msgstr ""+msgstr "Passa al contenuto scritto"msgid "Switch users over and confirm access"msgstr "Trasferisci gli utenti e conferma l'accesso"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "preso"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Seguito all'esterno di Carbon. Contrassegni ogni dipendente come completato."msgid "Takes Effect"msgstr "Ha effetto"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Questo Trimestre"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Questo rimuove il PDF. I dipendenti vedranno il contenuto scritto."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Questo rimuove la loro app autenticatore, quindi il loro prossimo accesso ha bisogno solo di un collegamento magico. Usalo quando hanno perso l'accesso al loro autenticatore. Influisce sul loro accesso per ogni azienda a cui appartengono."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Piano di Formazione"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Formazione seguita all'esterno di Carbon, come un corso di un fornitore. L'incarico ha solo un nome. Un amministratore contrassegna ogni dipendente come completato e può allegare il certificato."msgid "Training your team via the Academy and in-app guides"msgstr "Formazione del tuo team tramite l'Academy e le guide in-app"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Carica nuovo backup…"msgid "Upload PDF"-msgstr ""+msgstr "Carica PDF"msgid "Uploaded model"msgstr "Modello caricato"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "L'importo del pagamento di ogni periodo per questo cespite nel primo anno"msgid "What employees read before the questions"-msgstr ""+msgstr "Quello che i dipendenti leggono prima delle domande"msgid "What happens to an invoice once it is created"msgstr "Cosa accade a una fattura una volta creata"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Macchine con Prestazioni Peggiori"msgid "Write"-msgstr ""+msgstr "Scrivi"msgid "Write a note…"msgstr "Scrivi una nota…"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex fe46d8eca5..c5c33b9cb2 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "従業員はこの教育訓練を開くことができなくなりました。"msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "従業員がCarbonで教育訓練を完了する"msgid "Empty"msgstr "空"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "社外参照"msgid "External training"-msgstr ""+msgstr "社外教育訓練"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Carbonがデフォルトで追跡しないデータをキャプチャするための追加フィールド"@@ -13038,7 +13038,7 @@ msgstr "「{0}」を合格にしますか?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "{0} を完了にしてください。証明書があれば添付してください。"msgid "Mark absent"msgstr "欠席をマーク"@@ -14449,9 +14449,6 @@ msgstr "この得意先にはメールアドレスがありません。"msgid "No employees assigned this week"msgstr "今週割り当てられた従業員がいません"-msgid "No employees assigned yet. Add groups to see status."-msgstr "まだ従業員が割り当てられていません。グループを追加してステータスを確認してください。"-msgid "No employees found"msgstr "従業員が見つかりません"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "まだ支払いはありません。"msgid "No PDF uploaded"-msgstr ""+msgstr "PDFがアップロードされていません"msgid "No planned invoices are removed."msgstr "計画済請求書は削除されません。"@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "パスを除去"msgid "Remove PDF"-msgstr ""+msgstr "PDFを除去"msgid "Remove row"msgstr "行を除去"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "選択モードに切り替え"msgid "Switch to Written Content"-msgstr ""+msgstr "記述内容に切り替える"msgid "Switch users over and confirm access"msgstr "ユーザーを切り替えてアクセスを確認"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "実施"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Carbon以外で実施。各従業員を完了にしてください。"msgid "Takes Effect"msgstr "有効開始"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "今四半期"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "これはPDFを除去します。従業員は代わりに記述内容を表示します。"msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "これにより認証器アプリが削除されるため、次回のサインインはマジックリンクのみが必要になります。認証器へのアクセスを失った場合にこれを使用してください。彼らが属するすべての会社のサインインに影響します。"@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "教育訓練計画"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Carbonの外で実施された教育訓練(例:ベンダーコース)。割り当ては名前のみです。管理者が各従業員を完了にし、証明書を添付できます。"msgid "Training your team via the Academy and in-app guides"msgstr "アカデミーとアプリ内ガイドを使用してチームを教育訓練します。"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "新しいバックアップをアップロード…"msgid "Upload PDF"-msgstr ""+msgstr "PDFをアップロード"msgid "Uploaded model"msgstr "モデルをアップロードしました"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "このアセットの初年度における各期の支払額"msgid "What employees read before the questions"-msgstr ""+msgstr "従業員が問題前に読む内容"msgid "What happens to an invoice once it is created"msgstr "請求書が作成されたら何が起こるか"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "最も性能が低い機械"msgid "Write"-msgstr ""+msgstr "書く"msgid "Write a note…"msgstr "メモを書く…"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 5cb14c69aa..eec315b55d 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "직원들은 더 이상 이 교육을 열 수 없습니다."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "직원들이 Carbon에서 교육을 완료합니다"msgid "Empty"msgstr "비어있음"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "외부 참조"msgid "External training"-msgstr ""+msgstr "외부 교육"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Carbon이 기본적으로 추적하지 않는 데이터를 담기 위한 추가 필드"@@ -13038,7 +13038,7 @@ msgstr "\"{0}\"을(를) 통과로 표시하시겠습니까?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "{0}를 완료 처리합니다. 인증서가 있으면 첨부하세요."msgid "Mark absent"msgstr "부재 표시"@@ -14449,9 +14449,6 @@ msgstr "이 고객의 이메일 주소가 없습니다."msgid "No employees assigned this week"msgstr "이번 주에 배치된 직원이 없습니다"-msgid "No employees assigned yet. Add groups to see status."-msgstr "아직 배정된 직원이 없습니다. 그룹을 추가하면 상태를 확인할 수 있습니다."-msgid "No employees found"msgstr "직원이 없습니다"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "아직 지불이 없습니다."msgid "No PDF uploaded"-msgstr ""+msgstr "업로드된 PDF 없음"msgid "No planned invoices are removed."msgstr "계획된 송장이 제거되지 않습니다."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "경로 제거"msgid "Remove PDF"-msgstr ""+msgstr "PDF 제거"msgid "Remove row"msgstr "행 제거"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "선택 모드로 전환"msgid "Switch to Written Content"-msgstr ""+msgstr "작성된 콘텐츠로 전환"msgid "Switch users over and confirm access"msgstr "사용자를 전환하고 접근 권한을 확인하세요"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "사용됨"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Carbon 외부에서 수행됨. 각 직원을 완료 처리합니다."msgid "Takes Effect"msgstr "발효됨"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "이번 분기"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "이렇게 하면 PDF가 제거됩니다. 직원들은 대신 작성된 콘텐츠를 보게 됩니다."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "이것은 그들의 인증 앱을 제거하므로 다음 로그인에는 매직 링크만 필요합니다. 그들이 인증 수단에 대한 접근을 잃었을 때 이것을 사용하세요. 이것은 그들이 속한 모든 회사에 대한 로그인에 영향을 미칩니다."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "교육 계획"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Carbon 외부에서 수행된 교육(예: 공급업체 과정). 할당은 이름만 있습니다. 관리자가 각 직원을 완료 처리하고 인증서를 첨부할 수 있습니다."msgid "Training your team via the Academy and in-app guides"msgstr "아카데미와 인앱 가이드를 통한 팀 교육"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "새 백업 업로드…"msgid "Upload PDF"-msgstr ""+msgstr "PDF 업로드"msgid "Uploaded model"msgstr "업로드된 모델"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "첫 해에 이 자산에 대한 각 기간의 지불액"msgid "What employees read before the questions"-msgstr ""+msgstr "직원들이 질문 전에 읽는 내용"msgid "What happens to an invoice once it is created"msgstr "송장이 생성된 후 어떤 일이 일어나는지"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "성능이 가장 낮은 기계"msgid "Write"-msgstr ""+msgstr "작성"msgid "Write a note…"msgstr "메모 작성…"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex d633446db5..e65f970f7b 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Pracownicy nie mogą już otworzyć tego szkolenia."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Pracownicy ukańczają szkolenie w Carbon"msgid "Empty"msgstr "Puste"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Odniesienie zewnętrzne"msgid "External training"-msgstr ""+msgstr "Szkolenie zewnętrzne"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Dodatkowe pola do przechwytywania danych, których Carbon nie śledzi domyślnie"@@ -13038,7 +13038,7 @@ msgstr "Oznacz \"{0}\" jako zaliczony?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Oznacz {0} za ukańczone. Załącz certyfikat, jeśli go masz."msgid "Mark absent"msgstr "Oznacz jako nieobecny"@@ -14449,9 +14449,6 @@ msgstr "Brak adresu e-mail dla tego klienta"msgid "No employees assigned this week"msgstr "Brak pracowników przydzielonych w tym tygodniu"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Brak przypisanych pracowników. Dodaj grupy, aby zobaczyć status."-msgid "No employees found"msgstr "Nie znaleziono pracowników"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Brak płatności."msgid "No PDF uploaded"-msgstr ""+msgstr "Brak przesłanego PDF"msgid "No planned invoices are removed."msgstr "Nie usunięto żadnych zaplanowanych faktur."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Usuń z listy ścieżkę"msgid "Remove PDF"-msgstr ""+msgstr "Usuń PDF"msgid "Remove row"msgstr "Usuń z listy wiersz"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Przełącz na tryb wyboru"msgid "Switch to Written Content"-msgstr ""+msgstr "Przełącz na zawartość pisemną"msgid "Switch users over and confirm access"msgstr "Przełącz użytkowników i potwierdź dostęp"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "wzięte"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Przeprowadzone poza Carbon. Oznaczasz każdego pracownika za ukańczonego."msgid "Takes Effect"msgstr "Wchodzi w życie"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Ten Kwartał"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "To usunie PDF. Pracownicy będą widzieć zawartość pisemną zamiast tego."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "To usuwa ich aplikację uwierzytelniającą, więc ich następny login potrzebuje tylko magicznego linku. Użyj tego, gdy stracili dostęp do swojej aplikacji uwierzytelniającej. To wpływa na ich logowanie dla każdej firmy, do której należą."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Plan szkoleniowy"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Szkolenie przeprowadzone poza Carbon, takie jak kurs od dostawcy. Przypisanie ma tylko nazwę. Administrator oznacza każdego pracownika za ukańczonego i może załączyć jego certyfikat."msgid "Training your team via the Academy and in-app guides"msgstr "Szkolenie zespołu za pośrednictwem Academy i przewodników w aplikacji"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Prześlij nową kopię zapasową…"msgid "Upload PDF"-msgstr ""+msgstr "Prześlij plik PDF"msgid "Uploaded model"msgstr "Model przesłany"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "Jaka jest płatność za każdy okres dla tego aktywa w pierwszym roku"msgid "What employees read before the questions"-msgstr ""+msgstr "Co pracownicy czytają przed pytaniami"msgid "What happens to an invoice once it is created"msgstr "Co się stanie z fakturą po jej utworzeniu"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Maszyny o najgorszych wynikach"msgid "Write"-msgstr ""+msgstr "Napisz"msgid "Write a note…"msgstr "Wpisz notatkę…"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 867ef34557..aaa65a0f87 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Os funcionários não podem mais abrir este treinamento."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Os funcionários concluem um treinamento no Carbon"msgid "Empty"msgstr "Vazio"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Referência Externa"msgid "External training"-msgstr ""+msgstr "Treinamento Externo"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Campos extras para capturar dados que o Carbon não rastreia por padrão"@@ -13038,7 +13038,7 @@ msgstr "Marcar \"{0}\" como aprovado?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Marcar {0} como concluído. Anexe o certificado dele, se você tiver um."msgid "Mark absent"msgstr "Marcar ausente"@@ -14449,9 +14449,6 @@ msgstr "Sem endereço de e-mail para este cliente"msgid "No employees assigned this week"msgstr "Nenhum funcionário atribuído esta semana"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Nenhum funcionário atribuído ainda. Adicione grupos para ver o status."-msgid "No employees found"msgstr "Nenhum funcionário encontrado"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Nenhum pagamento ainda."msgid "No PDF uploaded"-msgstr ""+msgstr "Nenhum PDF enviado"msgid "No planned invoices are removed."msgstr "Nenhuma fatura planejada é removida."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Remover caminho"msgid "Remove PDF"-msgstr ""+msgstr "Remover PDF"msgid "Remove row"msgstr "Remover linha"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Mudar para modo selecionar"msgid "Switch to Written Content"-msgstr ""+msgstr "Mudar para Conteúdo Escrito"msgid "Switch users over and confirm access"msgstr "Alternar usuários e confirmar acesso"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "tomado"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Realizado fora do Carbon. Você marca cada funcionário como concluído."msgid "Takes Effect"msgstr "Entra em Vigor"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Este Trimestre"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Isso remove o PDF. Os funcionários verão o conteúdo escrito em vez disso."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Isso remove seu aplicativo autenticador, portanto seu próximo login só precisa de um link mágico. Use isso quando eles tiverem perdido acesso ao seu autenticador. Afeta seu login para cada empresa a que pertencem."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Plano de Treinamento"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Treinamento realizado fora do Carbon, como um curso de um fornecedor. A atribuição tem apenas um nome. Um administrador marca cada funcionário como concluído e pode anexar seu certificado."msgid "Training your team via the Academy and in-app guides"msgstr "Treinamento da sua equipe via Academy e guias integrados"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Enviar novo arquivo de backup…"msgid "Upload PDF"-msgstr ""+msgstr "Enviar PDF"msgid "Uploaded model"msgstr "Modelo carregado"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "O pagamento de cada período para este ativo no primeiro ano"msgid "What employees read before the questions"-msgstr ""+msgstr "O que os funcionários leem antes das perguntas"msgid "What happens to an invoice once it is created"msgstr "O que acontece com uma fatura depois de criada"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Máquinas com Pior Desempenho"msgid "Write"-msgstr ""+msgstr "Escrever"msgid "Write a note…"msgstr "Escrever uma observação…"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 55e7003939..ad572be633 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Сотрудники больше не могут открыть это обучение."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Сотрудники завершают обучение в Carbon"msgid "Empty"msgstr "Пусто"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Внешняя ссылка"msgid "External training"-msgstr ""+msgstr "Внешнее обучение"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Дополнительные поля для сбора данных, которые Carbon не отслеживает по умолчанию"@@ -13038,7 +13038,7 @@ msgstr "Отметить \"{0}\" как пройденный?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "Отметьте {0} завершённым. Прикрепите его сертификат, если он есть."msgid "Mark absent"msgstr "Отметить отсутствующим"@@ -14449,9 +14449,6 @@ msgstr "Нет адреса электронной почты для этогоmsgid "No employees assigned this week"msgstr "На эту неделю не назначены сотрудники"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Сотрудники еще не назначены. Добавьте группы, чтобы увидеть статус."-msgid "No employees found"msgstr "Сотрудники не найдены"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Платежей пока нет."msgid "No PDF uploaded"-msgstr ""+msgstr "PDF не загружен"msgid "No planned invoices are removed."msgstr "Запланированные счета-фактуры не удаляются."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Убрать путь"msgid "Remove PDF"-msgstr ""+msgstr "Убрать PDF"msgid "Remove row"msgstr "Убрать строку"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Переключиться в режим выделения"msgid "Switch to Written Content"-msgstr ""+msgstr "Переключиться на письменный контент"msgid "Switch users over and confirm access"msgstr "Переключите пользователей и подтвердите доступ"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "взято"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Пройдено вне Carbon. Вы отмечаете каждого сотрудника завершённым."msgid "Takes Effect"msgstr "Вступает в силу"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Этот квартал"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Это удаляет PDF. Сотрудники вместо этого увидят письменный контент."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Это удаляет их приложение аутентификатора, поэтому их следующий вход требует только волшебной ссылки. Используйте это, когда они потеряли доступ к своему аутентификатору. Это влияет на их вход для каждой организации, которой они принадлежат."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "План обучения"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Обучение, пройденное вне Carbon, например курс поставщика. Задание содержит только название. Администратор отмечает каждого сотрудника завершённым и может прикрепить его сертификат."msgid "Training your team via the Academy and in-app guides"msgstr "Обучение вашей команды через Academy и встроенные руководства"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Загрузить новую резервную копию…"msgid "Upload PDF"-msgstr ""+msgstr "Загрузить PDF"msgid "Uploaded model"msgstr "Модель загружена"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "Размер платежа каждого периода для этого актива в первый год"msgid "What employees read before the questions"-msgstr ""+msgstr "То, что сотрудники читают перед вопросами"msgid "What happens to an invoice once it is created"msgstr "Что происходит со счетом-фактурой после его создания"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "Худшие станки"msgid "Write"-msgstr ""+msgstr "Написать"msgid "Write a note…"msgstr "Написать примечание…"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 9e4587e6fe..779c2fcdce 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "Çalışanlar artık bu eğitimi açamaz."msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "Çalışanlar Carbon'da eğitimi tamamlarlar"msgid "Empty"msgstr "Boş"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "Harici Referans"msgid "External training"-msgstr ""+msgstr "Harici Eğitim"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "Carbon'ın varsayılan olarak izlemediği verileri yakalamak için ekstra alanlar"@@ -13038,7 +13038,7 @@ msgstr "\"{0}\" geçti olarak işaretle?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "{0} öğesini tamamlandı olarak işaretle. Varsa sertifikasını ekle."msgid "Mark absent"msgstr "Devamsız olarak işaretле"@@ -14449,9 +14449,6 @@ msgstr "Bu müşterinin e-posta adresi yok"msgid "No employees assigned this week"msgstr "Bu hafta hiçbir çalışan atanmamış"-msgid "No employees assigned yet. Add groups to see status."-msgstr "Henüz çalışan atanmadı. Durumu görmek için gruplar ekleyin."-msgid "No employees found"msgstr "Hiç çalışan bulunamadı"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "Henüz ödeme yok."msgid "No PDF uploaded"-msgstr ""+msgstr "PDF yüklenmedi"msgid "No planned invoices are removed."msgstr "Planlanmış fatura kaldırılmamıştır."@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "Yolu kaldır"msgid "Remove PDF"-msgstr ""+msgstr "PDF'yi Kaldır"msgid "Remove row"msgstr "Satırı kaldır"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "Seçim moduna geç"msgid "Switch to Written Content"-msgstr ""+msgstr "Yazılı İçeriğe Geç"msgid "Switch users over and confirm access"msgstr "Kullanıcıları değiştir ve erişimi onayla"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "alındı"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "Carbon dışında alınmış. Her çalışanı tamamlandı olarak işaretlersiniz."msgid "Takes Effect"msgstr "Yürürlüğe Girer"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "Bu Çeyrek"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "Bu, PDF'yi kaldırır. Çalışanlar yerine yazılı içeriği görecekler."msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "Bu işlem onların kimlik doğrulayıcı uygulamasını kaldırır, bu nedenle sonraki oturum açışları yalnızca sihirli bir bağlantı gerektirir. Kimlik doğrulayıcılarına erişimini kaybettikleri zaman bunu kullanın. Ait oldukları her şirket için oturum açışlarını etkiler."@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "Eğitim Planı"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "Carbon dışında alınan eğitim, satıcı kursu gibi. Görev sadece bir ada sahiptir. Yönetici her çalışanı tamamlandı olarak işaretler ve sertifikasını ekleyebilir."msgid "Training your team via the Academy and in-app guides"msgstr "Ekibinizi Academy ve uygulama içi kılavuzlar aracılığıyla eğitin"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "Yeni yedekleme yükle…"msgid "Upload PDF"-msgstr ""+msgstr "PDF Yükle"msgid "Uploaded model"msgstr "Yüklenen model"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "İlk yılda bu varlık için her dönemin ödeme tutarı"msgid "What employees read before the questions"-msgstr ""+msgstr "Çalışanların sorulardan önce okuduğu şey"msgid "What happens to an invoice once it is created"msgstr "Fatura oluşturulduktan sonra ne olur"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "En kötü performans gösteren makineler"msgid "Write"-msgstr ""+msgstr "Yaz"msgid "Write a note…"msgstr "Not yazın…"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 5cdf20e5d8..c4a61a3732 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -8752,7 +8752,7 @@ msgid "Employees can no longer open this training."msgstr "员工无法再打开此培训"msgid "Employees complete a training in Carbon"-msgstr ""+msgstr "员工在 Carbon 中完成培训"msgid "Empty"msgstr "空"@@ -9496,7 +9496,7 @@ msgid "External Reference"msgstr "外部参考"msgid "External training"-msgstr ""+msgstr "外部培训"msgid "Extra fields to capture data Carbon doesn't track by default"msgstr "用于捕获 Carbon 默认不跟踪的额外数据的字段"@@ -13038,7 +13038,7 @@ msgstr "将\"{0}\"标记为已通过?"#. placeholder {0}: assignment.employeeName?.trim()msgid "Mark {0} complete. Attach their certificate if you have one."-msgstr ""+msgstr "将 {0} 标记为完成。如有证书,请附加。"msgid "Mark absent"msgstr "标记缺席"@@ -14449,9 +14449,6 @@ msgstr "此客户没有电子邮件地址"msgid "No employees assigned this week"msgstr "本周没有分配员工"-msgid "No employees assigned yet. Add groups to see status."-msgstr "尚未分配员工。添加群组以查看状态。"-msgid "No employees found"msgstr "未找到员工"@@ -14721,7 +14718,7 @@ msgid "No payments yet."msgstr "还没有付款。"msgid "No PDF uploaded"-msgstr ""+msgstr "未上传 PDF"msgid "No planned invoices are removed."msgstr "未删除已计划的发票。"@@ -18321,7 +18318,7 @@ msgid "Remove path"msgstr "移除路径"msgid "Remove PDF"-msgstr ""+msgstr "移除 PDF"msgid "Remove row"msgstr "移除行"@@ -21726,7 +21723,7 @@ msgid "Switch to select mode"msgstr "切换到选择模式"msgid "Switch to Written Content"-msgstr ""+msgstr "切换到书面内容"msgid "Switch users over and confirm access"msgstr "切换用户并确认访问权限"@@ -21793,7 +21790,7 @@ msgid "taken"msgstr "已采取"msgid "Taken outside Carbon. You mark each employee complete."-msgstr ""+msgstr "在 Carbon 外进行。您将每位员工标记为完成。"msgid "Takes Effect"msgstr "生效"@@ -23455,7 +23452,7 @@ msgid "This Quarter"msgstr "本季度"msgid "This removes the PDF. Employees will see the written content instead."-msgstr ""+msgstr "这将移除 PDF。员工将改为查看书面内容。"msgid "This removes their authenticator app, so their next sign-in only needs a magic link. Use this when they have lost access to their authenticator. It affects their sign-in for every company they belong to."msgstr "此操作移除其身份验证应用,因此其下次登录只需要魔法链接。当他们无法访问其身份验证器时使用此选项。它影响其所属每个公司的登录。"@@ -24057,7 +24054,7 @@ msgid "Training Plan"msgstr "培训计划"msgid "Training taken outside Carbon, such as a vendor course. The assignment has only a name. An admin marks each employee complete and can attach their certificate."-msgstr ""+msgstr "在 Carbon 外进行的培训,例如供应商课程。该作业仅有名称。管理员将每位员工标记为完成,并可附加其证书。"msgid "Training your team via the Academy and in-app guides"msgstr "通过 Academy 和应用内指南培训班组"@@ -24617,7 +24614,7 @@ msgid "Upload new backup…"msgstr "上传新备份…"msgid "Upload PDF"-msgstr ""+msgstr "上传 PDF"msgid "Uploaded model"msgstr "已上传模型"@@ -25389,7 +25386,7 @@ msgid "What each period's payment is for this asset in the first year"msgstr "第一年内该资产每个期间的付款是多少"msgid "What employees read before the questions"-msgstr ""+msgstr "员工答题前阅读的内容"msgid "What happens to an invoice once it is created"msgstr "发票创建后会发生什么"@@ -25931,7 +25928,7 @@ msgid "Worst Performing Machines"msgstr "性能最差的机器"msgid "Write"-msgstr ""+msgstr "撰写"msgid "Write a note…"msgstr "输入备注…"