Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(resources): validation, pickers, labels and copy from the capacity review

naveenkash93343141868a
diff --git a/apps/erp/app/components/Form/Processes.tsx b/apps/erp/app/components/Form/Processes.tsx
index 5990b890ba..512548d9b3 100644
--- a/apps/erp/app/components/Form/Processes.tsx
+++ b/apps/erp/app/components/Form/Processes.tsx
@@ -13,14 +13,17 @@ import ProcessForm from "~/modules/resources/ui/Processes/ProcessForm";
import { path } from "~/utils/path";
import { useEmptyState } from "./emptyStates";
-type ProcessSelectProps = Omit<CreatableMultiSelectProps, "options">;
+type ProcessSelectProps = Omit<CreatableMultiSelectProps, "options"> & {
+ /** Leave out Outside Processing — work a station or person never runs. */
+ inHouseOnly?: boolean;
+};
-const Processes = (props: ProcessSelectProps) => {
+const Processes = ({ inHouseOnly = false, ...props }: ProcessSelectProps) => {
const newProcessModal = useDisclosure();
const [created, setCreated] = useState<string>("");
const triggerRef = useRef<HTMLButtonElement>(null);
- const options = useProcesses();
+ const options = useProcesses({ inHouseOnly });
const emptyMessage = useEmptyState("process", {
onCreate: () => newProcessModal.onOpen()
@@ -68,20 +71,27 @@ Processes.displayName = "Process";
export default Processes;
-export const useProcesses = () => {
+export const useProcesses = ({
+ inHouseOnly = false
+}: {
+ inHouseOnly?: boolean;
+} = {}) => {
const fetcher = useLoaderQuery<Awaited<ReturnType<typeof getProcessesList>>>(
path.to.api.processes
);
const options = useMemo(
() =>
- fetcher.data?.data
- ? fetcher.data?.data.map((c) => ({
- value: c.id,
- label: c.name
- }))
- : [],
- [fetcher.data]
+ (fetcher.data?.data ?? [])
+ .filter(
+ (process) =>
+ !inHouseOnly || process.processType !== "Outside Processing"
+ )
+ .map((process) => ({
+ value: process.id,
+ label: process.name
+ })),
+ [fetcher.data, inHouseOnly]
);
return options;
diff --git a/apps/erp/app/components/Gantt/Gantt.tsx b/apps/erp/app/components/Gantt/Gantt.tsx
index 70394b4d61..5a082c835c 100644
--- a/apps/erp/app/components/Gantt/Gantt.tsx
+++ b/apps/erp/app/components/Gantt/Gantt.tsx
@@ -567,6 +567,7 @@ type GanttTimelineProps = Pick<
};
const TICK_COUNT = 5;
+const LABEL_MIN_PX = 40;
/**
* Split a bar's [offset, offset+duration] into its WORKING pieces by removing
@@ -1013,6 +1014,11 @@ const GanttTimeline = ({
onItemSelected={onItemSelected}
litBars={litBars}
nonWorkingOffsets={offsetsFor(node.id)}
+ labelMinMs={
+ // ~40px at the unzoomed width: narrower bars
+ // truncate their label to "J." or ","
+ (LABEL_MIN_PX / minTimelineWidth) * duration * 1.05
+ }
/>
) : node.data.level === "TRACE" ? (
<>
@@ -1401,12 +1407,15 @@ function LaneItems({
selectedItemId,
onItemSelected,
litBars,
- nonWorkingOffsets
+ nonWorkingOffsets,
+ labelMinMs = 0
}: {
items: GanttEvent[];
selectedItemId: string | undefined;
onItemSelected: (id: string) => void;
litBars: Set<string> | null;
+ /** A bar piece shorter than this is too narrow to label. */
+ labelMinMs?: number;
nonWorkingOffsets: { start: number; end: number }[] | null;
}) {
const { t } = useLingui();
@@ -1442,6 +1451,7 @@ function LaneItems({
isDimmed={isDimmed(item)}
onSelect={() => onItemSelected(item.id)}
nonWorkingOffsets={nonWorkingOffsets}
+ labelMinMs={labelMinMs}
/>
))}
{groups.map((group) => {
@@ -1465,6 +1475,7 @@ function LaneItems({
isDimmed={isDimmed(first)}
onSelect={() => onItemSelected(first.id)}
nonWorkingOffsets={nonWorkingOffsets}
+ labelMinMs={labelMinMs}
/>
);
}
@@ -1535,7 +1546,8 @@ function LaneBar({
isSelected,
isDimmed,
onSelect,
- nonWorkingOffsets
+ nonWorkingOffsets,
+ labelMinMs = 0
}: {
item: GanttEvent;
/** Fraction of the row above the bar, 0–1. */
@@ -1550,6 +1562,7 @@ function LaneBar({
isDimmed: boolean;
onSelect: () => void;
nonWorkingOffsets: { start: number; end: number }[] | null;
+ labelMinMs?: number;
}) {
const { offset, duration } = item.data;
const pieces = nonWorkingOffsets
@@ -1609,14 +1622,16 @@ function LaneBar({
}}
/>
)}
- {showLabel && i === labelIndex && (
- <>
- {item.data.isUnschedulable && (
- <LuBan className="relative size-3 shrink-0" />
- )}
- <span className="relative truncate">{item.data.message}</span>
- </>
- )}
+ {showLabel &&
+ i === labelIndex &&
+ piece.durationMs >= labelMinMs && (
+ <>
+ {item.data.isUnschedulable && (
+ <LuBan className="relative size-3 shrink-0" />
+ )}
+ <span className="relative truncate">{item.data.message}</span>
+ </>
+ )}
</button>
</Timeline.Span>
))}
diff --git a/apps/erp/app/components/Layout/Topbar/Notifications.tsx b/apps/erp/app/components/Layout/Topbar/Notifications.tsx
index eae929c562..d44b4e376a 100644
--- a/apps/erp/app/components/Layout/Topbar/Notifications.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Notifications.tsx
@@ -920,6 +920,7 @@ export function NotificationsPanel({
}
const Notifications = () => {
+ const { t } = useLingui();
const {
id: userId,
company: { id: companyId }
@@ -946,9 +947,17 @@ const Notifications = () => {
variant="ghost"
isIcon
className="w-8 h-8 flex items-center relative"
+ aria-label={
+ unreadNotifications.length > 0
+ ? t`Notifications, ${unreadNotifications.length} unread`
+ : t`Notifications`
+ }
>
{unreadNotifications.length > 0 && (
- <span className="absolute top-0 right-0 min-w-4 h-4 px-1 rounded-full bg-primary text-primary-foreground text-[10px] font-medium leading-4 text-center tabular-nums">
+ <span
+ aria-hidden
+ className="absolute top-0 right-0 min-w-4 h-4 px-1 rounded-full bg-primary text-primary-foreground text-[10px] font-medium leading-4 text-center tabular-nums"
+ >
{unreadNotifications.length}
</span>
)}
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index e8582bbcde..335e3f9d2c 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -64,8 +64,8 @@ import {
INPUT_FORMAT
} from "@carbon/utils";
import { getLocalTimeZone, parseDate, today } from "@internationalized/date";
-import { Trans, useLingui } from "@lingui/react/macro";
-import { useNumberFormatter } from "@react-aria/i18n";
+import { Plural, Trans, useLingui } from "@lingui/react/macro";
+import { useLocale, useNumberFormatter } from "@react-aria/i18n";
import type { DragControls } from "motion/react";
import { motion, Reorder, useDragControls } from "motion/react";
import { nanoid } from "nanoid";
@@ -266,10 +266,11 @@ function makeItems(
tags: { name: string }[],
temporaryItems: TemporaryItems,
urlParams: { [key: string]: string },
- t: ReturnType<typeof useLingui>["t"]
+ t: ReturnType<typeof useLingui>["t"],
+ locale: string
): ItemWithData[] {
return operations.map((operation) =>
- makeItem(operation, tags, temporaryItems, urlParams, t)
+ makeItem(operation, tags, temporaryItems, urlParams, t, locale)
);
}
@@ -278,7 +279,8 @@ function makeItem(
tags: { name: string }[],
temporaryItems: TemporaryItems,
urlParams: { [key: string]: string },
- t: ReturnType<typeof useLingui>["t"]
+ t: ReturnType<typeof useLingui>["t"],
+ locale: string
): ItemWithData {
// Forward forecast vs backward need-by target: calendar-day comparison via
// parseDate (never JS Date arithmetic). Positive = projected finish is late.
@@ -343,19 +345,23 @@ function makeItem(
<TooltipTrigger asChild>
<Badge variant="red" className="gap-1">
<LuSquareChartGantt className="size-3 shrink-0" />
- {formatDate(projectedDate)}
+ {formatDate(projectedDate, undefined, locale)}
</Badge>
</TooltipTrigger>
<TooltipContent>
<span>
- <Trans>Behind target by {behindDays} day(s)</Trans>
+ <Plural
+ value={behindDays}
+ one="Behind target by # day"
+ other="Behind target by # days"
+ />
</span>
</TooltipContent>
</Tooltip>
) : (
<span className="inline-flex items-center gap-1 text-xs text-muted-foreground whitespace-nowrap">
<LuSquareChartGantt className="size-3 shrink-0" />
- {formatDate(projectedDate)}
+ {formatDate(projectedDate, undefined, locale)}
</span>
))}
<OperationDueDatePicker
@@ -498,6 +504,7 @@ const JobBillOfProcess = ({
customerId
}: JobBillOfProcessProps) => {
const { t } = useLingui();
+ const { locale } = useLocale();
// biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const sortOrderFetcher = useAction();
@@ -585,7 +592,8 @@ const JobBillOfProcess = ({
tags,
temporaryItems,
issueUrlParams,
- t
+ t,
+ locale
).map((item) => ({
...item,
checked: checkedState[item.id] ?? false
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
index 33fa3c02bc..dc50ef15b8 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx
@@ -27,7 +27,7 @@ import { formatDate } from "@carbon/utils";
import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import { parseDate } from "@internationalized/date";
-import { useLingui } from "@lingui/react/macro";
+import { Plural, useLingui } from "@lingui/react/macro";
import { cva } from "class-variance-authority";
import { memo } from "react";
import {
@@ -420,7 +420,11 @@ const OperationCardBody = memo(function OperationCardBody({
</Badge>
</TooltipTrigger>
<TooltipContent side="right">
- {t`Behind target by ${daysBehindTarget} day(s)`}
+ <Plural
+ value={daysBehindTarget}
+ one="Behind target by # day"
+ other="Behind target by # days"
+ />
</TooltipContent>
</Tooltip>
) : (
diff --git a/apps/erp/app/modules/production/ui/Schedule/People/OvertimeDialog.tsx b/apps/erp/app/modules/production/ui/Schedule/People/OvertimeDialog.tsx
index 769f4fb5f9..be218d2ef5 100644
--- a/apps/erp/app/modules/production/ui/Schedule/People/OvertimeDialog.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/People/OvertimeDialog.tsx
@@ -16,7 +16,7 @@ import {
VStack
} from "@carbon/react";
import { parseDate } from "@internationalized/date";
-import { Trans, useLingui } from "@lingui/react/macro";
+import { Plural, Trans, useLingui } from "@lingui/react/macro";
import { useMemo, useState } from "react";
import { useSubmit } from "react-router";
import { DateTime } from "~/components";
@@ -201,6 +201,7 @@ export function OvertimeDialog({
)}
<Input
type="number"
+ aria-label={t`Overtime hours`}
min={0}
max={16}
step={0.5}
@@ -209,17 +210,19 @@ export function OvertimeDialog({
/>
<p className="text-xs text-muted-foreground">
{range === "day" ? (
- <Trans>
- This will set +{hoursInput}h of overtime for {previewCount}{" "}
- people.
- </Trans>
+ <Plural
+ value={previewCount}
+ one={`This will set +${hoursInput}h of overtime for # person.`}
+ other={`This will set +${hoursInput}h of overtime for # people.`}
+ />
) : weekIsLoaded ? (
// person-days, not people — the same person assigned Mon–Fri is
// five separate authorizations
- <Trans>
- This will set +{hoursInput}h of overtime on {previewCount}{" "}
- person-days.
- </Trans>
+ <Plural
+ value={previewCount}
+ one={`This will set +${hoursInput}h of overtime on # person-day.`}
+ other={`This will set +${hoursInput}h of overtime on # person-days.`}
+ />
) : (
// that week's people isn't loaded, so any number here would be
// invented
diff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleCapacity.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleCapacity.tsx
index c3a3bfd5ae..e1a5407816 100644
--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleCapacity.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleCapacity.tsx
@@ -6,6 +6,9 @@ import {
Alert,
AlertDescription,
cn,
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
Table,
Tabs,
TabsList,
@@ -14,9 +17,6 @@ import {
Td,
Th,
Thead,
- Tooltip,
- TooltipContent,
- TooltipTrigger,
Tr
} from "@carbon/react";
import {
@@ -323,8 +323,8 @@ export function PeopleCapacity({
</TabsTrigger>
</TabsList>
</Tabs>
- <Tooltip>
- <TooltipTrigger asChild>
+ <Popover>
+ <PopoverTrigger asChild>
<button
type="button"
className="inline-flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground"
@@ -332,8 +332,8 @@ export function PeopleCapacity({
<LuInfo className="h-3.5 w-3.5" />
<Trans>What these rows mean</Trans>
</button>
- </TooltipTrigger>
- <TooltipContent align="start" className="max-w-[320px]">
+ </PopoverTrigger>
+ <PopoverContent align="start" className="max-w-[320px] p-3">
<div className="flex flex-col gap-1.5 text-xs">
<p>
<span className="font-medium">
@@ -375,8 +375,8 @@ export function PeopleCapacity({
</Trans>
</p>
</div>
- </TooltipContent>
- </Tooltip>
+ </PopoverContent>
+ </Popover>
</div>
<div className="flex items-center gap-2 text-xs tabular-nums">
<span className="inline-flex items-center rounded-md bg-emerald-500/15 px-2 py-0.5 text-emerald-700 dark:text-emerald-400">
diff --git a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
index 383e0342f3..e470bf50d5 100644
--- a/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/People/PeopleMatrix.tsx
@@ -4,6 +4,9 @@
import {
cn,
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
Table,
Tabs,
TabsList,
@@ -12,9 +15,6 @@ import {
Td,
Th,
Thead,
- Tooltip,
- TooltipContent,
- TooltipTrigger,
Tr
} from "@carbon/react";
import { RoundingMode, round } from "@carbon/utils";
@@ -264,8 +264,8 @@ export function PeopleMatrix({
</Tabs>
{tab === "coverage" && (
- <Tooltip>
- <TooltipTrigger asChild>
+ <Popover>
+ <PopoverTrigger asChild>
<button
type="button"
className="inline-flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground"
@@ -273,8 +273,8 @@ export function PeopleMatrix({
<LuInfo className="h-3.5 w-3.5" />
<Trans>How coverage is worked out</Trans>
</button>
- </TooltipTrigger>
- <TooltipContent align="end" className="max-w-[320px]">
+ </PopoverTrigger>
+ <PopoverContent align="end" className="max-w-[320px] p-3">
<div className="flex flex-col gap-1.5 text-xs">
<p>
<Trans>
@@ -298,8 +298,8 @@ export function PeopleMatrix({
</Trans>
</p>
</div>
- </TooltipContent>
- </Tooltip>
+ </PopoverContent>
+ </Popover>
)}
</div>
diff --git a/apps/erp/app/modules/production/ui/Schedule/People/usePeopleBoardFeedback.ts b/apps/erp/app/modules/production/ui/Schedule/People/usePeopleBoardFeedback.ts
index bfe7c062c3..6badfd16c7 100644
--- a/apps/erp/app/modules/production/ui/Schedule/People/usePeopleBoardFeedback.ts
+++ b/apps/erp/app/modules/production/ui/Schedule/People/usePeopleBoardFeedback.ts
@@ -42,12 +42,29 @@ export function usePeopleBoardFeedback() {
}
const intent = fetcher.formData?.get("intent");
const counts = result.data ?? {};
+ // Separate messages, not plural(): this runs inside an effect callback,
+ // where the macro would reach for the global i18n instance.
if (intent === "copy" || intent === "copy-week") {
- toast.success(t`Copied ${counts.copied ?? 0} assignments`);
+ const copied = counts.copied ?? 0;
+ toast.success(
+ copied === 1
+ ? t`Copied 1 assignment`
+ : t`Copied ${copied} assignments`
+ );
} else if (intent === "overtime-bulk") {
- toast.success(t`Overtime set for ${counts.updated ?? 0} assignments`);
+ const updated = counts.updated ?? 0;
+ toast.success(
+ updated === 1
+ ? t`Overtime set for 1 assignment`
+ : t`Overtime set for ${updated} assignments`
+ );
} else if (intent === "absent-range") {
- toast.success(t`Marked absent for ${counts.created ?? 0} day(s)`);
+ const created = counts.created ?? 0;
+ toast.success(
+ created === 1
+ ? t`Marked absent for 1 day`
+ : t`Marked absent for ${created} days`
+ );
}
}
}, [fetchers, t]);
diff --git a/apps/erp/app/modules/resources/AGENTS.md b/apps/erp/app/modules/resources/AGENTS.md
index 4a01597e4f..3b6c040b61 100644
--- a/apps/erp/app/modules/resources/AGENTS.md
+++ b/apps/erp/app/modules/resources/AGENTS.md
@@ -69,8 +69,8 @@ Each operation is one `defineServiceFn` const in `resources.server.ts`. A route
| `createAbility` / `deactivateAbility` | `x+/resources+/abilities.new.tsx`, `abilities.delete.$id.tsx` | The process must be the company's; turns `requiresAbility` on; the scheduler is told |
| `addEmployeeAbility` / `updateEmployeeAbility` / `removeEmployeeAbility` | `ability.$id.employee.new.tsx`, `person.$personId.ability.new.tsx`, `ability.$id.employee.$employeeAbilityId.tsx`, `ability.$id.employee.delete.$employeeAbilityId.tsx` | The ability must be the company's; a blank expiry comes from the recertification period; the scheduler is told |
| `createLocation` / `updateLocation` | `locations.new.tsx`, `locations.$locationId.tsx` | An update needs `resources` create and update (the old route's gate and the row's policy) and drops the cached timezone; a new timezone re-plans the location (kind `location`) |
-| `createProcess` / `updateProcess` | `processes.new.tsx`, `processes.$processId.tsx` | `resources` create; an update needs create, update and delete (it replaces the work centers on the system connection); `requiresAbility` creates the ability, and is rolled back when that fails; a change of it tells the scheduler |
-| `createWorkCenter` / `updateWorkCenter` / `reactivateWorkCenter` / `deactivateWorkCenter` | `work-centers.new.tsx`, `work-centers.$id.tsx`, `work-centers.activate.$id.tsx`, `work-centers.delete.$id.tsx` | A create needs `resources` create and update; deactivate is a soft delete; each tells the scheduler |
+| `createProcess` / `updateProcess` | `processes.new.tsx`, `processes.$processId.tsx` | `resources` create; an update needs create, update and delete (it replaces the work centers on the system connection); `requiresAbility` creates the ability, and is rolled back when that fails; a change of it tells the scheduler; a name another process holds is a `conflict` (`findProcessNamed`), shown on the form's Name field |
+| `createWorkCenter` / `updateWorkCenter` / `reactivateWorkCenter` / `deactivateWorkCenter` | `work-centers.new.tsx`, `work-centers.$id.tsx`, `work-centers.activate.$id.tsx`, `work-centers.delete.$id.tsx` | A create needs `resources` create and update; deactivate is a soft delete; each tells the scheduler; `workCenterValidator` refuses Operating hours "Some Shifts" with no shift (it would save as every shift) |
| `createMaintenanceSchedule` / `updateMaintenanceSchedule` | `scheduled-maintenance.new.tsx`, `scheduled-maintenance.$scheduleId.tsx` | Generates the schedule's dispatches now (`generate-maintenance`) |
| `createMaintenanceDispatch` / `updateMaintenanceDispatchField` / `setMaintenanceDispatchStatus` | `x+/maintenance+/new.tsx`, `update.tsx`, `$dispatchId.status.tsx` | `updateMaintenanceDispatchField` refuses a locked dispatch, takes a time as an ISO 8601 instant with an offset, and tells the scheduler about an offline dispatch's downtime; Completed posts the labor (`warning` when it fails); `setMaintenanceDispatchStatus` also reopens |
| `createMaintenanceEvent` / `updateMaintenanceEvent` / `deleteMaintenanceEvent` / `startMaintenanceEvent` / `stopMaintenanceEvent` | `$dispatchId.event.new.tsx`, `$dispatchId.event.$eventId.tsx`, `$dispatchId.event.$eventId.delete.tsx`, `$dispatchId.events.tsx` | Refused on a Completed or Cancelled dispatch; the timecard must be the dispatch's, its employee an active employee and its work center the company's (both are tagged on the labor journal); the labor is posted again (`warning` when it fails) |
diff --git a/apps/erp/app/modules/resources/resources.models.test.ts b/apps/erp/app/modules/resources/resources.models.test.ts
index e5eada020e..281a4197cb 100644
--- a/apps/erp/app/modules/resources/resources.models.test.ts
+++ b/apps/erp/app/modules/resources/resources.models.test.ts
@@ -9,7 +9,8 @@ import {
TRAINING_CERTIFICATE_MAX_BYTES,
trainingAssignmentValidator,
trainingGuideKeyPrefix,
- validateTrainingCertificate
+ validateTrainingCertificate,
+ workCenterValidator
} from "./resources.models";
describe("isValidTrainingGuideKey", () => {
@@ -112,3 +113,34 @@ describe("trainingAssignmentValidator", () => {
).toBe(success);
});
});
+
+describe("workCenterValidator", () => {
+ const workCenter = {
+ name: "Laser Cell",
+ description: "",
+ defaultStandardFactor: "Minutes/Piece",
+ locationId: "loc-1",
+ laborRate: 0,
+ machineRate: 0,
+ overheadRate: 0
+ };
+ const shiftsError = (fields: Record<string, unknown>) =>
+ workCenterValidator
+ .safeParse({ ...workCenter, ...fields })
+ .error?.issues.find((issue) => issue.path[0] === "shifts")?.message;
+
+ // Saved with no shift, "Some Shifts" runs every shift at the location.
+ it("refuses Some Shifts with no shift picked", () => {
+ expect(shiftsError({ operatingHours: "some" })).toBe(
+ "Select at least one shift"
+ );
+ });
+
+ it.each([
+ { operatingHours: "some", shifts: ["day"] },
+ { operatingHours: "all" },
+ {}
+ ])("accepts %o", (fields) => {
+ expect(shiftsError(fields)).toBeUndefined();
+ });
+});
diff --git a/apps/erp/app/modules/resources/resources.models.ts b/apps/erp/app/modules/resources/resources.models.ts
index 3ca60d4f5f..6b2ff9e903 100644
--- a/apps/erp/app/modules/resources/resources.models.ts
+++ b/apps/erp/app/modules/resources/resources.models.ts
@@ -708,9 +708,16 @@ export const workCenterValidator = z
.optional(),
shifts: z.array(z.string().min(1, { message: "Invalid shift" })).optional(),
alwaysOn: zfd.checkbox(),
+ /** The form's Operating hours choice; "some" needs a shift picked. */
+ operatingHours: zfd.text(z.enum(["all", "some", "lightsOut"]).optional()),
batchCapacity: zfd.numeric(z.number().int().min(1).optional()),
minimumBatchQuantity: zfd.numeric(z.number().int().min(1).optional())
})
+ .refine(
+ // With no shift picked, "Some Shifts" would save as every shift.
+ (data) => data.operatingHours !== "some" || (data.shifts?.length ?? 0) > 0,
+ { message: "Select at least one shift", path: ["shifts"] }
+ )
.refine(
(data) =>
data.batchCapacity == null ||
diff --git a/apps/erp/app/modules/resources/resources.server.ts b/apps/erp/app/modules/resources/resources.server.ts
index 1518aa7f8d..0c91006b47 100644
--- a/apps/erp/app/modules/resources/resources.server.ts
+++ b/apps/erp/app/modules/resources/resources.server.ts
@@ -333,6 +333,20 @@ export const createProcess = defineServiceFn({
async run(ctx, { id: _id, ...process }) {
const client = ctx.asCaller.supabase;
const companyId = ctx.company.id;
+ const taken = await service.findProcessNamed(
+ client,
+ companyId,
+ process.name
+ );
+ if (taken.error) {
+ return ctx.error("internal", "Failed to create process.", taken.error);
+ }
+ if (taken.data) {
+ return ctx.error(
+ "conflict",
+ `A process named ${process.name} already exists`
+ );
+ }
const insert = await service.insertProcess(client, {
...process,
companyId,
@@ -400,6 +414,22 @@ export const updateProcess = defineServiceFn({
if (!existing.data) return ctx.error("notFound", "Process not found");
const previouslyRequiredAbility = existing.data.requiresAbility ?? false;
+ const taken = await service.findProcessNamed(
+ client,
+ companyId,
+ process.name,
+ id
+ );
+ if (taken.error) {
+ return ctx.error("internal", "Failed to update process.", taken.error);
+ }
+ if (taken.data) {
+ return ctx.error(
+ "conflict",
+ `A process named ${process.name} already exists`
+ );
+ }
+
const update = await service.updateProcess(ctx.asSystem.pg, {
id,
...process,
diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.ts
index a255c4518f..7d45d5bdbc 100644
--- a/apps/erp/app/modules/resources/resources.service.ts
+++ b/apps/erp/app/modules/resources/resources.service.ts
@@ -873,7 +873,7 @@ export async function getProcessesList(
) {
return client
.from("process")
- .select(`id, name`)
+ .select(`id, name, processType`)
.eq("companyId", companyId)
.eq("active", true)
.order("name");
@@ -1236,11 +1236,13 @@ export async function getProcessesWithoutAbility(
.filter((id): id is string => Boolean(id))
);
+ // Outside Processing runs at a supplier: no employee needs an ability for it.
const processes = await client
.from("process")
.select("id, name")
.eq("companyId", companyId)
.eq("active", true)
+ .neq("processType", "Outside Processing")
.order("name");
if (processes.error) return processes;
@@ -1865,6 +1867,22 @@ export async function insertProcess(
* centers it replaces, in one transaction. Kysely bypasses RLS, so every
* statement is scoped to the company and only its own work centers are linked.
*/
+/** Another process of the company already holding `name` (unique per company). */
+export async function findProcessNamed(
+ client: SupabaseClient<Database>,
+ companyId: string,
+ name: string,
+ exceptId?: string
+) {
+ let query = client
+ .from("process")
+ .select("id")
+ .eq("companyId", companyId)
+ .eq("name", name);
+ if (exceptId) query = query.neq("id", exceptId);
+ return query.limit(1).maybeSingle();
+}
+
export async function updateProcess(
db: Kysely<KyselyDatabase>,
process: Omit<z.infer<typeof processValidator>, "id"> & {
@@ -2033,7 +2051,7 @@ export async function upsertWorkCenter(
})
) {
if ("createdBy" in workCenter) {
- const { processes, shifts, ...insert } = workCenter;
+ const { processes, shifts, operatingHours: _hours, ...insert } = workCenter;
const workCenterInsert = await client
.from("workCenter")
.insert([insert])
@@ -2079,7 +2097,7 @@ export async function upsertWorkCenter(
return workCenterInsert;
}
- const { processes, shifts, ...update } = workCenter;
+ const { processes, shifts, operatingHours: _hours, ...update } = workCenter;
const workCenterUpdate = await client
.from("workCenter")
.update(sanitize(update))
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
index ab795ffb0e..043569ea4d 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
@@ -183,6 +183,7 @@ const WorkCenterForm = ({
name="processes"
label={t`Processes`}
termId="work-center-processes"
+ inHouseOnly
/>
)}
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 w-full">
@@ -344,6 +345,7 @@ const WorkCenterForm = ({
name="shifts"
active={scheduleMode === "some"}
/>
+ <Hidden name="operatingHours" value={scheduleMode} />
{scheduleMode === "lightsOut" && (
<Hidden name="alwaysOn" value="on" />
)}
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
index 7a140ab9c9..5ae93a3ad9 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
@@ -495,12 +495,20 @@ function DeleteWorkCenterModal({
</li>
))}
</ul>
+ <p className="mt-2">
+ <Trans>
+ Move these operations to another work center, or finish
+ them, before you deactivate it.
+ </Trans>
+ </p>
</AlertDescription>
</Alert>
) : (
<p>
- Are you sure you want to deactivate the {workCenter.name} work
- center?
+ <Trans>
+ Are you sure you want to deactivate the {workCenter.name} work
+ center?
+ </Trans>
</p>
)}
</ModalBody>
diff --git a/apps/erp/app/routes/x+/resources+/processes.$processId.tsx b/apps/erp/app/routes/x+/resources+/processes.$processId.tsx
index 5f0320d8e5..1acabb5329 100644
--- a/apps/erp/app/routes/x+/resources+/processes.$processId.tsx
+++ b/apps/erp/app/routes/x+/resources+/processes.$processId.tsx
@@ -6,7 +6,7 @@ import { carbon, respond } from "@carbon/api/carbon.server";
import { error, notFound } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { validator } from "@carbon/form";
+import { validationError, validator } from "@carbon/form";
import { useCloseRoute } from "@carbon/react";
import type { BatchRules } from "@carbon/utils";
import { redirect } from "@carbon/utils";
@@ -54,6 +54,10 @@ export async function action(args: ActionFunctionArgs) {
id: input.params.processId,
customFields: input.formData && setCustomFields(input.formData)
});
+ // A taken name stays on the form, as a field error.
+ if (result.error?.category === "conflict") {
+ return validationError({ fieldErrors: { name: result.error.message } });
+ }
// The modal form reads the result and closes itself.
if (input.formData?.get("type") === "modal") return result;
return respond(args.request, result).redirect(path.to.processes);
diff --git a/apps/erp/app/routes/x+/resources+/processes.new.tsx b/apps/erp/app/routes/x+/resources+/processes.new.tsx
index f5ce39e462..7c1466e55e 100644
--- a/apps/erp/app/routes/x+/resources+/processes.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/processes.new.tsx
@@ -3,7 +3,7 @@
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import { carbon, respond } from "@carbon/api/carbon.server";
-import { validator } from "@carbon/form";
+import { validationError, validator } from "@carbon/form";
import type { ActionFunctionArgs } from "react-router";
import { useNavigate } from "react-router";
import {
@@ -22,6 +22,10 @@ export async function action(args: ActionFunctionArgs) {
...input.data,
customFields: input.formData && setCustomFields(input.formData)
});
+ // A taken name stays on the form, as a field error.
+ if (result.error?.category === "conflict") {
+ return validationError({ fieldErrors: { name: result.error.message } });
+ }
// The modal form reads the result and closes itself.
if (input.formData?.get("type") === "modal") return result;
return respond(args.request, result).redirect(path.to.processes, {
diff --git a/apps/erp/app/routes/x+/scheduling+/forecast.tsx b/apps/erp/app/routes/x+/scheduling+/forecast.tsx
index f89e61fd1c..0c97ddb876 100644
--- a/apps/erp/app/routes/x+/scheduling+/forecast.tsx
+++ b/apps/erp/app/routes/x+/scheduling+/forecast.tsx
@@ -354,7 +354,10 @@ export async function loader({ request }: LoaderFunctionArgs) {
toShiftInfo(shift)
])
);
- const locationShiftInfos = shifts.map(toShiftInfo);
+ // Shifts read in the order they run in a day.
+ const byStart = (a: AvailabilityShift, b: AvailabilityShift) =>
+ (a.startTime ?? "").localeCompare(b.startTime ?? "");
+ const locationShiftInfos = shifts.map(toShiftInfo).sort(byStart);
const shiftIdsByWorkCenter = new Map<string, string[]>();
for (const row of workCenterShiftRows.data ?? []) {
const existing = shiftIdsByWorkCenter.get(row.workCenterId) ?? [];
@@ -368,7 +371,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
if (!workCenterId) continue;
const workCenterShiftInfos = (shiftIdsByWorkCenter.get(workCenterId) ?? [])
.map((shiftId) => shiftInfoById.get(shiftId))
- .filter((info): info is AvailabilityShift => info !== undefined);
+ .filter((info): info is AvailabilityShift => info !== undefined)
+ .sort(byStart);
const tier: WorkCenterAvailability["tier"] = workCenter.alwaysOn
? "alwaysOn"
: workCenterShiftInfos.length > 0
diff --git a/apps/erp/app/routes/x+/settings+/production.tsx b/apps/erp/app/routes/x+/settings+/production.tsx
index c71172d8b5..1f8e295fa1 100644
--- a/apps/erp/app/routes/x+/settings+/production.tsx
+++ b/apps/erp/app/routes/x+/settings+/production.tsx
@@ -272,6 +272,7 @@ export default function ProductionSettingsRoute() {
</VStack>
<Switch
checked={includeOperationsOnTraveler}
+ aria-label={t`Include operations on the traveler`}
onCheckedChange={handleTravelerOperationsToggle}
disabled={isToggling}
/>
@@ -304,6 +305,7 @@ export default function ProductionSettingsRoute() {
</VStack>
<Switch
checked={includeMaterialsOnTraveler}
+ aria-label={t`Include materials on the traveler`}
onCheckedChange={handleTravelerMaterialsToggle}
disabled={isToggling}
/>
@@ -351,6 +353,7 @@ export default function ProductionSettingsRoute() {
</VStack>
<Switch
checked={autoStartOperationTimer}
+ aria-label={t`Start the timer automatically`}
onCheckedChange={handleOperationTimerToggle}
disabled={isToggling}
/>
@@ -383,6 +386,7 @@ export default function ProductionSettingsRoute() {
</VStack>
<Switch
checked={autoSelectMaterialWithoutPickingList}
+ aria-label={t`Pre-select material`}
onCheckedChange={handleAutoSelectMaterialToggle}
disabled={isToggling}
/>
@@ -431,6 +435,7 @@ export default function ProductionSettingsRoute() {
</span>
<Switch
checked={location.requiresStaffing ?? false}
+ aria-label={t`Require staffing at ${location.name}`}
onCheckedChange={(checked) =>
handleStaffingToggle(location.id, checked)
}
diff --git a/apps/erp/test/resources-operations.test.ts b/apps/erp/test/resources-operations.test.ts
index 26d8f641c1..d8f6ccc0e1 100644
--- a/apps/erp/test/resources-operations.test.ts
+++ b/apps/erp/test/resources-operations.test.ts
@@ -67,8 +67,9 @@ type Answer = { data: unknown; error: unknown };
/**
* A Supabase client whose every query on a table answers with the result the
- * test names for it (rows, or `{ data, error }`). Each write is recorded with
- * its payload; nothing else is checked.
+ * test names for it (rows, or `{ data, error }`); a query that writes nothing
+ * answers from `<table>:read` when the test names one. Each write is recorded
+ * with its payload; nothing else is checked.
*/
function client(answers: Record<string, unknown>) {
const writes: { op: string; table: string; payload?: unknown }[] = [];
@@ -80,18 +81,30 @@ function client(answers: Record<string, unknown>) {
};
const from = (table: string) => {
const chain: Record<string, unknown> = {};
- for (const method of ["select", "eq", "in", "match", "limit", "order"]) {
+ let wrote = false;
+ for (const method of [
+ "select",
+ "eq",
+ "neq",
+ "in",
+ "match",
+ "limit",
+ "order"
+ ]) {
chain[method] = () => chain;
}
for (const op of ["insert", "update", "upsert", "delete"]) {
chain[op] = (payload?: unknown) => {
+ wrote = true;
writes.push({ op, table, payload });
return chain;
};
}
- chain.single = chain.maybeSingle = () => Promise.resolve(answer(table));
+ const result = () =>
+ answer(!wrote && `${table}:read` in answers ? `${table}:read` : table);
+ chain.single = chain.maybeSingle = () => Promise.resolve(result());
chain.then = (resolve: (value: unknown) => unknown) =>
- Promise.resolve(answer(table)).then(resolve);
+ Promise.resolve(result()).then(resolve);
return chain;
};
const rpc = (name: string) => Promise.resolve(answer(`rpc:${name}`));
@@ -270,6 +283,8 @@ describe("setting a field on maintenance dispatches", () => {
describe("creating a process that requires an ability", () => {
it("turns the requirement off again when the ability cannot be created", async () => {
const { ctx, writes } = contextWith({
+ // no process holds the name yet; the insert returns the new one
+ "process:read": null,
process: { id: "proc-1" },
ability: { data: null, error: { message: "boom" } }
});
@@ -289,6 +304,22 @@ describe("creating a process that requires an ability", () => {
});
});
+describe("process names", () => {
+ // A taken name is the user's to fix, on the form, not a failed save.
+ it("refuses a name another process holds, before writing", async () => {
+ const { ctx, writes } = contextWith({ process: { id: "proc-0" } });
+
+ const result = await createProcess(ctx, {
+ name: "Welding",
+ processType: "Process",
+ requiresAbility: false
+ });
+
+ expect(result.error?.category).toBe("conflict");
+ expect(writes).toEqual([]);
+ });
+});
+
describe("training assignments", () => {
it("refuses a second assignment of the same training", async () => {
const { ctx, writes } = contextWith({
diff --git a/packages/form/src/components/Boolean.tsx b/packages/form/src/components/Boolean.tsx
index 99d780adc0..fe493d73ba 100644
--- a/packages/form/src/components/Boolean.tsx
+++ b/packages/form/src/components/Boolean.tsx
@@ -62,6 +62,9 @@ const Boolean = forwardRef<HTMLInputElement, FormBooleanProps>(
const isDisabled =
formState.isDisabled || formState.isReadOnly || isDisabledProp;
const [value, setValue] = useControlField<boolean>(name);
+ // A switch shown with only a description (a day of the week) is named by it.
+ const accessibleName =
+ label ?? (typeof description === "string" ? description : undefined);
useEffect(() => {
if (controlledValue !== null && controlledValue !== undefined)
@@ -95,7 +98,7 @@ const Boolean = forwardRef<HTMLInputElement, FormBooleanProps>(
setValue(checked);
onChange?.(checked);
}}
- aria-label={label}
+ aria-label={accessibleName}
{...props}
/>
</HStack>
@@ -128,7 +131,7 @@ const Boolean = forwardRef<HTMLInputElement, FormBooleanProps>(
setValue(checked);
onChange?.(checked);
}}
- aria-label={label}
+ aria-label={accessibleName}
{...props}
/>
{description && (
diff --git a/packages/form/src/components/TimePicker.tsx b/packages/form/src/components/TimePicker.tsx
index 89121c8c35..f9a949563a 100644
--- a/packages/form/src/components/TimePicker.tsx
+++ b/packages/form/src/components/TimePicker.tsx
@@ -62,6 +62,7 @@ const TimePicker = ({ name, label, termId, onChange }: TimePickerProps) => {
//@ts-expect-error
onChange={handleChange}
isDisabled={isDisabled}
+ aria-label={label}
/>
{error && <FormErrorMessage>{error}</FormErrorMessage>}
</FormControl>
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index fe5f5a9a97..985afc4910 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: die fällige Zahlung {dueDate} ist Übersprungen (außerhalb vo
msgid "{assetCount} Assets"
msgstr "{assetCount} Anlagegüter"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Erwägen Sie, diesen Teil direkt auf den endgültigen Nachfolger zu verweisen."
@@ -567,6 +570,9 @@ msgstr "{created} erstellt, {updated} aktualisiert."
msgid "{days}d"
msgstr "{days}T"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo} bucht dies in Ihr Ledger, daher schiebt Carbon es nicht. Ihre gespeicherte Auswahl wird beibehalten, falls sich dies ändert."
@@ -3165,6 +3171,10 @@ msgstr "Sind Sie sicher, dass Sie die Attributkategorie {0} deaktivieren möchte
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Sind Sie sicher, dass Sie das Attribut {0} deaktivieren möchten?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Sind Sie sicher, dass Sie die {label} Konfigurationsregel deaktivieren möchten?"
@@ -4178,12 +4188,6 @@ msgstr "Bevor Sie bestätigen"
msgid "Beginning"
msgstr "Anfang"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Hinter Ziel um {behindDays} Tag(e)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Hinter Ziel um {daysBehindTarget} Tag(e)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Wird auslaufen — Nachfolger: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Wird konvertiert …"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Wandelt die Einkaufseinheit eines Lieferanten in Ihre Bestandseinheit auf einer Bestellung, einem Wareneingang oder einer Rechnungsposition um – Einkauf in Kartons à 12, Bestand in Einzelstücken."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Als kurz markieren"
msgid "Mark to delete"
msgstr "Zum Löschen markieren"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Aus Baugruppe auslagern"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Lagern Sie einen Teil der Menge in eine neue Verwendungsentscheid-Zeile um, damit die MRB jeden Teil separat entscheiden kann (z. B. etwas Ausschuss, etwas Nacharbeit)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Verschieben nach"
@@ -16536,8 +16547,10 @@ msgstr "Überstunden"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index 9231ff212f..79c43627f3 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: the payment due {dueDate} is Skipped (paid outside Carbon), so
msgid "{assetCount} Assets"
msgstr "{assetCount} Assets"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Consider pointing this part directly at the final successor."
@@ -567,6 +570,9 @@ msgstr "{created} created, {updated} updated."
msgid "{days}d"
msgstr "{days}d"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
@@ -3165,6 +3171,10 @@ msgstr "Are you sure you want to deactivate the {0} attribute category?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Are you sure you want to deactivate the {0} attribute?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr "Are you sure you want to deactivate the {0} work center?"
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Are you sure you want to deactivate the {label} configuration rule?"
@@ -4178,12 +4188,6 @@ msgstr "Before You Confirm"
msgid "Beginning"
msgstr "Beginning"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Behind target by {behindDays} day(s)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Behind target by {daysBehindTarget} day(s)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Being phased out — successor: <0>{0}</0>"
@@ -5899,9 +5903,11 @@ msgstr "Converting…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
-msgstr "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr "Copied {copied} assignments"
+
+msgid "Copied 1 assignment"
+msgstr "Copied 1 assignment"
msgid "Copied ID to clipboard"
msgstr "Copied ID to clipboard"
@@ -13511,9 +13517,11 @@ msgstr "Mark Short"
msgid "Mark to delete"
msgstr "Mark to delete"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
-msgstr "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr "Marked absent for {created} days"
+
+msgid "Marked absent for 1 day"
+msgstr "Marked absent for 1 day"
msgid "Market rate"
msgstr "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Move Out of Sub-Assembly"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr "Move these operations to another work center, or finish them, before you deactivate it."
+
msgid "Move to"
msgstr "Move to"
@@ -16536,9 +16547,11 @@ msgstr "Overtime"
msgid "Overtime hours"
msgstr "Overtime hours"
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
-msgstr "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr "Overtime set for {updated} assignments"
+
+msgid "Overtime set for 1 assignment"
+msgstr "Overtime set for 1 assignment"
msgid "Overview"
msgstr "Overview"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 40a7db2a1c..99f69d6bf7 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: el pago vencido {dueDate} está Omitido (pagado fuera de Carbon
msgid "{assetCount} Assets"
msgstr "{assetCount} Activos"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Considere apuntar esta pieza directamente al sucesor final."
@@ -567,6 +570,9 @@ msgstr "{created} creados, {updated} actualizados."
msgid "{days}d"
msgstr "{days}d"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo} publica esto en tu libro mayor, por lo que Carbon no lo envía. Tu opción guardada se mantiene en caso de que eso cambie."
@@ -3165,6 +3171,10 @@ msgstr "¿Estás seguro de que deseas desactivar la categoría de atributo {0}?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "¿Estás seguro de que deseas desactivar el atributo {0}?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "¿Estás seguro de que deseas desactivar la regla de configuración {label}?"
@@ -4178,12 +4188,6 @@ msgstr "Antes de confirmar"
msgid "Beginning"
msgstr "Inicio"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Atrás del objetivo por {behindDays} día(s)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Atrás del objetivo por {daysBehindTarget} día(s)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Siendo descontinuado — sucesor: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Convirtiendo…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Convierte la unidad de compra del proveedor a tu unidad de existencias en una orden de compra, recepción o línea de factura — compra en cajas de 12, existencias en unidades."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Marcar como faltante"
msgid "Mark to delete"
msgstr "Marcar para eliminar"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Sacar de Sub-ensamblaje"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Mover parte de la cantidad a una nueva línea de disposición para que MRB pueda decidir cada porción por separado (por ejemplo, desperdiciar parte, retrabajar parte)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Mover a"
@@ -16536,8 +16547,10 @@ msgstr "Horas extras"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 2a5dd4df7d..88fc4c7370 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset} : le paiement dû {dueDate} est Ignoré (payé en dehors de Carb
msgid "{assetCount} Assets"
msgstr "{assetCount} Immobilisations"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Envisagez de pointer cette pièce directement vers le successeur final."
@@ -567,6 +570,9 @@ msgstr "{created} créé(s), {updated} mis à jour."
msgid "{days}d"
msgstr "{days}j"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "${delegatedTo} publie ceci dans votre grand livre, donc Carbon ne le pousse pas. Votre choix enregistré est conservé au cas où cela changerait."
@@ -3165,6 +3171,10 @@ msgstr "Êtes-vous sûr de vouloir désactiver la catégorie d'attribut {0} ?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Êtes-vous sûr de vouloir désactiver l'attribut {0} ?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Êtes-vous sûr de vouloir désactiver la règle de configuration {label} ?"
@@ -4178,12 +4188,6 @@ msgstr "Avant de confirmer"
msgid "Beginning"
msgstr "Début"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "En retard de {behindDays} jour(s)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "En retard de {daysBehindTarget} jour(s)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "En cours de suppression — successeur : <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Conversion en cours…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Convertit l'unité d'achat d'un fournisseur en votre unité d'inventaire sur une ligne de commande, reçu ou facture — acheter en cartons de 12, stocker en unités."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Marquer comme manquant"
msgid "Mark to delete"
msgstr "Marquer pour supprimer"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Retirer du sous-ensemble"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Déplacer une partie de la quantité vers une nouvelle ligne de traitement afin que le comité de revue des matériaux puisse décider de chaque portion séparément (par exemple, mettre au rebut une partie, faire une retouche sur une autre)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Déplacer vers"
@@ -16536,8 +16547,10 @@ msgstr "Heures supplémentaires"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index 46e2a8c122..3d69fb0242 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: {dueDate} को देय भुगतान छोड़ा
msgid "{assetCount} Assets"
msgstr "{assetCount} अचल संपत्तियाँ"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. इस भाग को सीधे अंतिम उत्तराधिकारी की ओर इंगित करने पर विचार करें।"
@@ -567,6 +570,9 @@ msgstr "{created} बनाया गया, {updated} अपडेट किय
msgid "{days}d"
msgstr "{days}d"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo} यह आपके लेजर में पोस्ट करता है, इसलिए Carbon इसे पुश नहीं करता है। आपकी सहेजी गई पसंद को इस बात के मामले में रखा जाता है कि यह बदल जाए।"
@@ -3165,6 +3171,10 @@ msgstr "क्या आप निश्चित हैं कि आप {0}
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "क्या आप निश्चित हैं कि आप {0} विशेषता को निष्क्रिय करना चाहते हैं?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "क्या आप निश्चित हैं कि आप {label} कॉन्फ़िगरेशन नियम को निष्क्रिय करना चाहते हैं?"
@@ -4178,12 +4188,6 @@ msgstr "पुष्टि करने से पहले"
msgid "Beginning"
msgstr "आरंभ"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "लक्ष्य से {behindDays} दिन पीछे"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "लक्ष्य से {daysBehindTarget} दिन पीछे"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "चरणबद्ध रूप से बंद किया जा रहा है — उत्तराधिकारी: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "परिवर्तित कर रहे हैं…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "एक आपूर्तिकर्ता की खरीद इकाई को PO, प्राप्ति, या बिल लाइन पर आपकी इन्वेंटरी इकाई में परिवर्तित करता है — 12 के कार्टन में खरीदें, व्यक्तिगत में स्टॉक करें।"
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "कम चिह्नित करें"
msgid "Mark to delete"
msgstr "हटाने के लिए चिह्नित करें"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "उप-असेंबली से बाहर स्थानां
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "कुछ मात्रा को एक नई निपटान पंक्ति में स्थानांतरित करें ताकि MRB प्रत्येक भाग का अलग से निर्णय ले सके (जैसे कुछ स्क्रैप करें, कुछ पुनः कार्य करें)।"
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "को स्थानांतरित करें"
@@ -16536,8 +16547,10 @@ msgstr "ओवरटाइम"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index 987ccfbcaa..ced89d13a5 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: il pagamento scaduto {dueDate} è Saltato (pagato al di fuori d
msgid "{assetCount} Assets"
msgstr "{assetCount} Cespiti"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Considera di indirizzare direttamente questa parte al successore finale."
@@ -567,6 +570,9 @@ msgstr "{created} creati, {updated} aggiornati."
msgid "{days}d"
msgstr "{days}g"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "${delegatedTo} pubblica questo nel tuo libro mastro, quindi Carbon non lo invia. La tua scelta salvata viene mantenuta nel caso in cui ciò cambi."
@@ -3165,6 +3171,10 @@ msgstr "Sei sicuro di voler disattivare la categoria di attributi {0}?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Sei sicuro di voler disattivare l'attributo {0}?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Sei sicuro di voler disattivare la regola di configurazione {label}?"
@@ -4178,12 +4188,6 @@ msgstr "Prima di confermare"
msgid "Beginning"
msgstr "Inizio"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "In ritardo di {behindDays} giorno/i rispetto al target"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "In ritardo di {daysBehindTarget} giorno/i rispetto al target"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "In fase di eliminazione — successore: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Conversione in corso…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Converte l'unità di acquisto di un fornitore nella tua unità di inventario su una linea di ordine, ricevuta o fattura — acquista in scatole di 12, stoccaggio in unità singole."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Segna come incompleto"
msgid "Mark to delete"
msgstr "Segna per eliminare"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Sposta fuori da sub-assemblaggio"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Sposta parte della quantità in una nuova riga di disposizione in modo che il MRB possa decidere ciascuna porzione separatamente (ad es. scartare alcuni, rilavorare altri)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Sposta in"
@@ -16536,8 +16547,10 @@ msgstr "Straordinario"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index 99fb42c7c1..451bd257de 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: {dueDate}に支払期限のある支払はスキップ済(Car
msgid "{assetCount} Assets"
msgstr "{assetCount} 固定資産"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}。この部品を最終的な後継品目に直接ポイントすることを検討してください。"
@@ -567,6 +570,9 @@ msgstr "{created} 件作成、{updated} 件更新されました。"
msgid "{days}d"
msgstr "{days}日"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo}がこれをあなたの台帳に転記するため、Carbonはそれをプッシュしません。変更があった場合に備えて、保存された選択肢は保持されます。"
@@ -3165,6 +3171,10 @@ msgstr "{0}属性カテゴリを無効化してもよろしいですか?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "本当に {0} 属性を無効化してもよろしいですか?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "{label}設定ルールを無効化してもよろしいですか?"
@@ -4178,12 +4188,6 @@ msgstr "確認前に"
msgid "Beginning"
msgstr "開始"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "ターゲットから {behindDays} 日遅れています"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "ターゲットから {daysBehindTarget} 日遅れています"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "段階的に廃止されます — 後継品目:<0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "変換中…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "仕入先の購入単位をPO、入荷、または請求書上で在庫単位に変換します — 12個のカートン単位で仕入れ、個単位で在庫する。"
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "短い数量をマーク"
msgid "Mark to delete"
msgstr "削除対象にマーク"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "サブアセンブリから移動"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "数量の一部を新しい処置行に移動して、MRBが各部分を個別に決定できるようにします(例えば一部をスクラップ、一部を手直し)。"
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "移動先"
@@ -16536,8 +16547,10 @@ msgstr "残業"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.po
index 45caf696a0..d54aedcd35 100644
--- a/packages/locale/locales/ko/erp.po
+++ b/packages/locale/locales/ko/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: {dueDate}에 납부 기한이 있는 지불이 건너뜀 상태
msgid "{assetCount} Assets"
msgstr "{assetCount} 자산"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. 이 품목을 최종 후속 품목으로 직접 연결하는 것을 고려하세요."
@@ -567,6 +570,9 @@ msgstr "{created} 생성됨, {updated} 업데이트됨."
msgid "{days}d"
msgstr "{days}일"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo}가(이) 이를 귀사의 원장에 게시하므로 Carbon은 이를 푸시하지 않습니다. 변경되는 경우에 대비하여 저장된 선택 사항이 유지됩니다."
@@ -3165,6 +3171,10 @@ msgstr "{0} 속성 카테고리를 비활성화하시겠습니까?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "{0} 속성을 비활성화하시겠습니까?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "{label} 설정 규칙을 비활성화하시겠습니까?"
@@ -4178,12 +4188,6 @@ msgstr "확인하기 전에"
msgid "Beginning"
msgstr "시작"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "목표 대비 {behindDays}일 뒤떨어짐"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "목표 대비 {daysBehindTarget}일 뒤떨어짐"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "단계적으로 폐기 중 — 후속 품목: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "변환 중…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "공급업체의 구매 단위를 발주서, 입고, 송장 라인에서 귀사의 재고 단위로 전환합니다 — 12개 상자 단위로 구매하고 개별 단위로 재고에 보관합니다."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "부족으로 표시"
msgid "Mark to delete"
msgstr "삭제 대상으로 표시"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "부분 조립에서 이동"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "수량의 일부를 새로운 처분 결정 행으로 할당하여 MRB가 각 부분을 별도로 결정할 수 있도록 합니다(예: 일부는 스크랩, 일부는 재작업)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "이동 대상"
@@ -16536,8 +16547,10 @@ msgstr "초과근무"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index afe9b6effd..c39e811232 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: płatność wymagalna w dniu {dueDate} jest pominięta (zapłac
msgid "{assetCount} Assets"
msgstr "{assetCount} Aktywów"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Rozważ wskazanie tej części bezpośrednio na ostatecznego następcę."
@@ -567,6 +570,9 @@ msgstr "{created} utworzono, {updated} zaktualizowano."
msgid "{days}d"
msgstr "{days}d"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "${delegatedTo} wysyła to do Twojej księgi, więc Carbon tego nie wysyła. Twój zapisany wybór jest zachowywany na wypadek zmian."
@@ -3165,6 +3171,10 @@ msgstr "Czy na pewno chcesz dezaktywować kategorię atrybutów {0}?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Czy na pewno chcesz dezaktywować atrybut {0}?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Czy na pewno chcesz dezaktywować regułę konfiguracji {label}?"
@@ -4178,12 +4188,6 @@ msgstr "Zanim potwierdzisz"
msgid "Beginning"
msgstr "Początek"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Opóźnienie o {behindDays} dzień(dni)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Opóźnienie o {daysBehindTarget} dzień(dni)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Wycofywane — następca: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Konwertowanie…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Konwertuje jednostkę zakupu dostawcy na Twoją jednostkę zapasów na pozycji zamówienia zakupu, przyjęcia lub faktury — zakup w kartonach po 12 sztuk, zapasy w sztukach."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Oznacz jako brakujące"
msgid "Mark to delete"
msgstr "Oznacz do usunięcia"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Przenieś z Podzestawu"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Przenieś część ilości do nowego wiersza dyspozycji, aby komisja oceny materiałów mogła podjąć decyzję dla każdej części osobno (np. części na braki, części na poprawę)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Przenieś do"
@@ -16536,8 +16547,10 @@ msgstr "Nadgodziny"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 35d940d448..06f890c748 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: o pagamento vencido em {dueDate} é ignorado (pago fora do Carb
msgid "{assetCount} Assets"
msgstr "{assetCount} Ativos"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Considere apontar esta peça diretamente para o sucessor final."
@@ -567,6 +570,9 @@ msgstr "{created} criado(s), {updated} atualizado(s)."
msgid "{days}d"
msgstr "{days}d"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "${delegatedTo} publica isto no seu razão, portanto o Carbon não o envia. Sua escolha salva é mantida caso isso mude."
@@ -3165,6 +3171,10 @@ msgstr "Tem a certeza de que deseja desativar a categoria de atributo {0}?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Tem a certeza de que deseja desativar o atributo {0}?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Tem a certeza de que deseja desativar a regra de configuração {label}?"
@@ -4178,12 +4188,6 @@ msgstr "Antes de Confirmar"
msgid "Beginning"
msgstr "Início"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Atrasado em relação ao alvo em {behindDays} dia(s)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Atrasado em relação ao alvo em {daysBehindTarget} dia(s)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Sendo descontinuado — sucessor: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Convertendo…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Converte a unidade de compra de um fornecedor para sua unidade de inventário em uma linha de pedido, recebimento ou fatura — compre em caixas de 12, estoque em unidades."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Marcar como Falta"
msgid "Mark to delete"
msgstr "Marcar para exclusão"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Mover Para Fora do Sub-Conjunto"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Mover parte da quantidade para uma nova linha de disposição para que o Comitê de análise de materiais possa decidir cada parte separadamente (por exemplo, refugar parte, fazer retrabalho em parte)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Mover para"
@@ -16536,8 +16547,10 @@ msgstr "Horas Extras"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 8c79883dd5..d810ac9aa9 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: платеж, подлежащий оплате {dueDate}, пр
msgid "{assetCount} Assets"
msgstr "{assetCount} Активы"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Рассмотрите возможность указания этой детали непосредственно на финального преемника."
@@ -567,6 +570,9 @@ msgstr "{created} создано, {updated} обновлено."
msgid "{days}d"
msgstr "{days}д"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "${delegatedTo} отправляет это в вашу бухгалтерскую книгу, поэтому Carbon не отправляет это. Ваш сохраненный выбор сохраняется на случай, если это изменится."
@@ -3165,6 +3171,10 @@ msgstr "Вы уверены, что хотите деактивировать к
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "Вы уверены, что хотите деактивировать атрибут {0}?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "Вы уверены, что хотите деактивировать правило конфигурации {label}?"
@@ -4178,12 +4188,6 @@ msgstr "Перед подтверждением"
msgid "Beginning"
msgstr "Начало"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Отстает от целевого показателя на {behindDays} день(дня)"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Отстает от целевого показателя на {daysBehindTarget} день(дня)"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Снимается с производства — преемник: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Преобразование…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Преобразует единицу покупки поставщика в единицу инвентаря в строке заказа на покупку, квитанции или счета — покупайте в картонах по 12 штук, запасайте в единицах."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Отметить как недостача"
msgid "Mark to delete"
msgstr "Отметить к удалению"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Переместить из подсборки"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Переместить часть количества в новую строку решения, чтобы MRB мог решить каждую часть отдельно (например, отправить на брак, отправить на доработку)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Переместить в"
@@ -16536,8 +16547,10 @@ msgstr "Переработки"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.po
index 637e355d97..4c8607a2b8 100644
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: {dueDate}'de vadesi gelen ödeme Atlandı (Carbon dışında ö
msgid "{assetCount} Assets"
msgstr "{assetCount} Sabit Kıymet"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}. Bu parçayı doğrudan nihai ardıla yönlendirmeyi düşünün."
@@ -567,6 +570,9 @@ msgstr "{created} oluşturuldu, {updated} güncellendi."
msgid "{days}d"
msgstr "{days}g"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo} bunu muhasebe defterinize gönderir, bu nedenle Carbon onu göndermez. Kaydedilen seçiminiz değişmesi durumunda korunur."
@@ -3165,6 +3171,10 @@ msgstr "{0} öznitelik kategorisini devre dışı bırakmak istediğinizden emin
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "{0} özniteliğini devre dışı bırakmak istediğinizden emin misiniz?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "{label} yapılandırma kuralını devre dışı bırakmak istediğinizden emin misiniz?"
@@ -4178,12 +4188,6 @@ msgstr "Onaylamadan Önce"
msgid "Beginning"
msgstr "Başlangıç"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "Hedef {behindDays} gün geride"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "Hedef {daysBehindTarget} gün geride"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "Kademeli olarak kullanımdan kaldırılıyor — ardıl: <0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "Dönüştürülüyor…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "Bir tedarikçinin satın alma birimini bir PO, makbuz veya fatura satırında envanter biriminize dönüştürür — 12'lik kutularda satın alın, birimlerde stok yapın."
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "Az eksik olarak işaretle"
msgid "Mark to delete"
msgstr "Silmek için işaretle"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "Alt Montajdan Taşı"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "Miktarın bir kısmını yeni bir karar satırına taşıyın, böylece MRB her bölümü ayrı ayrı karar verebilir (örneğin, bazılarını fire edin, bazılarını yeniden işleyin)."
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "Taşış"
@@ -16536,8 +16547,10 @@ msgstr "Fazla Mesai"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index 49d5ae2085..cd7cbb7f75 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -522,6 +522,9 @@ msgstr "{asset}: 应付日期为 {dueDate} 的付款已跳过(在 Carbon 外
msgid "{assetCount} Assets"
msgstr "{assetCount} 个资产"
+msgid "{behindDays, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{chainLabel}. Consider pointing this part directly at the final successor."
msgstr "{chainLabel}。考虑直接将此零件指向最终后继物料。"
@@ -567,6 +570,9 @@ msgstr "已创建 {created} 条,已更新 {updated} 条。"
msgid "{days}d"
msgstr "{days}天"
+msgid "{daysBehindTarget, plural, one {Behind target by # day} other {Behind target by # days}}"
+msgstr ""
+
msgid "{delegatedTo} posts this to your ledger, so Carbon doesn't push it. Your saved choice is kept in case that changes."
msgstr "{delegatedTo}将其发布到您的分类账,因此Carbon不会推送它。您保存的选择将被保留,以防情况发生变化。"
@@ -3165,6 +3171,10 @@ msgstr "您确定要停用 {0} 属性类别吗?"
msgid "Are you sure you want to deactivate the {0} attribute?"
msgstr "您确定要停用 {0} 属性吗?"
+#. placeholder {0}: workCenter.name
+msgid "Are you sure you want to deactivate the {0} work center?"
+msgstr ""
+
msgid "Are you sure you want to deactivate the {label} configuration rule?"
msgstr "你确定要停用 {label} 配置规则吗?"
@@ -4178,12 +4188,6 @@ msgstr "确认前"
msgid "Beginning"
msgstr "开始"
-msgid "Behind target by {behindDays} day(s)"
-msgstr "落后目标 {behindDays} 天"
-
-msgid "Behind target by {daysBehindTarget} day(s)"
-msgstr "落后目标 {daysBehindTarget} 天"
-
#. placeholder {0}: successorItem.readableIdWithRevision
msgid "Being phased out — successor: <0>{0}</0>"
msgstr "正在逐步淘汰—后继物料:<0>{0}</0>"
@@ -5899,8 +5903,10 @@ msgstr "转换中…"
msgid "Converts a supplier's purchase unit to your inventory unit on a PO, receipt, or bill line — buy in cartons of 12, stock in eaches."
msgstr "在采购单、收货或账单行中将供应商的采购单位转换为您的库存管理单位 — 按 12 个纸箱采购,按件库存。"
-#. placeholder {0}: counts.copied ?? 0
-msgid "Copied {0} assignments"
+msgid "Copied {copied} assignments"
+msgstr ""
+
+msgid "Copied 1 assignment"
msgstr ""
msgid "Copied ID to clipboard"
@@ -13511,8 +13517,10 @@ msgstr "标记短缺"
msgid "Mark to delete"
msgstr "标记删除"
-#. placeholder {0}: counts.created ?? 0
-msgid "Marked absent for {0} day(s)"
+msgid "Marked absent for {created} days"
+msgstr ""
+
+msgid "Marked absent for 1 day"
msgstr ""
msgid "Market rate"
@@ -14098,6 +14106,9 @@ msgstr "从子装配移出"
msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
msgstr "将部分数量移动到新的处置行,以便MRB可以分别决定每一部分(例如报废部分、返工部分)。"
+msgid "Move these operations to another work center, or finish them, before you deactivate it."
+msgstr ""
+
msgid "Move to"
msgstr "移动到"
@@ -16536,8 +16547,10 @@ msgstr "加班"
msgid "Overtime hours"
msgstr ""
-#. placeholder {0}: counts.updated ?? 0
-msgid "Overtime set for {0} assignments"
+msgid "Overtime set for {updated} assignments"
+msgstr ""
+
+msgid "Overtime set for 1 assignment"
msgstr ""
msgid "Overview"
diff --git a/packages/react/src/Date/DatePicker.tsx b/packages/react/src/Date/DatePicker.tsx
index a0058a599f..fbc1984c17 100644
--- a/packages/react/src/Date/DatePicker.tsx
+++ b/packages/react/src/Date/DatePicker.tsx
@@ -35,6 +35,8 @@ const DatePicker = (
size?: "sm" | "md" | "lg";
/** Days to flag with a dot in the calendar, e.g. days that have work due. */
isDateMarked?: (date: CalendarDate) => boolean;
+ /** The field's name for assistive tech; defaults to `label`. */
+ "aria-label"?: string;
}
) => {
const state = useDatePickerState({
@@ -43,8 +45,20 @@ const DatePicker = (
});
const ref = useRef<HTMLDivElement>(null);
+ // The label is drawn by the form field, not here, so name the group with it
+ // directly; a label react-aria points at but nothing renders names nothing.
const { groupProps, fieldProps, buttonProps, dialogProps, calendarProps } =
- useDatePicker(props, state, ref);
+ useDatePicker(
+ {
+ ...props,
+ label: undefined,
+ "aria-label":
+ props["aria-label"] ??
+ (typeof props.label === "string" ? props.label : undefined)
+ },
+ state,
+ ref
+ );
return (
<Popover open={state.isOpen} onOpenChange={state.setOpen}>
diff --git a/packages/react/src/Date/TimePicker.tsx b/packages/react/src/Date/TimePicker.tsx
index a6d401dbb9..ddda3c45c8 100644
--- a/packages/react/src/Date/TimePicker.tsx
+++ b/packages/react/src/Date/TimePicker.tsx
@@ -11,7 +11,10 @@ import { InputGroup } from "../Input";
import { DateSegment } from "./components/DateSegment";
const TimePicker = (
- props: Omit<TimeFieldStateOptions, "locale" | "createCalendar">
+ props: Omit<TimeFieldStateOptions, "locale" | "createCalendar"> & {
+ /** The field's name for assistive tech, when no label points at it. */
+ "aria-label"?: string;
+ }
) => {
const { locale } = useLocale();
const state = useTimeFieldState({