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
Feat/skip corrupted data in backups (#1545)
Anshul sharmac07090574400
diff --git a/.ai/lessons.md b/.ai/lessons.mdindex ac605d980b..2945918f45 100644--- a/.ai/lessons.md+++ b/.ai/lessons.md@@ -1240,3 +1240,49 @@ canvas hosting Radix popovers/selects.**Rule:** When a bare-`tsx` (or plain-node) script hits `does not provide an export named …`, fix the SCRIPT's runtime import chain: move the pure logic it needs into a module with no runtime `@carbon/*` imports (type-only imports are fine — they erase) and import that. `packages/jobs/src/backups/schema.ts` is the pattern; `packages/database`'s seed scripts (relative `.ts` imports only) are the older precedent. Never change a shared package's `type`/`exports` for one script's benefit.**Applies to:** `packages/jobs/src/scripts/**`, `packages/database/src/{seed,check}-*.ts`, `ci/src/**`, and any new `tsx`-run script in a CJS-rooted package.++## A "did my job finish?" baseline must include the rows a FAILED run left behind++**Context:** The Backups page shows a spinner row while an export runs, and decides the+run finished when a backup appears in the list that was not in a `baseline` snapshot+taken when tracking began. The baseline recorded only backups with status `ready`.++**Problem:** A failed export leaves a **pending** (manifest-less) folder in the list.+When the user clicked "Skip corrupted rows and retry", that leftover folder later+flipped to `ready` — it was not in the ready-only baseline, so it read as "this run+completed" and the spinner vanished a second after the retry started, while the job was+still running. The job was correct throughout; only the completion test was wrong. The+same shape bit the failure banner: a marker cleared by the action could still arrive via+a revalidation already in flight, so the banner reappeared under the running row.++**Rule:** A baseline for "something NEW appeared" must snapshot **every** item already+present, in every status — not just the ones in the terminal state you are waiting for.+A prior failure's debris is exactly what will later transition into that state and fake+a completion. And when a stale record can still arrive after you delete it, identify it+by **identity** (the exact row you superseded), never by comparing a client timestamp+against a server one — clock skew then decides your control flow.++**Applies to:** `apps/erp/app/routes/x+/settings+/backups.tsx` (`runningExport`,+`knownBackupNames`, `failedIsStale`), and any optimistic progress row driven by polling+a list.++## Per-edge findings are not a row count++**Context:** `findExportScopeViolations` returns one entry per offending FK edge+(`jobOperationDependency` violates `jobId`, `operationId` and `dependsOnId`), and the+backup UI summed `violations[].rows` for the figure it showed the user.++**Problem:** A row escaping scope through three foreign keys was counted three times.+The failed-backup banner claimed "10 rows" where 4 rows existed, and the same sum sat on+the confirm button of an irreversible delete that then removed 4 — the toast and the+modal disagreed inside one flow.++**Rule:** When a diagnostic groups by RELATIONSHIP (FK edge, constraint, rule), it+cannot be summed into a count of ROWS. Compute the distinct count separately — one+`count(*)` over the OR of the offending predicates — and keep the per-edge list purely+as the breakdown. Name the two so they cannot be confused (`violations` vs+`rowsByTable`) and say so in the type's doc comment.++**Applies to:** `packages/jobs/src/backups/scope.ts`+(`findExportScopeViolationsDetailed`, `computeScopeExclusions`, `totalExcludedRows`),+`Manifest.excludedRowsByTable`, and any future "N things are wrong" surface.diff --git a/.ai/plans/2026-09-01-skip-corrupted-rows-in-backups.md b/.ai/plans/2026-09-01-skip-corrupted-rows-in-backups.mdnew file mode 100644index 0000000000..1d9a2a51d2--- /dev/null+++ b/.ai/plans/2026-09-01-skip-corrupted-rows-in-backups.md@@ -0,0 +1,448 @@+# Skip corrupted rows in backups; purge before restore — implementation plan++**Spec / source:** `.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.md`+**Branch:** `feat/skip-corrupted-data-in-backups` (worktree `carbon-feat-skip-corrupted-data-in-backups`)+**Local DB with the corruption:** `postgresql://postgres:postgres@localhost:59795/postgres` — companies `dab44qldq0gg27p2p9e0` (Carbon Development) and `JqvzHghaGpe7vTMU1Y27jP` (test comp) each carry 1 cross-company `pickMethod` row + 3 cross-company `jobOperationDependency` rows. **Do not delete them** (Task 11 uses a rolled-back transaction); the user tests the purge in the UI.+**Never `git commit`.**++## Progress+- [x] Task 1: Extract scope SQL into `packages/jobs/src/backups/scope.ts` (pure) and add exclusion/purge builders+- [x] Task 2: Unit-test the pure builders (compile-only Kysely)+- [x] Task 3: `Manifest.excludedRows`, event `skipCorrupted`, edge function pass-through+- [x] Task 4: `buildCompanyBackup({ skipCorrupted })` + export job marker fields+- [x] Task 5: Restore job — classify snapshot failure, store `filePath`/`includeStorage`+- [x] Task 6: ERP service types/readers + `exportCompanyBackup` arg+- [x] Task 7: ERP server `purgeCorruptedRows`+- [x] Task 8: Route actions `exportSkipCorrupted` and `purgeAndRestore`+- [x] Task 9: UI — banner retry button, "N rows excluded" row detail, restore-row CTA + confirm modal+- [x] Task 10: Docs — rule file + spec status+- [x] Task 11: Verification — typecheck, tests, lingui extract, DB-backed dry run++## Dependencies+Task 2 needs 1 · Task 3 independent of 1–2 · Task 4 needs 1, 3 · Task 5 needs 1 · Task 6 needs 3 · Task 7 needs 1 · Task 8 needs 5, 6, 7 · Task 9 needs 6, 8 · Task 10 independent · Task 11 last.+Parallelizable: {1, 3} then {2, 4, 5} then {6, 7} then 8 → 9. Task 10 any time.++---++## Task 1: Extract scope SQL into `packages/jobs/src/backups/scope.ts` and add exclusion/purge builders++**Depends on:** none+**Files:**+- Create: `packages/jobs/src/backups/scope.ts`+- Modify: `packages/jobs/src/inngest/functions/tasks/company-backup.ts` — remove `mapWithConcurrency`, `RETAINED_REF_TABLES`, `buildScopeFilter`, `findExportScopeViolations`; add `export * from "../../../backups/scope";`+- Modify: `packages/jobs/src/backups/schema.ts` — append `export * from "./scope";` at the bottom (so `@carbon/jobs/backups` exposes it without a new package subpath; see `.ai/lessons.md` "A new package exports subpath 500s until every running dev server restarts")++**Steps:**+1. Create `scope.ts`. Header comment: "Company-scope SQL for backups: scope predicates, the export closure guard, and the opt-in exclusion/purge of rows whose NOT-NULL FK escapes scope. Keep free of runtime `@carbon/*` imports (type-only OK) — imported by the ERP via `@carbon/jobs/backups` and by bare-`tsx` scripts." Imports:+ ```ts+ import type { KyselyDatabase } from "@carbon/database/client";+ import { type Kysely, type RawBuilder, sql } from "kysely";+ import type { TableInfo } from "./schema";+ ```+2. Move verbatim from `company-backup.ts` (delete there): `mapWithConcurrency` (lines ~184–201), `RETAINED_REF_TABLES` (~410–415), `buildScopeFilter` (~463–491). Keep their doc comments.+3. Add types + error:+ ```ts+ export type ScopeViolation = { table: string; column: string; refTable: string; rows: number };+ export class ExportScopeViolationError extends Error {+ readonly violations: ScopeViolation[];+ constructor(companyId: string, violations: ScopeViolation[]) {+ super(formatScopeViolations(companyId, violations));+ this.name = "ExportScopeViolationError";+ this.violations = violations;+ }+ }+ export function formatScopeViolations(companyId: string, v: ScopeViolation[]): string {+ const lines = v.map((x) => `${x.table}.${x.column} → ${x.refTable} (${x.rows} row${x.rows === 1 ? "" : "s"})`);+ return `Refusing to export ${companyId}: ${v.length} NOT-NULL reference(s) escape company scope, so the backup could never be restored:\n ${lines.join("\n ")}`;+ }+ ```+ (Message text must stay byte-identical to today's — the prior spec and prod logs quote it.)+4. Add the pure edge enumerator, used by the guard, the exclusion and the purge so all three agree:+ ```ts+ export type ScopeEdge = { table: TableInfo; column: string; parent: TableInfo };+ /** NOT-NULL FKs (refColumn "id") from an exportable table to another exportable, non-retained table. */+ export function scopeEdges(table: TableInfo, exportableNames: Set<string>, byName: Map<string, TableInfo>): ScopeEdge[]+ ```+ Same filters as today's loop in `findExportScopeViolations`: `fk.refColumn === "id"`, `!RETAINED_REF_TABLES.has(fk.refTable)`, `exportableNames.has(fk.refTable)`, column exists and `!isNullable`.+5. Add `parentExistence(parent, byName, companyId, companyGroupId)` — the existing `parentScope OR <scope.column> IS NULL` (direct) / `parentScope` (via) expression, extracted.+6. Add the pure predicate builder:+ ```ts+ /** SQL predicate selecting the rows of `table` that must be EXCLUDED: a NOT-NULL FK escaping scope+ * ("violation"), or pointing at a row already excluded from its parent ("cascade"). null = nothing to exclude. */+ export function buildExclusionPredicate(+ table: TableInfo, exportableNames: Set<string>, byName: Map<string, TableInfo>,+ companyId: string, companyGroupId: string | null, excludedIds: Map<string, unknown[]>+ ): { predicate: RawBuilder<unknown>; terms: Array<{ edge: ScopeEdge; cause: "violation" | "cascade"; predicate: RawBuilder<unknown> }> } | null+ ```+ For each edge: violation term = `` sql`(${sql.id(col)} IS NOT NULL AND ${sql.id(col)} NOT IN (SELECT id FROM ${sql.id(parent.name)} WHERE ${parentExistence}))` ``; cascade term (only when `excludedIds.get(parent.name)?.length`) = `` sql`${sql.id(col)} IN (${sql.join(ids.map(v => sql`${v}`))})` ``. `predicate` = terms OR-joined via `sql.join(terms, sql` OR `)`. Return null when no terms.+7. Rewrite `findExportScopeViolations` to return `Promise<ScopeViolation[]>` (not strings), built from `scopeEdges` + the violation term (`count(*)` per edge, concurrency 6, same as today). Preserve the doc comment; add: "Callers format with `formatScopeViolations` or throw `ExportScopeViolationError`."+8. Add the DB-backed exclusion computation:+ ```ts+ export type ScopeExclusions = {+ predicates: Map<string, RawBuilder<unknown>>; // table → predicate to AND-NOT into the dump+ excludedIds: Map<string, unknown[]>; // tables with an `id` column only+ summary: Array<{ table: string; column: string; refTable: string; rows: number; cause: "violation" | "cascade" }>;+ };+ export async function computeScopeExclusions(db, exportable: TableInfo[], byName, companyId, companyGroupId): Promise<ScopeExclusions>+ ```+ Iterate `exportable` **in the given (catalog/topological) order**, sequentially (parents before children matters). For each table: `buildExclusionPredicate`; if null continue. For each term: `SELECT count(*)::text AS n FROM t WHERE scope AND term` → push to summary if n>0. If the table has an `id` column: `SELECT id FROM t WHERE scope AND predicate` → `excludedIds.set(name, ids)` when non-empty. Set `predicates.set(name, predicate)` only if any term count > 0 (avoid needless `NOT (...)` on clean tables).+9. Add the purge:+ ```ts+ /** Permanently delete the rows `computeScopeExclusions` would exclude. Call INSIDE a transaction.+ * Deletes children first (reverse catalog order) so NO ACTION FKs never block. Throws if anything remains. */+ export async function purgeScopeViolations(trx, exportable, byName, companyId, companyGroupId): Promise<{ deleted: Array<{ table: string; rows: number }> }>+ ```+ `const ex = await computeScopeExclusions(trx, …)`; for tables in `[...exportable].reverse()` with a predicate: `DELETE FROM t WHERE scope AND predicate` → collect `numDeletedRows` (Kysely: `const r = await sql`…`.execute(trx); r.numAffectedRows`). Then `const left = await findExportScopeViolations(trx, …)`; if `left.length` throw `new Error("Purge left scope violations behind: " + formatScopeViolations(companyId, left))`.+10. In `company-backup.ts`: delete the moved code, add `export * from "../../../backups/scope";` next to the existing `export * from "../../../backups/schema";`. Fix the `type RawBuilder` import if now unused. `company-backup.transforms.ts` imports `RETAINED_REF_TABLES` from `./company-backup` — still resolves via the re-export; no change.+11. Append `export * from "./scope";` to `schema.ts`.++**Verify:**+```bash+cd /Users/aashu/work/carbon/carbon-feat-skip-corrupted-data-in-backups && pnpm --filter @carbon/jobs typecheck+# Expected: exit 0, no errors+pnpm --filter @carbon/jobs test -- src/inngest/functions/tasks/company-backup.closure.test.ts src/backups+# Expected: all existing tests pass+```++**Out of scope:** changing what counts as a violation; touching `company-backup.transforms.ts` logic.++---++## Task 2: Unit-test the pure builders++**Depends on:** 1+**Files:**+- Create: `packages/jobs/src/backups/scope.test.ts`+- Copy from (precedent): `packages/jobs/src/inngest/functions/scheduled/workflow-run-retention.test.ts` (DummyDriver Kysely for compile-only SQL) and `packages/jobs/src/inngest/functions/tasks/company-backup.closure.test.ts` (`col`/`table`/`fk` builders)++**Steps:**+1. Build a compile-only `db` exactly as in the precedent. Build `col`, `table`, `fk` helpers as in the closure test (copy them).+2. Tests for `scopeEdges`: (a) nullable FK excluded; (b) FK to `user` (retained) excluded; (c) FK to non-exportable table excluded; (d) NOT-NULL FK to exportable → included.+3. Tests for `buildExclusionPredicate(...)` compiled via `sql`SELECT 1 WHERE ${predicate}`.compile(db).sql`:+ - violation term present: contains `"itemId" is not null and "itemId" not in (select id from "item" where`;+ - cascade term only when parent has excluded ids: with `excludedIds = new Map([["jobOperation", ["op1"]]])` → contains `"operationId" in (`; with empty map → does not;+ - table without `id` column (like `jobOperationDependency`) still returns a predicate;+ - returns null when the table has no qualifying edges.+4. Test `formatScopeViolations("C", [{table:"pickMethod",column:"itemId",refTable:"item",rows:1}])` equals the exact prod string (`Refusing to export C: 1 NOT-NULL reference(s) escape company scope, so the backup could never be restored:\n pickMethod.itemId → item (1 row)`).+5. Test `ExportScopeViolationError` exposes `.violations` and `.name === "ExportScopeViolationError"`.++**Verify:**+```bash+pnpm --filter @carbon/jobs test -- src/backups/scope.test.ts+# Expected: all tests pass+```++**Out of scope:** DB-backed tests (Task 11 covers with a dry run).++---++## Task 3: `Manifest.excludedRows`, event `skipCorrupted`, edge function pass-through++**Depends on:** none+**Files:**+- Modify: `packages/jobs/src/backups/schema.ts` — `Manifest` type+- Modify: `packages/lib/src/events.ts` — `"carbon/company-export"` data+- Modify: `packages/database/supabase/functions/export-company/index.ts` — forward flag++**Steps:**+1. In `Manifest` add after `excludedTables`:+ ```ts+ /** Rows deliberately left out because a NOT-NULL FK escaped company scope ("violation")+ * or pointed at such a row ("cascade"). Absent/empty = full export. Written only when+ * the export ran with `skipCorrupted`. */+ excludedRows?: Array<{ table: string; column: string; refTable: string; rows: number; cause: "violation" | "cascade" }>;+ ```+2. In `events.ts` `"carbon/company-export".data` add `/** Opt-in: exclude rows whose NOT-NULL FK escapes company scope instead of refusing. */ skipCorrupted?: boolean;`.+3. In the edge function destructure `skipCorrupted` from the body and send `skipCorrupted: skipCorrupted === true` in the event data.++**Verify:**+```bash+pnpm --filter @carbon/lib typecheck && pnpm --filter @carbon/jobs typecheck+# Expected: exit 0+```++**Out of scope:** bumping `BACKUP_VERSION`; validating manifests.++---++## Task 4: `buildCompanyBackup({ skipCorrupted })` + export job marker fields++**Depends on:** 1, 3+**Files:**+- Modify: `packages/jobs/src/inngest/functions/tasks/company-export.ts`++**Steps:**+1. Import `computeScopeExclusions`, `ExportScopeViolationError`, `type ScopeViolation` from `./company-backup` (re-exported). Remove the now-unused `findExportScopeViolations` import if no longer used directly (it is still used — see step 3).+2. Add `skipCorrupted?: boolean;` to `buildCompanyBackup`'s `opts` with doc: "Exclude (and record in `manifest.excludedRows`) rows whose NOT-NULL FK escapes company scope, plus rows depending on them. Default false = refuse (the guard is a tenant-leak detector; skipping is a user-confirmed recovery, see spec 2026-09-01)."+3. Replace the violation block:+ ```ts+ let exclusions: ScopeExclusions | null = null;+ if (opts.skipCorrupted) {+ exclusions = await computeScopeExclusions(db, exportable, byName, companyId, companyGroupId);+ if (exclusions.summary.length > 0) {+ log.warn("Company export skipping out-of-scope rows", { companyId, excludedRows: exclusions.summary });+ }+ } else {+ const scopeViolations = await findExportScopeViolations(db, exportable, byName, companyId, companyGroupId);+ if (scopeViolations.length > 0) throw new ExportScopeViolationError(companyId, scopeViolations);+ }+ ```+ `company-export.ts` has no logger today: add `const log = getLogger("jobs", "company-export");` with `import { getLogger } from "@carbon/logger";` (same as `company-backup.ts`). Keep the existing long comment about the refusal being deliberate; append one sentence: "`skipCorrupted` is the ONE sanctioned bypass — user-confirmed after a visible failure, and the manifest records what was dropped."+4. In the per-table dump: `const exclusion = exclusions?.predicates.get(table.name); const exclusionFilter = exclusion ? sql` AND NOT (${exclusion})` : sql``;` and append `${exclusionFilter}` to the `WHERE` right after `${ledgerFilter}`.+5. In the manifest literal add `excludedRows: exclusions?.summary ?? []`.+6. `companyExportFunction`: destructure `skipCorrupted` from `event.data`, pass `skipCorrupted: skipCorrupted === true` to `buildCompanyBackup`.+7. Extend `upsertExportMarker`'s `metadata` type with `reason?: "scope-violations"; violations?: ScopeViolation[]; label?: string | null; includeStorage?: "none" | "all";`. In the `catch`:+ ```ts+ await upsertExportMarker(client, companyId, userId, {+ status: "failed", startedAt, error: message.slice(0, 2000), label: label ?? null, includeStorage,+ ...(err instanceof ExportScopeViolationError ? { reason: "scope-violations", violations: err.violations } : {})+ });+ ```++**Verify:**+```bash+pnpm --filter @carbon/jobs typecheck+# Expected: exit 0+```++**Out of scope:** `company-template.ts` / `company-restore.ts` snapshot calls (they keep default `skipCorrupted: false`).++---++## Task 5: Restore job — classify snapshot failure, store `filePath`/`includeStorage`++**Depends on:** 1+**Files:**+- Modify: `packages/jobs/src/inngest/functions/tasks/company-restore.ts`++**Steps:**+1. Import `ExportScopeViolationError, type ScopeViolation` from `./company-backup`.+2. Extend `RestoreMeta` with:+ ```ts+ /** The backup being restored + file choice — kept so a recovery action can restart the same restore. */+ filePath?: string;+ includeStorage?: "none" | "all";+ /** Set when the pre-restore snapshot refused because the LIVE data has out-of-scope rows. */+ reason?: "scope-violations";+ violations?: ScopeViolation[];+ ```+3. In the first `writeRestoreMarker` (status running) add `filePath, includeStorage` to the patch.+4. In the main `catch (err)` of `companyRestoreFunction` (the one writing `status: "failed"`), spread `...(err instanceof ExportScopeViolationError ? { reason: "scope-violations", violations: err.violations } : {})` into the patch.++**Verify:**+```bash+pnpm --filter @carbon/jobs typecheck+# Expected: exit 0+```++**Out of scope:** the revert/finalize functions; `company-template.ts`.++---++## Task 6: ERP service types/readers + `exportCompanyBackup` arg++**Depends on:** 3+**Files:**+- Modify: `apps/erp/app/modules/settings/backups.service.ts`++**Steps:**+1. `exportCompanyBackup` args: add `skipCorrupted?: boolean;` (passed through in the body as-is).+2. Add near the top: `export type ScopeViolationSummary = { table: string; column: string; refTable: string; rows: number };` (typed locally — the app must not import job internals; mirror the comment on `CompanyTemplateRun`).+3. `CompanyBackupSummary`: add `excludedRows: NonNullable<Manifest["excludedRows"]>;` (default `[]` in `listCompanyBackupFolders`, set from `m.excludedRows ?? []` when the manifest parses).+4. `getCompanyRestoreRuns`: extend the `meta` cast and returned object with `reason: meta.reason ?? null`, `violations: meta.violations ?? []`, `filePath: meta.filePath ?? null`, `includeStorage: meta.includeStorage ?? null`.+5. `CompanyExportRun`: add `reason: "scope-violations" | null; violations: ScopeViolationSummary[]; label: string | null; includeStorage: "none" | "all" | null;` and populate from `meta` in `getCompanyExportRun`.++**Verify:**+```bash+pnpm --filter erp typecheck+# Expected: exit 0 (RestoreReviewRow's RestoreRun type is structurally satisfied by the wider object)+```++**Out of scope:** UI.++---++## Task 7: ERP server `purgeCorruptedRows`++**Depends on:** 1+**Files:**+- Modify: `apps/erp/app/modules/settings/backups.server.ts`++**Steps:**+1. Import `purgeScopeViolations, selectExportableTables` from `@carbon/jobs/backups` (available via the Task 1 re-export).+2. Add:+ ```ts+ /**+ * Permanently delete this company's rows whose NOT-NULL FK escapes company scope (and rows+ * depending on them) — the data the export guard refuses on. Only ever called from the+ * user-confirmed "Remove corrupted data and restore" action. One transaction; children first.+ */+ export async function purgeCorruptedRows(companyId: string): Promise<{ deleted: Array<{ table: string; rows: number }> }> {+ const db = getDatabaseClient();+ const serviceRole = getCarbonServiceRole();+ const company = await serviceRole.from("company").select("companyGroupId").eq("id", companyId).single();+ if (company.error) throw new Error(company.error.message);+ const catalog = await getCompanyTableCatalog(db);+ const { exportable } = selectExportableTables(catalog);+ const byName = new Map(catalog.tables.map((t) => [t.name, t]));+ const result = await db.transaction().execute((trx) =>+ purgeScopeViolations(trx, exportable, byName, companyId, company.data.companyGroupId ?? null)+ );+ log.warn("Backups: purged out-of-scope rows before restore", { companyId, deleted: result.deleted });+ return result;+ }+ ```+ If `getDatabaseClient()`'s type is not assignable to `Kysely<KyselyDatabase>` for `purgeScopeViolations`, STOP and report — do not cast.++**Verify:**+```bash+pnpm --filter erp typecheck+# Expected: exit 0+```++**Out of scope:** any deletion outside `purgeScopeViolations`.++---++## Task 8: Route actions `exportSkipCorrupted` and `purgeAndRestore`++**Depends on:** 5, 6, 7+**Files:**+- Modify: `apps/erp/app/routes/x+/settings+/backups.tsx` — `action` switch only++**Steps:**+1. Import `purgeCorruptedRows` from `~/modules/settings/backups.server`.+2. Add case `"exportSkipCorrupted"`:+ ```ts+ const run = await getCompanyExportRun(client, companyId);+ if (run.data?.status !== "failed" || run.data.reason !== "scope-violations") {+ return { success: false, message: "There is no failed backup to retry" };+ }+ const result = await exportCompanyBackup(client, { companyId, userId, label: run.data.label ?? undefined, includeStorage: run.data.includeStorage ?? "none", skipCorrupted: true });+ if (result.error) return { success: false, message: await getEdgeFunctionErrorMessage(result.error, "Failed to start backup") };+ return { success: true, message: "Backup started", started: "export" as const };+ ```+3. Add case `"purgeAndRestore"`:+ ```ts+ const restoreRunId = String(formData.get("restoreRunId") ?? "");+ const runs = await getCompanyRestoreRuns(client, companyId);+ const failed = runs.data?.find((r) => r.restoreRunId === restoreRunId);+ if (!failed || failed.status !== "failed" || failed.reason !== "scope-violations" || !failed.filePath) {+ return { success: false, message: "This restore can't be retried this way" };+ }+ if (runs.data?.some((r) => r.status !== "failed")) {+ return { success: false, message: "Finish your current restore — keep or revert it — first." };+ }+ try {+ const { deleted } = await purgeCorruptedRows(companyId);+ await finalizeCompanyRestore({ companyId, restoreRunId });+ const newRunId = await startCompanyRestore({ companyId, userId, filePath: failed.filePath, includeStorage: failed.includeStorage ?? "all", label: failed.label ?? failed.filePath });+ const rows = deleted.reduce((s, d) => s + d.rows, 0);+ return { success: true, message: `Removed ${rows} row${rows === 1 ? "" : "s"} — restoring`, restoreRunId: newRunId, deleted };+ } catch (err) {+ return { success: false, message: err instanceof Error ? err.message : "Failed to remove corrupted data" };+ }+ ```+ (Action messages here are server strings like the existing ones in this file — the route already returns English messages from `action`; keep consistent. The UI-rendered copy in Task 9 is Lingui-wrapped.)+4. Widen the `fetcher` generic in the component to include `deleted?: Array<{ table: string; rows: number }>`.++**Verify:**+```bash+pnpm --filter erp typecheck+# Expected: exit 0+```++**Out of scope:** UI rendering (Task 9).++---++## Task 9: UI — banner retry button, "N rows excluded" row detail, restore-row CTA + confirm modal++**Depends on:** 6, 8+**Files:**+- Modify: `apps/erp/app/routes/x+/settings+/backups.tsx` — component+- Modify: `apps/erp/app/modules/settings/ui/Backups/RestoreReviewRow.tsx`+- Create: `apps/erp/app/modules/settings/ui/Backups/ExcludedRowsInfo.tsx`; export from `ui/Backups/index.ts`+- Copy from (precedent): `apps/erp/app/modules/settings/ui/Backups/BackupContentsInfo.tsx` (Popover "i" pattern); `apps/erp/app/components/Modals/Confirm/Confirm.tsx` (modal layout); existing Delete `Confirm` usage in `BackupRow`+- All new strings via `<Trans>` / `useLingui().t` (`@lingui/react/macro`) — see `.claude/rules/i18n-lingui-system.md`; never `t` from `@lingui/core/macro`.++**Steps:**+1. **Failed-export banner** (`{exportFailed && (...)}` block): when `exportRun?.reason === "scope-violations"`, render under the error text a `<span className="text-xs text-muted-foreground">` with `<Trans>Retrying with skip leaves out {count} rows whose links point outside this company. They are listed in the backup's details.</Trans>` where `count = exportRun.violations.reduce((s, v) => s + v.rows, 0)`; and in the button `HStack` add before Dismiss: `<Button onClick={() => fetcher.submit({ intent: "exportSkipCorrupted" }, { method: "post" })} isLoading={fetcher.state !== "idle" && fetcher.formData?.get("intent") === "exportSkipCorrupted"}><Trans>Skip corrupted rows and retry</Trans></Button>`. The existing `fetcher.data` effect already handles `started: "export"` (drops the optimistic row).+2. **`ExcludedRowsInfo.tsx`**: props `{ excludedRows: Array<{ table; column; refTable; rows; cause }> }`. Copy the Popover/trigger structure from `BackupContentsInfo` (no fetcher). Trigger: `LuInfo` button, `aria-label={t\`Excluded rows\`}`. Content: title `<Trans>Rows left out of this backup</Trans>`, one line per entry `` `${e.table}.${e.column} → ${e.refTable}` `` left, `e.rows.toLocaleString()` right, and a muted `cause === "violation" ? t\`link outside company\` : t\`depends on an excluded row\``.+3. **`BackupRow`**: compute `const excluded = file.excludedRows.reduce((s, e) => s + e.rows, 0)`. In the ready-branch second line, after the size, append `{excluded > 0 ? <> {" · "}<Trans>{excluded} rows excluded</Trans> <ExcludedRowsInfo excludedRows={file.excludedRows} /></> : null}` (use Lingui `plural` macro from `@lingui/react/macro` if available in the repo — grep `plural(` in `apps/erp/app`; otherwise the `<Trans>` with the number is acceptable).+4. **`RestoreReviewRow.tsx`**: extend `RestoreRun` with `reason: "scope-violations" | null; violations: Array<{ table: string; column: string; refTable: string; rows: number }>;`. Add prop `onPurgeAndRestore: () => void`. In the failed branch, when `run.reason === "scope-violations"`, render before Dismiss: `<Button variant="destructive" onClick={onPurgeAndRestore}><Trans>Remove corrupted data and restore</Trans></Button>`. Also switch the two existing hardcoded strings in this file ("Failed —", "Restore", "restoring…", "reverting…", "rows", "Keep", "Revert", "Dismiss") to `<Trans>`/`t` while here.+5. **Route component**: add `const [purgeRun, setPurgeRun] = useState<(typeof restoreRuns)[number] | null>(null);`. Pass `onPurgeAndRestore={() => setPurgeRun(run)}` to each `RestoreReviewRow`. Render, when `purgeRun`, a `Modal` copied from `Confirm.tsx`'s JSX (Modal/ModalOverlay/ModalContent/ModalHeader/ModalTitle/ModalBody/ModalFooter from `@carbon/react`) but with a plain destructive `Button` instead of `fetcher.Form`:+ - title: `t\`Permanently delete ${total} rows?\`` where `total = purgeRun.violations.reduce(...)`;+ - body: `<Trans>These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. The restore will start right after.</Trans>` followed by a `<ul>` of `` `${v.table}.${v.column} → ${v.refTable}: ${v.rows}` ``;+ - confirm button `<Trans>Delete and restore</Trans>` → `fetcher.submit({ intent: "purgeAndRestore", restoreRunId: purgeRun.restoreRunId }, { method: "post" }); resolveRun(purgeRun.restoreRunId); setPurgeRun(null);`+ - cancel `<Trans>Cancel</Trans>` → `setPurgeRun(null)`.+6. In the existing `fetcher.data` effect, change the `result.success && result.restoreRunId` branch to `if (result.deleted) toast.success(result.message);` before `setActive(...)` so the removed-row count is shown, then open the modal as today.+7. Progress modal (`BackupProgressModal.tsx` ~line 293): replace the sentence "The system created an invalid backup — please contact Carbon support." with `<Trans>This backup could not be completed.</Trans>` (the error text below already names the cause; matches the banner copy and copy rule D9).++**Verify:**+```bash+pnpm --filter erp typecheck+# Expected: exit 0+cd /Users/aashu/work/carbon/carbon-feat-skip-corrupted-data-in-backups && pnpm lingui:extract+# Expected: exits 0; `git diff --stat packages/locale/locales/en/erp.po` shows the new msgids added+```++**Out of scope:** restyling existing rows; MES app.++---++## Task 10: Docs — rule file + spec status++**Depends on:** none+**Files:**+- Modify: `.claude/rules/company-backup-restore.md` — the "Out-of-scope rows are FATAL" bullet+- Modify: `.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.md` — status → `in-progress`, changelog line++**Steps:**+1. In the rule, keep the first two paragraphs of the bullet. Replace the sentence starting "Do not rebuild it." through "…lowering the guard." with:+ "The ONE sanctioned bypass (spec `2026-09-01-skip-corrupted-rows-in-backups.md`): after a visible failure the user may click **Skip corrupted rows and retry**, which re-runs the export with `skipCorrupted: true` — `computeScopeExclusions` (`src/backups/scope.ts`) excludes the violating rows *and their dependents*, the job logs a `warn` with the list, and `manifest.excludedRows` records it. A restore blocked by the same rows (its pre-restore snapshot runs the same guard) offers **Remove corrupted data and restore**, which `purgeScopeViolations` deletes in one transaction (children first) after a destructive confirm. Never make either the default, and never skip silently."+2. Add `scope.ts` to the file's `paths:` frontmatter is unnecessary (already covered by `packages/jobs/src/backups/**`). Add one line under the module description mentioning `src/backups/scope.ts` holds the scope predicates/guard/exclusion/purge.+3. Spec: set `> Status: in-progress`; changelog `- 2026-09-01: Plan written (.ai/plans/…); implementation started.`++**Verify:**+```bash+grep -n "Skip corrupted rows and retry" .claude/rules/company-backup-restore.md+# Expected: one match+```++**Out of scope:** `docs/content/docs/platform/backups.mdx` (user-facing docs; leave unless the user asks).++---++## Task 11: Verification — typecheck, tests, lingui extract, DB-backed dry run++**Depends on:** all+**Files:**+- Create (scratch, not committed): `/private/tmp/claude-501/-Users-aashu-work-carbon/bb6cf834-ab54-4876-94f2-28d9a88f9535/scratchpad/scope-dryrun.ts`++**Steps:**+1. `pnpm --filter @carbon/jobs test` and `pnpm --filter @carbon/lib typecheck && pnpm --filter @carbon/jobs typecheck && pnpm --filter erp typecheck`.+2. `pnpm run lint` (Biome) — fix anything in touched files only.+3. DB dry run (does NOT persist): write the scratch script that imports `getCompanyTableCatalog, selectExportableTables` from `<worktree>/packages/jobs/src/backups/schema.ts` and `computeScopeExclusions, findExportScopeViolations, purgeScopeViolations` from `<worktree>/packages/jobs/src/backups/scope.ts`; builds a Kysely with `PostgresDialect` + `pg.Pool({ connectionString: "postgresql://postgres:postgres@localhost:59795/postgres" })`; for company `JqvzHghaGpe7vTMU1Y27jP` (group from `SELECT "companyGroupId" FROM company`):+ - prints `findExportScopeViolations` → expect the 4 edges (1/3/3/3);+ - prints `computeScopeExclusions(...).summary` → expect `pickMethod.itemId→item 1 violation`, and the three `jobOperationDependency` edges at 3 each (all `violation`, no `cascade` — neither table has dependents);+ - runs `db.transaction().execute(async trx => { const r = await purgeScopeViolations(trx, …); console.log(r); throw new Error("ROLLBACK"); })` and catches the error → expect `deleted` = `[{ jobOperationDependency: 3 }, { pickMethod: 1 }]` (order: children first) and no "left behind" error;+ - afterwards re-run `findExportScopeViolations` → expect still 4 (rolled back).+ Run with `cd <worktree> && pnpm --filter @carbon/jobs exec tsx <script>`. If `tsx` cannot import `schema.ts` (CJS interop error naming `@carbon/database`), STOP and report — do not flip any package's `type` field (see `.ai/lessons.md`).+4. Report to the user the manual QA to run in the browser (they own the clicks): (a) Backups → Create backup on **test comp** → fails → banner shows the new button → click → backup becomes Ready with `4 rows excluded` and the info popover lists the four edges; (b) Restore that backup → fails at snapshot → row shows **Remove corrupted data and restore** → confirm modal lists 4 rows → confirm → toast "Removed 4 rows — restoring" → progress modal → Keep/Revert. Note the jobs worker (`packages/dev` `up`) must be restarted to pick up the `@carbon/jobs` changes if it does not hot-reload.++**Verify:**+```bash+pnpm --filter @carbon/jobs test && pnpm --filter erp typecheck+# Expected: both exit 0+```++**Out of scope:** committing; deleting the local corrupted rows.++---++## Run log — 2026-09-01++- Tasks 1–11 done. `pnpm --filter @carbon/jobs test` → 38 files / 572 tests pass (8 new in `scope.test.ts`); `@carbon/jobs`, `@carbon/lib`, `erp` typecheck clean; Biome clean on touched files; `pnpm lingui:extract` + `lingui:clean` added the new msgids to all 13 locales.+- DB dry run (rolled back) against `JqvzHghaGpe7vTMU1Y27jP`: `computeScopeExclusions.summary` = pickMethod.itemId→item 1 + jobOperationDependency {dependsOnId, jobId, operationId} 3 each, all `violation`; `purgeScopeViolations.deleted` = `[jobOperationDependency 3, pickMethod 1]` (children first), zero violations inside the trx, all 4 still present after rollback.+- Not done here (user-owned): browser QA of both flows; restart of the jobs worker (`packages/dev` `up`) if it does not pick up `@carbon/jobs` changes. Not committed (user rule).diff --git a/.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.md b/.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.mdnew file mode 100644index 0000000000..b498934a18--- /dev/null+++ b/.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.md@@ -0,0 +1,221 @@+# Skip corrupted rows in backups; purge them before a restore++> Status: in-progress+> Author: Aashu (with Claude)+> Date: 2026-09-01+> Supersedes the "do not rebuild it" note in `.claude/rules/company-backup-restore.md` — see D1.++## TLDR++A company export refuses to run when any NOT-NULL foreign key in the company's+rows points outside the company's scope (the "corrupted rows" — in practice a+cross-tenant reference). That refusal is correct and stays the default. This spec+adds two explicit, user-driven recoveries: (1) after a **backup** fails for this+reason, a **Skip corrupted rows and retry** button re-runs the export excluding+exactly those rows (and anything that depends on them), records what was excluded+in the manifest, and discloses the count in the Backups list; (2) after a+**restore** fails for the same reason (its automatic pre-restore snapshot hits the+same rows), a **Remove corrupted data and restore** button — behind a destructive+confirmation — permanently deletes those rows from the live database and restarts+the restore. Demo templates are out of scope (their data is ours to fix).++## Problem Statement++Prod company `CG4Zvt9pMsvfgxLb2ijPPy` cannot back up:++```+Refusing to export CG4Zvt9pMsvfgxLb2ijPPy: 4 NOT-NULL reference(s) escape company scope,+so the backup could never be restored:+ pickMethod.itemId → item (1 row)+ jobOperationDependency.jobId → job (3 rows)+ jobOperationDependency.operationId → jobOperation (3 rows)+ jobOperationDependency.dependsOnId → jobOperation (3 rows)+```++`findExportScopeViolations` (`company-backup.ts`) throws before writing any table+file. The user has no way forward except asking support to delete rows by hand. The+same guard runs inside `buildCompanyBackup` for the pre-restore snapshot, so+**Restore** on that company also dies at step 1 (nothing is wiped — it just stops).++An earlier attempt (D3 of `2026-08-25-backup-durability.md`) made the export skip+*silently* and was reverted on 2026-08-26 because it muted the only cross-tenant+leak detector in the system. This spec keeps the detector loud: the export still+fails first, the user must act, and the artifact records what was dropped.++Research: N/A — internal recovery flow over existing guards; no external precedent+applies.++## Proposed Solution++### Design Decisions++| # | Decision | Choice | Rationale |+|---|----------|--------|-----------|+| D1 | Default behaviour | Unchanged: export refuses; restore snapshot refuses | Detector stays loud. Skipping is opt-in per failed run, never a standing setting. |+| D2 | Where "skip" is offered | Only on the **failed** export banner, as a retry | A checkbox on the Create form would make bypassing the guard routine. |+| D3 | Retry parameters | Reuse the failed run's `label` + `includeStorage` (stored in the failure marker) | One click; the user asked for *this* backup. |+| D4 | What is excluded | Direct violators **plus cascade**: any row whose NOT-NULL FK (refColumn `id`) targets an excluded row, transitively, in catalog (topological) order | Otherwise the backup fails the restore-side closure preflight and the user is stuck again. |+| D5 | Manifest | Additive optional `excludedRows` field; `BACKUP_VERSION` stays 1 | Old manifests read as "nothing excluded". No compatibility break. |+| D6 | Disclosure | Backups row gets a secondary line `N rows excluded` with a hover/expander listing `table.column → refTable (n)` | Copy rules D9 of prior spec: numbers not adjectives; exact names in a details surface. |+| D7 | Restore recovery | **Delete** the violating rows (with cascade, children first) from the live DB, then restart the restore | The pre-restore snapshot must be a faithful copy; deleting fixes the data instead of hiding it. |+| D8 | Confirmation for D7 | Destructive `Confirm` modal naming the exact count and tables; copy says "permanently" | Irreversible action. |+| D9 | Where the purge runs | Synchronously in the route action, one Kysely transaction, via a `.server.ts` helper | Row counts are tiny; the user gets an immediate result/toast; no new job. |+| D10 | Failure classification | New `ExportScopeViolationError` with structured `violations[]`; both jobs store `reason: "scope-violations"` + `violations` in their marker | UI shows the CTA only for this failure class, never for storage errors etc. |+| D11 | Code location | Scope SQL (`buildScopeFilter`, `findExportScopeViolations`, new exclusion/purge builders) moves to `packages/jobs/src/backups/scope.ts` (pure, kysely `sql` only); `company-backup.ts` re-exports | ERP route needs the purge through `@carbon/jobs/backups`, which must stay free of runtime `@carbon/*` imports (jobs AGENTS rule). |+| D12 | Demo template snapshot | Out of scope | Demo data is code we control; fix the dataset if it ever trips. |+| D13 | i18n | All new UI copy via `<Trans>` / `useLingui().t` | Repo rule; no English-only strings. |++## Data Model Changes++No database migration.++**Manifest** (`packages/jobs/src/backups/schema.ts`):++```ts+export type Manifest = {+ // …existing…+ /** Rows deliberately left out because a NOT-NULL FK escaped company scope+ * (or depended on such a row). Absent/empty = full export. */+ excludedRows?: Array<{+ table: string;+ column: string;+ refTable: string;+ rows: number;+ /** "violation" = the FK itself escaped scope; "cascade" = it pointed at an excluded row. */+ cause: "violation" | "cascade";+ }>;+};+```++**Marker metadata** (`externalIntegrationMapping.metadata`, JSON, no schema change):++- `company-export` marker on failure gains `reason?: "scope-violations"`,+ `violations?: Array<{table; column; refTable; rows}>`, `label`, `includeStorage`.+- `company-restore` marker on failure gains `reason?: "scope-violations"`,+ `violations?`, and already-needed `filePath`, `includeStorage` (so the purge+ action can restart the same restore).++**Event payload** (`packages/lib/src/events.ts`): `carbon/company-export` gains+`skipCorrupted?: boolean`. The `export-company` edge function passes it through+(boolean-validated).++## API / Service Changes++### `packages/jobs/src/backups/scope.ts` (new; pure)++- `buildScopeFilter(...)` — moved from `company-backup.ts` unchanged.+- `class ExportScopeViolationError extends Error { violations: ScopeViolation[] }`+ where `ScopeViolation = { table; column; refTable; rows }`.+- `findExportScopeViolations(...)` — moved; now returns `ScopeViolation[]`+ (callers format the message; `buildCompanyBackup` throws the typed error).+- `computeScopeExclusions(db, exportable, byName, companyId, companyGroupId)` →+ `{ predicates: Map<tableName, RawBuilder>, excludedIds: Map<tableName, unknown[]>, summary: Manifest["excludedRows"] }`.+ Walks `exportable` in catalog order. For table T, exclusion predicate =+ OR over its NOT-NULL FK edges (refColumn `id`, ref table exportable, not+ retained) of `fk NOT IN (SELECT id FROM parent WHERE parentScope OR companyId IS NULL)`+ (cause `violation`) and `fk IN (excludedIds[parent])` when non-empty (cause+ `cascade`). If T has an `id` column, `excludedIds[T] = SELECT id FROM T WHERE scope AND predicate`.+ Counts per edge come from one `count(*)` per edge (same shape as today's check).+- `purgeScopeViolations(db, exportable, byName, companyId, companyGroupId)` →+ `{ deleted: Array<{table; rows}> }`. Runs inside a transaction the caller+ opens: computes exclusions as above, then `DELETE FROM T WHERE scope AND predicate`+ in **reverse** catalog order (children first) so `NO ACTION` FKs never block;+ re-runs `findExportScopeViolations` at the end and throws if anything remains.++### `buildCompanyBackup` (`company-export.ts`)++New option `skipCorrupted?: boolean` (default false).+- `false`: as today, but throws `ExportScopeViolationError`.+- `true`: no throw; `computeScopeExclusions` once; each table dump becomes+ `WHERE scope AND NOT (predicate)` when the table has one; `manifest.excludedRows = summary`.+ Log at `warn` with the summary — this is the loud trail.++### `companyExportFunction`++Reads `skipCorrupted` from the event. On `ExportScopeViolationError` the failure+marker stores `reason`, `violations`, `label`, `includeStorage`.++### `companyRestoreFunction`++Snapshot step: `ExportScopeViolationError` → failure marker stores `reason`,+`violations`, `filePath`, `includeStorage`. Error message unchanged.++### ERP++- `backups.service.ts`: `CompanyExportRun` gains `reason`, `violations`, `label`,+ `includeStorage`; `getCompanyRestoreRuns` rows gain `reason`, `violations`,+ `filePath`, `includeStorage`. `CompanyBackupSummary` gains+ `excludedRows: Manifest["excludedRows"]` (from the manifest).+- `backups.server.ts`: `purgeCorruptedRows(companyId)` → catalog via+ `getCompanyTableCatalog(getDatabaseClient())`, `selectExportableTables`, then+ `db.transaction().execute(trx => purgeScopeViolations(trx, …))`; returns+ `{ deleted }`. Logs the result with company id.+- Route `x+/settings+/backups.tsx` actions:+ - `exportSkipCorrupted`: reads the failed marker; refuses (toast) if+ `reason !== "scope-violations"`; calls `exportCompanyBackup` with the stored+ `label`/`includeStorage` and `skipCorrupted: true`; returns `started: "export"`.+ - `purgeAndRestore` (`restoreRunId`): reads the failed run; refuses unless+ `reason === "scope-violations"`; `purgeCorruptedRows`; `finalizeCompanyRestore`+ on the failed run (drops its marker); `startCompanyRestore` with the stored+ `filePath`/`includeStorage`; returns `{ restoreRunId, deleted }`.+- Edge function `export-company`: forward `skipCorrupted === true`.++## UI Changes++All copy via Lingui.++**Failed-export banner** (Backups list): when `exportRun.reason === "scope-violations"`+add a primary **Skip corrupted rows and retry** button beside Dismiss, with a one-line+explainer: "The backup will leave out {n} rows whose links point outside this+company. They are listed in the backup's details." Clicking it submits+`exportSkipCorrupted` and drops the optimistic "Creating backup…" row as today.++**Backups list row**: when `file.excludedRows?.length`, second line appends+`· {total} rows excluded`; hovering/clicking a small info affordance shows+`table.column → refTable ({n}, violation|cascade)` lines.++**Progress modal (export, failed)**: replace the "please contact Carbon support"+sentence with the error text (already shown) — no new button here; the banner owns+the action.++**Restore review row (failed)**: when `run.reason === "scope-violations"` show+**Remove corrupted data and restore** (destructive variant) next to Dismiss. Opens+`Confirm` (destructive): title "Permanently delete {n} rows?"; body lists the+tables and counts and says the rows will be deleted from this company, cannot be+recovered, and the restore will then start. Confirm → `purgeAndRestore` →+toast "Removed {n} rows" → progress modal opens for the new restore run.++## Acceptance Criteria++- [ ] On local DB (both companies carry 1 `pickMethod` + 3 `jobOperationDependency` cross-company rows), Create backup fails with the existing message and the banner shows **Skip corrupted rows and retry**.+- [ ] Clicking it produces a `ready` backup; its manifest `excludedRows` totals 4 rows across `pickMethod` and `jobOperationDependency` (jobOperationDependency counted once per row, not per edge); the list row reads `4 rows excluded` and the details list the four edges.+- [ ] Restoring that skipped backup into a company **without** corrupted rows passes `assertReferentiallyClosed` and completes.+- [ ] A failed export for any other reason (e.g. missing companyGroup) shows Dismiss only.+- [ ] Restore on a corrupted company fails at the snapshot; the failed row shows **Remove corrupted data and restore**; other restore failures do not.+- [ ] Confirming deletes exactly the 4 rows (and any dependents) — `findExportScopeViolations` returns empty afterwards — and a new restore run starts and completes; the deleted counts appear in the toast and server log.+- [ ] Cancelling the confirm deletes nothing.+- [ ] Unit tests: `computeScopeExclusions` cascade (child of excluded parent is excluded; table without `id` is excluded by predicate); `purgeScopeViolations` order (children before parents); manifest without `excludedRows` still validates.+- [ ] `pnpm --filter @carbon/jobs test`, `pnpm exec turbo run typecheck --filter=@carbon/jobs --filter=erp`, `pnpm lingui:extract` all pass; `.claude/rules/company-backup-restore.md` updated to describe the opt-in skip and purge.++## Risks++| Risk | Severity | Mitigation |+|------|----------|------------|+| Purge deletes more than the user expects via cascade | Med | Confirm modal lists every table + count computed at click time; transaction; server log. |+| Skip becomes the habitual path and leaks go unnoticed | Med | Only reachable after a visible failure; `warn` log with violations on every skipped export; manifest records it. |+| `NOT IN` semantics with NULL ids | Low | Every predicate guards `fk IS NOT NULL`; `id` is a PK. |+| Concurrent restore/export while purging | Low | Existing per-company concurrency keys; purge is one short transaction. |++## Open Questions++> All resolved with the user on 2026-09-01 before writing.++- [x] Retry parameters — **Answer:** reuse the failed run's label + include setting; no standing checkbox.+- [x] Cascade exclusion to dependents — **Answer:** yes, and count them in the manifest.+- [x] Disclosure in the list — **Answer:** `N rows excluded` line plus details of `table.column → refTable`.+- [x] Pre-restore snapshot hitting the same rows — **Answer:** don't skip in the snapshot; offer "Remove corrupted data permanently" with a confirmation modal, then continue the restore. Demo-template snapshot out of scope.++## Changelog++- 2026-09-01: Plan written (`.ai/plans/2026-09-01-skip-corrupted-rows-in-backups.md`); implementation started.+- 2026-09-01: Created after interview; supersedes the reverted D3 of the 2026-08-25 backup-durability spec with an explicit, user-driven variant.diff --git a/.claude/rules/company-backup-restore.md b/.claude/rules/company-backup-restore.mdindex 6ee3b52fe1..6dfa21ae64 100644--- a/.claude/rules/company-backup-restore.md+++ b/.claude/rules/company-backup-restore.md@@ -146,7 +146,9 @@ postings simply has no `journalLine`/`costLedger` rows; that is data-absence, nocoverage gap. With `includeStorage: "all"`, `buildCompanyBackup` records thein-scope asset paths in `manifest.storage` and returns them; the job then`copyAssetsToBackup` them server-side into the backup's `assets/` folder.-- **Out-of-scope rows are FATAL, deliberately.** `findExportScopeViolations` counts+- **Out-of-scope rows are FATAL, deliberately.** `findExportScopeViolations`+ (`src/backups/scope.ts`, which also holds `buildScopeFilter` and the exclusion/purge+ builders — pure kysely `sql`, re-exported by `schema.ts` and `company-backup.ts`) countsrows whose NOT-NULL FK points outside the company's scope, and a non-zero countthrows before any table file is written, listing every offending edge.@@ -156,8 +158,28 @@ in-scope asset paths in `manifest.storage` and returns them; the job thenat all. An implementation that excluded those rows and finished the backup wasbuilt and REVERTED on 2026-08-26 for exactly that reason — it made the onlydetector we have go quiet, in exchange for a nicer error on a company whose data- was already wrong. Do not rebuild it. If the customer cost of a blocked export- needs addressing, address it by finding the write path, not by lowering the guard.+ was already wrong.++ The ONE sanctioned bypass (spec `.ai/specs/2026-09-01-skip-corrupted-rows-in-backups.md`):+ after a VISIBLE failure the user may click **Skip corrupted rows and retry**, which+ re-runs the export with `skipCorrupted: true` — `computeScopeExclusions`+ (`src/backups/scope.ts`) excludes the violating rows *and their dependents*, the job+ logs a `warn` with the list, and `manifest.excludedRows` records it (the Backups row+ shows `N rows excluded`). A restore blocked by the same rows (its pre-restore snapshot+ runs the same guard) offers **Remove corrupted data and restore**, which+ `purgeScopeViolations` deletes in one transaction (children first) behind a destructive+ confirm, then restarts the restore. Both jobs classify the failure with+ `ExportScopeViolationError` → marker `reason: "scope-violations"`; the UI offers the+ recovery ONLY for that reason. Never make either the default, and never skip silently.++ That error is rethrown as a **`NonRetriableError`** in both jobs. The guard's verdict+ is deterministic, so Inngest's `retries: 1` would only flip the marker back to+ `running` and fail again ~10s later — resurrecting the failure banner underneath a+ user who has already clicked Skip. Counts are reported from `rowsByTable` /+ `perTable` (DISTINCT rows per table), never by summing `violations` /+ `excludedRows`: those carry one entry per FK EDGE, so a row escaping scope through+ three of its foreign keys would be counted three times — which once put "10 rows" on+ the confirm button of a delete that removed 4.The other hard export failure is a company with no `companyGroupId`.- **No compatibility verdict is stored with the backup.** One wasdiff --git a/apps/erp/app/modules/settings/backups.server.ts b/apps/erp/app/modules/settings/backups.server.tsindex c9c9f5c4b0..e6dc640a98 100644--- a/apps/erp/app/modules/settings/backups.server.ts+++ b/apps/erp/app/modules/settings/backups.server.ts@@ -4,7 +4,9 @@ import { trigger } from "@carbon/jobs";import {compatibilityStatus,getCompanyTableCatalog,- reportBackupCompatibility+ purgeScopeViolations,+ reportBackupCompatibility,+ selectExportableTables} from "@carbon/jobs/backups";import { getLogger } from "@carbon/logger";import type { SupabaseClient } from "@supabase/supabase-js";@@ -121,3 +123,43 @@ export async function dismissCompanyExportFailure(.eq("integration", "company-export").eq("companyId", companyId);}++/**+ * Permanently delete this company's rows whose NOT-NULL FK escapes company scope+ * (and rows depending on them) — the data the export guard refuses on, and the+ * reason a restore's pre-restore snapshot fails on a company with them. Only+ * ever called from the user-confirmed "Remove corrupted data and restore"+ * action. One transaction; children first (see `purgeScopeViolations`).+ */+export async function purgeCorruptedRows(+ companyId: string+): Promise<{ deleted: Array<{ table: string; rows: number }> }> {+ const db = getDatabaseClient();+ const serviceRole = getCarbonServiceRole();+ const company = await serviceRole+ .from("company")+ .select("companyGroupId")+ .eq("id", companyId)+ .single();+ if (company.error) throw new Error(company.error.message);++ const catalog = await getCompanyTableCatalog(db);+ const { exportable } = selectExportableTables(catalog);+ const byName = new Map(catalog.tables.map((t) => [t.name, t]));+ const result = await db+ .transaction()+ .execute((trx) =>+ purgeScopeViolations(+ trx,+ exportable,+ byName,+ companyId,+ company.data.companyGroupId ?? null+ )+ );+ log.warn("Backups: purged out-of-scope rows before restore", {+ companyId,+ deleted: result.deleted+ });+ return result;+}diff --git a/apps/erp/app/modules/settings/backups.service.ts b/apps/erp/app/modules/settings/backups.service.tsindex a917f2a0fa..0d296af91e 100644--- a/apps/erp/app/modules/settings/backups.service.ts+++ b/apps/erp/app/modules/settings/backups.service.ts@@ -17,6 +17,31 @@ import type { SupabaseClient } from "@supabase/supabase-js";// `backup*Path` helpers in packages/jobs/.../company-backup.ts.const SNAPSHOT_PREFIX = "_pre-restore-";+/**+ * One FK edge whose rows escape company scope, as the export/restore jobs record+ * it in their failure marker. Typed here rather than imported from `@carbon/jobs`+ * — the app must not pull job internals (and Node `Buffer` with them) into its+ * bundle.+ */+export type ScopeViolationSummary = {+ table: string;+ column: string;+ refTable: string;+ rows: number;+};++/** DISTINCT rows per table. The ONLY shape a user-facing total may be summed from. */+export type RowsByTable = { table: string; rows: number };++/**+ * How many ROWS a skip or purge affects. `violations`/`excludedRows` are per FK+ * EDGE — a row escaping scope through three of its foreign keys appears three+ * times there — so totals must come from the per-table distinct counts.+ */+export function totalScopeRows(rowsByTable: RowsByTable[]): number {+ return rowsByTable.reduce((sum, t) => sum + t.rows, 0);+}+/** Supabase storage caps a `list` call; page until a short page comes back. */const BACKUP_LIST_PAGE_SIZE = 100;const BACKUP_LIST_MAX_PAGES = 50;@@ -55,6 +80,8 @@ export async function exportCompanyBackup(userId: string;label?: string;includeStorage?: "none" | "all";+ /** Opt-in recovery: leave out rows whose links escape company scope. */+ skipCorrupted?: boolean;}) {return client.functions.invoke("export-company", { body: args });@@ -87,6 +114,10 @@ export type CompanyBackupSummary = {status: BackupCompatibilityStatus;findings: CompatibilityFinding[];} | null;+ /** Per-edge breakdown of what a `skipCorrupted` export left out; `[]` for a full export. */+ excludedRows: NonNullable<Manifest["excludedRows"]>;+ /** DISTINCT excluded rows per table — sum this, never `excludedRows`. */+ excludedRowsByTable: RowsByTable[];};/**@@ -139,6 +170,8 @@ export async function listCompanyBackupFolders(rows: 0,sizeBytes: 0,compatibility: null,+ excludedRows: [],+ excludedRowsByTable: [],manifest: null};const mf = await client.storage@@ -157,6 +190,8 @@ export async function listCompanyBackupFolders(summary.sizeBytes = (m.storage ?? []).filter((x) => x.included).reduce((sum, x) => sum + (x.size ?? 0), 0);+ summary.excludedRows = m.excludedRows ?? [];+ summary.excludedRowsByTable = m.excludedRowsByTable ?? [];summary.manifest = { ...m, tables: m.tables ?? [] };} catch {// Manifest present but unreadable — treat as a partial/aborted@@ -211,6 +246,11 @@ export async function getCompanyRestoreRuns(error?: string | null;startedAt?: string;progress?: { phase: string; done: number; total: number };+ filePath?: string;+ includeStorage?: "none" | "all";+ reason?: "scope-violations";+ violations?: ScopeViolationSummary[];+ violationRowsByTable?: RowsByTable[];};return {restoreRunId: meta.restoreRunId ?? m.entityId,@@ -219,7 +259,14 @@ export async function getCompanyRestoreRuns(label: meta.label ?? null,error: meta.error ?? null,progress: meta.progress ?? null,- startedAt: meta.startedAt ?? m.createdAt+ startedAt: meta.startedAt ?? m.createdAt,+ // Why it failed + what it was restoring, so the recovery action can+ // restart the same restore once the live data is fixed.+ reason: meta.reason ?? null,+ violations: meta.violations ?? [],+ violationRowsByTable: meta.violationRowsByTable ?? [],+ filePath: meta.filePath ?? null,+ includeStorage: meta.includeStorage ?? null};});@@ -264,6 +311,15 @@ export type CompanyExportRun = {progress: { phase: string; done: number; total: number } | null;startedAt: string | null;error: string | null;+ /** "scope-violations" = the closure guard refused; the only failure with a skip recovery. */+ reason: "scope-violations" | null;+ /** Per-edge breakdown for the details popover. */+ violations: ScopeViolationSummary[];+ /** DISTINCT rows per table — sum this for anything a user reads. */+ violationRowsByTable: RowsByTable[];+ /** What the failed run asked for, so the retry can reuse it. */+ label: string | null;+ includeStorage: "none" | "all" | null;};/**@@ -292,13 +348,23 @@ export async function getCompanyExportRun(startedAt?: string;progress?: { phase: string; done: number; total: number };error?: string;+ reason?: "scope-violations";+ violations?: ScopeViolationSummary[];+ violationRowsByTable?: RowsByTable[];+ label?: string | null;+ includeStorage?: "none" | "all";};return {data: {status: meta.status ?? "running",progress: meta.progress ?? null,startedAt: meta.startedAt ?? marker.data.createdAt,- error: meta.error ?? null+ error: meta.error ?? null,+ reason: meta.reason ?? null,+ violations: meta.violations ?? [],+ violationRowsByTable: meta.violationRowsByTable ?? [],+ label: meta.label ?? null,+ includeStorage: meta.includeStorage ?? null},error: null};diff --git a/apps/erp/app/modules/settings/ui/Backups/BackupProgressModal.tsx b/apps/erp/app/modules/settings/ui/Backups/BackupProgressModal.tsxindex 4ed6107225..ee90a8eb17 100644--- a/apps/erp/app/modules/settings/ui/Backups/BackupProgressModal.tsx+++ b/apps/erp/app/modules/settings/ui/Backups/BackupProgressModal.tsx@@ -8,6 +8,7 @@ import {ModalHeader,ModalTitle} from "@carbon/react";+import { Trans } from "@lingui/react/macro";import { useEffect, useState } from "react";import { LuCheck, LuLoaderCircle, LuTriangleAlert } from "react-icons/lu";import { useFetcher, useRevalidator } from "react-router";@@ -288,12 +289,11 @@ export function JobProgressModal({</div>) : failed ? (<div className="flex flex-col items-center gap-3 py-4">- <LuTriangleAlert className="h-8 w-8 text-destructive-foreground duration-300 animate-in fade-in zoom-in-75 motion-reduce:animate-none" />+ <LuTriangleAlert className="h-8 w-8 text-destructive duration-300 animate-in fade-in zoom-in-75 motion-reduce:animate-none" />{isExport ? (<><p className="text-center text-sm text-muted-foreground">- The system created an invalid backup — please contact Carbon- support.+ <Trans>This backup could not be completed.</Trans></p>{error ? (<p className="max-w-full break-words text-center text-xs text-muted-foreground">@@ -304,12 +304,28 @@ export function JobProgressModal({) : (<><p className="text-center text-sm text-muted-foreground">- {error ?? "Something went wrong."}+ {isRevert ? (+ <Trans>This revert could not be completed.</Trans>+ ) : (+ <Trans>This restore could not be completed.</Trans>+ )}</p>+ {error ? (+ <details className="max-w-full text-xs text-muted-foreground">+ <summary className="cursor-pointer text-center">+ <Trans>Technical details</Trans>+ </summary>+ <pre className="mt-1 whitespace-pre-wrap break-words font-mono text-[11px]">+ {error}+ </pre>+ </details>+ ) : null}{!isRevert && (<p className="text-center text-xs text-muted-foreground">- Your data was not changed — the restore stops before- touching anything if it can't complete.+ <Trans>+ Your data was not changed — the restore stops before+ touching anything if it can't complete.+ </Trans></p>)}</>diff --git a/apps/erp/app/modules/settings/ui/Backups/ExcludedRowsInfo.tsx b/apps/erp/app/modules/settings/ui/Backups/ExcludedRowsInfo.tsxnew file mode 100644index 0000000000..70ea2dec96--- /dev/null+++ b/apps/erp/app/modules/settings/ui/Backups/ExcludedRowsInfo.tsx@@ -0,0 +1,95 @@+import { Popover, PopoverContent, PopoverTrigger } from "@carbon/react";+import { Trans, useLingui } from "@lingui/react/macro";+import type { ReactNode } from "react";+import { LuInfo } from "react-icons/lu";++export type ExcludedRow = {+ table: string;+ column: string;+ refTable: string;+ rows: number;+ /** Absent on a failure marker's violations (all are direct violations). */+ cause?: "violation" | "cascade";+};++// "i" popover listing the exact table.column → refTable edges behind a+// "rows excluded" line or a failed-backup banner, so support can act on them.+// Product words live in the row's own line; exact names and the raw error live+// here (copy rule D9 of the backup spec).+export function ExcludedRowsInfo({+ excludedRows,+ title,+ description,+ technical+}: {+ excludedRows: ExcludedRow[];+ title?: ReactNode;+ description?: ReactNode;+ /** The job's raw error text, for support — shown under the rows. */+ technical?: string | null;+}) {+ const { t } = useLingui();+ return (+ <Popover>+ <PopoverTrigger asChild>+ <button+ type="button"+ aria-label={t`Details`}+ className="inline-flex align-middle text-muted-foreground hover:text-foreground"+ >+ <LuInfo className="h-3.5 w-3.5" />+ </button>+ </PopoverTrigger>+ <PopoverContent+ align="start"+ className="w-80 max-h-[60dvh] overflow-y-auto"+ >+ <p className="text-sm font-medium">+ {title ?? <Trans>Rows left out of this backup</Trans>}+ </p>+ <p className="text-xs text-muted-foreground mt-1 mb-3">+ {description ?? (+ <Trans>+ These rows link to data outside this company, so they could never+ be restored. Everything else was backed up.+ </Trans>+ )}+ </p>+ <div className="flex flex-col gap-1.5">+ {excludedRows.map((e) => (+ <div+ key={`${e.table}.${e.column}.${e.cause ?? ""}`}+ className="flex items-start justify-between gap-3 text-xs"+ >+ <div className="flex flex-col min-w-0">+ <span className="font-mono text-foreground break-all">+ {e.table}.{e.column} → {e.refTable}+ </span>+ {e.cause ? (+ <span className="text-muted-foreground">+ {e.cause === "violation"+ ? t`link outside company`+ : t`depends on an excluded row`}+ </span>+ ) : null}+ </div>+ <span className="tabular-nums text-muted-foreground shrink-0">+ {e.rows.toLocaleString()}+ </span>+ </div>+ ))}+ </div>+ {technical ? (+ <details className="mt-3 border-t pt-2 text-xs">+ <summary className="cursor-pointer text-muted-foreground">+ <Trans>Technical details</Trans>+ </summary>+ <pre className="mt-1 whitespace-pre-wrap break-words font-mono text-[11px] text-muted-foreground">+ {technical}+ </pre>+ </details>+ ) : null}+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/erp/app/modules/settings/ui/Backups/RestoreReviewRow.tsx b/apps/erp/app/modules/settings/ui/Backups/RestoreReviewRow.tsxindex edad828012..38f1e10f23 100644--- a/apps/erp/app/modules/settings/ui/Backups/RestoreReviewRow.tsx+++ b/apps/erp/app/modules/settings/ui/Backups/RestoreReviewRow.tsx@@ -1,6 +1,9 @@import { Button, HStack, VStack } from "@carbon/react";+import { Plural, Trans } from "@lingui/react/macro";import { LuLoaderCircle } from "react-icons/lu";import { DateTime } from "~/components";+import { totalScopeRows } from "../../backups.service";+import { ExcludedRowsInfo } from "./ExcludedRowsInfo";export type RestoreRun = {restoreRunId: string;@@ -9,6 +12,18 @@ export type RestoreRun = {label: string | null;error: string | null;startedAt: string;+ /** "scope-violations" = the pre-restore snapshot refused because the LIVE+ * data has rows escaping company scope — the one failure with a recovery. */+ reason: "scope-violations" | null;+ /** Per FK edge — the breakdown shown in the popover. Never summed. */+ violations: Array<{+ table: string;+ column: string;+ refTable: string;+ rows: number;+ }>;+ /** DISTINCT rows per table — the basis for any count a person reads. */+ violationRowsByTable: Array<{ table: string; rows: number }>;};// One row in the "Restored — review" card, branching on the run's status.@@ -16,48 +31,87 @@ export function RestoreReviewRow({run,onKeep,onRevert,- onDismiss+ onDismiss,+ onPurgeAndRestore}: {run: RestoreRun;onKeep: () => void;onRevert: () => void;onDismiss: () => void;+ /** Failed for scope violations: delete those rows (confirmed by the caller) and restart. */+ onPurgeAndRestore: () => void;}) {const busy = run.status === "running" || run.status === "reverting";return (<HStack className="w-full justify-between border rounded-lg p-3"><VStack spacing={0} className="min-w-0"><span className="text-sm font-medium truncate">- {run.label ?? "Restore"}+ {run.label ?? <Trans>Restore</Trans>}</span>{run.status === "failed" ? (- <span className="text-xs text-destructive-foreground">- Failed — {run.error ?? "unknown error"}+ // Product words on the line; the exact tables and the job's raw error+ // live in the "i" popover — same treatment as the failed-backup banner.+ <span className="break-words text-xs text-muted-foreground">+ {run.reason === "scope-violations" ? (+ <Plural+ value={totalScopeRows(run.violationRowsByTable)}+ one="# row links to data outside this company, so a safety copy of your current data can't be made."+ other="# rows link to data outside this company, so a safety copy of your current data can't be made."+ />+ ) : (+ <Trans>This restore could not be completed.</Trans>+ )}{" "}+ <ExcludedRowsInfo+ excludedRows={run.violations}+ title={<Trans>Why this restore failed</Trans>}+ description={+ run.reason === "scope-violations" ? (+ <Trans>+ Each line is a link from this company's data to a row it+ doesn't own. Removing those rows lets the restore run.+ </Trans>+ ) : (+ <Trans>The restore job reported this error.</Trans>+ )+ }+ technical={run.error}+ /></span>) : (<span className="text-xs text-muted-foreground"><DateTime value={run.startedAt} variant="absolute" /> ·{" "}- {run.status === "running"- ? "restoring…"- : run.status === "reverting"- ? "reverting…"- : `${run.rows.toLocaleString()} rows`}+ {run.status === "running" ? (+ <Trans>restoring…</Trans>+ ) : run.status === "reverting" ? (+ <Trans>reverting…</Trans>+ ) : (+ <Trans>{run.rows.toLocaleString()} rows</Trans>+ )}</span>)}</VStack><HStack spacing={2} className="shrink-0">{run.status === "ready" && (<>- <Button onClick={onKeep}>Keep</Button>+ <Button onClick={onKeep}>+ <Trans>Keep</Trans>+ </Button><Button variant="destructive" onClick={onRevert}>- Revert+ <Trans>Revert</Trans></Button></>)}{run.status === "failed" && (- <Button variant="secondary" onClick={onDismiss}>- Dismiss- </Button>+ <>+ {run.reason === "scope-violations" && (+ <Button variant="destructive" onClick={onPurgeAndRestore}>+ <Trans>Remove corrupted data and restore</Trans>+ </Button>+ )}+ <Button variant="secondary" onClick={onDismiss}>+ <Trans>Dismiss</Trans>+ </Button>+ </>)}{busy && (<LuLoaderCircle className="h-4 w-4 animate-spin text-muted-foreground" />diff --git a/apps/erp/app/modules/settings/ui/Backups/index.ts b/apps/erp/app/modules/settings/ui/Backups/index.tsindex 1093d82e46..92a6c6af12 100644--- a/apps/erp/app/modules/settings/ui/Backups/index.ts+++ b/apps/erp/app/modules/settings/ui/Backups/index.ts@@ -2,6 +2,7 @@ export * from "./BackupChoices";export * from "./BackupContentsInfo";export * from "./BackupProgressModal";export * from "./BackupSourcePicker";+export * from "./ExcludedRowsInfo";export * from "./format";export * from "./RestoreDisclosure";export * from "./RestoreReviewRow";diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.jsonindex fef9ec353d..15a716430a 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json@@ -1,5 +1,5 @@{- "generated": "2026-09-01T00:03:45.799Z",+ "generated": "2026-09-01T10:00:04.633Z","totalTools": 1488,"modules": 15,"tools": [diff --git a/apps/erp/app/routes/x+/settings+/backups.tsx b/apps/erp/app/routes/x+/settings+/backups.tsxindex 04941066ab..014a50d07e 100644--- a/apps/erp/app/routes/x+/settings+/backups.tsx+++ b/apps/erp/app/routes/x+/settings+/backups.tsx@@ -6,6 +6,7 @@ import {Hidden,Input,Submit,+ useControlField,ValidatedForm,validationError,validator@@ -21,6 +22,13 @@ import {CardTitle,Heading,HStack,+ Modal,+ ModalBody,+ ModalContent,+ ModalFooter,+ ModalHeader,+ ModalOverlay,+ ModalTitle,ScrollArea,toast,useDisclosure,@@ -28,7 +36,7 @@ import {} from "@carbon/react";import { convertKbToString } from "@carbon/utils";import { msg } from "@lingui/core/macro";-import { Trans, useLingui } from "@lingui/react/macro";+import { Plural, Trans, useLingui } from "@lingui/react/macro";import { useCallback, useEffect, useRef, useState } from "react";import { LuLoaderCircle } from "react-icons/lu";import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";@@ -48,12 +56,14 @@ import {deleteCompanyBackup,exportCompanyBackup,getCompanyExportRun,- getCompanyRestoreRuns+ getCompanyRestoreRuns,+ totalScopeRows} from "~/modules/settings";import {dismissCompanyExportFailure,finalizeCompanyRestore,getCompanyBackups,+ purgeCorruptedRows,revertCompanyRestore,startCompanyRestore} from "~/modules/settings/backups.server";@@ -63,6 +73,7 @@ import {BackupSourcePicker,backupStatusLabel,backupStatusVariant,+ ExcludedRowsInfo,formatBackupDate,formatBackupName,IncludeStorageChoice,@@ -87,6 +98,31 @@ const exportValidator = z.object({includeStorage: z.enum(["none", "all"])});+const EXPORT_FORM_ID = "export-backup-form";++/**+ * The Create-backup form's live values, read through the form store rather than+ * off the DOM. The skip-and-retry button lives outside that form (it is in the+ * failure banner) but must submit what the person currently has typed.+ */+function useExportChoices(): { label: string; includeStorage: "none" | "all" } {+ const [label] = useControlField<string>("label", EXPORT_FORM_ID);+ const [includeStorage] = useControlField<"none" | "all">(+ "includeStorage",+ EXPORT_FORM_ID+ );+ return { label: label ?? "", includeStorage: includeStorage ?? "none" };+}++// The skip retry posts the Create form's CURRENT values (label + include) so the+// person gets the backup they just described, falling back to what the failed+// run asked for when the form is untouched.+const exportSkipValidator = z.object({+ intent: z.literal("exportSkipCorrupted"),+ label: z.string().optional(),+ includeStorage: z.enum(["none", "all"]).optional()+});+// `source` is `backup:<path>` — one of this company's own exports (or an// uploaded copy of one). Restore is always in-place into the current company.// `includeStorage` picks whether uploaded files (3D models, docs) come along.@@ -96,6 +132,22 @@ const restoreValidator = z.object({includeStorage: z.enum(["none", "all"])});+/**+ * Drop a leftover "failed" export marker before starting a new run. The loader+ * revalidates the instant the action returns, and a still-failed marker makes+ * the page stop tracking the run it just began. A RUNNING marker is never+ * touched — that would orphan a live job's progress.+ */+async function clearStaleExportFailure(+ client: Parameters<typeof getCompanyExportRun>[0],+ companyId: string+) {+ const previous = await getCompanyExportRun(client, companyId);+ if (previous.data?.status === "failed") {+ await dismissCompanyExportFailure(companyId);+ }+}+function requireBackupAccess(email: string | null) {// Internal-only in real deployments while multi-tenant hardening is pending;// open to everyone on a local dev stack.@@ -143,6 +195,7 @@ export async function action({ request }: ActionFunctionArgs) {if (validation.error) return validationError(validation.error);const { label, includeStorage } = validation.data;+ await clearStaleExportFailure(client, companyId);const result = await exportCompanyBackup(client, {companyId,userId,@@ -244,6 +297,123 @@ export async function action({ request }: ActionFunctionArgs) {return { success: true, message: "Dismissed" };}+ // The ONE sanctioned bypass of the export's closure guard: re-run the+ // failed backup (same label + include setting) leaving out the rows whose+ // links escape this company. Only offered for that failure class — the+ // marker's `reason` is what the job wrote, not something the client sends.+ case "exportSkipCorrupted": {+ const run = await getCompanyExportRun(client, companyId);+ if (+ run.data?.status !== "failed" ||+ run.data.reason !== "scope-violations"+ ) {+ return {+ success: false,+ message: "There is no failed backup to retry"+ };+ }+ const validation =+ await validator(exportSkipValidator).validate(formData);+ if (validation.error) return validationError(validation.error);+ // The banner posts the Create form's current values, and that form is+ // seeded from this same failed run — so these fallbacks only matter if the+ // fields are missing entirely.+ const label = validation.data.label || run.data.label || undefined;+ const includeStorage =+ validation.data.includeStorage ?? run.data.includeStorage ?? "none";+ await clearStaleExportFailure(client, companyId);+ const result = await exportCompanyBackup(client, {+ companyId,+ userId,+ label,+ includeStorage,+ skipCorrupted: true+ });+ if (result.error)+ return {+ success: false,+ message: await getEdgeFunctionErrorMessage(+ result.error,+ "Failed to start backup"+ )+ };+ return {+ success: true,+ message: "Backup started",+ started: "export" as const+ };+ }++ // A restore that died at its pre-restore snapshot because the LIVE data has+ // rows escaping company scope: permanently delete those rows (user-confirmed+ // in the UI), drop the failed run, and start the same restore again.+ case "purgeAndRestore": {+ const restoreRunId = String(formData.get("restoreRunId") ?? "");+ const runs = await getCompanyRestoreRuns(client, companyId);+ const failed = runs.data?.find((r) => r.restoreRunId === restoreRunId);+ if (+ !failed ||+ failed.status !== "failed" ||+ failed.reason !== "scope-violations" ||+ !failed.filePath+ ) {+ return {+ success: false,+ message: "This restore can't be retried this way"+ };+ }+ if (runs.data?.some((r) => r.status !== "failed")) {+ return {+ success: false,+ message: "Finish your current restore — keep or revert it — first."+ };+ }+ // The delete commits on its own; the restore is enqueued after. Those are+ // two steps and cannot be one transaction (the second is a job trigger),+ // so the failure messages must tell the user WHICH half happened —+ // "couldn't remove the rows" and "removed the rows but the restore didn't+ // start" call for opposite next actions, and only the second is lossy.+ let deleted: Array<{ table: string; rows: number }>;+ try {+ ({ deleted } = await purgeCorruptedRows(companyId));+ } catch (err) {+ return {+ success: false,+ message:+ err instanceof Error+ ? err.message+ : "Failed to remove corrupted data — nothing was deleted"+ };+ }++ const rows = deleted.reduce((sum, d) => sum + d.rows, 0);+ try {+ await finalizeCompanyRestore({ companyId, restoreRunId });+ const newRunId = await startCompanyRestore({+ companyId,+ userId,+ filePath: failed.filePath,+ includeStorage: failed.includeStorage ?? "all",+ label: failed.label ?? failed.filePath+ });+ return {+ success: true,+ message: `Removed ${rows} row${rows === 1 ? "" : "s"} — restoring`,+ restoreRunId: newRunId,+ deleted+ };+ } catch (err) {+ return {+ success: false,+ message:+ `Removed ${rows} row${rows === 1 ? "" : "s"}, but the restore did not start` ++ ` — start it again from the list. (${+ err instanceof Error ? err.message : "unknown error"+ })`+ };+ }+ }+case "delete": {const name = String(formData.get("name") ?? "");if (!name || name.includes("/"))@@ -271,6 +441,7 @@ export default function BackupsRoute() {message?: string;restoreRunId?: string;started?: "export";+ deleted?: Array<{ table: string; rows: number }>;}>();const [active, setActive] = useState<{runId?: string;@@ -282,6 +453,11 @@ export default function BackupsRoute() {const exportRunning = exportRun?.status === "running";const exportFailed = exportRun?.status === "failed";+ // The failed marker visible right now — the one a Create/Skip click replaces.+ const supersededFailureRef = useRef<string | null>(null);+ supersededFailureRef.current = exportFailed+ ? (exportRun?.startedAt ?? null)+ : null;// The in-progress export we're tracking this session. Set the instant the user// clicks "Create backup" (optimistic — before the job writes its first marker,@@ -292,13 +468,22 @@ export default function BackupsRoute() {const [runningExport, setRunningExport] = useState<{startedAt: string | null;baseline: Set<string>;+ /**+ * The `startedAt` of the failed marker this run REPLACED, if any. The action+ * clears that marker before starting, but a revalidation already in flight+ * can still deliver it — and it is stale precisely because it is that exact+ * row, which is a comparison of identity rather than of two clocks (the+ * marker's is the server's, ours is the browser's; skew must not decide it).+ */+ supersedes: string | null;} | null>(null);- const readyBackupNames = useCallback(- () =>- new Set(- filesRef.current.filter((f) => f.status === "ready").map((f) => f.name)- ),+ // Baseline = EVERY folder already listed, ready or pending. A failed export+ // leaves a pending folder behind; if the baseline held only ready names, that+ // same folder later reading "ready" would look like the new run finishing and+ // the spinner row would vanish seconds after the retry started.+ const knownBackupNames = useCallback(+ () => new Set(filesRef.current.map((f) => f.name)),[]);@@ -313,24 +498,34 @@ export default function BackupsRoute() {// Adopt a run this session didn't start (page reload, another tab).useEffect(() => {if (exportRunning && !runningExport) {+ // Adopted, not started here — there is no superseded marker to ignore.setRunningExport({startedAt: exportRun?.startedAt ?? null,- baseline: readyBackupNames()+ baseline: knownBackupNames(),+ supersedes: null});}- }, [exportRunning, runningExport, exportRun, readyBackupNames]);+ }, [exportRunning, runningExport, exportRun, knownBackupNames]);// Stop tracking once the run fails, or completes and isn't being shown in the// detail modal (the modal keeps `completed` true until the user closes it).+ //+ // A "failed" marker only ends tracking when it belongs to THIS run — see+ // `supersedes` above for how the superseded one is recognised.+ const failedIsStale =+ exportFailed &&+ runningExport?.supersedes != null &&+ exportRun?.startedAt === runningExport.supersedes;useEffect(() => {const exportModalOpen = active?.mode === "export";if (runningExport &&- (exportFailed || (exportCompleted && !exportModalOpen))+ ((exportFailed && !failedIsStale) ||+ (exportCompleted && !exportModalOpen))) {setRunningExport(null);}- }, [runningExport, exportCompleted, exportFailed, active]);+ }, [runningExport, exportCompleted, exportFailed, failedIsStale, active]);const openExportProgress = useCallback(() => {setActive({ mode: "export" });@@ -355,6 +550,30 @@ export default function BackupsRoute() {(r) => !resolvedRunIds.has(r.restoreRunId));+ // The failed restore whose "Remove corrupted data and restore" is being+ // confirmed. The modal lives here (not in the row) so the purge submits through+ // the route fetcher and the existing `restoreRunId` effect opens the progress+ // modal for the NEW run.+ const [purgeRun, setPurgeRun] = useState<+ (typeof visibleRestoreRuns)[number] | null+ >(null);+ // Distinct ROWS, not per-edge violations — a row escaping scope through three+ // of its FKs is one row, and this number sits on an irreversible-delete button.+ const purgeRowCount = totalScopeRows(purgeRun?.violationRowsByTable ?? []);+ const exportChoices = useExportChoices();+ // A failed run's label and include setting seed the form, so "Skip corrupted+ // rows and retry" reuses what that run asked for and the person can see it.+ // `defaultValues` is only read on mount, hence the key.+ const exportDefaults = {+ key:+ exportFailed && exportRun?.startedAt+ ? `failed-${exportRun.startedAt}`+ : "new",+ label: (exportFailed ? exportRun?.label : null) ?? "",+ includeStorage: ((exportFailed ? exportRun?.includeStorage : null) ??+ "none") as "none" | "all"+ };+const startRevert = (runId: string) => {fetcher.submit({ intent: "revert", restoreRunId: runId },@@ -373,17 +592,20 @@ export default function BackupsRoute() {if (result.success && result.started === "export") {setRunningExport({startedAt: new Date().toISOString(),- baseline: readyBackupNames()+ baseline: knownBackupNames(),+ supersedes: supersededFailureRef.current});return;}if (result.success && result.restoreRunId) {+ // A purge-and-restore also reports how many rows it removed.+ if (result.deleted) toast.success(result.message);setActive({ runId: result.restoreRunId, mode: "restore" });return;}if (result.success) toast.success(result.message);else toast.error(result.message);- }, [fetcher.data, readyBackupNames]);+ }, [fetcher.data, knownBackupNames]);return (<ScrollArea className="w-full h-[calc(100dvh-var(--topbar-height))]">@@ -394,9 +616,14 @@ export default function BackupsRoute() {<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 items-stretch"><Card className="flex flex-col"><ValidatedForm+ id={EXPORT_FORM_ID}+ key={exportDefaults.key}method="post"validator={exportValidator}- defaultValues={{ label: "", includeStorage: "none" }}+ defaultValues={{+ label: exportDefaults.label,+ includeStorage: exportDefaults.includeStorage+ }}fetcher={fetcher}className="flex flex-1 flex-col">@@ -502,6 +729,7 @@ export default function BackupsRoute() {);resolveRun(run.restoreRunId);}}+ onPurgeAndRestore={() => setPurgeRun(run)}/>))}</VStack>@@ -509,6 +737,73 @@ export default function BackupsRoute() {</Card>)}+ {purgeRun && (+ <Modal+ open+ onOpenChange={(open) => {+ if (!open) setPurgeRun(null);+ }}+ >+ <ModalOverlay />+ <ModalContent>+ <ModalHeader>+ <ModalTitle>+ <Plural+ value={purgeRowCount}+ one="Permanently delete # row?"+ other="Permanently delete # rows?"+ />+ </ModalTitle>+ </ModalHeader>+ <ModalBody>+ <p className="text-sm text-muted-foreground">+ <Trans>+ These rows link to data outside this company, so a safety+ copy of your current data can't be made. Deleting them+ cannot be undone. If they turn out to be shared with other+ companies in this group, nothing is deleted and the restore+ doesn't start.+ </Trans>+ </p>+ {/* Per TABLE, not per FK edge: the title counts distinct rows,+ and a per-edge list beside it would show larger numbers for+ the same delete. */}+ <ul className="mt-3 flex flex-col gap-1 text-xs font-mono">+ {purgeRun.violationRowsByTable.map((t) => (+ <li key={t.table} className="flex justify-between gap-3">+ <span className="break-all">{t.table}</span>+ <span className="tabular-nums shrink-0">+ {t.rows.toLocaleString()}+ </span>+ </li>+ ))}+ </ul>+ </ModalBody>+ <ModalFooter>+ <Button variant="secondary" onClick={() => setPurgeRun(null)}>+ <Trans>Cancel</Trans>+ </Button>+ <Button+ variant="destructive"+ onClick={() => {+ fetcher.submit(+ {+ intent: "purgeAndRestore",+ restoreRunId: purgeRun.restoreRunId+ },+ { method: "post" }+ );+ resolveRun(purgeRun.restoreRunId);+ setPurgeRun(null);+ }}+ >+ <Trans>Delete and restore</Trans>+ </Button>+ </ModalFooter>+ </ModalContent>+ </Modal>+ )}+{active && (<JobProgressModalmode={active.mode}@@ -530,31 +825,82 @@ export default function BackupsRoute() {<p className="text-sm text-muted-foreground">No backups yet.</p>) : (<VStack spacing={2}>- {exportFailed && (+ {exportFailed && !runningExport && (<HStack className="w-full justify-between rounded-lg border border-destructive/50 bg-destructive/5 p-3"><VStack spacing={0} className="min-w-0">- <span className="text-sm font-medium">Backup failed</span>+ <span className="text-sm font-medium">+ <Trans>Backup failed</Trans>+ </span>{/* Never "the system", and never "contact support" for- something the reason already explains — the old copy- blamed the product for what is usually a data problem- the message itself names. */}+ something the reason already explains. The one-line+ copy names the cause in product words; the exact+ tables and the raw error live in the "i" popover. */}<span className="break-words text-xs text-muted-foreground">- {exportRun?.error- ? `This backup could not be completed. ${exportRun.error}`- : "This backup could not be completed."}+ {exportRun?.reason === "scope-violations" ? (+ <Plural+ value={totalScopeRows(+ exportRun.violationRowsByTable+ )}+ one="# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else."+ other="# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else."+ />+ ) : (+ <Trans>This backup could not be completed.</Trans>+ )}{" "}+ <ExcludedRowsInfo+ excludedRows={exportRun?.violations ?? []}+ title={<Trans>Why this backup failed</Trans>}+ description={+ exportRun?.reason === "scope-violations" ? (+ <Trans>+ Each line is a link from this company's data to+ a row it doesn't own. A backup with these rows+ could never be restored.+ </Trans>+ ) : (+ <Trans>The backup job reported this error.</Trans>+ )+ }+ technical={exportRun?.error}+ /></span></VStack>- <Button- variant="secondary"- onClick={() =>- fetcher.submit(- { intent: "dismissExportFailure" },- { method: "post" }- )- }- >- Dismiss- </Button>+ <HStack spacing={2} className="shrink-0">+ {exportRun?.reason === "scope-violations" && (+ <Button+ isLoading={+ fetcher.state !== "idle" &&+ fetcher.formData?.get("intent") ===+ "exportSkipCorrupted"+ }+ onClick={() =>+ // Post the Create form's CURRENT values so the retry+ // is the backup the person just described.+ fetcher.submit(+ {+ intent: "exportSkipCorrupted",+ label: exportChoices.label,+ includeStorage: exportChoices.includeStorage+ },+ { method: "post" }+ )+ }+ >+ <Trans>Skip corrupted rows and retry</Trans>+ </Button>+ )}+ <Button+ variant="secondary"+ onClick={() =>+ fetcher.submit(+ { intent: "dismissExportFailure" },+ { method: "post" }+ )+ }+ >+ <Trans>Dismiss</Trans>+ </Button>+ </HStack></HStack>)}@@ -610,6 +956,7 @@ function BackupRow({ file }: { file: CompanyBackupSummary }) {);});const name = file.label || formatBackupName(file.name);+ const excluded = totalScopeRows(file.excludedRowsByTable);// A half-written folder has no verdict — the incompleteness is the whole story.// A null verdict means the schema could not be read: show no badge rather than// a green one nothing actually checked.@@ -640,6 +987,17 @@ function BackupRow({ file }: { file: CompanyBackupSummary }) {{convertKbToString(Math.round(file.sizeBytes / 1024))}</>) : null}+ {excluded > 0 ? (+ <>+ {" · "}+ <Plural+ value={excluded}+ one="# row excluded"+ other="# rows excluded"+ />{" "}+ <ExcludedRowsInfo excludedRows={file.excludedRows} />+ </>+ ) : null}</>)}</span>diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex 65f0b1cb89..0131d3d238 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -106285,7 +106285,7 @@ export default {properties: {id: {description:- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",format: "text",type: "string"},@@ -106334,7 +106334,7 @@ export default {},supplierLocationId: {description:- "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",format: "text",type: "string"},diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 3694122401..35ee8d9b49 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -68308,14 +68308,14 @@ export type Database = {},{foreignKeyName: "partner_id_fkey"- columns: ["supplierLocationId"]+ columns: ["id"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]},{foreignKeyName: "partner_id_fkey"- columns: ["id"]+ columns: ["supplierLocationId"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]@@ -73397,21 +73397,21 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["invoiceCountryCode"]+ columns: ["shipmentCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["invoiceCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["shipmentCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]diff --git a/packages/database/supabase/functions/export-company/index.ts b/packages/database/supabase/functions/export-company/index.tsindex c6eb1b97a1..8e3afb547a 100644--- a/packages/database/supabase/functions/export-company/index.ts+++ b/packages/database/supabase/functions/export-company/index.ts@@ -14,7 +14,8 @@ serve(async (req: Request) => {if (preflight) return preflight;try {- const { companyId, userId, label, includeStorage } = await req.json();+ const { companyId, userId, label, includeStorage, skipCorrupted } =+ await req.json();if (!companyId) throw new Error("Payload is missing companyId");if (!userId) throw new Error("Payload is missing userId");@@ -30,7 +31,8 @@ serve(async (req: Request) => {companyId,userId,label: typeof label === "string" ? label.slice(0, 80) : undefined,- includeStorage: includeStorage ?? "none"+ includeStorage: includeStorage ?? "none",+ skipCorrupted: skipCorrupted === true});return jsonResponse({ success: true }, 202);diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex 3694122401..35ee8d9b49 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -68308,14 +68308,14 @@ export type Database = {},{foreignKeyName: "partner_id_fkey"- columns: ["supplierLocationId"]+ columns: ["id"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]},{foreignKeyName: "partner_id_fkey"- columns: ["id"]+ columns: ["supplierLocationId"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]@@ -73397,21 +73397,21 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["invoiceCountryCode"]+ columns: ["shipmentCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["invoiceCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["shipmentCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]diff --git a/packages/jobs/AGENTS.md b/packages/jobs/AGENTS.mdindex 76dcca34d5..355bf60a91 100644--- a/packages/jobs/AGENTS.md+++ b/packages/jobs/AGENTS.md@@ -59,7 +59,7 @@ field for one script. That is exactly why the catalog/compatibility logic lives| Subpath | Provides ||---------|----------|| `.` (index) | `trigger()`, `batchTrigger()`, `Events` type, Jira/Linear webhook schemas |-| `./backups` | `src/backups/schema.ts` — catalog introspection + backup-compatibility diff (`getCompanyTableCatalog`, `reportBackupCompatibility`, `compatibilityStatus`, types). No Inngest, no logger; the ERP Backups loader computes the live restore verdict through it. Server-side only (runs `information_schema` SQL) |+| `./backups` | `src/backups/schema.ts` — catalog introspection + backup-compatibility diff (`getCompanyTableCatalog`, `reportBackupCompatibility`, `compatibilityStatus`, types), plus the re-exported `src/backups/scope.ts` — scope predicates, the export closure guard (`findExportScopeViolations`, `ExportScopeViolationError`) and the opt-in exclusion/purge (`computeScopeExclusions`, `purgeScopeViolations`). No Inngest, no logger; the ERP Backups loader computes the live restore verdict through it and the purge action deletes through it. Server-side only (runs `information_schema` SQL) || `./events` | `Events` type (re-export from `@carbon/lib`) || `./inngest` | Inngest client + function registrations, plus `setWorkflowDispatch` and its `WorkflowDispatch` / `DispatchContext` / `DispatchResult` types (server-only) || `./worker` | Worker entry point for Inngest serve |diff --git a/packages/jobs/src/backups/schema.ts b/packages/jobs/src/backups/schema.tsindex 1a1376b7f8..00452aede5 100644--- a/packages/jobs/src/backups/schema.ts+++ b/packages/jobs/src/backups/schema.ts@@ -141,6 +141,25 @@ export type Manifest = {tables: Array<{ name: string; rows: number; columns: string[] }>;storage: Array<{ path: string; size: number; included: boolean }>;excludedTables: string[];+ /**+ * Rows deliberately left out because a NOT-NULL FK escaped company scope+ * ("violation") or pointed at such a row ("cascade"). Absent/empty = full+ * export. Written only when the export ran with `skipCorrupted`.+ */+ excludedRows?: Array<{+ table: string;+ column: string;+ refTable: string;+ rows: number;+ cause: "violation" | "cascade";+ }>;+ /**+ * DISTINCT rows excluded, per table. `excludedRows` is per FK EDGE and+ * double-counts a row that violated several of its foreign keys, so this is+ * the only field a total may be summed from. Absent on backups taken before+ * it existed — treat as "unknown", not zero.+ */+ excludedRowsByTable?: Array<{ table: string; rows: number }>;};/**@@ -572,3 +591,7 @@ export function compatibilityStatus(report: {if (report.blocked) return "not-restorable";return report.findings.length > 0 ? "restorable-with-changes" : "ready";}++// Scope predicates, the export closure guard and the opt-in exclusion/purge —+// re-exported so `@carbon/jobs/backups` stays the one import surface.+export * from "./scope";diff --git a/packages/jobs/src/backups/scope.test.ts b/packages/jobs/src/backups/scope.test.tsnew file mode 100644index 0000000000..5ac77205fa--- /dev/null+++ b/packages/jobs/src/backups/scope.test.ts@@ -0,0 +1,281 @@+import {+ DummyDriver,+ Kysely,+ PostgresAdapter,+ PostgresIntrospector,+ PostgresQueryCompiler,+ sql+} from "kysely";+import { describe, expect, it } from "vitest";+import type { JobDatabase } from "../db";+import type { ColumnInfo, ForeignKey, TableInfo } from "./schema";+import {+ buildExclusionPredicate,+ ExportScopeViolationError,+ formatScopeViolations,+ scopeEdges,+ totalExcludedRows+} from "./scope";++// ── Compile-only Kysely (no connection) ─────────────────────────────────────+// The builders here are pure query shape, so the tests pin the SQL text a+// `skipCorrupted` export / purge runs — a wrong predicate would either leak the+// rows the guard refused on, or drop rows that were never in violation.+const db = new Kysely<never>({+ dialect: {+ createAdapter: () => new PostgresAdapter(),+ createDriver: () => new DummyDriver(),+ createIntrospector: (i) => new PostgresIntrospector(i),+ createQueryCompiler: () => new PostgresQueryCompiler()+ }+}) as unknown as JobDatabase;++function col(name: string, opts: { nullable?: boolean } = {}): ColumnInfo {+ return {+ name,+ dataType: "text",+ udtName: "text",+ isNullable: opts.nullable ?? false,+ isGenerated: false,+ hasDefault: false+ };+}++function table(+ name: string,+ columns: ColumnInfo[],+ foreignKeys: ForeignKey[] = []+): TableInfo {+ const pkColumns = columns.some((c) => c.name === "id") ? ["id"] : [];+ return {+ name,+ columns,+ scope: { kind: "direct", column: "companyId" },+ scopeColumn: "companyId",+ pkColumns,+ uniqueColumns: pkColumns,+ hasId: pkColumns.length === 1,+ foreignKeys+ };+}++function fk(column: string, refTable: string): ForeignKey {+ return { column, refTable, refColumn: "id" };+}++const item = table("item", [col("id"), col("companyId")]);+const job = table("job", [col("id"), col("companyId")]);+const jobOperation = table(+ "jobOperation",+ [col("id"), col("companyId"), col("jobId")],+ [fk("jobId", "job")]+);+// Mirrors the prod shape: NO `id` column, composite PK, three NOT-NULL FKs.+const jobOperationDependency = table(+ "jobOperationDependency",+ [col("operationId"), col("dependsOnId"), col("jobId"), col("companyId")],+ [+ fk("operationId", "jobOperation"),+ fk("dependsOnId", "jobOperation"),+ fk("jobId", "job")+ ]+);+const pickMethod = table(+ "pickMethod",+ [+ col("itemId"),+ col("locationId"),+ col("companyId"),+ col("createdBy"),+ col("defaultStorageUnitId", { nullable: true })+ ],+ [+ fk("itemId", "item"),+ fk("createdBy", "user"),+ fk("defaultStorageUnitId", "storageUnit")+ ]+);++const all = [item, job, jobOperation, jobOperationDependency, pickMethod];+const byName = new Map(all.map((t) => [t.name, t]));+const exportableNames = new Set(all.map((t) => t.name));++const compile = (predicate: ReturnType<typeof sql>) =>+ sql`SELECT 1 WHERE ${predicate}`.compile(db).sql;++describe("scopeEdges", () => {+ it("keeps NOT-NULL FKs to exportable, non-retained tables", () => {+ const edges = scopeEdges(jobOperationDependency, exportableNames, byName);+ expect(edges.map((e) => `${e.column}→${e.parent.name}`)).toEqual([+ "operationId→jobOperation",+ "dependsOnId→jobOperation",+ "jobId→job"+ ]);+ });++ it("skips nullable FKs, retained tables and non-exportable targets", () => {+ // `createdBy → user` is retained; `defaultStorageUnitId` is nullable AND+ // its target is not exportable — only `itemId → item` may exclude a row.+ const edges = scopeEdges(pickMethod, exportableNames, byName);+ expect(edges.map((e) => e.column)).toEqual(["itemId"]);+ });+});++describe("buildExclusionPredicate", () => {+ it("returns null when no edge could exclude anything", () => {+ expect(+ buildExclusionPredicate(+ item,+ exportableNames,+ byName,+ "C",+ "G",+ new Map()+ )+ ).toBeNull();+ });++ it("emits the violation term: the FK is set and its parent is not in scope", () => {+ const built = buildExclusionPredicate(+ pickMethod,+ exportableNames,+ byName,+ "C",+ "G",+ new Map()+ );+ expect(built?.terms.map((t) => t.cause)).toEqual(["violation"]);+ const text = compile(built!.predicate);+ expect(text).toContain(+ `"itemId" IS NOT NULL AND "itemId" NOT IN (SELECT "id" FROM "item" WHERE "companyId" = $1 OR "companyId" IS NULL)`+ );+ });++ it("adds a cascade term only when the parent already excluded ids", () => {+ const without = buildExclusionPredicate(+ jobOperationDependency,+ exportableNames,+ byName,+ "C",+ "G",+ new Map()+ );+ expect(without?.terms.every((t) => t.cause === "violation")).toBe(true);+ expect(compile(without!.predicate)).not.toContain(`"operationId" IN (`);++ const withParent = buildExclusionPredicate(+ jobOperationDependency,+ exportableNames,+ byName,+ "C",+ "G",+ new Map([["jobOperation", ["op1", "op2"]]])+ );+ const causes = withParent!.terms.map((t) => `${t.edge.column}:${t.cause}`);+ expect(causes).toEqual([+ "operationId:violation",+ "operationId:cascade",+ "dependsOnId:violation",+ "dependsOnId:cascade",+ "jobId:violation"+ ]);+ const text = compile(withParent!.predicate);+ expect(text).toContain(`"operationId" IN (`);+ expect(text).toContain(`"dependsOnId" IN (`);+ expect(text).toContain(" OR ");+ });++ it("still excludes rows of a table with no `id` column", () => {+ // A table nothing can reference by id (composite PK) is never a cascade+ // PARENT, but its own rows must still be excludable.+ const built = buildExclusionPredicate(+ jobOperationDependency,+ exportableNames,+ byName,+ "C",+ "G",+ new Map()+ );+ expect(built).not.toBeNull();+ expect(compile(built!.predicate)).toContain(+ `"jobId" NOT IN (SELECT "id" FROM "job"`+ );+ });+});++describe("formatScopeViolations / ExportScopeViolationError", () => {+ it("reproduces the exact refusal message the export has always used", () => {+ expect(+ formatScopeViolations("C", [+ { table: "pickMethod", column: "itemId", refTable: "item", rows: 1 },+ {+ table: "jobOperationDependency",+ column: "jobId",+ refTable: "job",+ rows: 3+ }+ ])+ ).toBe(+ "Refusing to export C: 2 NOT-NULL reference(s) escape company scope, so the backup could never be restored:\n" ++ " pickMethod.itemId → item (1 row)\n" ++ " jobOperationDependency.jobId → job (3 rows)"+ );+ });++ it("exposes the structured violations on the error", () => {+ const violations = [+ { table: "pickMethod", column: "itemId", refTable: "item", rows: 1 }+ ];+ const err = new ExportScopeViolationError("C", violations);+ expect(err).toBeInstanceOf(Error);+ expect(err.name).toBe("ExportScopeViolationError");+ expect(err.violations).toEqual(violations);+ expect(err.message.startsWith("Refusing to export C: 1 NOT-NULL")).toBe(+ true+ );+ });+});++describe("totalExcludedRows", () => {+ // The bug this pins: `summary`/`violations` carry ONE ENTRY PER FK EDGE, so a+ // row escaping scope through three of its foreign keys appears three times.+ // Summing that told the user "10 rows" for 4 real rows — on the confirm button+ // of an irreversible delete. Totals come from the per-table distinct counts.+ it("counts a row once however many of its FKs escaped scope", () => {+ // The prod shape: 1 pickMethod row (1 edge) + 3 jobOperationDependency rows+ // (3 edges each) = 4 rows, but 4 summary entries totalling 10.+ const perEdge = [+ { table: "pickMethod", rows: 1 },+ { table: "jobOperationDependency", rows: 3 },+ { table: "jobOperationDependency", rows: 3 },+ { table: "jobOperationDependency", rows: 3 }+ ];+ expect(perEdge.reduce((sum, e) => sum + e.rows, 0)).toBe(10);++ expect(+ totalExcludedRows([+ { table: "pickMethod", rows: 1 },+ { table: "jobOperationDependency", rows: 3 }+ ])+ ).toBe(4);+ });++ it("is zero for a clean export", () => {+ expect(totalExcludedRows([])).toBe(0);+ });+});++describe("purgeScopeViolations tenancy guard", () => {+ // A `companyGroupId`-scoped table is shared with the sibling companies in the+ // group, so its rows are not this company's to delete.+ const groupScoped = (name: string): TableInfo => ({+ ...table(name, [col("id"), col("companyGroupId")]),+ scope: { kind: "direct", column: "companyGroupId" },+ scopeColumn: "companyGroupId"+ });++ it("marks group-scoped tables as shared, company-scoped ones as not", () => {+ expect(groupScoped("currency").scopeColumn).toBe("companyGroupId");+ expect(pickMethod.scopeColumn).toBe("companyId");+ });+});diff --git a/packages/jobs/src/backups/scope.ts b/packages/jobs/src/backups/scope.tsnew file mode 100644index 0000000000..0708b5df51--- /dev/null+++ b/packages/jobs/src/backups/scope.ts@@ -0,0 +1,536 @@+import type { KyselyDatabase } from "@carbon/database/client";+import { type Kysely, type RawBuilder, sql } from "kysely";+import type { TableInfo } from "./schema";++/**+ * Company-scope SQL for backups: the per-table scope predicate, the export+ * closure guard (`findExportScopeViolations`), and the opt-in exclusion/purge+ * of rows whose NOT-NULL FK escapes that scope.+ *+ * Keep this module free of runtime `@carbon/*` imports (type-only is fine) —+ * the ERP reaches it through `@carbon/jobs/backups`, and bare-`tsx` scripts+ * cannot named-import CJS workspace packages.+ */++/** Run `fn` over `items` with at most `limit` in flight. */+export async function mapWithConcurrency<T>(+ items: T[],+ limit: number,+ fn: (item: T) => Promise<void>+): Promise<void> {+ let next = 0;+ const workers = Array.from(+ { length: Math.min(limit, items.length) },+ async () => {+ while (next < items.length) {+ const item = items[next++];+ if (item === undefined) break;+ await fn(item);+ }+ }+ );+ await Promise.all(workers);+}++/**+ * FK targets a restore resolves WITHOUT the referenced row being in the backup:+ * `user` (global identity table, never in the catalog) and `company` (structural),+ * plus `employee` (collapsed to the importer) and `companyGroup` (re-stamped to the+ * target group). A FK to any of these can't be a closure gap.+ */+export const RETAINED_REF_TABLES = new Set([+ "user",+ "employee",+ "company",+ "companyGroup"+]);++/**+ * A SQL predicate scoping a table's rows to one company. For a directly-scoped+ * table it's `companyId = $`; for a `via` table it's+ * `fk IN (SELECT parent.refColumn FROM parent WHERE <parent's predicate>)`,+ * recursing to the scoped root. The subquery is NOT correlated (it lists the+ * parent's ids for the company), so it stays a cheap semi-join. `byName` must+ * hold every catalog table so parents resolve.+ */+export function buildScopeFilter(+ table: TableInfo,+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): RawBuilder<unknown> {+ if (table.scope.kind === "direct") {+ const value =+ table.scope.column === "companyGroupId" ? companyGroupId : companyId;+ return sql`${sql.id(table.scope.column)} = ${value}`;+ }+ const parent = byName.get(table.scope.parent);+ if (!parent) {+ throw new Error(+ `Scope parent "${table.scope.parent}" of "${table.name}" is not in the catalog`+ );+ }+ return sql`${sql.id(table.scope.column)} IN (SELECT ${sql.id(+ table.scope.refColumn+ )} FROM ${sql.id(table.scope.parent)} WHERE ${buildScopeFilter(+ parent,+ byName,+ companyId,+ companyGroupId+ )})`;+}++/** One FK edge whose rows escape the company's export scope. */+export type ScopeViolation = {+ table: string;+ column: string;+ refTable: string;+ rows: number;+};++/** The exact message the export has always refused with — quoted in prod logs and specs. */+export function formatScopeViolations(+ companyId: string,+ violations: ScopeViolation[]+): string {+ const lines = violations.map(+ (v) =>+ `${v.table}.${v.column} → ${v.refTable} (${v.rows} row${+ v.rows === 1 ? "" : "s"+ })`+ );+ return (+ `Refusing to export ${companyId}: ${violations.length} NOT-NULL reference(s) ` ++ `escape company scope, so the backup could never be restored:\n ${lines.join(+ "\n "+ )}`+ );+}++/**+ * Thrown by the export when the closure guard finds out-of-scope rows. Typed so+ * the jobs can record WHICH failure this was (and the offending edges) in their+ * marker, and the UI can offer the sanctioned recovery for exactly this case.+ */+export class ExportScopeViolationError extends Error {+ /** Per FK edge — the breakdown. Never summable into a row count. */+ readonly violations: ScopeViolation[];+ /** DISTINCT rows behind those edges, per table — what the user is told. */+ readonly rowsByTable: Array<{ table: string; rows: number }>;+ constructor(+ companyId: string,+ violations: ScopeViolation[],+ rowsByTable: Array<{ table: string; rows: number }> = []+ ) {+ super(formatScopeViolations(companyId, violations));+ this.name = "ExportScopeViolationError";+ this.violations = violations;+ this.rowsByTable = rowsByTable;+ }+}++/** A NOT-NULL FK from an exportable table to another exportable, non-retained table. */+export type ScopeEdge = { table: TableInfo; column: string; parent: TableInfo };++/**+ * The FK edges the closure guard, the exclusion and the purge all reason about —+ * ONE definition so the three can never disagree about what "escapes scope" means.+ * Skips nullable FKs (restore nulls a missing ref), refs to retained tables (user,+ * company, …) and refs to tables outside the export (global/secret → not in closure).+ */+export function scopeEdges(+ table: TableInfo,+ exportableNames: Set<string>,+ byName: Map<string, TableInfo>+): ScopeEdge[] {+ const colByName = new Map(table.columns.map((c) => [c.name, c]));+ const edges: ScopeEdge[] = [];+ for (const fk of table.foreignKeys) {+ if (fk.refColumn !== "id") continue;+ if (RETAINED_REF_TABLES.has(fk.refTable)) continue;+ if (!exportableNames.has(fk.refTable)) continue;+ const col = colByName.get(fk.column);+ if (!col || col.isNullable) continue;+ const parent = byName.get(fk.refTable);+ if (!parent) continue;+ edges.push({ table, column: fk.column, parent });+ }+ return edges;+}++/**+ * Where a parent row may legitimately live for a child in this company's scope.+ * A `companyId IS NULL` parent row is shared substrate (seeded `material*`,+ * currencies, …) present in every target — never a gap. A row owned by a+ * DIFFERENT company still surfaces.+ */+function parentExistence(+ parent: TableInfo,+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): RawBuilder<unknown> {+ const parentScope = buildScopeFilter(+ parent,+ byName,+ companyId,+ companyGroupId+ );+ return parent.scope.kind === "direct"+ ? sql`${parentScope} OR ${sql.id(parent.scope.column)} IS NULL`+ : parentScope;+}++/** `<col> IS NOT NULL AND <col> NOT IN (parent rows that exist for this company)` */+function violationTerm(+ edge: ScopeEdge,+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): RawBuilder<unknown> {+ return sql`(${sql.id(edge.column)} IS NOT NULL AND ${sql.id(+ edge.column+ )} NOT IN (SELECT ${sql.id("id")} FROM ${sql.id(+ edge.parent.name+ )} WHERE ${parentExistence(edge.parent, byName, companyId, companyGroupId)}))`;+}++/**+ * Export-time closure guard — refuse to PRODUCE a backup that could never be+ * restored. For each NOT-NULL FK from an exportable scoped table to another+ * exportable scoped table, count rows in this company's export scope whose+ * reference falls OUTSIDE the referenced table's export scope (the child row+ * would be dumped but its parent would not). DB-level and count-only. The+ * export mirror of the restore-side `assertReferentiallyClosed`.+ *+ * Callers format with `formatScopeViolations` or throw `ExportScopeViolationError`.+ */+export async function findExportScopeViolations(+ db: Kysely<KyselyDatabase>,+ exportable: TableInfo[],+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): Promise<ScopeViolation[]> {+ return (+ await findExportScopeViolationsDetailed(+ db,+ exportable,+ byName,+ companyId,+ companyGroupId+ )+ ).violations;+}++/**+ * The guard's full result: the per-edge breakdown AND the DISTINCT rows behind+ * it, per table. A row violating three of its FKs is three `violations` entries+ * but one row — only `rowsByTable` may be summed into a figure a person reads.+ */+export async function findExportScopeViolationsDetailed(+ db: Kysely<KyselyDatabase>,+ exportable: TableInfo[],+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): Promise<{+ violations: ScopeViolation[];+ rowsByTable: Array<{ table: string; rows: number }>;+}> {+ const exportableNames = new Set(exportable.map((t) => t.name));+ const checks: Array<{+ edge: ScopeEdge;+ query: RawBuilder<{ n: string }>;+ }> = [];+ for (const t of exportable) {+ const childScope = buildScopeFilter(t, byName, companyId, companyGroupId);+ for (const edge of scopeEdges(t, exportableNames, byName)) {+ checks.push({+ edge,+ query: sql<{ n: string }>`+ SELECT count(*)::text AS n+ FROM ${sql.id(t.name)}+ WHERE ${childScope}+ AND ${violationTerm(edge, byName, companyId, companyGroupId)}`+ });+ }+ }++ const violations: ScopeViolation[] = [];+ await mapWithConcurrency(checks, 6, async (c) => {+ const r = await c.query.execute(db);+ const n = Number(r.rows[0]?.n ?? 0);+ if (n > 0) {+ violations.push({+ table: c.edge.table.name,+ column: c.edge.column,+ refTable: c.edge.parent.name,+ rows: n+ });+ }+ });++ // One distinct-row count per offending table — the OR of its violating edges,+ // so a row counts once however many of its FKs escaped.+ const offending = [...new Set(violations.map((v) => v.table))];+ const rowsByTable: Array<{ table: string; rows: number }> = [];+ await mapWithConcurrency(offending, 6, async (name) => {+ const t = byName.get(name);+ if (!t) return;+ const edges = scopeEdges(t, exportableNames, byName).filter((e) =>+ violations.some((v) => v.table === name && v.column === e.column)+ );+ if (edges.length === 0) return;+ const anyEdge = sql.join(+ edges.map((e) => violationTerm(e, byName, companyId, companyGroupId)),+ sql` OR `+ );+ const r = await sql<{ n: string }>`+ SELECT count(*)::text AS n+ FROM ${sql.id(name)}+ WHERE ${buildScopeFilter(t, byName, companyId, companyGroupId)}+ AND (${anyEdge})`.execute(db);+ rowsByTable.push({ table: name, rows: Number(r.rows[0]?.n ?? 0) });+ });++ return { violations, rowsByTable };+}++export type ExclusionCause = "violation" | "cascade";++export type ExclusionTerm = {+ edge: ScopeEdge;+ cause: ExclusionCause;+ predicate: RawBuilder<unknown>;+};++/**+ * SQL predicate selecting the rows of `table` that must be EXCLUDED from an+ * export: a NOT-NULL FK escaping scope ("violation"), or pointing at a row+ * already excluded from its parent ("cascade" — `excludedIds` holds the parent+ * ids decided earlier, so callers must walk tables parents-first). `null` when+ * the table has no edge that could exclude anything.+ *+ * NOTE on "cascade": no corruption seen in production has exercised it. Both+ * known offenders are leaves — `pickMethod` has no `id` column and nothing+ * references `jobOperationDependency` — so neither can be a cascade PARENT. It+ * is kept because the restore-side closure preflight WOULD refuse a backup whose+ * excluded row still had children, which is a silent trap for the next+ * corruption shape; `scope.test.ts` pins the predicate it emits. Do not delete+ * it without making that preflight the thing that proves it unnecessary.+ */+export function buildExclusionPredicate(+ table: TableInfo,+ exportableNames: Set<string>,+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null,+ excludedIds: Map<string, unknown[]>+): { predicate: RawBuilder<unknown>; terms: ExclusionTerm[] } | null {+ const terms: ExclusionTerm[] = [];+ for (const edge of scopeEdges(table, exportableNames, byName)) {+ terms.push({+ edge,+ cause: "violation",+ predicate: violationTerm(edge, byName, companyId, companyGroupId)+ });+ const ids = excludedIds.get(edge.parent.name);+ if (ids && ids.length > 0) {+ terms.push({+ edge,+ cause: "cascade",+ predicate: sql`${sql.id(edge.column)} IN (${sql.join(+ ids.map((v) => sql`${v}`)+ )})`+ });+ }+ }+ if (terms.length === 0) return null;+ return {+ predicate: sql.join(+ terms.map((t) => t.predicate),+ sql` OR `+ ),+ terms+ };+}++export type ScopeExclusions = {+ /** table → predicate to `AND NOT (…)` into that table's dump. Only tables with something to exclude. */+ predicates: Map<string, RawBuilder<unknown>>;+ /** table → excluded `id`s (tables with an `id` column only), so children can cascade. */+ excludedIds: Map<string, unknown[]>;+ /**+ * What was excluded, per FK EDGE — the breakdown a support engineer reads.+ * NOT summable into a row count: one row violating three of its FKs appears+ * three times here (`jobOperationDependency` does exactly that). Use+ * {@link totalExcludedRows} over `perTable` for anything a user sees.+ */+ summary: Array<{+ table: string;+ column: string;+ refTable: string;+ rows: number;+ cause: ExclusionCause;+ }>;+ /** table → DISTINCT rows excluded. The only correct basis for a total. */+ perTable: Array<{ table: string; rows: number }>;+};++/**+ * The number of ROWS a skip/purge affects — the one figure a person is shown.+ * Counting `summary` instead double-counts every row that violates more than+ * one of its foreign keys.+ */+export function totalExcludedRows(+ perTable: Array<{ table: string; rows: number }>+): number {+ return perTable.reduce((sum, t) => sum + t.rows, 0);+}++/**+ * Decide which rows a `skipCorrupted` export leaves out. Walks `exportable` in+ * the given (catalog = topological) order so a parent's excluded ids are known+ * before its children are examined. DB-backed: one count per term plus one id+ * read per table that excludes anything.+ */+export async function computeScopeExclusions(+ db: Kysely<KyselyDatabase>,+ exportable: TableInfo[],+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): Promise<ScopeExclusions> {+ const exportableNames = new Set(exportable.map((t) => t.name));+ const predicates = new Map<string, RawBuilder<unknown>>();+ const excludedIds = new Map<string, unknown[]>();+ const summary: ScopeExclusions["summary"] = [];+ const perTable: ScopeExclusions["perTable"] = [];++ for (const table of exportable) {+ const built = buildExclusionPredicate(+ table,+ exportableNames,+ byName,+ companyId,+ companyGroupId,+ excludedIds+ );+ if (!built) continue;+ const scope = buildScopeFilter(table, byName, companyId, companyGroupId);++ let excludesAny = false;+ for (const term of built.terms) {+ const r = await sql<{ n: string }>`+ SELECT count(*)::text AS n+ FROM ${sql.id(table.name)}+ WHERE ${scope} AND ${term.predicate}`.execute(db);+ const n = Number(r.rows[0]?.n ?? 0);+ if (n === 0) continue;+ excludesAny = true;+ summary.push({+ table: table.name,+ column: term.edge.column,+ refTable: term.edge.parent.name,+ rows: n,+ cause: term.cause+ });+ }+ if (!excludesAny) continue;++ predicates.set(table.name, built.predicate);+ // One count over the WHOLE predicate: distinct rows, however many of their+ // FKs escaped scope. This is what the user is told and what the purge deletes.+ const distinct = await sql<{ n: string }>`+ SELECT count(*)::text AS n+ FROM ${sql.id(table.name)}+ WHERE ${scope} AND (${built.predicate})`.execute(db);+ perTable.push({+ table: table.name,+ rows: Number(distinct.rows[0]?.n ?? 0)+ });+ if (table.columns.some((c) => c.name === "id")) {+ const ids = await sql<{ id: unknown }>`+ SELECT ${sql.id("id")} AS id+ FROM ${sql.id(table.name)}+ WHERE ${scope} AND (${built.predicate})`.execute(db);+ if (ids.rows.length > 0) {+ excludedIds.set(+ table.name,+ ids.rows.map((r) => r.id)+ );+ }+ }+ }++ return { predicates, excludedIds, summary, perTable };+}++/**+ * Permanently DELETE the rows `computeScopeExclusions` would exclude. Call it+ * INSIDE a transaction the caller owns. Deletes children first (reverse+ * catalog order) so a `NO ACTION` FK never blocks a parent's delete, then+ * re-runs the closure guard and throws if anything is left — a purge that+ * leaves a violation behind must not commit.+ */+export async function purgeScopeViolations(+ trx: Kysely<KyselyDatabase>,+ exportable: TableInfo[],+ byName: Map<string, TableInfo>,+ companyId: string,+ companyGroupId: string | null+): Promise<{ deleted: Array<{ table: string; rows: number }> }> {+ const exclusions = await computeScopeExclusions(+ trx,+ exportable,+ byName,+ companyId,+ companyGroupId+ );++ // A `companyGroupId`-scoped row (chart of accounts, currencies, dimensions) is+ // shared with the sibling companies in the group, so deleting it reaches data+ // this company does not own — and the delete is irreversible. Refused+ // unconditionally rather than gated on the group having siblings today, since+ // one can be added later. Mirrors `resolveRestoreScope`, which is why a restore+ // refuses to touch group data unless the company is its group's only member.+ const shared = [...exclusions.predicates.keys()].filter(+ (name) => byName.get(name)?.scopeColumn === "companyGroupId"+ );+ if (shared.length > 0) {+ throw new Error(+ "These rows are shared with the other companies in this group, so " ++ "removing them would change their records too. They need to be " ++ `corrected directly (${shared.join(", ")}).`+ );+ }++ const deleted: Array<{ table: string; rows: number }> = [];+ for (const table of [...exportable].reverse()) {+ const predicate = exclusions.predicates.get(table.name);+ if (!predicate) continue;+ const scope = buildScopeFilter(table, byName, companyId, companyGroupId);+ const r = await sql`+ DELETE FROM ${sql.id(table.name)}+ WHERE ${scope} AND (${predicate})`.execute(trx);+ deleted.push({ table: table.name, rows: Number(r.numAffectedRows ?? 0) });+ }++ const left = await findExportScopeViolations(+ trx,+ exportable,+ byName,+ companyId,+ companyGroupId+ );+ if (left.length > 0) {+ throw new Error(+ `Purge left scope violations behind: ${formatScopeViolations(+ companyId,+ left+ )}`+ );+ }+ return { deleted };+}diff --git a/packages/jobs/src/inngest/functions/tasks/company-backup.ts b/packages/jobs/src/inngest/functions/tasks/company-backup.tsindex 3f2c0453d8..cda689af1a 100644--- a/packages/jobs/src/inngest/functions/tasks/company-backup.ts+++ b/packages/jobs/src/inngest/functions/tasks/company-backup.ts@@ -5,7 +5,7 @@ import { createGunzip, createGzip } from "node:zlib";import type { KyselyDatabase } from "@carbon/database/client";import { getLogger } from "@carbon/logger";import type { SupabaseClient } from "@supabase/supabase-js";-import { type Kysely, type RawBuilder, sql } from "kysely";+import { type Kysely, sql } from "kysely";import { nanoid } from "nanoid";import {BACKUP_KIND,@@ -17,12 +17,14 @@ import {SECRET_TABLES,type TableInfo} from "../../../backups/schema";+import { buildScopeFilter, mapWithConcurrency } from "../../../backups/scope";// Catalog introspection + compatibility live in src/backups/ (shared with the// drift check and the ERP Backups page); re-exported so the backup jobs keep// one import surface.export * from "../../../backups/renames";export * from "../../../backups/schema";+export * from "../../../backups/scope";const log = getLogger("jobs", "company-backup");@@ -180,26 +182,6 @@ export function backupManifestPath(name: string): string {return `${EXPORTS_PREFIX}/${name}/manifest.json`;}-/** Run `fn` over `items` with at most `limit` in flight. */-export async function mapWithConcurrency<T>(- items: T[],- limit: number,- fn: (item: T) => Promise<void>-): Promise<void> {- let next = 0;- const workers = Array.from(- { length: Math.min(limit, items.length) },- async () => {- while (next < items.length) {- const item = items[next++];- if (item === undefined) break;- await fn(item);- }- }- );- await Promise.all(workers);-}-/** Live progress of the current phase. `phase` is a stable KEY* (`snapshot`/`seed`/`wipe`/`load`/`files`); the UI maps it to a human label per* job, so the job never bakes in display copy. */@@ -401,19 +383,6 @@ function blockingReason(f: CompatibilityFinding): string {return f.reason;}-/**- * FK targets a restore resolves WITHOUT the referenced row being in the backup:- * `user` (global identity table, never in the catalog) and `company` (structural),- * plus `employee` (collapsed to the importer) and `companyGroup` (re-stamped to the- * target group). A FK to any of these can't be a closure gap.- */-export const RETAINED_REF_TABLES = new Set([- "user",- "employee",- "company",- "companyGroup"-]);-/*** A fresh primary-key value for a table, matching its `id` column's type as the* schema defines it — a real UUID for `uuid` columns, otherwise a nanoid (what@@ -452,108 +421,6 @@ export function bindValue(value: unknown, col: ColumnInfo): unknown {return value;}-/**- * A SQL predicate scoping a table's rows to one company. For a directly-scoped- * table it's `companyId = $`; for a `via` table it's- * `fk IN (SELECT parent.refColumn FROM parent WHERE <parent's predicate>)`,- * recursing to the scoped root. The subquery is NOT correlated (it lists the- * parent's ids for the company), so it stays a cheap semi-join. `byName` must- * hold every catalog table so parents resolve.- */-export function buildScopeFilter(- table: TableInfo,- byName: Map<string, TableInfo>,- companyId: string,- companyGroupId: string | null-): RawBuilder<unknown> {- if (table.scope.kind === "direct") {- const value =- table.scope.column === "companyGroupId" ? companyGroupId : companyId;- return sql`${sql.id(table.scope.column)} = ${value}`;- }- const parent = byName.get(table.scope.parent);- if (!parent) {- throw new Error(- `Scope parent "${table.scope.parent}" of "${table.name}" is not in the catalog`- );- }- return sql`${sql.id(table.scope.column)} IN (SELECT ${sql.id(- table.scope.refColumn- )} FROM ${sql.id(table.scope.parent)} WHERE ${buildScopeFilter(- parent,- byName,- companyId,- companyGroupId- )})`;-}--/**- * Export-time closure guard — refuse to PRODUCE a backup that could never be- * restored. For each NOT-NULL FK from an exportable scoped table to another- * exportable scoped table, count rows in this company's export scope whose- * reference falls OUTSIDE the referenced table's export scope (the child row- * would be dumped but its parent would not). DB-level and count-only. The- * export mirror of the restore-side `assertReferentiallyClosed`. Skips- * nullable FKs (restore nulls a missing ref) and refs to retained/global/- * secret tables.- */-export async function findExportScopeViolations(- db: Kysely<KyselyDatabase>,- exportable: TableInfo[],- byName: Map<string, TableInfo>,- companyId: string,- companyGroupId: string | null-): Promise<string[]> {- const exportableNames = new Set(exportable.map((t) => t.name));- const checks: Array<{ desc: string; query: RawBuilder<{ n: string }> }> = [];- for (const t of exportable) {- const colByName = new Map(t.columns.map((c) => [c.name, c]));- for (const fk of t.foreignKeys) {- if (fk.refColumn !== "id") continue;- if (RETAINED_REF_TABLES.has(fk.refTable)) continue;- if (!exportableNames.has(fk.refTable)) continue; // global/secret → not in closure- const col = colByName.get(fk.column);- if (!col || col.isNullable) continue; // nullable → restore nulls a missing ref- const parent = byName.get(fk.refTable)!;- const childScope = buildScopeFilter(t, byName, companyId, companyGroupId);- const parentScope = buildScopeFilter(- parent,- byName,- companyId,- companyGroupId- );- // A `companyId IS NULL` parent row is shared substrate (seeded- // `material*`, currencies, …) present in every target — never a gap. A- // row owned by a DIFFERENT company still surfaces.- const parentExistence =- parent.scope.kind === "direct"- ? sql`${parentScope} OR ${sql.id(parent.scope.column)} IS NULL`- : parentScope;- checks.push({- desc: `${t.name}.${fk.column} → ${fk.refTable}`,- query: sql<{ n: string }>`- SELECT count(*)::text AS n- FROM ${sql.id(t.name)}- WHERE ${childScope}- AND ${sql.id(fk.column)} IS NOT NULL- AND ${sql.id(fk.column)} NOT IN (- SELECT ${sql.id(fk.refColumn)}- FROM ${sql.id(parent.name)}- WHERE ${parentExistence}- )`- });- }- }-- const violations: string[] = [];- await mapWithConcurrency(checks, 6, async (c) => {- const r = await c.query.execute(db);- const n = Number(r.rows[0]?.n ?? 0);- if (n > 0) violations.push(`${c.desc} (${n} row${n === 1 ? "" : "s"})`);- });- return violations;-}-/*** Of the given tables, return only those the target has NOT yet populated in* its scope (companyId or companyGroupId). Reseed import uses this so itdiff --git a/packages/jobs/src/inngest/functions/tasks/company-export.ts b/packages/jobs/src/inngest/functions/tasks/company-export.tsindex bc8f4c4009..8139b926c5 100644--- a/packages/jobs/src/inngest/functions/tasks/company-export.ts+++ b/packages/jobs/src/inngest/functions/tasks/company-export.ts@@ -1,4 +1,6 @@import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { getLogger } from "@carbon/logger";+import { NonRetriableError } from "inngest";import { sql } from "kysely";import { getJobDatabaseClient, type JobDatabase } from "../../../db";import { inngest } from "../../client";@@ -10,18 +12,24 @@ import {backupAssetsDir,backupTablePath,buildScopeFilter,+ computeScopeExclusions,copyAssetsToBackup,+ ExportScopeViolationError,encodeValue,exportableColumns,- findExportScopeViolations,+ findExportScopeViolationsDetailed,getCompanyTableCatalog,mapWithConcurrency,+ type ScopeExclusions,+ type ScopeViolation,STORAGE_BUCKET,selectExportableTables,serializeTable,writeBackupManifest} from "./company-backup";+const log = getLogger("jobs", "company-export");+// Assets are copied server-side into the backup's `assets/` folder (no bytes pass// through this process), so there's no memory reason to cap a single file — the// bucket already bounds uploads (120MB CAD models, 50MB docs). The only bound is a@@ -52,6 +60,13 @@ export async function buildCompanyBackup(includeStorage: "none" | "all";/** Override the generated folder name (snapshots pass their own). */name?: string;+ /**+ * Exclude (and record in `manifest.excludedRows`) rows whose NOT-NULL FK+ * escapes company scope, plus rows depending on them. Default false =+ * refuse: the guard is a tenant-leak detector, and skipping is a+ * user-confirmed recovery after a visible failure (spec 2026-09-01).+ */+ skipCorrupted?: boolean;/** Live progress of the table-dump phase (`tables`). Throttled by the caller. */onProgress?: (p: {phase: string;@@ -114,20 +129,44 @@ export async function buildCompanyBackup(// which runs without it — is the first thing in the system wide enough to see a// cross-tenant reference at all. Excluding the rows and carrying on would make// the only detector we have go quiet.- const scopeViolations = await findExportScopeViolations(- db,- exportable,- byName,- companyId,- companyGroupId- );- if (scopeViolations.length > 0) {- throw new Error(- `Refusing to export ${companyId}: ${scopeViolations.length} NOT-NULL reference(s) ` +- `escape company scope, so the backup could never be restored:\n ${scopeViolations.join(- "\n "- )}`+ //+ // `skipCorrupted` is the ONE sanctioned bypass — user-confirmed after a visible+ // failure, logged loudly here, and the manifest records what was dropped.+ let exclusions: ScopeExclusions | null = null;+ if (opts.skipCorrupted) {+ exclusions = await computeScopeExclusions(+ db,+ exportable,+ byName,+ companyId,+ companyGroupId+ );+ if (exclusions.summary.length > 0) {+ // Skipping a group-shared row deletes nothing, but the artifact then+ // lacks config the whole group depends on — worth its own log line. The+ // purge refuses outright on these; see `purgeScopeViolations`.+ const shared = exclusions.summary.filter(+ (e) => byName.get(e.table)?.scopeColumn === "companyGroupId"+ );+ log.warn("Company export skipping out-of-scope rows", {+ companyId,+ excludedRows: exclusions.summary,+ ...(shared.length > 0+ ? { sharedGroupTablesAffected: shared.map((e) => e.table) }+ : {})+ });+ }+ } else {+ const { violations, rowsByTable } = await findExportScopeViolationsDetailed(+ db,+ exportable,+ byName,+ companyId,+ companyGroupId);+ if (violations.length > 0) {+ throw new ExportScopeViolationError(companyId, violations, rowsByTable);+ }}// Dump each non-empty table to its own `tables/<table>.ndjson.gz`, in parallel.@@ -140,13 +179,16 @@ export async function buildCompanyBackup(table.name === "externalIntegrationMapping"? sql` AND ${sql.id("integration")} != ${BACKUP_INTEGRATION}`: sql``;+ // A skipCorrupted export leaves out the rows computeScopeExclusions decided on.+ const exclusion = exclusions?.predicates.get(table.name);+ const exclusionFilter = exclusion ? sql` AND NOT (${exclusion})` : sql``;// Direct-scoped tables filter by their companyId/companyGroupId column;// transitively-scoped child tables (contacts, line prices, …) filter through// their parent FK — see buildScopeFilter.const result = await sql<Record<string, unknown>>`SELECT ${sql.join(columns.map((c) => sql.id(c.name)))}FROM ${sql.id(table.name)}- WHERE ${buildScopeFilter(table, byName, companyId, companyGroupId)}${ledgerFilter}+ WHERE ${buildScopeFilter(table, byName, companyId, companyGroupId)}${ledgerFilter}${exclusionFilter}`.execute(db);if (result.rows.length === 0) {@@ -226,7 +268,9 @@ export async function buildCompanyBackup(includeStorage,tables: tableManifest,storage: storageManifest,- excludedTables+ excludedTables,+ excludedRows: exclusions?.summary ?? [],+ excludedRowsByTable: exclusions?.perTable ?? []};// The manifest is NOT written here — the caller writes it LAST (after assets)@@ -252,6 +296,15 @@ async function upsertExportMarker(startedAt: string;progress?: ExportProgress;error?: string;+ /** On failure: what was asked for, so a recovery retry can reuse it. */+ label?: string | null;+ includeStorage?: "none" | "all";+ /** Set only when the closure guard refused — the UI offers "skip" for exactly this. */+ reason?: "scope-violations";+ /** Per FK EDGE — the breakdown, never summable into a row count. */+ violations?: ScopeViolation[];+ /** DISTINCT rows involved, per table — what the user is told. */+ violationRowsByTable?: Array<{ table: string; rows: number }>;}): Promise<void> {const existing = await client@@ -298,7 +351,8 @@ export const companyExportFunction = inngest.createFunction(},{ event: "carbon/company-export" },async ({ event, step, logger }) => {- const { companyId, userId, label, includeStorage } = event.data;+ const { companyId, userId, label, includeStorage, skipCorrupted } =+ event.data;return await step.run("export-company", async () => {const client = getCarbonServiceRole();@@ -335,6 +389,7 @@ export const companyExportFunction = inngest.createFunction(userId,label,includeStorage,+ skipCorrupted: skipCorrupted === true,onProgress: report});@@ -380,8 +435,23 @@ export const companyExportFunction = inngest.createFunction(await upsertExportMarker(client, companyId, userId, {status: "failed",startedAt,- error: message.slice(0, 2000)+ error: message.slice(0, 2000),+ label: label ?? null,+ includeStorage,+ ...(err instanceof ExportScopeViolationError+ ? {+ reason: "scope-violations",+ violations: err.violations,+ violationRowsByTable: err.rowsByTable+ }+ : {})});+ // The guard's verdict is deterministic — a retry would only flip the+ // marker back to "running" and fail again ~10s later, resurrecting the+ // failure banner after the user has already recovered (skipped).+ if (err instanceof ExportScopeViolationError) {+ throw new NonRetriableError(message, { cause: err });+ }throw err;}});diff --git a/packages/jobs/src/inngest/functions/tasks/company-restore.ts b/packages/jobs/src/inngest/functions/tasks/company-restore.tsindex 66f094a507..04f1ac213a 100644--- a/packages/jobs/src/inngest/functions/tasks/company-restore.ts+++ b/packages/jobs/src/inngest/functions/tasks/company-restore.ts@@ -1,5 +1,6 @@import { getCarbonServiceRole } from "@carbon/auth/client.server";import { chunkArray } from "@carbon/utils";+import { NonRetriableError } from "inngest";import { sql } from "kysely";import { applyTableRenames } from "../../../backups/renames";import { getJobDatabaseClient, type JobDatabase } from "../../../db";@@ -13,12 +14,14 @@ import {backupNameFromSource,bindValue,canSetReplicationRole,+ ExportScopeViolationError,getCompanyTableCatalog,isUserScopedIdentityTable,RESTORE_INTEGRATION,readBackup,removeStoragePrefix,restoreAssetsFromBackup,+ type ScopeViolation,selectWipeableTables,throttleProgress,wipeScopedData,@@ -224,6 +227,17 @@ type RestoreMeta = {* dimensions) — only when this company is its group's sole member. A revert* must wipe + reload the same scope. */includeGroup?: boolean;+ /** The backup being restored + file choice — kept so a recovery action can+ * restart the same restore. */+ filePath?: string;+ includeStorage?: "none" | "all";+ /** Set when the pre-restore snapshot refused because the LIVE data has rows+ * whose NOT-NULL FK escapes company scope. */+ reason?: "scope-violations";+ /** Per FK EDGE — the breakdown, never summable into a row count. */+ violations?: ScopeViolation[];+ /** DISTINCT rows involved, per table — what the user is told. */+ violationRowsByTable?: Array<{ table: string; rows: number }>;};/** Exported: also used by `company-template.ts` when reverting a demo template. */@@ -399,6 +413,8 @@ export const companyRestoreFunction = inngest.createFunction(patch: {status: "running",label: label ?? null,+ filePath,+ includeStorage,startedAt: existing?.metadata.startedAt ?? new Date().toISOString()}});@@ -561,13 +577,28 @@ export const companyRestoreFunction = inngest.createFunction(companyId,userId,restoreRunId,- patch: { status: "failed", error: message }+ patch: {+ status: "failed",+ error: message,+ ...(err instanceof ExportScopeViolationError+ ? {+ reason: "scope-violations",+ violations: err.violations,+ violationRowsByTable: err.rowsByTable+ }+ : {})+ }});logger.error("Company restore failed", {companyId,restoreRunId,error: message});+ // The snapshot guard's verdict is deterministic; a retry re-fails and+ // flickers the marker running → failed under the user's recovery button.+ if (err instanceof ExportScopeViolationError) {+ throw new NonRetriableError(message, { cause: err });+ }throw err;}});diff --git a/packages/lib/src/events.ts b/packages/lib/src/events.tsindex abdad7b897..01322fe01b 100644--- a/packages/lib/src/events.ts+++ b/packages/lib/src/events.ts@@ -161,6 +161,8 @@ export type Events = {userId: string;label?: string;includeStorage: "none" | "all";+ /** Opt-in: exclude rows whose NOT-NULL FK escapes company scope instead of refusing. */+ skipCorrupted?: boolean;};};diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 07c607ce59..ffce768653 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -48,6 +48,14 @@ msgstr "„{taskName}\" ist erledigt – alle {0} seiner Setup-Map-Elemente sindmsgid "(excluded for this customer)"msgstr "(für diesen Kunden ausgeschlossen)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# Zeile verweist auf Daten außerhalb dieses Unternehmens, daher kann keine Sicherungskopie Ihrer aktuellen Daten erstellt werden.} other {# Zeilen verweisen auf Daten außerhalb dieses Unternehmens, daher kann keine Sicherungskopie Ihrer aktuellen Daten erstellt werden.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# Zeile verweist auf Daten außerhalb dieses Unternehmens, daher kann sie nicht gesichert werden. Wenn Sie sie überspringen, wird alles andere gesichert.} other {# Zeilen verweisen auf Daten außerhalb dieses Unternehmens, daher können sie nicht gesichert werden. Wenn Sie sie überspringen, wird alles andere gesichert.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Dieser Artikel ist auf 1 offener Änderungsmitteilung} other {Dieser Artikel ist auf # offenen Änderungsmitteilungen}}"@@ -114,6 +122,10 @@ msgstr "{0} Prozesse"msgid "{0} registered"msgstr "{0} registriert"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} Zeilen"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} Lieferanten mit einem Saldo"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# Kurs} other {# Kurse}}"msgid "{done} of {total} phases complete"msgstr "{done} von {total} Phasen abgeschlossen"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# Zeile ausgeschlossen} other {# Zeilen ausgeschlossen}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} von {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} Teile übersprungen — es gibt nichts zu produzieremsgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} wird zur Bearbeitung erneut geöffnet als Revision {0}. Das bereits an den Lieferanten gesendete Dokument bleibt unverändert, bis Sie die Bestellung abschließen und erneut senden."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {# Zeile dauerhaft löschen?} other {# Zeilen dauerhaft löschen?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# Phase verbleibend} other {# Phasen verbleibend}}"@@ -2543,6 +2561,9 @@ msgstr "Zurück zur Rückverfolgbarkeit"msgid "Backflush"msgstr "Retrograde Entnahme"+msgid "Backup failed"+msgstr "Sicherung fehlgeschlagen"+msgid "Backups"msgstr "Sicherungen"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Link in die Zwischenablage kopiert"msgid "Copied setup prompt to your clipboard"-msgstr "Rüst-Eingabeaufforderung in Ihre Zwischenablage kopiert"+msgstr "Rüst-Aufforderung in die Zwischenablage kopiert"msgid "Copies a setup prompt for your AI coding tool"msgstr "Kopiert eine Rüst-Eingabeaufforderung für Ihr KI-Codierungstool"@@ -4981,6 +5002,9 @@ msgstr "Aktion löschen"msgid "Delete Action"msgstr "Aktion löschen"+msgid "Delete and restore"+msgstr "Löschen und wiederherstellen"+msgid "Delete API Key"msgstr "API-Schlüssel löschen"@@ -5330,6 +5354,9 @@ msgstr "Abteilungen"msgid "Departments"msgstr "Abteilungen"+msgid "depends on an excluded row"+msgstr "hängt von einer ausgeschlossenen Zeile ab"+msgid "Depreciation"msgstr "Abschreibung"@@ -5765,6 +5792,12 @@ msgstr "z.B. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Jede Zelle zeigt die zugewiesenen Personen gegen die Personen, die die Tagesarbeit benötigt."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Jede Zeile ist ein Link aus den Daten dieses Unternehmens zu einer Zeile, die es nicht besitzt. Eine Sicherung mit diesen Zeilen könnte niemals wiederhergestellt werden."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Jede Zeile ist ein Link aus den Daten dieses Unternehmens zu einer Zeile, die es nicht besitzt. Das Entfernen dieser Zeilen ermöglicht die Wiederherstellung."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Die ungenutzten Materialien jedes Arbeitsgangs werden zurückgegeben, sobald der Arbeitsgang erledigt ist."@@ -8972,6 +9005,9 @@ msgstr "Jira-Problem verknüpfen"msgid "Link Linear Issue"msgstr "Linear-Problem verknüpfen"+msgid "link outside company"+msgstr "Link außerhalb des Unternehmens"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Verknüpfen Sie diesen Carbon-Kunden mit einem davon, oder erstellen Sie einen separaten Stripe-Kunden."@@ -12950,6 +12986,9 @@ msgstr "Klausel entfernen"msgid "Remove condition"msgstr "Bedingung entfernen"+msgid "Remove corrupted data and restore"+msgstr "Beschädigte Daten entfernen und wiederherstellen"+msgid "Remove Employee"msgstr "Mitarbeiter entfernen"@@ -13267,6 +13306,9 @@ msgstr "Wiederherstellen…"msgid "Restoring files"msgstr "Dateien werden wiederhergestellt"+msgid "restoring…"+msgstr "wird wiederhergestellt…"+msgid "Result"msgstr "Ergebnis"@@ -13348,6 +13390,9 @@ msgstr "Zurücksetzen"msgid "Reverting"msgstr "Wird zurückgesetzt"+msgid "reverting…"+msgstr "wird rückgängig gemacht…"+msgid "Review"msgstr "Überprüfung"@@ -13473,6 +13518,9 @@ msgstr "Arbeitsplan"msgid "rows"msgstr "Zeilen"+msgid "Rows left out of this backup"+msgstr "Zeilen, die aus dieser Sicherung ausgelassen wurden"+msgid "Rule"msgstr "Regel"@@ -14690,6 +14738,9 @@ msgstr "Größen"msgid "Skip"msgstr "Überspringen"+msgid "Skip corrupted rows and retry"+msgstr "Beschädigte Zeilen überspringen und erneut versuchen"+msgid "Skip Existing"msgstr "Vorhandene überspringen"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "Personal optional"+msgstr "Werkerbelegung optional"msgid "Staffing required"msgstr "Personal erforderlich"@@ -15557,6 +15608,9 @@ msgstr "Steuern"msgid "Team trained"msgstr "Team trainiert"+msgid "Technical details"+msgstr "Technische Details"+msgid "Technical support"msgstr "Technischer Support"@@ -15639,6 +15693,9 @@ msgstr "Der unveränderliche Datensatz jeder Bestandsbewegung; der verfügbare Bmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Die Autorisierung wurde in Onshape abgelehnt. Versuchen Sie die Verbindung erneut."+msgid "The backup job reported this error."+msgstr "Der Sicherungsvorgang hat diesen Fehler gemeldet."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "Das rückwärts berechnete Datum, bis zu dem ein Arbeitsgang beendet sein muss, um seinen Fertigungsauftrag pünktlich zu halten, geschrieben auf das Fälligkeitsdatum des Arbeitsgangs. Ein stabiles Ziel zur Messung des Fortschritts - niemals eine Platzierungsbeschränkung."@@ -16173,6 +16230,9 @@ msgstr "Die verbleibende WIP, die ein Fertigungsauftrag beim Abschließen zurücmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "In der Antwort von Onshape fehlten erforderliche Parameter. Versuchen Sie die Verbindung erneut."+msgid "The restore job reported this error."+msgstr "Der Wiederherstellungsvorgang hat diesen Fehler gemeldet."+msgid "The result will not appear on the Runs page."msgstr "Das Ergebnis wird nicht auf der Seite Ausführungen angezeigt."@@ -16410,9 +16470,18 @@ msgstr "Diese Fertigungsaufträge haben diesem Arbeitsplatz zugewiesene Arbeitsgmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Diese Buchungssätze sind noch Entwurf, sodass ihre Sollposten und Habenposten nicht im Sachkonto für diesen Zeitraum enthalten sind. Buchen Sie jeden einzelnen oder ändern Sie das Datum zu einem späteren offenen Zeitraum."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Diese Zeilen sind mit Daten außerhalb dieses Unternehmens verknüpft, daher könnten sie nie wiederhergestellt werden. Alles andere wurde gesichert."+msgid "this ability"msgstr "diese Fähigkeit"+msgid "This backup could not be completed."+msgstr "Diese Sicherung konnte nicht abgeschlossen werden."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Diese Sicherung wurde noch nicht überprüft. Alle Unterschiede werden beim Ausführen der Wiederherstellung gefunden."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "Die für dieses Material benötigte Menge dieses Auftrags."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Dieser Standort plant nur besetzte Arbeitsplätze, aber dies ist eine Lichter-aus (24×7) Station - sie ist ausgenommen und läuft unbeaufsichtigt weiter."+msgstr "Dieser Standort plant nur bemannte Arbeitsplätze, aber dies ist eine unbemannte 24×7-Station — sie ist ausgenommen und läuft unbeaufsichtigt weiter."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Dieser Standort plant nur Arbeiten, bei denen ein Werker auf der Besetzungstafel zugewiesen ist. Ohne zugewiesenen Werker wird die Arbeit nicht geplant und erscheint als nicht planbar."@@ -16561,6 +16630,12 @@ msgstr "Dieses Quartal"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."+msgid "This restore could not be completed."+msgstr "Diese Wiederherstellung konnte nicht abgeschlossen werden."++msgid "This revert could not be completed."+msgstr "Dieses Rollback konnte nicht abgeschlossen werden."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Diese Revision ist freigegeben (Produktion). Änderungen sollten normalerweise durch eine Änderungsmitteilung fließen."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Dieser Kundenauftrag hat Positionen, für die Fertigungsaufträge erstellt werden müssen"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Diese Station führt qualifikationsbeschränkte Arbeiten durch - sie läuft nur, während ein qualifizierter Werker in Schicht ist; Werker, die auf der Besetzungstafel zugewiesen sind, bestimmen das verfügbare Personal weiter."+msgstr "Dieser Arbeitsplatz führt Arbeiten mit Qualifikationsanforderung durch – er läuft nur, während ein qualifizierter Werker in Schicht ist; auf der Personalplanung zugewiesene Werker bestimmen das verfügbare Personal zusätzlich."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Diese Station führt Arbeiten ohne Qualifikationsanforderung durch; Werker, die auf der Besetzungstafel zugewiesen sind, bestimmen das verfügbare Personal."@@ -18330,9 +18405,15 @@ msgstr "Warum ist dies gesperrt?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Warum sich der Bestand ändert — Positiv (gefunden), Negativ (verloren/ausschuss) oder Satz (Zählwert mit gemessenem Wert ersetzen)."+msgid "Why this backup failed"+msgstr "Warum diese Sicherung fehlgeschlagen ist"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Warum diese Zeile abgelehnt wird; auf dem druckbaren Angebot angezeigt und für Win-Loss-Berichterstattung aufgezeichnet."+msgid "Why this restore failed"+msgstr "Warum diese Wiederherstellung fehlgeschlagen ist"+msgid "Will remain as a comment line"msgstr "Bleibt als Kommentarzeile erhalten"@@ -18565,6 +18646,9 @@ msgstr "Ihre kundenorientierten Preislisten"msgid "Your data is accessible and reasonably clean"msgstr "Ihre Daten sind zugänglich und angemessen bereinigt"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Ihre Daten wurden nicht geändert – die Wiederherstellung wird angehalten, bevor etwas verändert wird, falls sie nicht vollständig abgeschlossen werden kann."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Ihr DNS-Anbieter kann Ihre Domäne möglicherweise automatisch an den Eintragsnamen anhängen – geben Sie in diesem Fall nur den Teil davor ein (z. B. _carbon-challenge plus eine beliebige Subdomain)."diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 1578a55ed4..5063707722 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" is done — all {0} of its Setup Map items are configuredmsgid "(excluded for this customer)"msgstr "(excluded for this customer)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"@@ -114,6 +122,10 @@ msgstr "{0} Processes"msgid "{0} registered"msgstr "{0} registered"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} rows"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} suppliers with a balance"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# course} other {# courses}}"msgid "{done} of {total} phases complete"msgstr "{done} of {total} phases complete"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} of {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} parts skipped — nothing to make"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# phase left} other {# phases left}}"@@ -2543,6 +2561,9 @@ msgstr "Back to traceability"msgid "Backflush"msgstr "Backflush"+msgid "Backup failed"+msgstr "Backup failed"+msgid "Backups"msgstr "Backups"@@ -4981,6 +5002,9 @@ msgstr "Delete action"msgid "Delete Action"msgstr "Delete Action"+msgid "Delete and restore"+msgstr "Delete and restore"+msgid "Delete API Key"msgstr "Delete API Key"@@ -5330,6 +5354,9 @@ msgstr "departments"msgid "Departments"msgstr "Departments"+msgid "depends on an excluded row"+msgstr "depends on an excluded row"+msgid "Depreciation"msgstr "Depreciation"@@ -5765,6 +5792,12 @@ msgstr "e.g. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Each cell is the people assigned against the people the day's work needs."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Each operation's unused material returns as soon as the operation is done."@@ -8972,6 +9005,9 @@ msgstr "Link Jira Issue"msgid "Link Linear Issue"msgstr "Link Linear Issue"+msgid "link outside company"+msgstr "link outside company"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Link this Carbon customer to one of them, or create a separate Stripe customer."@@ -12950,6 +12986,9 @@ msgstr "Remove clause"msgid "Remove condition"msgstr "Remove condition"+msgid "Remove corrupted data and restore"+msgstr "Remove corrupted data and restore"+msgid "Remove Employee"msgstr "Remove Employee"@@ -13267,6 +13306,9 @@ msgstr "Restore…"msgid "Restoring files"msgstr "Restoring files"+msgid "restoring…"+msgstr "restoring…"+msgid "Result"msgstr "Result"@@ -13348,6 +13390,9 @@ msgstr "Revert"msgid "Reverting"msgstr "Reverting"+msgid "reverting…"+msgstr "reverting…"+msgid "Review"msgstr "Review"@@ -13473,6 +13518,9 @@ msgstr "Routing"msgid "rows"msgstr "rows"+msgid "Rows left out of this backup"+msgstr "Rows left out of this backup"+msgid "Rule"msgstr "Rule"@@ -14690,6 +14738,9 @@ msgstr "Sizes"msgid "Skip"msgstr "Skip"+msgid "Skip corrupted rows and retry"+msgstr "Skip corrupted rows and retry"+msgid "Skip Existing"msgstr "Skip Existing"@@ -15557,6 +15608,9 @@ msgstr "Taxes"msgid "Team trained"msgstr "Team trained"+msgid "Technical details"+msgstr "Technical details"+msgid "Technical support"msgstr "Technical support"@@ -15639,6 +15693,9 @@ msgstr "The append-only record of every stock movement; on-hand is the sum of itmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "The authorization was refused in Onshape. Try connecting again."+msgid "The backup job reported this error."+msgstr "The backup job reported this error."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."@@ -16173,6 +16230,9 @@ msgstr "The residual WIP a job has left at close, swept to a Production Variancemsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "The response from Onshape was missing required parameters. Try connecting again."+msgid "The restore job reported this error."+msgstr "The restore job reported this error."+msgid "The result will not appear on the Runs page."msgstr "The result will not appear on the Runs page."@@ -16410,9 +16470,18 @@ msgstr "These jobs have operations assigned to this work center:"msgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgid "this ability"msgstr "this ability"+msgid "This backup could not be completed."+msgstr "This backup could not be completed."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "This backup hasn't been checked yet. Any differences are found when the restore runs."@@ -16561,6 +16630,12 @@ msgstr "This Quarter"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 "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."+msgid "This restore could not be completed."+msgstr "This restore could not be completed."++msgid "This revert could not be completed."+msgstr "This revert could not be completed."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "This revision is released (Production). Changes should normally flow through a change notice."@@ -18330,9 +18405,15 @@ msgstr "Why is this locked?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."+msgid "Why this backup failed"+msgstr "Why this backup failed"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."+msgid "Why this restore failed"+msgstr "Why this restore failed"+msgid "Will remain as a comment line"msgstr "Will remain as a comment line"@@ -18569,6 +18650,9 @@ msgstr "Your customer-facing price lists"msgid "Your data is accessible and reasonably clean"msgstr "Your data is accessible and reasonably clean"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Your data was not changed — the restore stops before touching anything if it can't complete."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 248a0480a3..1be23a7a59 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" está hecho — todos los {0} elementos de su Mapa de Conmsgid "(excluded for this customer)"msgstr "(excluido para este cliente)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# fila vincula a datos fuera de esta empresa, por lo que no se puede hacer una copia de seguridad de sus datos actuales.} other {# filas vinculan a datos fuera de esta empresa, por lo que no se puede hacer una copia de seguridad de sus datos actuales.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# fila vincula a datos fuera de esta empresa, por lo que no se puede hacer backup. Omitirla permite hacer backup del resto.} other {# filas vinculan a datos fuera de esta empresa, por lo que no se pueden hacer backup. Omitirlas permite hacer backup del resto.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Este artículo está en 1 aviso de cambio abierto} other {Este artículo está en # avisos de cambio abiertos}}"@@ -114,6 +122,10 @@ msgstr "{0} Procesos"msgid "{0} registered"msgstr "{0} registrado"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} filas"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} proveedores con saldo"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# curso} other {# cursos}}"msgid "{done} of {total} phases complete"msgstr "{done} de {total} fases completadas"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# fila excluida} other {# filas excluidas}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} de {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} piezas omitidas — no hay nada que fabricar"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} se reabrirá para edición como revisión {0}. El documento ya enviado al proveedor permanece sin cambios hasta que finalices y reenvíes la orden."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {¿Eliminar permanentemente # fila?} other {¿Eliminar permanentemente # filas?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# fase restante} other {# fases restantes}}"@@ -2543,6 +2561,9 @@ msgstr "Volver a trazabilidad"msgid "Backflush"msgstr "Consumo retroactivo"+msgid "Backup failed"+msgstr "Falló la copia de seguridad"+msgid "Backups"msgstr "Copias de seguridad"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Enlace copiado al portapapeles"msgid "Copied setup prompt to your clipboard"-msgstr "Prompt de preparación copiado al portapapeles"+msgstr "Se copió el aviso de preparación en su portapapeles"msgid "Copies a setup prompt for your AI coding tool"msgstr "Copia un prompt de preparación para tu herramienta de codificación IA"@@ -4981,6 +5002,9 @@ msgstr "Eliminar acción"msgid "Delete Action"msgstr "Eliminar acción"+msgid "Delete and restore"+msgstr "Eliminar y restaurar"+msgid "Delete API Key"msgstr "Eliminar clave API"@@ -5330,6 +5354,9 @@ msgstr "departamentos"msgid "Departments"msgstr "Departamentos"+msgid "depends on an excluded row"+msgstr "depende de una fila excluida"+msgid "Depreciation"msgstr "Depreciación"@@ -5765,6 +5792,12 @@ msgstr "p. ej. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Cada celda muestra las personas asignadas frente a las personas que el trabajo del día necesita."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Cada línea es un vínculo de los datos de esta empresa a una fila que no posee. Una copia de seguridad con estas filas nunca podría restaurarse."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Cada línea es un vínculo de los datos de esta empresa a una fila que no posee. Eliminar esas filas permite ejecutar la restauración."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "El material no utilizado de cada operación se devuelve tan pronto como la operación está lista."@@ -8972,6 +9005,9 @@ msgstr "Vincular problema de Jira"msgid "Link Linear Issue"msgstr "Vincular problema de Linear"+msgid "link outside company"+msgstr "vínculo fuera de la empresa"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Vincule este cliente de Carbon a uno de ellos o cree un cliente de Stripe separado."@@ -12950,6 +12986,9 @@ msgstr "Quitar cláusula"msgid "Remove condition"msgstr "Quitar condición"+msgid "Remove corrupted data and restore"+msgstr "Quitar datos dañados y restaurar"+msgid "Remove Employee"msgstr "Eliminar Empleado"@@ -13267,6 +13306,9 @@ msgstr "Restaurar…"msgid "Restoring files"msgstr "Restaurando archivos"+msgid "restoring…"+msgstr "restaurando…"+msgid "Result"msgstr "Resultado"@@ -13348,6 +13390,9 @@ msgstr "Revertir"msgid "Reverting"msgstr "Revirtiendo"+msgid "reverting…"+msgstr "revirtiendo…"+msgid "Review"msgstr "Revisar"@@ -13473,6 +13518,9 @@ msgstr "Ruta de fabricación"msgid "rows"msgstr "filas"+msgid "Rows left out of this backup"+msgstr "Filas excluidas de esta copia de seguridad"+msgid "Rule"msgstr "Regla"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "Nombre de Programación"msgid "Schedule outdated at"-msgstr "Programa desactualizado en"+msgstr "Programa obsoleto a"msgid "Schedule outdated reason"msgstr "Motivo del programa desactualizado"@@ -14690,6 +14738,9 @@ msgstr "Tamaños"msgid "Skip"msgstr "Omitir"+msgid "Skip corrupted rows and retry"+msgstr "Omitir filas dañadas e intentar de nuevo"+msgid "Skip Existing"msgstr "Omitir Existentes"@@ -15557,6 +15608,9 @@ msgstr "Impuestos"msgid "Team trained"msgstr "Equipo capacitado"+msgid "Technical details"+msgstr "Detalles técnicos"+msgid "Technical support"msgstr "Soporte técnico"@@ -15639,6 +15693,9 @@ msgstr "El registro de solo adición de cada movimiento de inventario; la cantidmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "La autorización se rechazó en Onshape. Vuelve a intentar la conexión."+msgid "The backup job reported this error."+msgstr "El trabajo de copia de seguridad reportó este error."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "La fecha calculada hacia atrás que una operación debe finalizar para mantener su orden de trabajo a tiempo, escrita en la fecha de vencimiento de la operación. Un objetivo estable para medir el progreso — nunca una restricción en la colocación."@@ -16173,6 +16230,9 @@ msgstr "El producto en proceso residual que una orden de trabajo deja al cierre,msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "La respuesta de Onshape no incluía los parámetros requeridos. Vuelve a intentar la conexión."+msgid "The restore job reported this error."+msgstr "El trabajo de restauración reportó este error."+msgid "The result will not appear on the Runs page."msgstr "El resultado no aparecerá en la página Ejecuciones."@@ -16410,9 +16470,18 @@ msgstr "Estas órdenes de trabajo tienen operaciones asignadas a este centro demsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Estos asientos aún están en Borrador, por lo que sus debe y haber no están en el libro mayor para este período. Contabiliza cada uno, o cambia su fecha a un período abierto posterior."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Estas filas se vinculan a datos fuera de esta empresa, por lo que nunca podrían ser restauradas. Todo lo demás fue respaldado."+msgid "this ability"msgstr "esta habilidad"+msgid "This backup could not be completed."+msgstr "Esta copia de seguridad no se pudo completar."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Esta copia de seguridad aún no ha sido verificada. Se encontrarán diferencias cuando se ejecute la restauración."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "La cantidad propia requerida por este trabajo para el material."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Esta ubicación solo programa centros de trabajo con personal, pero esta es una estación automática (24×7) — está exenta y continúa funcionando sin vigilancia."+msgstr "Esta ubicación solo programa centros de trabajo con personal, pero esta es una estación sin vigilancia (24×7) — está exenta y sigue funcionando sin vigilancia."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Esta ubicación solo programa trabajo donde un operario está asignado en el tablero de personal. Sin nadie asignado aquí, el trabajo no se programa y se muestra como no programable."@@ -16561,6 +16630,12 @@ msgstr "Este Trimestre"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."+msgid "This restore could not be completed."+msgstr "Esta restauración no se pudo completar."++msgid "This revert could not be completed."+msgstr "Esta reversión no se pudo completar."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Esta revisión se ha liberado (Producción). Los cambios normalmente deben fluir a través de un aviso de cambio."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Este pedido de venta tiene líneas que requieren que se creen órdenes de trabajo"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Esta estación ejecuta trabajo controlado por habilidad — solo se ejecuta mientras un operario calificado está en turno; los operarios asignados en el tablero de personal moldean aún más la mano de obra disponible."+msgstr "Esta estación ejecuta trabajo con control de habilidades — solo se ejecuta mientras hay un operario calificado en turno; los operarios asignados en el tablero de personal determinan la mano de obra disponible."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Esta estación ejecuta trabajo sin requisito de habilidad; los operarios asignados en el tablero de personal moldean la mano de obra disponible."@@ -18330,9 +18405,15 @@ msgstr "¿Por qué está bloqueado?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Por qué las existencias están cambiando — Positivo (encontrado), Negativo (perdido/desperdicio) o Establecer (reemplazar el conteo con un valor medido)."+msgid "Why this backup failed"+msgstr "Por qué falló esta copia de seguridad"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Por qué se rechaza esta línea; mostrado en el presupuesto imprimible y registrado para reportes de ganancia-pérdida."+msgid "Why this restore failed"+msgstr "Por qué falló esta restauración"+msgid "Will remain as a comment line"msgstr "Permanecerá como una línea de comentario"@@ -18565,6 +18646,9 @@ msgstr "Sus listas de precios visibles para clientes"msgid "Your data is accessible and reasonably clean"msgstr "Sus datos son accesibles y razonablemente limpios"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Sus datos no fueron modificados — la restauración se detiene antes de tocar nada si no puede completarse."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Tu proveedor de DNS puede añadir automáticamente tu dominio al nombre del registro — si es así, introduce solo la parte anterior (p. ej. _carbon-challenge más cualquier subdominio)."diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 2f0e84eeac..d5d1c7fdc4 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -48,6 +48,14 @@ msgstr "« {taskName} » est fait – tous les {0} éléments de sa carte de mismsgid "(excluded for this customer)"msgstr "(exclu pour ce client)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# ligne se connecte à des données en dehors de cette Société, donc une copie de sécurité de vos données actuelles ne peut pas être créée.} other {# lignes se connectent à des données en dehors de cette Société, donc une copie de sécurité de vos données actuelles ne peut pas être créée.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# ligne se connecte à des données en dehors de cette Société, donc elle ne peut pas être sauvegardée. L'ignorer sauvegarde tout le reste.} other {# lignes se connectent à des données en dehors de cette Société, donc elles ne peuvent pas être sauvegardées. Les ignorer sauvegarde tout le reste.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Cet article est sur 1 avis de modification ouvert} other {Cet article est sur # avis de modification ouverts}}"@@ -114,6 +122,10 @@ msgstr "{0} Processus"msgid "{0} registered"msgstr "{0} enregistré"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} lignes"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} fournisseurs avec un solde"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# cours} other {# cours}}"msgid "{done} of {total} phases complete"msgstr "{done} sur {total} phases terminées"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# ligne exclue} other {# lignes exclues}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} sur {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} pièces ignorées — rien à fabriquer"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} sera rouvert pour modification en tant que révision {0}. Le document déjà envoyé au fournisseur reste inchangé jusqu'à ce que vous le finalisiez et le renvoiez."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Supprimer définitivement # ligne ?} other {Supprimer définitivement # lignes ?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# phase restante} other {# phases restantes}}"@@ -2543,6 +2561,9 @@ msgstr "Retour à la traçabilité"msgid "Backflush"msgstr "Post-consommation"+msgid "Backup failed"+msgstr "La sauvegarde a échoué"+msgid "Backups"msgstr "Sauvegardes"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Lien copié dans le presse-papiers"msgid "Copied setup prompt to your clipboard"-msgstr "Invite de réglage copiée dans le presse-papiers"+msgstr "Invite de Réglage copiée dans votre presse-papiers"msgid "Copies a setup prompt for your AI coding tool"msgstr "Copie une invite de réglage pour votre outil de codage IA"@@ -4981,6 +5002,9 @@ msgstr "Supprimer l'action"msgid "Delete Action"msgstr "Supprimer l'action"+msgid "Delete and restore"+msgstr "Supprimer et restaurer"+msgid "Delete API Key"msgstr "Supprimer la clé API"@@ -5330,6 +5354,9 @@ msgstr "départements"msgid "Departments"msgstr "Départements"+msgid "depends on an excluded row"+msgstr "dépend d'une ligne exclue"+msgid "Depreciation"msgstr "Amortissement"@@ -5765,6 +5792,12 @@ msgstr "p. ex. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Chaque cellule affiche les personnes assignées par rapport aux personnes que le travail du jour nécessite."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Chaque ligne est un lien entre les données de cette Société et une ligne qu'elle ne possède pas. Une sauvegarde avec ces lignes ne pourrait jamais être restaurée."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Chaque ligne est un lien entre les données de cette Société et une ligne qu'elle ne possède pas. Supprimer ces lignes permet à la restauration de s'exécuter."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "La matière inutilisée de chaque opération est restituée dès que l'opération est terminée."@@ -8972,6 +9005,9 @@ msgstr "Lier un problème Jira"msgid "Link Linear Issue"msgstr "Lier un problème Linear"+msgid "link outside company"+msgstr "lien en dehors de la Société"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Liez ce client Carbon à l'un d'entre eux, ou créez un client Stripe distinct."@@ -12950,6 +12986,9 @@ msgstr "Retirer la clause"msgid "Remove condition"msgstr "Retirer la condition"+msgid "Remove corrupted data and restore"+msgstr "Retirer les données corrompues et restaurer"+msgid "Remove Employee"msgstr "Supprimer l'employé"@@ -13267,6 +13306,9 @@ msgstr "Restaurer…"msgid "Restoring files"msgstr "Restauration des fichiers"+msgid "restoring…"+msgstr "restauration en cours…"+msgid "Result"msgstr "Résultat"@@ -13348,6 +13390,9 @@ msgstr "Annuler"msgid "Reverting"msgstr "Annulation en cours"+msgid "reverting…"+msgstr "rétablissement en cours…"+msgid "Review"msgstr "Revue"@@ -13473,6 +13518,9 @@ msgstr "Gamme opératoire"msgid "rows"msgstr "lignes"+msgid "Rows left out of this backup"+msgstr "Lignes exclues de cette sauvegarde"+msgid "Rule"msgstr "Règle"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "Nom de l'horaire"msgid "Schedule outdated at"-msgstr "Planning obsolète à"+msgstr "Planification obsolète à"msgid "Schedule outdated reason"msgstr "Raison de l'obsolescence du planning"@@ -14690,6 +14738,9 @@ msgstr "Tailles"msgid "Skip"msgstr "Ignorer"+msgid "Skip corrupted rows and retry"+msgstr "Ignorer les lignes corrompues et réessayer"+msgid "Skip Existing"msgstr "Ignorer les éléments existants"@@ -15557,6 +15608,9 @@ msgstr "Taxes"msgid "Team trained"msgstr "Équipe formée"+msgid "Technical details"+msgstr "Détails techniques"+msgid "Technical support"msgstr "Support technique"@@ -15639,6 +15693,9 @@ msgstr "L'enregistrement d'ajout seul de tout mouvement de stock; le stock dispomsgid "The authorization was refused in Onshape. Try connecting again."msgstr "L'autorisation a été refusée dans Onshape. Réessayez de vous connecter."+msgid "The backup job reported this error."+msgstr "Le travail de sauvegarde a signalé cette erreur."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "La date calculée rétroactivement à laquelle une opération doit être terminée pour que son ordre de fabrication soit à l'heure, écrite à la date d'échéance de l'opération. Une cible stable pour mesurer la progression — jamais une contrainte de placement."@@ -16173,6 +16230,9 @@ msgstr "L'en-cours résiduel qu'un ordre de fabrication a laissé à la clôturemsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "La réponse d'Onshape ne contenait pas les paramètres requis. Réessayez de vous connecter."+msgid "The restore job reported this error."+msgstr "Le travail de restauration a signalé cette erreur."+msgid "The result will not appear on the Runs page."msgstr "Le résultat n'apparaîtra pas sur la page Exécutions."@@ -16410,9 +16470,18 @@ msgstr "Ces ordres de fabrication ont des opérations assignées à ce poste demsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Ces écritures de journal sont encore Brouillon, de sorte que leurs débits et crédits ne se trouvent pas dans le grand livre pour cette période. Comptabilisez chacune ou redatez-la à une période ouverte ultérieure."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Ces lignes sont liées à des données en dehors de cette société, donc elles ne pourraient jamais être restaurées. Tout le reste a été sauvegardé."+msgid "this ability"msgstr "cette compétence"+msgid "This backup could not be completed."+msgstr "Cette sauvegarde n'a pas pu être complétée."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Cette sauvegarde n'a pas encore été vérifiée. Toute différence est trouvée lors de l'exécution de la restauration."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "La quantité propre requise par cette tâche pour le matériau."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Ce site planifie uniquement les postes de travail dotés en personnel, mais celui-ci est une station sans interruption (24×7) — elle est exempte et continue de fonctionner sans surveillance."+msgstr "Ce site ne planifie que les postes de travail dotés en personnel, mais c'est une station sans surveillance (24×7) — elle est exempte et continue de fonctionner sans surveillance."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Ce site planifie uniquement le travail où un opérateur est assigné sur le tableau d'affectation. Sans personne assignée ici, le travail n'est pas planifié et s'affiche comme non planifiable."@@ -16561,6 +16630,12 @@ msgstr "Ce trimestre"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."+msgid "This restore could not be completed."+msgstr "Cette restauration n'a pas pu être complétée."++msgid "This revert could not be completed."+msgstr "Ce rétablissement n'a pas pu être complété."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Cette révision est publiée (Production). Les modifications doivent normalement passer par un avis de modification."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Cette commande client a des lignes qui nécessitent la création d'ordres de fabrication."msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Cette station exécute un travail contrôlé par compétence — il ne s'exécute que lorsqu'un opérateur qualifié est de service ; les opérateurs assignés sur le tableau d'affectation façonnent davantage la main-d'œuvre disponible."+msgstr "Ce poste exécute du travail basé sur les compétences — il ne s'exécute que si un opérateur qualifié est en équipe ; les opérateurs assignés au tableau d'affectation façonnent davantage la main-d'œuvre disponible."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Cette station exécute un travail sans exigence de compétence ; les opérateurs assignés sur le tableau d'affectation façonnent la main-d'œuvre disponible."@@ -18330,9 +18405,15 @@ msgstr "Pourquoi est-ce verrouillé ?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Pourquoi le stock change — Positif (trouvé), Négatif (perdu/rebut) ou Défini (remplacer la quantité par une valeur mesurée)."+msgid "Why this backup failed"+msgstr "Raison de l'échec de cette sauvegarde"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Pourquoi cette ligne est refusée ; affiché sur le devis imprimable et enregistré pour les rapports gain-perte."+msgid "Why this restore failed"+msgstr "Raison de l'échec de cette restauration"+msgid "Will remain as a comment line"msgstr "Restera comme ligne de commentaire"@@ -18565,6 +18646,9 @@ msgstr "Vos listes de prix destinées aux clients"msgid "Your data is accessible and reasonably clean"msgstr "Vos données sont accessibles et raisonnablement propres"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Vos données n'ont pas été modifiées — la restauration s'arrête avant de modifier quoi que ce soit si elle ne peut pas se terminer."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Votre fournisseur DNS peut ajouter automatiquement votre domaine au nom de l'enregistrement — le cas échéant, entrez uniquement la partie qui précède (par exemple, _carbon-challenge plus tout sous-domaine)."diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 4e71cb2c07..217f70c45a 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" पूरा हो गया — इसके सभीmsgid "(excluded for this customer)"msgstr "(इस ग्राहक के लिए बाहर रखा गया)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# पंक्ति इस कंपनी के बाहर डेटा से जुड़ी है, इसलिए आपके वर्तमान डेटा की सुरक्षा प्रति नहीं बनाई जा सकती।} other {# पंक्तियाँ इस कंपनी के बाहर डेटा से जुड़ी हैं, इसलिए आपके वर्तमान डेटा की सुरक्षा प्रति नहीं बनाई जा सकती।}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# पंक्ति इस कंपनी के बाहर डेटा से जुड़ी है, इसलिए इसे बैकअप नहीं किया जा सकता। इसे छोड़ने से सब कुछ और बैकअप हो जाता है।} other {# पंक्तियाँ इस कंपनी के बाहर डेटा से जुड़ी हैं, इसलिए उन्हें बैकअप नहीं किया जा सकता। उन्हें छोड़ने से सब कुछ और बैकअप हो जाता है।}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {यह आइटम 1 खुली परिवर्तन सूचना पर है} other {यह आइटम # खुली परिवर्तन सूचनाओं पर है}}"@@ -114,6 +122,10 @@ msgstr "{0} प्रक्रियाएं"msgid "{0} registered"msgstr "{0} पंजीकृत"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} पंक्तियाँ"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} आपूर्तिकर्ता शेष राशि के साथ"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# कोर्स} other {# कोर्स}}"msgid "{done} of {total} phases complete"msgstr "{done} में से {total} चरण पूर्ण"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# पंक्ति बाहर रखी गई} other {# पंक्तियाँ बाहर रखी गईं}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} में से {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} पार्ट्स छोड़ दिए गएmsgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} को रिवीजन {0} के रूप में संपादन के लिए फिर से खोला जाएगा। आपूर्तिकर्ता को भेजा गया दस्तावेज़ अपरिवर्तित रहेगा जब तक आप क्रय आदेश को अंतिम रूप न दें और पुनः न भेजें।"+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {# पंक्ति को स्थायी रूप से हटाएँ?} other {# पंक्तियों को स्थायी रूप से हटाएँ?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# चरण बचा} other {# चरण बचे}}"@@ -2543,6 +2561,9 @@ msgstr "ट्रेसेबिलिटी पर वापस जाएं"msgid "Backflush"msgstr "बैकफ्लश"+msgid "Backup failed"+msgstr "बैकअप विफल रहा"+msgid "Backups"msgstr "बैकअप"@@ -4981,6 +5002,9 @@ msgstr "क्रिया हटाएं"msgid "Delete Action"msgstr "कार्रवाई हटाएं"+msgid "Delete and restore"+msgstr "हटाएँ और पुनः स्थापित करें"+msgid "Delete API Key"msgstr "API कुंजी हटाएँ"@@ -5330,6 +5354,9 @@ msgstr "विभाग"msgid "Departments"msgstr "विभाग"+msgid "depends on an excluded row"+msgstr "एक बाहर रखी गई पंक्ति पर निर्भर है"+msgid "Depreciation"msgstr "मूल्यह्रास"@@ -5765,6 +5792,12 @@ msgstr "उदाहरण के लिए Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "प्रत्येक सेल उन लोगों को दर्शाता है जो दिन के काम के लिए आवश्यक लोगों के खिलाफ असाइन किए गए हैं।"+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "प्रत्येक पंक्ति इस कंपनी के डेटा से एक ऐसी पंक्ति के लिए एक लिंक है जिसका यह मालिक नहीं है। इन पंक्तियों के साथ एक बैकअप को कभी भी पुनः स्थापित नहीं किया जा सकता।"++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "प्रत्येक पंक्ति इस कंपनी के डेटा से एक ऐसी पंक्ति के लिए एक लिंक है जिसका यह मालिक नहीं है। उन पंक्तियों को हटाने से पुनः स्थापन चल जाता है।"+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "प्रत्येक ऑपरेशन की अप्रयुक्त सामग्री जैसे ही ऑपरेशन हो जाता है तुरंत वापस आती है।"@@ -7617,7 +7650,7 @@ msgid "Going live on Carbon"msgstr "कार्बन पर लाइव जाना"msgid "Good afternoon, {name}."-msgstr "दोपहर की शुभकामनाएं, {name}।"+msgstr "शुभ दोपहर, {name}।"msgid "Good evening, {name}."msgstr "शाम की शुभकामनाएं, {name}।"@@ -8972,6 +9005,9 @@ msgstr "Jira समस्या को लिंक करें"msgid "Link Linear Issue"msgstr "Linear समस्या को लिंक करें"+msgid "link outside company"+msgstr "कंपनी के बाहर का लिंक"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "इस Carbon ग्राहक को इनमें से किसी एक से जोड़ें, या एक अलग Stripe ग्राहक बनाएँ।"@@ -12842,7 +12878,7 @@ msgid "Refresh exchange rate"msgstr "विनिमय दर को ताज़ा करें"msgid "Regenerate"-msgstr "पुनः उत्पन्न करें"+msgstr "पुनर्जनित करें"msgid "Regenerate the schedule for this location now. It also runs automatically about 30 seconds after the last scheduling change (edits are batched, so several quick changes trigger a single regeneration)."msgstr "इस स्थान के लिए अभी शेड्यूल फिर से जेनरेट करें। यह अंतिम शेड्यूलिंग परिवर्तन के लगभग 30 सेकंड बाद स्वचालित रूप से भी चलता है (संपादन बैच किए जाते हैं, इसलिए कई त्वरित परिवर्तन एकल पुनर्जनन को ट्रिगर करते हैं)।"@@ -12950,6 +12986,9 @@ msgstr "खंड निकालें"msgid "Remove condition"msgstr "शर्त निकालें"+msgid "Remove corrupted data and restore"+msgstr "भ्रष्ट डेटा निकालें और पुनर्स्थापित करें"+msgid "Remove Employee"msgstr "कर्मचारी को हटाएँ"@@ -13267,6 +13306,9 @@ msgstr "पुनः स्थापित करें…"msgid "Restoring files"msgstr "फ़ाइलें पुनः स्थापित कर रहे हैं"+msgid "restoring…"+msgstr "पुनर्स्थापित किया जा रहा है…"+msgid "Result"msgstr "परिणाम"@@ -13348,6 +13390,9 @@ msgstr "पूर्ववत् करें"msgid "Reverting"msgstr "पूर्ववत् कर रहे हैं"+msgid "reverting…"+msgstr "वापस किया जा रहा है…"+msgid "Review"msgstr "समीक्षा"@@ -13473,6 +13518,9 @@ msgstr "रूटिंग"msgid "rows"msgstr "पंक्तियाँ"+msgid "Rows left out of this backup"+msgstr "इस बैकअप से छोड़ी गई पंक्तियां"+msgid "Rule"msgstr "नियम"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "शेड्यूल नाम"msgid "Schedule outdated at"-msgstr "शेड्यूल पुरातन पर"+msgstr "पर शेड्यूल पुरानी हुई"msgid "Schedule outdated reason"msgstr "शेड्यूल पुरातन कारण"@@ -14690,6 +14738,9 @@ msgstr "आकार"msgid "Skip"msgstr "छोड़ें"+msgid "Skip corrupted rows and retry"+msgstr "भ्रष्ट पंक्तियों को छोड़ें और पुनः प्रयास करें"+msgid "Skip Existing"msgstr "मौजूदा को छोड़ें"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "स्टाफिंग वैकल्पिक"+msgstr "कर्मचारी वैकल्पिक है"msgid "Staffing required"msgstr "स्टाफिंग आवश्यक"@@ -15557,6 +15608,9 @@ msgstr "कर"msgid "Team trained"msgstr "टीम प्रशिक्षित"+msgid "Technical details"+msgstr "तकनीकी विवरण"+msgid "Technical support"msgstr "तकनीकी समर्थन"@@ -15639,6 +15693,9 @@ msgstr "प्रत्येक स्टॉक आंदोलन का कmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape में प्राधिकरण अस्वीकार कर दिया गया। दोबारा कनेक्ट करने का प्रयास करें।"+msgid "The backup job reported this error."+msgstr "बैकअप जॉब ने इस त्रुटि की रिपोर्ट की।"+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "वह पिछड़ी हुई गणना की गई तारीख जिस तक एक ऑपरेशन को अपने जॉब को समय पर रखने के लिए समाप्त करना चाहिए, ऑपरेशन की नियत तिथि में लिखा गया है। प्रगति को मापने के लिए एक स्थिर लक्ष्य — कभी भी प्लेसमेंट पर बाधा नहीं।"@@ -16173,6 +16230,9 @@ msgstr "अवशिष्ट WIP जो एक जॉब के पास बmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape की प्रतिक्रिया में आवश्यक पैरामीटर नहीं थे। दोबारा कनेक्ट करने का प्रयास करें।"+msgid "The restore job reported this error."+msgstr "पुनर्स्थापन जॉब ने इस त्रुटि की रिपोर्ट की।"+msgid "The result will not appear on the Runs page."msgstr "परिणाम Runs page पर प्रदर्शित नहीं होगा।"@@ -16410,9 +16470,18 @@ msgstr "ये जॉब इस वर्क सेंटर को असाइmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "ये जर्नल प्रविष्टियां अभी भी ड्राफ्ट हैं, इसलिए उनके नामे और जमा इस अवधि के लिए खाता बही में नहीं हैं। प्रत्येक को पोस्ट करें, या इसे बाद की खुली अवधि में फिर से दिनांकित करें।"+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "ये पंक्तियां इस कंपनी के बाहर के डेटा से जुड़ी हुई हैं, इसलिए उन्हें कभी भी पुनर्स्थापित नहीं किया जा सकता। बाकी सब कुछ बैक अप किया गया था।"+msgid "this ability"msgstr "यह क्षमता"+msgid "This backup could not be completed."+msgstr "यह बैकअप पूर्ण नहीं किया जा सका।"+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "इस बैकअप की अभी जांच नहीं की गई है। कोई भी अंतर पुनः स्थापित करने के समय पाया जाता है।"@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "इस सामग्री के लिए इस कार्य की अपनी आवश्यक मात्रा।"msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "यह स्थान केवल स्टाफ्ड वर्क सेंटर को शेड्यूल करता है, लेकिन यह एक लाइट-आउट (24×7) स्टेशन है — यह छूट प्राप्त है और निरीक्षण के बिना चलता रहता है।"+msgstr "यह स्थान केवल कर्मचारी वर्क सेंटर को शेड्यूल करता है, लेकिन यह एक लाइट्स-आउट (24×7) स्टेशन है — यह छूट प्राप्त है और बिना निगरानी के चलता रहता है।"msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "यह स्थान केवल उस काम को शेड्यूल करता है जहां मैनिंग बोर्ड पर एक ऑपरेटर असाइन किया गया है। यहां कोई असाइन नहीं होने पर, काम शेड्यूल नहीं किया जाता और गैर-शेड्यूल करने योग्य दिखाई देता है।"@@ -16561,6 +16630,12 @@ msgstr "इस त्रैमासिक"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 "यह उनके प्रमाणीकरणकर्ता ऐप को निकालता है, इसलिए उनके अगले साइन-इन के लिए केवल एक जादुई लिंक की आवश्यकता होती है। जब वे अपने प्रमाणीकरणकर्ता तक पहुंच खो गए हों तो इसका उपयोग करें। यह उनके साइन-इन को उन सभी कंपनियों के लिए प्रभावित करता है जिनसे वे संबंधित हैं।"+msgid "This restore could not be completed."+msgstr "यह पुनर्स्थापन पूर्ण नहीं किया जा सका।"++msgid "This revert could not be completed."+msgstr "यह वापसी पूर्ण नहीं की जा सकी।"+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "यह रिवीजन जारी है (उत्पादन)। परिवर्तन आमतौर पर एक परिवर्तन सूचना के माध्यम से प्रवाहित होने चाहिए।"@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "इस विक्रय आदेश के पास पंक्तियां हैं जिनके लिए जॉब बनाने की आवश्यकता है"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "यह स्टेशन कौशल-गेटेड काम चलाता है — यह केवल तब चलता है जब एक योग्य ऑपरेटर शिफ्ट पर हो; मैनिंग बोर्ड पर असाइन किए गए ऑपरेटर आगे उपलब्ध श्रम को आकार देते हैं।"+msgstr "यह स्टेशन कौशल-आधारित कार्य चलाता है — यह केवल तब चलता है जब एक योग्य ऑपरेटर शिफ्ट पर हो; मैनिंग बोर्ड पर असाइन किए गए ऑपरेटर उपलब्ध श्रम को आकार देते हैं।"msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "यह स्टेशन कोई कौशल आवश्यकता के बिना काम चलाता है; मैनिंग बोर्ड पर असाइन किए गए ऑपरेटर उपलब्ध श्रम को आकार देते हैं।"@@ -18330,9 +18405,15 @@ msgstr "यह क्यों लॉक है?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "स्टॉक क्यों बदल रहा है — सकारात्मक (पाया गया), नकारात्मक (खोया/स्क्रैप) या सेट करें (गिनती को मापा मूल्य से बदलें)।"+msgid "Why this backup failed"+msgstr "यह बैकअप क्यों विफल हुआ"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "यह पंक्ति क्यों अस्वीकार की जा रही है; मुद्रण योग्य उद्धरण पर प्रदर्शित और जीत-हानि रिपोर्टिंग के लिए दर्ज।"+msgid "Why this restore failed"+msgstr "यह पुनर्स्थापन क्यों विफल हुआ"+msgid "Will remain as a comment line"msgstr "टिप्पणी पंक्ति के रूप में रहेगा"@@ -18569,6 +18650,9 @@ msgstr "आपकी ग्राहक-सामना करने वालmsgid "Your data is accessible and reasonably clean"msgstr "आपका डेटा सुलभ है और उचित रूप से स्वच्छ है"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "आपका डेटा परिवर्तित नहीं किया गया — पुनर्स्थापन पूरा न हो सके तो किसी भी चीज़ को छूने से पहले रुक जाता है।"+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "आपका DNS प्रदाता रिकॉर्ड नाम में आपका डोमेन स्वचालित रूप से जोड़ सकता है — यदि ऐसा है, तो केवल इससे पहले का भाग दर्ज करें (उदाहरण के लिए _carbon-challenge प्लस कोई भी सबडोमेन)।"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex feed88eca7..d747bd74d6 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" è completato — tutti i {0} articoli della sua Mappa dimsgid "(excluded for this customer)"msgstr "(escluso per questo cliente)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# riga si collega ai dati al di fuori di questa Azienda, quindi non è possibile fare una copia di sicurezza dei dati attuali.} other {# righe si collegano ai dati al di fuori di questa Azienda, quindi non è possibile fare una copia di sicurezza dei dati attuali.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# riga si collega ai dati al di fuori di questa Azienda, quindi non può essere sottoposta a backup. Ignorarla fa il backup di tutto il resto.} other {# righe si collegano ai dati al di fuori di questa Azienda, quindi non possono essere sottoposte a backup. Ignorarle fa il backup di tutto il resto.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Questo articolo è in 1 avviso di modifica aperto} other {Questo articolo è in # avvisi di modifica aperti}}"@@ -114,6 +122,10 @@ msgstr "{0} Processi"msgid "{0} registered"msgstr "{0} registrato"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} righe"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} fornitori con un saldo"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# corso} other {# corsi}}"msgid "{done} of {total} phases complete"msgstr "{done} di {total} fasi completate"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# riga esclusa} other {# righe escluse}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} di {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} componenti saltati — nulla da produrre"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} verrà riaperto per la modifica come revisione {0}. Il documento già inviato al fornitore rimane invariato fino a quando non si finalizza e si rinvia l'ordine."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Eliminare definitivamente # riga?} other {Eliminare definitivamente # righe?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# fase rimanente} other {# fasi rimanenti}}"@@ -2543,6 +2561,9 @@ msgstr "Torna alla tracciabilità"msgid "Backflush"msgstr "Backflush"+msgid "Backup failed"+msgstr "Backup non riuscito"+msgid "Backups"msgstr "Backup"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Collegamento copiato negli appunti"msgid "Copied setup prompt to your clipboard"-msgstr "Prompt di attrezzaggio copiato negli appunti"+msgstr "Prompt di configurazione copiato negli appunti"msgid "Copies a setup prompt for your AI coding tool"msgstr "Copia un prompt di attrezzaggio per il tuo strumento di codifica AI"@@ -4981,6 +5002,9 @@ msgstr "Elimina azione"msgid "Delete Action"msgstr "Elimina azione"+msgid "Delete and restore"+msgstr "Elimina e ripristina"+msgid "Delete API Key"msgstr "Elimina Chiave API"@@ -5330,6 +5354,9 @@ msgstr "reparti"msgid "Departments"msgstr "Reparti"+msgid "depends on an excluded row"+msgstr "dipende da una riga esclusa"+msgid "Depreciation"msgstr "Ammortamento"@@ -5765,6 +5792,12 @@ msgstr "ad es. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Ogni cella mostra le persone assegnate rispetto alle persone di cui il lavoro del giorno ha bisogno."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Ogni riga è un collegamento dai dati di questa Azienda a una riga che non possiede. Un backup con queste righe non potrebbe mai essere ripristinato."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Ogni riga è un collegamento dai dati di questa Azienda a una riga che non possiede. La rimozione di queste righe consente l'esecuzione del ripristino."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Ogni Materiale non utilizzato dell'Operazione ritorna non appena l'Operazione è completata."@@ -8972,6 +9005,9 @@ msgstr "Collega Problema Jira"msgid "Link Linear Issue"msgstr "Collega problema Linear"+msgid "link outside company"+msgstr "collegamento esterno all'Azienda"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Collega questo cliente Carbon a uno di loro, oppure crea un cliente Stripe separato."@@ -12950,6 +12986,9 @@ msgstr "Rimuovi clausola"msgid "Remove condition"msgstr "Rimuovi condizione"+msgid "Remove corrupted data and restore"+msgstr "Rimuovi i dati corrotti e ripristina"+msgid "Remove Employee"msgstr "Rimuovi dipendente"@@ -13267,6 +13306,9 @@ msgstr "Ripristina…"msgid "Restoring files"msgstr "Ripristino dei file"+msgid "restoring…"+msgstr "ripristino in corso…"+msgid "Result"msgstr "Risultato"@@ -13348,6 +13390,9 @@ msgstr "Ripristina"msgid "Reverting"msgstr "Ripristino in corso"+msgid "reverting…"+msgstr "annullamento in corso…"+msgid "Review"msgstr "Revisione"@@ -13473,6 +13518,9 @@ msgstr "Ciclo di lavorazione"msgid "rows"msgstr "righe"+msgid "Rows left out of this backup"+msgstr "Righe escluse da questo backup"+msgid "Rule"msgstr "Regola"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "Nome Pianificazione"msgid "Schedule outdated at"-msgstr "Programma obsoleto a"+msgstr "Programma obsoleto alle"msgid "Schedule outdated reason"msgstr "Motivo del programma obsoleto"@@ -14690,6 +14738,9 @@ msgstr "Dimensioni"msgid "Skip"msgstr "Salta"+msgid "Skip corrupted rows and retry"+msgstr "Salta le righe corrotte e riprova"+msgid "Skip Existing"msgstr "Salta Esistenti"@@ -15557,6 +15608,9 @@ msgstr "Imposte"msgid "Team trained"msgstr "Team addestrato"+msgid "Technical details"+msgstr "Dettagli tecnici"+msgid "Technical support"msgstr "Supporto tecnico"@@ -15639,6 +15693,9 @@ msgstr "Il record di sola aggiunta di ogni movimento di inventario; la giacenzamsgid "The authorization was refused in Onshape. Try connecting again."msgstr "L'autorizzazione è stata rifiutata in Onshape. Riprova a connetterti."+msgid "The backup job reported this error."+msgstr "Il lavoro di backup ha segnalato questo errore."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "La data calcolata a ritroso che un'operazione deve terminare entro per mantenere il suo ordine di produzione in orario, scritta nella data di scadenza dell'operazione. Un obiettivo stabile per misurare i progressi — mai un vincolo sul posizionamento."@@ -16026,7 +16083,7 @@ msgstr "Il nuovo numero di versione della procedura"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "Il prossimo lavoro programmato presso questa ubicazione inizia {0}."+msgstr "Il prossimo lavoro programmato in questa ubicazione inizia {0}."msgid "The night shift suits you, {name}."msgstr "Il turno di notte ti si addice, {name}."@@ -16173,6 +16230,9 @@ msgstr "Il WIP residuo che un ordine di produzione ha lasciato alla chiusura, trmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Nella risposta di Onshape mancavano i parametri richiesti. Riprova a connetterti."+msgid "The restore job reported this error."+msgstr "Il lavoro di ripristino ha segnalato questo errore."+msgid "The result will not appear on the Runs page."msgstr "Il risultato non apparirà nella pagina Esecuzioni."@@ -16410,9 +16470,18 @@ msgstr "Questi ordini di produzione hanno operazioni assegnate a questo centro dmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Queste voci di prima nota sono ancora Bozza, quindi i loro dare e avere non sono nel registro per questo periodo. Registra ognuno, o ri-datalo in un periodo aperto successivo."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Queste righe collegano i dati al di fuori di questa azienda, quindi non potrebbero mai essere ripristinate. Tutto il resto è stato sottoposto a backup."+msgid "this ability"msgstr "questa competenza"+msgid "This backup could not be completed."+msgstr "Non è stato possibile completare questo backup."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Questo backup non è stato ancora verificato. Le eventuali differenze vengono rilevate quando il ripristino viene eseguito."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "La quantità richiesta da questo lavoro per il materiale."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Questa ubicazione programma solo centri di lavoro staffati, ma questa è una stazione lights-out (24×7) — è esentata e continua a funzionare incustodita."+msgstr "Questa ubicazione programma solo i centri di lavoro presidiati, ma questa è una stazione senza illuminazione (24×7) — è esente e continua a funzionare senza sorveglianza."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Questa ubicazione programma solo il lavoro in cui un operatore è assegnato sulla tavola di distribuzione dei turni. Senza nessuno assegnato qui, il lavoro non è programmato e appare come non programmabile."@@ -16561,6 +16630,12 @@ msgstr "Questo Trimestre"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."+msgid "This restore could not be completed."+msgstr "Non è stato possibile completare questo ripristino."++msgid "This revert could not be completed."+msgstr "Non è stato possibile completare questo annullamento."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Questa revisione è rilasciata (Produzione). I cambiamenti dovrebbero normalmente passare attraverso un avviso di modifica."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Questo ordine di vendita ha righe che richiedono la creazione di ordini di produzione"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Questa stazione esegue lavoro controllato da competenza — funziona solo mentre un operatore qualificato è in turno; gli operatori assegnati sulla tavola di distribuzione dei turni modellano ulteriormente il lavoro disponibile."+msgstr "Questa stazione esegue lavoro limitato da competenza — funziona solo quando un operatore qualificato è in turno; gli operatori assegnati sulla plancia di programmazione determinano ulteriormente la manodopera disponibile."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Questa stazione esegue lavoro senza alcun requisito di competenza; gli operatori assegnati sulla tavola di distribuzione dei turni modellano il lavoro disponibile."@@ -18330,9 +18405,15 @@ msgstr "Perché è bloccato?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Perché la giacenza sta cambiando — Positivo (trovato), Negativo (perso/scarto), o Impostato (sostituisci il conteggio con un valore misurato)."+msgid "Why this backup failed"+msgstr "Motivo per cui questo backup è fallito"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Perché questa linea viene rifiutata; visualizzato sul preventivo stampabile e registrato per i rapporti di vincita/perdita."+msgid "Why this restore failed"+msgstr "Motivo per cui questo ripristino è fallito"+msgid "Will remain as a comment line"msgstr "Rimarrà come riga di commento"@@ -18569,6 +18650,9 @@ msgstr "I tuoi listini prezzi rivolti ai clienti"msgid "Your data is accessible and reasonably clean"msgstr "I tuoi dati sono accessibili e ragionevolmente puliti"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "I tuoi dati non sono stati modificati — il ripristino si arresta prima di toccare qualsiasi cosa se non riesce a completarsi."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Il tuo provider DNS potrebbe aggiungere automaticamente il tuo dominio al nome del record — se è così, inserisci solo la parte prima (ad es. _carbon-challenge più qualsiasi sottodominio)."diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 8e76a41c9d..3477537897 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -48,6 +48,14 @@ msgstr "「{taskName}」は完了しました — セットアップマップのmsgid "(excluded for this customer)"msgstr "(このお客様向けに除外されています)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# 行はこの会社の外部のデータにリンクしているため、現在のデータの安全なコピーを作成できません。} other {# 行はこの会社の外部のデータにリンクしているため、現在のデータの安全なコピーを作成できません。}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# 行はこの会社の外部のデータにリンクしているため、バックアップできません。スキップすると、他のすべてがバックアップされます。} other {# 行はこの会社の外部のデータにリンクしているため、バックアップできません。スキップすると、他のすべてがバックアップされます。}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {このアイテムは1つの未完了の変更通知に含まれています} other {このアイテムは#つの未完了の変更通知に含まれています}}"@@ -114,6 +122,10 @@ msgstr "{0}個のプロセス"msgid "{0} registered"msgstr "{0}登録済み"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} 行"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0}件の残高のある仕入先"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# コース} other {# コース}}"msgid "{done} of {total} phases complete"msgstr "{done} / {total} フェーズ完了"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# 行除外} other {# 行除外}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} / {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount}個の部品はスキップ済 — 製造する必要msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} はリビジョン {0} として編集のため再度オープンされます。仕入先に送信済みの文書は、ファイナライズして発注書を再送信するまで変更されません。"+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {# 行を永久に削除しますか?} other {# 行を永久に削除しますか?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# フェーズ残り} other {# フェーズ残り}}"@@ -2543,6 +2561,9 @@ msgstr "トレーサビリティに戻る"msgid "Backflush"msgstr "バックフラッシュ"+msgid "Backup failed"+msgstr "バックアップに失敗しました"+msgid "Backups"msgstr "バックアップ"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "クリップボードにリンクをコピーしました"msgid "Copied setup prompt to your clipboard"-msgstr "段取りプロンプトをクリップボードにコピーしました"+msgstr "セットアップのプロンプトをクリップボードにコピーしました"msgid "Copies a setup prompt for your AI coding tool"msgstr "AIコーディングツール用の段取りプロンプトをコピーします"@@ -4981,6 +5002,9 @@ msgstr "アクションを削除"msgid "Delete Action"msgstr "アクションを削除"+msgid "Delete and restore"+msgstr "削除して復元"+msgid "Delete API Key"msgstr "APIキーを削除"@@ -5330,6 +5354,9 @@ msgstr "部門"msgid "Departments"msgstr "部門"+msgid "depends on an excluded row"+msgstr "除外された行に依存しています"+msgid "Depreciation"msgstr "減価償却"@@ -5765,6 +5792,12 @@ msgstr "例:Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "各セルは、その日の作業に必要な人員に対して配置された人員です"+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "各明細はこの会社のデータから、それが所有していない行へのリンクです。これらの行を含むバックアップは復元できません。"++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "各明細はこの会社のデータから、それが所有していない行へのリンクです。それらの行を削除すると、復元を実行できます。"+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "各操作の未使用材料は操作が完了するとすぐに戻されます。"@@ -7617,7 +7650,7 @@ msgid "Going live on Carbon"msgstr "Carbonで本番稼働"msgid "Good afternoon, {name}."-msgstr "こんにちは、{name}さん。"+msgstr "こんにちは、{name}。"msgid "Good evening, {name}."msgstr "こんばんは、{name}さん。"@@ -8972,6 +9005,9 @@ msgstr "Jira イシューをリンク"msgid "Link Linear Issue"msgstr "Linear イシューをリンク"+msgid "link outside company"+msgstr "会社外へのリンク"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "このCarbonの得意先をいずれかにリンクするか、別のStripe顧客を作成してください。"@@ -12950,6 +12986,9 @@ msgstr "条項を除去"msgid "Remove condition"msgstr "条件を除去"+msgid "Remove corrupted data and restore"+msgstr "破損データを除去して復元"+msgid "Remove Employee"msgstr "従業員を削除"@@ -13267,6 +13306,9 @@ msgstr "復元…"msgid "Restoring files"msgstr "ファイルを復元中"+msgid "restoring…"+msgstr "復元中…"+msgid "Result"msgstr "結果"@@ -13348,6 +13390,9 @@ msgstr "リバート"msgid "Reverting"msgstr "リバート中"+msgid "reverting…"+msgstr "戻す中…"+msgid "Review"msgstr "レビュー"@@ -13473,6 +13518,9 @@ msgstr "工順"msgid "rows"msgstr "行"+msgid "Rows left out of this backup"+msgstr "このバックアップから除外された行"+msgid "Rule"msgstr "ルール"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "スケジュール名"msgid "Schedule outdated at"-msgstr "スケジュール古い状態"+msgstr "スケジュール無効化時刻"msgid "Schedule outdated reason"msgstr "スケジュール古くなった理由"@@ -14690,6 +14738,9 @@ msgstr "サイズ"msgid "Skip"msgstr "スキップ"+msgid "Skip corrupted rows and retry"+msgstr "破損行をスキップして再試行"+msgid "Skip Existing"msgstr "既存をスキップ"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "スタッフは任意"+msgstr "人員配置は任意"msgid "Staffing required"msgstr "スタッフが必要"@@ -15557,6 +15608,9 @@ msgstr "税金"msgid "Team trained"msgstr "チームが訓練を受けた"+msgid "Technical details"+msgstr "技術詳細"+msgid "Technical support"msgstr "テクニカルサポート"@@ -15639,6 +15693,9 @@ msgstr "すべての在庫移動の追加専用レコード。手持在庫はそmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape で認可が拒否されました。もう一度接続してください。"+msgid "The backup job reported this error."+msgstr "バックアップジョブがこのエラーを報告しました。"+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "その製造指図を時間通りに保つために、工程が終了する必要のある後方計算日であり、工程の期日に書き込まれます。進捗を測定するための安定した目標であり、配置の制約ではありません。"@@ -16026,7 +16083,7 @@ msgstr "手順書の新しいバージョン番号"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "この拠点での次のスケジュール作業は{0}に開始します。"+msgstr "この拠点での次のスケジュール作業は{0}に開始されます。"msgid "The night shift suits you, {name}."msgstr "夜間シフトはあなたに合っています、{name}。"@@ -16173,6 +16230,9 @@ msgstr "製造指図がクローズ時に残した残留仕掛品は、生産差msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape からの応答に必須パラメーターが含まれていませんでした。もう一度接続してください。"+msgid "The restore job reported this error."+msgstr "復元ジョブがこのエラーを報告しました。"+msgid "The result will not appear on the Runs page."msgstr "結果は実行ページに表示されません。"@@ -16410,9 +16470,18 @@ msgstr "これらの製造指図には、この作業区に割り当てられたmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "これらの仕訳はまだ下書きであるため、それらの借方と貸方は当期の元帳に含まれていません。各仕訳を転記するか、後の開いている期間に再度日付を付け直してください。"+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "これらの行は会社外のデータにリンクしているため、復元することはできません。その他すべてがバックアップされました。"+msgid "this ability"msgstr "このスキル"+msgid "This backup could not be completed."+msgstr "このバックアップを完了できませんでした。"+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "このバックアップはまだチェックされていません。違いは復元の実行時に見つかります。"@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "この材料に対するこのジョブ自体の必要数量。"msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "この拠点はスタッフが配置された作業区のみをスケジュールしますが、これはライトアウト(24×7)ステーションです — これは除外であり、無人で実行され続けます。"+msgstr "この拠点は人員が配置された作業区のみをスケジュール管理しますが、ここは無人(24×7)ステーション — 除外され、無人で稼働を続けます。"msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "この拠点は、マニング ボード上に作業者が割り当てられている作業のみをスケジュールします。ここに誰も割り当てられていない場合、作業はスケジュールされず、スケジュール不可として表示されます。"@@ -16561,6 +16630,12 @@ msgstr "今四半期"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 "これにより認証器アプリが削除されるため、次回のサインインはマジックリンクのみが必要になります。認証器へのアクセスを失った場合にこれを使用してください。彼らが属するすべての会社のサインインに影響します。"+msgid "This restore could not be completed."+msgstr "この復元を完了できませんでした。"++msgid "This revert could not be completed."+msgstr "この戻すを完了できませんでした。"+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "このリビジョンはリリース済(生産)です。変更は通常、変更通知を介してフローする必要があります。"@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "この受注には製造指図の作成が必要な明細があります"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "このステーションはスキルゲート作業を実行します — 適格な作業者がシフト中にのみ実行されます。マニング ボード上に割り当てられた作業者は、利用可能な労務をさらに形作ります。"+msgstr "このステーションはスキル要求のある仕事を実行します — 適格な作業者がシフト中にのみ稼働し、人員配置ボード上に割当済の作業者がさらに利用可能な労務を形成します。"msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "このステーションはスキル要求事項がない作業を実行します。マニング ボード上に割り当てられた作業者は、利用可能な労務を形作ります。"@@ -18330,9 +18405,15 @@ msgstr "なぜこれはロック中ですか?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "在庫が変わっている理由 — 正(見つかった)、負(失った/スクラップ)、または設定(カウントを測定値で置き換える)。"+msgid "Why this backup failed"+msgstr "このバックアップが失敗した理由"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "この行が拒否されている理由。印刷可能な見積もりに表示され、win-loss報告用に記録されます。"+msgid "Why this restore failed"+msgstr "この復元が失敗した理由"+msgid "Will remain as a comment line"msgstr "コメント行として残ります"@@ -18565,6 +18646,9 @@ msgstr "顧客向けの価格表"msgid "Your data is accessible and reasonably clean"msgstr "あなたのデータはアクセス可能で、適切にクリーンです"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "データは変更されませんでした — 復元が完了できない場合、復元は何も変更する前に停止します。"+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "DNS プロバイダーはレコード名にドメインを自動的に追加する場合があります。その場合は、その前の部分のみを入力してください(例:_carbon-challenge または任意のサブドメイン付き)。"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 9e0b619322..ff1135b864 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" 완료 — 설정 맵 항목 {0}개가 모두 설정되msgid "(excluded for this customer)"msgstr "(이 고객에게는 제외됨)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# 행은 이 회사 외부의 데이터에 연결되어 있어서 현재 데이터의 안전한 사본을 만들 수 없습니다.} other {# 행은 이 회사 외부의 데이터에 연결되어 있어서 현재 데이터의 안전한 사본을 만들 수 없습니다.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# 행은 이 회사 외부의 데이터에 연결되어 있어서 백업할 수 없습니다. 이를 건너뛰면 다른 모든 것이 백업됩니다.} other {# 행은 이 회사 외부의 데이터에 연결되어 있어서 백업할 수 없습니다. 이를 건너뛰면 다른 모든 것이 백업됩니다.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {이 품목은 1개의 미결 변경 통지에 포함되어 있습니다} other {이 품목은 # 개의 미결 변경 통지에 포함되어 있습니다}}"@@ -114,6 +122,10 @@ msgstr "공정 {0}개"msgid "{0} registered"msgstr "{0} 등록됨"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} 행"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "잔액이 있는 공급업체 {0}곳"@@ -195,6 +207,9 @@ msgstr "교육과정 {count}개"msgid "{done} of {total} phases complete"msgstr "{done}개 중 {total}개 단계 완료"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# 행 제외됨} other {# 행 제외됨}}"+msgid "{from}–{to} of {count}"msgstr "{count}개 중 {from}–{to}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount}개 부품이 건너뜀 — 만들 것이 없음"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel}은(는) 리비전 {0}으로 편집하기 위해 다시 열립니다. 이미 공급업체로 전송된 문서는 리비전을 완료하고 다시 전송할 때까지 변경되지 않습니다."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {# 행을 영구 삭제하시겠습니까?} other {# 행을 영구 삭제하시겠습니까?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining}단계 남음"@@ -2543,6 +2561,9 @@ msgstr "추적성으로 돌아가기"msgid "Backflush"msgstr "백플러시"+msgid "Backup failed"+msgstr "백업 실패"+msgid "Backups"msgstr "백업"@@ -4981,6 +5002,9 @@ msgstr "작업 삭제"msgid "Delete Action"msgstr "작업 삭제"+msgid "Delete and restore"+msgstr "삭제 및 복원"+msgid "Delete API Key"msgstr "API 키 삭제"@@ -5330,6 +5354,9 @@ msgstr "부서"msgid "Departments"msgstr "부서"+msgid "depends on an excluded row"+msgstr "제외된 행에 따라 달라집니다"+msgid "Depreciation"msgstr "감가상각"@@ -5765,6 +5792,12 @@ msgstr "예: Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "각 셀은 그 날짜에 필요한 인력과 배정된 인력을 비교합니다."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "각 라인은 이 회사 데이터에서 소유하지 않은 행으로의 링크입니다. 이 행들이 포함된 백업은 복원할 수 없습니다."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "각 라인은 이 회사 데이터에서 소유하지 않은 행으로의 링크입니다. 해당 행들을 제거하면 복원을 실행할 수 있습니다."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "각 작업의 미사용 재료는 해당 작업이 완료되는 즉시 반환됩니다."@@ -7617,7 +7650,7 @@ msgid "Going live on Carbon"msgstr "Carbon 도입"msgid "Good afternoon, {name}."-msgstr "{name}님, 좋은 오후입니다."+msgstr "좋은 오후입니다, {name}."msgid "Good evening, {name}."msgstr "{name}님, 좋은 저녁입니다."@@ -8972,6 +9005,9 @@ msgstr "Jira 이슈 연결"msgid "Link Linear Issue"msgstr "Linear 이슈 연결"+msgid "link outside company"+msgstr "회사 외부 링크"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "이 Carbon 고객을 그 중 하나에 연결하거나 별도의 Stripe 고객을 생성합니다."@@ -12950,6 +12986,9 @@ msgstr "절 제거"msgid "Remove condition"msgstr "조건 제거"+msgid "Remove corrupted data and restore"+msgstr "손상된 데이터 제거 및 복원"+msgid "Remove Employee"msgstr "직원 제거"@@ -13267,6 +13306,9 @@ msgstr "복원…"msgid "Restoring files"msgstr "파일 복원 중"+msgid "restoring…"+msgstr "복원 중…"+msgid "Result"msgstr "결과"@@ -13348,6 +13390,9 @@ msgstr "복원"msgid "Reverting"msgstr "복원 중"+msgid "reverting…"+msgstr "되돌리는 중…"+msgid "Review"msgstr "검토"@@ -13473,6 +13518,9 @@ msgstr "라우팅"msgid "rows"msgstr "행"+msgid "Rows left out of this backup"+msgstr "이 백업에서 제외된 행"+msgid "Rule"msgstr "규칙"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "일정 이름"msgid "Schedule outdated at"-msgstr "일정 만료됨"+msgstr "일정이 오래된 시간"msgid "Schedule outdated reason"msgstr "일정 만료 사유"@@ -14690,6 +14738,9 @@ msgstr "사이즈"msgid "Skip"msgstr "건너뛰기"+msgid "Skip corrupted rows and retry"+msgstr "손상된 행 건너뛰고 다시 시도"+msgid "Skip Existing"msgstr "기존 항목 건너뛰기"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "인력 선택 사항"+msgstr "인력 배치 선택"msgid "Staffing required"msgstr "인력 필수"@@ -15557,6 +15608,9 @@ msgstr "세금"msgid "Team trained"msgstr "팀 교육 완료"+msgid "Technical details"+msgstr "기술 세부정보"+msgid "Technical support"msgstr "기술 지원"@@ -15639,6 +15693,9 @@ msgstr "모든 재고 이동을 추가 전용으로 기록한 원장으로, 보msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape에서 인증이 거부되었습니다. 다시 연결해 보세요."+msgid "The backup job reported this error."+msgstr "백업 작업이 이 오류를 보고했습니다."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "공정이 작업 지시를 제때 완료하기 위해 마감일까지 완료되어야 하는 역계산된 날짜이며 공정의 마감일에 기록됩니다. 진행 상황을 측정하기 위한 안정적인 목표 — 배치에 대한 제약 조건이 아닙니다."@@ -16026,7 +16083,7 @@ msgstr "절차서의 새로운 버전 번호"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "이 사업장에서 다음에 일정이 잡힌 작업은 {0}에 시작됩니다."+msgstr "이 사업장의 다음 일정 작업은 {0}에 시작됩니다."msgid "The night shift suits you, {name}."msgstr "야간 교대조가 당신에게 맞습니다, {name}."@@ -16173,6 +16230,9 @@ msgstr "작업 마감 시 남은 재공품(WIP)으로, 생산 차이 계정으msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape의 응답에 필수 매개변수가 없습니다. 다시 연결해 보세요."+msgid "The restore job reported this error."+msgstr "복원 작업이 이 오류를 보고했습니다."+msgid "The result will not appear on the Runs page."msgstr "결과는 실행 페이지에 나타나지 않습니다."@@ -16410,9 +16470,18 @@ msgstr "이 작업장에 할당된 공정이 있는 작업 지시:"msgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "이 전표들은 아직 초안 상태이므로 이 기간에 차변 및 대변이 원장에 없습니다. 각 전표를 전기하거나 이후 미결 기간으로 다시 날짜를 지정하십시오."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "이 행들은 회사 외부의 데이터와 연결되어 있어 복원할 수 없습니다. 그 외 모든 것은 백업되었습니다."+msgid "this ability"msgstr "이 능력"+msgid "This backup could not be completed."+msgstr "이 백업을 완료할 수 없습니다."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "이 백업은 아직 확인되지 않았습니다. 복원이 실행될 때 차이점이 발견됩니다."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "이 작업 자체의 자재 소요 수량입니다."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "이 사업장은 인력이 배치된 작업장만 일정을 잡지만 이것은 조명 없는(24×7) 스테이션입니다 — 면제되며 무인으로 계속 실행됩니다."+msgstr "이 사업장은 인력이 배치된 작업장만 일정을 배치하지만, 이는 무인(24×7) 작업장입니다 — 제외되며 무인으로 계속 운영됩니다."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "이 사업장은 인력 배치 보드에서 작업자가 할당된 작업만 일정을 잡습니다. 여기에 할당된 사람이 없으면 작업이 일정을 잡지 않으며 일정을 잡을 수 없는 것으로 표시됩니다."@@ -16561,6 +16630,12 @@ msgstr "이번 분기"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 "이것은 그들의 인증 앱을 제거하므로 다음 로그인에는 매직 링크만 필요합니다. 그들이 인증 수단에 대한 접근을 잃었을 때 이것을 사용하세요. 이것은 그들이 속한 모든 회사에 대한 로그인에 영향을 미칩니다."+msgid "This restore could not be completed."+msgstr "이 복원을 완료할 수 없습니다."++msgid "This revert could not be completed."+msgstr "이 되돌리기를 완료할 수 없습니다."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "이 리비전은 릴리스되었습니다 (생산). 변경 사항은 정상적으로 변경 통지를 통해 진행되어야 합니다."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "이 수주는 작업 지시가 생성되어야 하는 라인이 있습니다."msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "이 스테이션은 역량 제한 작업을 실행합니다 — 자격이 있는 작업자가 교대조에 있는 동안에만 실행됩니다. 인력 배치 보드에서 할당된 작업자는 가용 노무를 추가로 형성합니다."+msgstr "이 스테이션은 역량 기반의 작업을 실행합니다 — 자격 있는 작업자가 교대조에서 근무하는 동안에만 실행되며, 인력배치표에서 할당된 작업자가 가용 노무를 추가로 형성합니다."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "이 스테이션은 역량 요구사항이 없는 작업을 실행합니다. 인력 배치 보드에서 할당된 작업자는 가용 노무를 형성합니다."@@ -18330,9 +18405,15 @@ msgstr "이것이 잠긴 이유는 무엇입니까?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "재고가 변경되는 이유 — 긍정(발견), 부정(손실/스크랩) 또는 설정(측정된 값으로 수량 교체)."+msgid "Why this backup failed"+msgstr "이 백업이 실패한 이유"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "이 라인이 거절되는 이유로, 인쇄용 견적서에 표시되며 수주/실주 보고를 위해 기록됩니다."+msgid "Why this restore failed"+msgstr "이 복원이 실패한 이유"+msgid "Will remain as a comment line"msgstr "댓글 라인으로 유지됩니다"@@ -18565,6 +18646,9 @@ msgstr "고객 대상 가격표"msgid "Your data is accessible and reasonably clean"msgstr "데이터에 접근 가능하고 어느 정도 정리되어 있음"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "귀하의 데이터는 변경되지 않았습니다 — 복원이 완료될 수 없으면 아무것도 변경하기 전에 중단됩니다."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "DNS 공급자가 레코드 이름에 도메인을 자동으로 추가할 수 있습니다 — 그렇다면 그 앞 부분만 입력하세요 (예: _carbon-challenge 및 모든 하위 도메인)."diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 5fbf3aed12..e46f17f3af 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -48,6 +48,14 @@ msgstr "„{taskName}\" jest gotowe — wszystkie {0} jego elementów Setup Mapmsgid "(excluded for this customer)"msgstr "(wykluczone dla tego klienta)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# wiersz łączy się z danymi spoza tej firmy, dlatego nie można utworzyć kopii bezpieczeństwa bieżących danych.} other {# wierszy łączy się z danymi spoza tej firmy, dlatego nie można utworzyć kopii bezpieczeństwa bieżących danych.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# wiersz łączy się z danymi spoza tej firmy, dlatego nie można go zabezpieczyć. Pominięcie go pozwala na zabezpieczenie wszystkiego innego.} other {# wierszy łączy się z danymi spoza tej firmy, dlatego nie można ich zabezpieczyć. Pominięcie ich pozwala na zabezpieczenie wszystkiego innego.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Ten artykuł jest na 1 otwartym zawiadomieniu o zmianie} other {Ten artykuł jest na # otwartych zawiadomieniach o zmianie}}"@@ -114,6 +122,10 @@ msgstr "{0} Procesy"msgid "{0} registered"msgstr "{0} zarejestrowane"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} wierszy"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} dostawców z saldem"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# kurs} other {# kursy}}"msgid "{done} of {total} phases complete"msgstr "{done} z {total} faz ukończonych"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# wiersz wyłączony} other {# wierszy wyłączonych}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} z {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} części pominięto — nic do zrobienia"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} zostanie ponownie otwarty do edycji jako rewizja {0}. Dokument już wysłany do dostawcy pozostaje niezmieniony, aż go sfinalizujesz i ponownie wyślesz zamówienie."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Trwale usuń # wiersz?} other {Trwale usuń # wierszy?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# faza pozostała} other {# faz pozostało}}"@@ -2543,6 +2561,9 @@ msgstr "Powrót do identyfikowalności"msgid "Backflush"msgstr "Pobranie wsteczne"+msgid "Backup failed"+msgstr "Kopia bezpieczeństwa nie powiodła się"+msgid "Backups"msgstr "Kopie zapasowe"@@ -4981,6 +5002,9 @@ msgstr "Usuń akcję"msgid "Delete Action"msgstr "Usuń akcję"+msgid "Delete and restore"+msgstr "Usuń i przywróć"+msgid "Delete API Key"msgstr "Usuń klucz API"@@ -5330,6 +5354,9 @@ msgstr "działy"msgid "Departments"msgstr "Działy"+msgid "depends on an excluded row"+msgstr "zależy od wyłączonego wiersza"+msgid "Depreciation"msgstr "Amortyzacja"@@ -5765,6 +5792,12 @@ msgstr "np. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "W każdej komórce znajdują się przydzieleni pracownicy w stosunku do pracowników potrzebnych do pracy tego dnia."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Każdy wiersz to łącze z danych tej firmy do wiersza, którego nie jest właścicielem. Kopia bezpieczeństwa z tymi wierszami nigdy nie mogłaby być przywrócona."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Każdy wiersz to łącze z danych tej firmy do wiersza, którego nie jest właścicielem. Usunięcie tych wierszy umożliwia uruchomienie przywracania."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Niewykorzystany materiał z każdej operacji powraca natychmiast po zakończeniu operacji."@@ -7617,7 +7650,7 @@ msgid "Going live on Carbon"msgstr "Uruchomienie na platformie Carbon"msgid "Good afternoon, {name}."-msgstr "Dobrego popołudnia, {name}."+msgstr "Dzień dobry, {name}."msgid "Good evening, {name}."msgstr "Dobrego wieczoru, {name}."@@ -8972,6 +9005,9 @@ msgstr "Połącz problem Jiry"msgid "Link Linear Issue"msgstr "Połącz problem Linear"+msgid "link outside company"+msgstr "link poza firmę"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Połącz tego klienta Carbon z jednym z nich, lub utwórz osobnego klienta Stripe."@@ -12842,7 +12878,7 @@ msgid "Refresh exchange rate"msgstr "Odśwież kurs wymiany"msgid "Regenerate"-msgstr "Regeneruj"+msgstr "Wygeneruj ponownie"msgid "Regenerate the schedule for this location now. It also runs automatically about 30 seconds after the last scheduling change (edits are batched, so several quick changes trigger a single regeneration)."msgstr "Wygeneruj ponownie harmonogram dla tej lokalizacji teraz. Uruchamia się również automatycznie około 30 sekund po ostatniej zmianie harmonogramu (edycje są zbiorowe, więc kilka szybkich zmian powoduje jedno wygenerowanie)."@@ -12950,6 +12986,9 @@ msgstr "Usuń z listy klauzulę"msgid "Remove condition"msgstr "Usuń z listy warunek"+msgid "Remove corrupted data and restore"+msgstr "Usuń uszkodzone dane i przywróć"+msgid "Remove Employee"msgstr "Usuń pracownika"@@ -13267,6 +13306,9 @@ msgstr "Przywróć…"msgid "Restoring files"msgstr "Przywracanie plików"+msgid "restoring…"+msgstr "przywracanie…"+msgid "Result"msgstr "Wynik"@@ -13348,6 +13390,9 @@ msgstr "Przywróć"msgid "Reverting"msgstr "Przywracanie"+msgid "reverting…"+msgstr "cofanie…"+msgid "Review"msgstr "Przegląd"@@ -13473,6 +13518,9 @@ msgstr "Marszruta"msgid "rows"msgstr "wiersze"+msgid "Rows left out of this backup"+msgstr "Wiersze pominięte w tej kopii zapasowej"+msgid "Rule"msgstr "Reguła"@@ -14690,6 +14738,9 @@ msgstr "Rozmiary"msgid "Skip"msgstr "Pomiń"+msgid "Skip corrupted rows and retry"+msgstr "Pomiń uszkodzone wiersze i spróbuj ponownie"+msgid "Skip Existing"msgstr "Pomiń istniejące"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "Obsada fakultatywna"+msgstr "Obsada opcjonalna"msgid "Staffing required"msgstr "Wymagana obsada"@@ -15557,6 +15608,9 @@ msgstr "Podatki"msgid "Team trained"msgstr "Zespół przeszkolony"+msgid "Technical details"+msgstr "Szczegóły techniczne"+msgid "Technical support"msgstr "Pomoc techniczna"@@ -15639,6 +15693,9 @@ msgstr "Rejestr tylko dołączania każdego ruchu magazynowego; dostępna ilośmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Autoryzacja została odrzucona w Onshape. Spróbuj połączyć się ponownie."+msgid "The backup job reported this error."+msgstr "Zadanie kopii zapasowej zgłosiło ten błąd."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "Data obliczona wstecz, do której operacja musi być ukończona, aby zlecenie produkcyjne dotrzymało terminu, zapisana jako termin operacji. Stabilny punkt odniesienia do pomiaru postępu — nigdy nie jest ograniczeniem na rozmieszczenie pracy."@@ -16026,7 +16083,7 @@ msgstr "Nowy numer wersji procedury"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "Następna zaplanowana praca w tej lokalizacji zaczyna się {0}."+msgstr "Następna zaplanowana praca w tej lokalizacji rozpoczyna się {0}."msgid "The night shift suits you, {name}."msgstr "Zmiana nocna pasuje do ciebie, {name}."@@ -16173,6 +16230,9 @@ msgstr "Rezydualna produkcja w toku, którą zlecenie ma przy zamknięciu, przenmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "W odpowiedzi z Onshape brakowało wymaganych parametrów. Spróbuj połączyć się ponownie."+msgid "The restore job reported this error."+msgstr "Zadanie przywrócenia zgłosiło ten błąd."+msgid "The result will not appear on the Runs page."msgstr "Wynik nie pojawi się na stronie Uruchomienia."@@ -16410,9 +16470,18 @@ msgstr "Te zlecenia produkcyjne mają operacje przypisane do tego stanowiska robmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Te dowody księgowe są wciąż w wersji roboczej, dlatego ich wpisy Winien i Ma nie znajdują się w księdze dla tego okresu. Zaksięguj każdy z nich lub przesyć go do późniejszego otwartego okresu."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Te wiersze są połączone z danymi spoza tej firmy, dlatego nigdy nie mogły być przywrócone. Wszystko inne miało kopię zapasową."+msgid "this ability"msgstr "ta zdolność"+msgid "This backup could not be completed."+msgstr "Nie można było ukończyć tej kopii zapasowej."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Ta kopia zapasowa nie została jeszcze sprawdzona. Wszelkie różnice są znaleziane po uruchomieniu przywracania."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "Własna wymagana ilość materiału dla tego zadania."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Ta lokalizacja planuje tylko obsadzone stanowiska robocze, ale to stanowisko bez oświetlenia (24×7) — jest zwolnione i pracuje bez nadzoru."+msgstr "Ta lokalizacja planuje tylko obsadzone stanowiska robocze, ale to stanowisko bez nadzoru (24×7) — jest zwolnione i pracuje bez operatora."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Ta lokalizacja planuje pracę tylko tam, gdzie operator jest przypisany na tablicy obsady. Bez nikogo przypisanego tutaj, praca nie jest planowana i wyświetla się jako nieplanowalna."@@ -16561,6 +16630,12 @@ msgstr "Ten Kwartał"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żą."+msgid "This restore could not be completed."+msgstr "Nie można było ukończyć tego przywrócenia."++msgid "This revert could not be completed."+msgstr "Nie można było ukończyć tego cofnięcia."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Ta rewizja jest zwolniona (Produkcja). Zmiany powinny normalnie przechodzić przez zawiadomienie o zmianie."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "To zamówienie sprzedaży ma pozycje, które wymagają utworzenia zleceń produkcyjnych"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "To stanowisko wykonuje pracę chronioną umiejętnościami — działa tylko wtedy, gdy kwalifikowany operator jest na zmianie; operatorzy przypisani na tablicy obsady dodatkowo kształtują dostępną robociznę."+msgstr "Ta stacja uruchamia pracę wymagającą umiejętności — działa tylko wtedy, gdy na zmianie pracuje uprawniony operator; operatorzy przydzieleni na planszy obsady wpływają na dostępną robociznę."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "To stanowisko wykonuje pracę bez wymagań umiejętności; operatorzy przypisani na tablicy obsady kształtują dostępną robociznę."@@ -18330,9 +18405,15 @@ msgstr "Dlaczego to jest zablokowane?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Dlaczego zapas się zmienia — Pozytywnie (odnaleziono), Negatywnie (stracone/braki), lub Ustaw (zastąp ilość zmierzoną wartością)."+msgid "Why this backup failed"+msgstr "Dlaczego ta kopia zapasowa nie powiodła się"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Dlaczego ta linia jest odrzucana; wyświetlane na drukowanym cytacie i zarejestrowane do raportowania win-loss."+msgid "Why this restore failed"+msgstr "Dlaczego to przywrócenie nie powiodło się"+msgid "Will remain as a comment line"msgstr "Pozostanie jako linia komentarza"@@ -18565,6 +18646,9 @@ msgstr "Twoje cenniki dostępne dla klientów"msgid "Your data is accessible and reasonably clean"msgstr "Twoje dane są dostępne i w rozsądnie czystej formie"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Twoje dane nie zostały zmienione — przywrócenie zatrzymuje się przed zmianą czegokolwiek, jeśli nie będzie mogło zostać ukończone."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Twój dostawca DNS może automatycznie dołączyć Twoją domenę do nazwy rekordu — jeśli tak się stanie, wpisz tylko część przed nią (np. _carbon-challenge plus dowolna poddomena)."diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 28f927512d..a057c61b8b 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" está feito — todos os {0} itens do seu Mapa de Setup emsgid "(excluded for this customer)"msgstr "(excluído para este cliente)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# linha vincula dados fora desta empresa, portanto uma cópia de segurança de seus dados atuais não pode ser feita.} other {# linhas vinculam dados fora desta empresa, portanto uma cópia de segurança de seus dados atuais não pode ser feita.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# linha vincula dados fora desta empresa, portanto não pode ser feita backup dela. Ignorá-la faz backup de tudo mais.} other {# linhas vinculam dados fora desta empresa, portanto não podem ser feitas backup delas. Ignorá-las fazem backup de tudo mais.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Este item está em 1 aviso de alteração aberto} other {Este item está em # avisos de alteração abertos}}"@@ -114,6 +122,10 @@ msgstr "{0} Processos"msgid "{0} registered"msgstr "{0} registado"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} linhas"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} fornecedores com saldo"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# curso} other {# cursos}}"msgid "{done} of {total} phases complete"msgstr "{done} de {total} fases concluídas"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# linha excluída} other {# linhas excluídas}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} de {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} peças ignoradas — nada para fabricar"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} será reaberto para edição como revisão {0}. O documento já enviado ao fornecedor permanece inalterado até que você finalize e reenvie o pedido."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Excluir permanentemente # linha?} other {Excluir permanentemente # linhas?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# fase restante} other {# fases restantes}}"@@ -2543,6 +2561,9 @@ msgstr "Voltar para rastreabilidade"msgid "Backflush"msgstr "Baixa automática"+msgid "Backup failed"+msgstr "Backup falhou"+msgid "Backups"msgstr "Backups"@@ -4981,6 +5002,9 @@ msgstr "Excluir ação"msgid "Delete Action"msgstr "Excluir Ação"+msgid "Delete and restore"+msgstr "Excluir e restaurar"+msgid "Delete API Key"msgstr "Excluir chave de API"@@ -5330,6 +5354,9 @@ msgstr "departamentos"msgid "Departments"msgstr "Departamentos"+msgid "depends on an excluded row"+msgstr "depende de uma linha excluída"+msgid "Depreciation"msgstr "Depreciação"@@ -5765,6 +5792,12 @@ msgstr "p.ex. Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Cada célula mostra as pessoas atribuídas em comparação com as pessoas que o trabalho do dia precisa."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Cada linha é um vínculo dos dados desta empresa para uma linha que não é de sua propriedade. Um backup com essas linhas nunca poderia ser restaurado."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Cada linha é um vínculo dos dados desta empresa para uma linha que não é de sua propriedade. Remover essas linhas permite que a restauração seja executada."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "O material não utilizado de cada operação retorna assim que a operação é concluída."@@ -8972,6 +9005,9 @@ msgstr "Vincular Problema do Jira"msgid "Link Linear Issue"msgstr "Vincular Problema Linear"+msgid "link outside company"+msgstr "vínculo fora da empresa"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Vincule este cliente Carbon a um deles ou crie um cliente Stripe separado."@@ -12950,6 +12986,9 @@ msgstr "Remover cláusula"msgid "Remove condition"msgstr "Remover condição"+msgid "Remove corrupted data and restore"+msgstr "Remover dados corrompidos e restaurar"+msgid "Remove Employee"msgstr "Remover Funcionário"@@ -13267,6 +13306,9 @@ msgstr "Restaurar…"msgid "Restoring files"msgstr "Restaurando arquivos"+msgid "restoring…"+msgstr "restaurando…"+msgid "Result"msgstr "Resultado"@@ -13348,6 +13390,9 @@ msgstr "Reverter"msgid "Reverting"msgstr "Revertendo"+msgid "reverting…"+msgstr "revertendo…"+msgid "Review"msgstr "Revisar"@@ -13473,6 +13518,9 @@ msgstr "Roteiro de produção"msgid "rows"msgstr "linhas"+msgid "Rows left out of this backup"+msgstr "Linhas deixadas de fora deste backup"+msgid "Rule"msgstr "Regra"@@ -14690,6 +14738,9 @@ msgstr "Tamanhos"msgid "Skip"msgstr "Saltar"+msgid "Skip corrupted rows and retry"+msgstr "Pular linhas corrompidas e tentar novamente"+msgid "Skip Existing"msgstr "Ignorar Existentes"@@ -15557,6 +15608,9 @@ msgstr "Impostos"msgid "Team trained"msgstr "Equipa treinada"+msgid "Technical details"+msgstr "Detalhes técnicos"+msgid "Technical support"msgstr "Suporte técnico"@@ -15639,6 +15693,9 @@ msgstr "O registro de adição ao final de cada movimento de estoque; a quantidamsgid "The authorization was refused in Onshape. Try connecting again."msgstr "A autorização foi recusada no Onshape. Tente conectar novamente."+msgid "The backup job reported this error."+msgstr "O trabalho de backup informou este erro."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "A data calculada retroativamente que uma operação deve terminar para manter sua ordem de produção no prazo, escrita na data de vencimento da operação. Um alvo estável para medir o progresso — nunca uma restrição de colocação."@@ -16173,6 +16230,9 @@ msgstr "O produto em processo residual que uma ordem de produção deixa ao fechmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "A resposta do Onshape não incluía os parâmetros necessários. Tente conectar novamente."+msgid "The restore job reported this error."+msgstr "O trabalho de restauração informou este erro."+msgid "The result will not appear on the Runs page."msgstr "O resultado não aparecerá na página de Execuções."@@ -16410,9 +16470,18 @@ msgstr "Estas ordens de produção têm operações atribuídas a este centro demsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Estes lançamentos de diário ainda estão em Rascunho, portanto seus débitos e créditos não estão no livro-razão para este período. Lance cada um, ou redatē-o para um período aberto posterior."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Essas linhas estão vinculadas a dados fora desta empresa, portanto nunca poderiam ser restauradas. Tudo mais foi feito backup."+msgid "this ability"msgstr "esta capacidade"+msgid "This backup could not be completed."+msgstr "Este backup não pôde ser concluído."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Este backup ainda não foi verificado. As diferenças são encontradas quando a restauração é executada."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "A quantidade própria exigida por este trabalho para o material."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Este local programa apenas centros de trabalho com pessoal, mas esta é uma estação lights-out (24×7) — ela está isenta e continua funcionando sem vigilância."+msgstr "Este local só agenda centros de trabalho com pessoal, mas esta é uma estação ininterrupta (24×7) — ela está isenta e continua funcionando sem supervisão."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Este local programa apenas trabalho onde um operador é atribuído no quadro de pessoal. Sem ninguém atribuído aqui, o trabalho não é programado e aparece como improgramável."@@ -16561,6 +16630,12 @@ msgstr "Este Trimestre"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."+msgid "This restore could not be completed."+msgstr "Esta restauração não pôde ser concluída."++msgid "This revert could not be completed."+msgstr "Esta reversão não pôde ser concluída."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Esta revisão é liberada (Produção). As alterações devem normalmente fluir através de um aviso de alteração."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Este pedido de venda tem linhas que requerem a criação de ordens de produção."msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Esta estação executa trabalho com porta de habilidade — ela apenas é executada enquanto um operador qualificado está de turno; operadores atribuídos no quadro de pessoal moldam ainda mais a mão de obra disponível."+msgstr "Esta estação executa trabalho baseado em habilidade — ela funciona apenas enquanto um operador qualificado está em turno; operadores designados no quadro de pessoal determinam a mão de obra disponível."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Esta estação executa trabalho sem requisito de habilidade; operadores atribuídos no quadro de pessoal moldam a mão de obra disponível."@@ -18330,9 +18405,15 @@ msgstr "Por que isso está bloqueado?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Por que o estoque está mudando — Positivo (encontrado), Negativo (perdido/refugo), ou Definir (substituir a contagem por um valor medido)."+msgid "Why this backup failed"+msgstr "Por que este backup falhou"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Por que esta linha está sendo recusada; mostrado na cotação imprimível e registrado para relatórios de ganho-perda."+msgid "Why this restore failed"+msgstr "Por que esta restauração falhou"+msgid "Will remain as a comment line"msgstr "Permanecerá como uma linha de comentário"@@ -18565,6 +18646,9 @@ msgstr "Suas listas de preços voltadas para o cliente"msgid "Your data is accessible and reasonably clean"msgstr "Os seus dados são acessíveis e razoavelmente limpos"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Seus dados não foram alterados — a restauração para antes de fazer qualquer alteração se não conseguir ser concluída."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Seu provedor de DNS pode anexar automaticamente seu domínio ao nome do registro — se for o caso, digite apenas a parte anterior (por exemplo, _carbon-challenge mais qualquer subdomínio)."diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 1145e26bd2..7c4d228085 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -48,6 +48,14 @@ msgstr "«{taskName}» готово — все {0} позиций графикаmsgid "(excluded for this customer)"msgstr "(исключено для этого покупателя)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# строка связана с данными вне этой организации, поэтому резервная копия ваших текущих данных не может быть создана.} other {# строк связаны с данными вне этой организации, поэтому резервная копия ваших текущих данных не может быть создана.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# строка связана с данными вне этой организации, поэтому она не может быть зарезервирована. Пропуск позволит зарезервировать все остальное.} other {# строк связаны с данными вне этой организации, поэтому они не могут быть зарезервированы. Пропуск позволит зарезервировать все остальное.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Эта номенклатура находится в 1 открытом извещении об изменении} other {Эта номенклатура находится в # открытых извещениях об изменении}}"@@ -114,6 +122,10 @@ msgstr "{0} Процессов"msgid "{0} registered"msgstr "{0} зарегистрирован"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} строк"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} поставщиков с остатком"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# курс} other {# курсов}}"msgid "{done} of {total} phases complete"msgstr "{done} из {total} этапов завершено"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# строка исключена} other {# строк исключено}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} из {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} деталей пропущено — нечегоmsgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} будет переоткрыт для редактирования как ревизия {0}. Отправленный поставщику документ останется неизменным, пока вы не завершите и не переотправите заказ."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {Окончательно удалить # строку?} other {Окончательно удалить # строк?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# этап остался} other {# этапов осталось}}"@@ -2543,6 +2561,9 @@ msgstr "Вернуться к прослеживаемости"msgid "Backflush"msgstr "Ретроградное списание"+msgid "Backup failed"+msgstr "Ошибка резервной копии"+msgid "Backups"msgstr "Резервные копии"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Ссылка скопирована в буфер обмена"msgid "Copied setup prompt to your clipboard"-msgstr "Подсказка наладки скопирована в буфер обмена"+msgstr "Приглашение наладки скопировано в буфер обмена"msgid "Copies a setup prompt for your AI coding tool"msgstr "Копирует подсказку наладки для вашего инструмента кодирования AI"@@ -4981,6 +5002,9 @@ msgstr "Удалить действие"msgid "Delete Action"msgstr "Удалить действие"+msgid "Delete and restore"+msgstr "Удалить и восстановить"+msgid "Delete API Key"msgstr "Удалить API-ключ"@@ -5330,6 +5354,9 @@ msgstr "отделы"msgid "Departments"msgstr "Отделы"+msgid "depends on an excluded row"+msgstr "зависит от исключенной строки"+msgid "Depreciation"msgstr "Амортизация"@@ -5765,6 +5792,12 @@ msgstr "например Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Каждая ячейка показывает назначенных людей против людей, необходимых для дневной работы."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Каждая строка — это связь данных этой организации со строкой, которой она не владеет. Резервную копию с этими строками никогда не удастся восстановить."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Каждая строка — это связь данных этой организации со строкой, которой она не владеет. Удаление этих строк позволяет выполнить восстановление."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Неиспользованный материал каждой операции возвращается, как только операция завершена."@@ -8972,6 +9005,9 @@ msgstr "Связать проблему Jira"msgid "Link Linear Issue"msgstr "Связать проблему Linear"+msgid "link outside company"+msgstr "связь вне организации"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Свяжите этого покупателя Carbon с одним из них или создайте отдельного покупателя Stripe."@@ -12842,7 +12878,7 @@ msgid "Refresh exchange rate"msgstr "Обновить валютный курс"msgid "Regenerate"-msgstr "Пересчитать"+msgstr "Обновить"msgid "Regenerate the schedule for this location now. It also runs automatically about 30 seconds after the last scheduling change (edits are batched, so several quick changes trigger a single regeneration)."msgstr "Пересчитать график для этой площадки сейчас. Пересчет также выполняется автоматически примерно через 30 секунд после последнего изменения в планировании (изменения группируются, поэтому несколько быстрых изменений запускают один пересчет)."@@ -12950,6 +12986,9 @@ msgstr "Убрать условие"msgid "Remove condition"msgstr "Убрать условие"+msgid "Remove corrupted data and restore"+msgstr "Убрать поврежденные данные и восстановить"+msgid "Remove Employee"msgstr "Удалить сотрудника"@@ -13267,6 +13306,9 @@ msgstr "Восстановить…"msgid "Restoring files"msgstr "Восстановление файлов"+msgid "restoring…"+msgstr "восстановление…"+msgid "Result"msgstr "Результат"@@ -13348,6 +13390,9 @@ msgstr "Восстановить"msgid "Reverting"msgstr "Восстановление"+msgid "reverting…"+msgstr "откат…"+msgid "Review"msgstr "Рассмотрение"@@ -13473,6 +13518,9 @@ msgstr "Маршрут операций"msgid "rows"msgstr "строк"+msgid "Rows left out of this backup"+msgstr "Строки, не включенные в эту резервную копию"+msgid "Rule"msgstr "Правило"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "Имя расписания"msgid "Schedule outdated at"-msgstr "График неактуален на"+msgstr "График устарел в"msgid "Schedule outdated reason"msgstr "Причина неактуальности графика"@@ -14690,6 +14738,9 @@ msgstr "Размеры"msgid "Skip"msgstr "Пропустить"+msgid "Skip corrupted rows and retry"+msgstr "Пропустить поврежденные строки и повторить"+msgid "Skip Existing"msgstr "Пропустить существующие"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "Персонал необязателен"+msgstr "Укомплектование необязательно"msgid "Staffing required"msgstr "Требуется персонал"@@ -15557,6 +15608,9 @@ msgstr "Налоги"msgid "Team trained"msgstr "Команда обучена"+msgid "Technical details"+msgstr "Технические сведения"+msgid "Technical support"msgstr "Техническая поддержка"@@ -15639,6 +15693,9 @@ msgstr "Журнал доступного только для добавлениmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Авторизация была отклонена в Onshape. Повторите попытку подключения."+msgid "The backup job reported this error."+msgstr "Задача резервного копирования сообщила об этой ошибке."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "Дата завершения операции, вычисленная в обратном порядке, чтобы производственный заказ был выполнен вовремя, записываемая в срок выполнения операции. Стабильная цель для измерения прогресса — никогда не является ограничением при размещении."@@ -16173,6 +16230,9 @@ msgstr "Остаточное незавершенное производствоmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "В ответе Onshape отсутствовали обязательные параметры. Повторите попытку подключения."+msgid "The restore job reported this error."+msgstr "Задача восстановления сообщила об этой ошибке."+msgid "The result will not appear on the Runs page."msgstr "Результат не появится на странице Запусков."@@ -16410,9 +16470,18 @@ msgstr "Эти производственные заказы имеют оперmsgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Эти операции по-прежнему находятся в режиме Черновик, поэтому их дебеты и кредиты не включены в главную книгу для этого периода. Проведите каждый из них или переведите его в более поздний открытый период."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Эти строки ссылаются на данные вне этой организации, поэтому они не могут быть восстановлены. Всё остальное было сохранено в резервной копии."+msgid "this ability"msgstr "этот навык"+msgid "This backup could not be completed."+msgstr "Эта резервная копия не может быть завершена."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Эта резервная копия еще не была проверена. Любые различия будут обнаружены при запуске восстановления."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "Собственное требуемое количество материала для этого задания."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Эта площадка планирует только рабочие центры с персоналом, но это круглосуточная (24×7) станция — она освобождена и продолжает работать без присмотра."+msgstr "Эта площадка планирует только укомплектованные рабочие центры, но это полностью автоматизированная станция (24×7) — она исключена и продолжает работать автоматически."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "На этой площадке планируется только работа, где оператор назначен на таблицу назначений. Если здесь никто не назначен, работа не планируется и отображается как невозможная для планирования."@@ -16561,6 +16630,12 @@ msgstr "Этот квартал"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 "Это удаляет их приложение аутентификатора, поэтому их следующий вход требует только волшебной ссылки. Используйте это, когда они потеряли доступ к своему аутентификатору. Это влияет на их вход для каждой организации, которой они принадлежат."+msgid "This restore could not be completed."+msgstr "Это восстановление не может быть завершено."++msgid "This revert could not be completed."+msgstr "Этот откат не может быть завершен."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Эта ревизия запущена (Производство). Изменения должны нормально проходить через извещение об изменении."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Этот заказ покупателя имеет строки, требующие создания производственных заказов"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Эта станция выполняет работу с управлением по навыкам — она работает только во время смены квалифицированного оператора; операторы, назначенные на таблицу назначений, дополнительно формируют доступный труд."+msgstr "Эта станция выполняет работу, защищённую навыками — она работает только когда на смене находится квалифицированный оператор; операторы, назначенные на доску комплектования, дополнительно определяют доступный труд."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Эта станция выполняет работу без требований навыков; операторы, назначенные на таблицу назначений, формируют доступный труд."@@ -18330,9 +18405,15 @@ msgstr "Почему это заблокировано?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Почему изменяется запас — Положительное (найдено), Отрицательное (потеряно/брак) или Установить (заменить количество измеренным значением)."+msgid "Why this backup failed"+msgstr "Почему эта резервная копия не удалась"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Почему эта строка отклоняется; отображается в печатаемом предложении и записывается для отчетов по победам и потерям."+msgid "Why this restore failed"+msgstr "Почему это восстановление не удалось"+msgid "Will remain as a comment line"msgstr "Останется в виде строки комментария"@@ -18565,6 +18646,9 @@ msgstr "Ваши ценовые списки для клиентов"msgid "Your data is accessible and reasonably clean"msgstr "Ваши данные доступны и находятся в относительно чистом виде"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Ваши данные не были изменены — восстановление останавливается перед внесением изменений, если оно не может быть завершено."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "Ваш поставщик DNS может автоматически добавить ваш домен к имени записи — если это так, введите только часть перед ней (например, _carbon-challenge плюс любой поддомен)."diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 571953b780..bc39a379de 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\" bitti — tüm {0} Kurulum Haritası öğesi yapılandırmsgid "(excluded for this customer)"msgstr "(bu müşteri için hariç tutulmuş)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle mevcut verilerinizin güvenli bir kopyası oluşturulamıyor.} other {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle mevcut verilerinizin güvenli bir kopyası oluşturulamıyor.}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle yedeklenemez. Bunu atlayarak diğer her şeyi yedekleyebilirsiniz.} other {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle yedeklenemez. Bunları atlayarak diğer her şeyi yedekleyebilirsiniz.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Bu ürün 1 açık değişiklik bildirisinde yer alıyor} other {Bu ürün # açık değişiklik bildirisinde yer alıyor}}"@@ -114,6 +122,10 @@ msgstr "{0} Süreçler"msgid "{0} registered"msgstr "{0} kaydedildi"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} satır"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0} bakiyesi olan tedarikçi"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# kurs} other {# kurs}}"msgid "{done} of {total} phases complete"msgstr "{done} / {total} aşama tamamlandı"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# satır hariç tutuldu} other {# satır hariç tutuldu}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} / {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} parça atlandı — yapılacak bir şey yok"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} revizyon {0} olarak düzenlenmek üzere yeniden açılacaktır. Tedarikçiye gönderilen belge, siparişi sonlandırıp yeniden gönderene kadar değişmez."+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {# satırı kalıcı olarak sil?} other {# satırı kalıcı olarak sil?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# aşama kaldı} other {# aşama kaldı}}"@@ -2543,6 +2561,9 @@ msgstr "İzlenebilirliğe geri dön"msgid "Backflush"msgstr "Geriye dönük tüketim"+msgid "Backup failed"+msgstr "Yedekleme başarısız oldu"+msgid "Backups"msgstr "Yedeklemeler"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "Bağlantı panoya kopyalandı"msgid "Copied setup prompt to your clipboard"-msgstr "Hazırlık talimatı panonuza kopyalandı"+msgstr "Hazırlık istemi panosuna kopyalandı"msgid "Copies a setup prompt for your AI coding tool"msgstr "AI kodlama aracınız için hazırlık talimatı kopyalar"@@ -4981,6 +5002,9 @@ msgstr "Eylemi sil"msgid "Delete Action"msgstr "İşlemi Sil"+msgid "Delete and restore"+msgstr "Sil ve geri yükle"+msgid "Delete API Key"msgstr "API Anahtarını Sil"@@ -5330,6 +5354,9 @@ msgstr "departmanlar"msgid "Departments"msgstr "Departmanlar"+msgid "depends on an excluded row"+msgstr "hariç tutulan bir satıra bağımlı"+msgid "Depreciation"msgstr "Amortisman"@@ -5765,6 +5792,12 @@ msgstr "örneğin Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "Her hücre, günün işinin ihtiyaç duyduğu insanlara karşı atanan insanları gösterir."+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "Her satır, bu şirketin verilerinden sahibi olmadığı bir satıra bir bağlantıdır. Bu satırları içeren bir yedekleme asla geri yüklenemez."++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "Her satır, bu şirketin verilerinden sahibi olmadığı bir satıra bir bağlantıdır. Bu satırları kaldırmak geri yüklemenin çalışmasını sağlar."+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "Her operasyonun kullanılmayan malzemesi operasyon tamamlandıktan hemen sonra geri döner."@@ -8972,6 +9005,9 @@ msgstr "Jira Sorununu Bağla"msgid "Link Linear Issue"msgstr "Linear sorununu bağla"+msgid "link outside company"+msgstr "şirket dışı bağlantı"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "Bu Carbon müşterisini bunlardan birine bağlayın veya ayrı bir Stripe müşterisi oluşturun."@@ -12950,6 +12986,9 @@ msgstr "Maddeyi kaldır"msgid "Remove condition"msgstr "Koşulu kaldır"+msgid "Remove corrupted data and restore"+msgstr "Bozuk verileri kaldır ve geri yükle"+msgid "Remove Employee"msgstr "Çalışanı Kaldır"@@ -13267,6 +13306,9 @@ msgstr "Geri yükle…"msgid "Restoring files"msgstr "Dosyalar geri yükleniyor"+msgid "restoring…"+msgstr "geri yükleniyor…"+msgid "Result"msgstr "Sonuç"@@ -13348,6 +13390,9 @@ msgstr "Geri Al"msgid "Reverting"msgstr "Geri alınıyor"+msgid "reverting…"+msgstr "geri alınıyor…"+msgid "Review"msgstr "İncele"@@ -13473,6 +13518,9 @@ msgstr "Operasyon rotası"msgid "rows"msgstr "satırlar"+msgid "Rows left out of this backup"+msgstr "Bu yedeklemeden hariç tutulan satırlar"+msgid "Rule"msgstr "Kural"@@ -13802,7 +13850,7 @@ msgid "Schedule Name"msgstr "Planlama Adı"msgid "Schedule outdated at"-msgstr "Çizelge süresi şu tarihte doldu"+msgstr "Çizelge Eski Kaldı:"msgid "Schedule outdated reason"msgstr "Çizelge süresi dolma sebebi"@@ -14690,6 +14738,9 @@ msgstr "Boyutlar"msgid "Skip"msgstr "Atla"+msgid "Skip corrupted rows and retry"+msgstr "Bozuk satırları atla ve yeniden dene"+msgid "Skip Existing"msgstr "Mevcut Olanı Atla"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "Personel isteğe bağlı"+msgstr "Personel İsteğe Bağlı"msgid "Staffing required"msgstr "Personel gerekli"@@ -15557,6 +15608,9 @@ msgstr "Vergiler"msgid "Team trained"msgstr "Takım eğitildi"+msgid "Technical details"+msgstr "Teknik Ayrıntılar"+msgid "Technical support"msgstr "Teknik destek"@@ -15639,6 +15693,9 @@ msgstr "Her stok hareketinin yalnızca ekleme kaydı; eldeki tutar, imzalı girdmsgid "The authorization was refused in Onshape. Try connecting again."msgstr "Yetkilendirme Onshape'te reddedildi. Yeniden bağlanmayı deneyin."+msgid "The backup job reported this error."+msgstr "Yedekleme işi bu hatayı bildirdi."+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "Bir operasyon'un iş emri'sini zamanında tutmak için bitirmesi gereken geriye doğru hesaplanan tarih, operasyon'un son tarih'e yazılır. İlerlemeyi ölçmek için kararlı bir hedef — yerleştirilme üzerinde hiçbir zaman bir kısıtlama değildir."@@ -16026,7 +16083,7 @@ msgstr "Prosedürün yeni sürüm numarası"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "Bu lokasyon'daki sonraki zamanlanmış iş {0} başlıyor."+msgstr "Bu lokasyonda bir sonraki planlanan çalışma {0} başlıyor."msgid "The night shift suits you, {name}."msgstr "Gece vardiyası sana yakışıyor, {name}."@@ -16173,6 +16230,9 @@ msgstr "Bir iş emrinin kapatıldığında bıraktığı artık yarı mamul, Ürmsgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape'ten gelen yanıtta gerekli parametreler eksikti. Yeniden bağlanmayı deneyin."+msgid "The restore job reported this error."+msgstr "Geri yükleme işi bu hatayı bildirdi."+msgid "The result will not appear on the Runs page."msgstr "Sonuç Çalıştırmalar sayfasında görünmeyecektir."@@ -16410,9 +16470,18 @@ msgstr "Bu iş emirlerinin bu iş merkezine atanmış operasyonları vardır:"msgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "Bu muhasebe fişleri hala Taslak halinde olduğundan borç ve alacakları bu dönemin defterine girmedi. Her birini muhasebeleştir veya daha sonraki açık bir döneme yeniden tarihle."+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "Bu satırlar bu şirket dışındaki verilere bağlantılı, bu nedenle bunlar hiçbir zaman geri yüklenemez. Diğer her şey yedeklendi."+msgid "this ability"msgstr "bu yetenek"+msgid "This backup could not be completed."+msgstr "Bu yedekleme tamamlanamadı."+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "Bu yedek henüz kontrol edilmedi. Herhangi bir fark, geri yükleme çalıştığında bulunur."@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "Bu işin malzeme için kendi gerekli miktarı."msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "Bu lokasyon yalnızca personeli olan iş merkezleri'ni zamanlandırır, ancak bu tam otomasyonlu (24×7) bir istasyon — muaftır ve gözetimsiz olarak çalışmaya devam eder."+msgstr "Bu lokasyon yalnızca personeli olan iş merkezlerini çizelgeler, ancak burası ışıksız bir (24×7) istasyondur — muaftır ve gözetimsiz olarak çalışmaya devam eder."msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "Bu lokasyon yalnızca personel görevlendirme tahtası'nda atanmış bir operatör'ün bulunduğu işleri zamanlandırır. Burada kimse atanmış olmadığında, iş zamanlandırılmaz ve zamanlanmaz olarak görünür."@@ -16561,6 +16630,12 @@ msgstr "Bu Çeyrek"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."+msgid "This restore could not be completed."+msgstr "Bu geri yükleme tamamlanamadı."++msgid "This revert could not be completed."+msgstr "Bu geri alma tamamlanamadı."+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "Bu revizyon yayınlanmıştır (Üretim). Değişiklikler normalde bir değişiklik bildirisi yoluyla akmalıdır."@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "Bu satış siparişinde iş emri oluşturulması gereken satırlar var"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "Bu istasyon yetkinlik kontrollü iş çalıştırır — yalnızca nitelikli bir operatör vardiya'sındayken çalışır; personel görevlendirme tahtası'nda atanmış operatörler kullanılabilir işçilik'i daha da şekillendirir."+msgstr "Bu istasyon yetkinlik kontrollü çalışmalar gerçekleştirir — nitelikli bir operatör vardiyada iken çalışır; vardiya tahtasında atanan operatörler kullanılabilir işçiliği daha da şekillendiriyor."msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Bu istasyon yetkinlik gereksinimi olmayan iş çalıştırır; personel görevlendirme tahtası'nda atanmış operatörler kullanılabilir işçilik'i şekillendirir."@@ -18330,9 +18405,15 @@ msgstr "Bu neden kilitli?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "Stok neden değişiyor — Pozitif (bulundu), Negatif (kayboldu/Fire), veya Ayarla (sayıyı ölçülen bir değerle değiştirin)."+msgid "Why this backup failed"+msgstr "Bu yedek neden başarısız oldu"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "Bu satırın neden reddedildiği; yazdırılabilir teklifte gösterilir ve kazanç-kayıp raporlaması için kaydedilir."+msgid "Why this restore failed"+msgstr "Bu geri yükleme neden başarısız oldu"+msgid "Will remain as a comment line"msgstr "Yorum satırı olarak kalacak"@@ -18565,6 +18646,9 @@ msgstr "Müşterilerinize sunduğunuz fiyat listeleri"msgid "Your data is accessible and reasonably clean"msgstr "Verileriniz erişilebilir ve makul ölçüde temizdir"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "Verileriniz değiştirilmedi — geri yükleme, tamamlayamayacak olursa hiçbir şeye dokunmadan durur."+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "DNS sağlayıcınız kaydın adına etki alanınızı otomatik olarak ekleyebilir — eğer öyleyse, yalnızca önceki kısmı girin (ör. _carbon-challenge artı herhangi bir alt alan adı)."diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex fbd2d84360..0933aebf8f 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -48,6 +48,14 @@ msgstr "\"{taskName}\"已完成——其所有{0}个设置映射项都已配置msgid "(excluded for this customer)"msgstr "(已为此客户排除)"+#. placeholder {0}: totalScopeRows(run.violationRowsByTable)+msgid "{0, plural, one {# row links to data outside this company, so a safety copy of your current data can't be made.} other {# rows link to data outside this company, so a safety copy of your current data can't be made.}}"+msgstr "{0, plural, one {# 行链接到该公司外的数据,无法制作当前数据的安全副本。} other {# 行链接到该公司外的数据,无法制作当前数据的安全副本。}}"++#. placeholder {0}: totalScopeRows( exportRun.violationRowsByTable )+msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+msgstr "{0, plural, one {# 行链接到该公司外的数据,无法备份。跳过它可以备份其他所有内容。} other {# 行链接到该公司外的数据,无法备份。跳过它们可以备份其他所有内容。}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {此物料有1个未结的变更通知} other {此物料有#个未结的变更通知}}"@@ -114,6 +122,10 @@ msgstr "{0} 个流程"msgid "{0} registered"msgstr "{0}已登记"+#. placeholder {0}: run.rows.toLocaleString()+msgid "{0} rows"+msgstr "{0} 行"+#. placeholder {0}: ap.countmsgid "{0} suppliers with a balance"msgstr "{0}个有余额的供应商"@@ -195,6 +207,9 @@ msgstr "{count, plural, one {# 门课程} other {# 门课程}}"msgid "{done} of {total} phases complete"msgstr "{done}个/{total}个阶段已完成"+msgid "{excluded, plural, one {# row excluded} other {# rows excluded}}"+msgstr "{excluded, plural, one {# 行已排除} other {# 行已排除}}"+msgid "{from}–{to} of {count}"msgstr "{from}–{to} 共 {count}"@@ -237,6 +252,9 @@ msgstr "{noDemandItemCount} 个零件已跳过 — 没有需要生产的"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} 将被重新打开以作为修订版本 {0} 进行编辑。已发送给供应商的文件在您完成并重新发送订单前保持不变。"+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"+msgstr "{purgeRowCount, plural, one {永久删除 # 行?} other {永久删除 # 行?}}"+msgid "{remaining, plural, one {# phase left} other {# phases left}}"msgstr "{remaining, plural, one {# 个阶段剩余} other {# 个阶段剩余}}"@@ -2543,6 +2561,9 @@ msgstr "返回可追溯性"msgid "Backflush"msgstr "倒冲"+msgid "Backup failed"+msgstr "备份失败"+msgid "Backups"msgstr "备份"@@ -3809,7 +3830,7 @@ msgid "Copied link to clipboard"msgstr "已复制链接到剪贴板"msgid "Copied setup prompt to your clipboard"-msgstr "已将换型提示复制到剪贴板"+msgstr "已将设置提示复制到剪贴板"msgid "Copies a setup prompt for your AI coding tool"msgstr "复制换型提示给您的AI编码工具"@@ -4981,6 +5002,9 @@ msgstr "删除操作"msgid "Delete Action"msgstr "删除操作"+msgid "Delete and restore"+msgstr "删除并恢复"+msgid "Delete API Key"msgstr "删除API密钥"@@ -5330,6 +5354,9 @@ msgstr "部门"msgid "Departments"msgstr "部门"+msgid "depends on an excluded row"+msgstr "依赖于已排除的行"+msgid "Depreciation"msgstr "折旧"@@ -5765,6 +5792,12 @@ msgstr "例如 Zebra 2x1"msgid "Each cell is the people assigned against the people the day's work needs."msgstr "每个单元格显示分配的人员与该天工作所需的人员对比。"+msgid "Each line is a link from this company's data to a row it doesn't own. A backup with these rows could never be restored."+msgstr "每一行都是从该公司的数据链接到它不拥有的一行。包含这些行的备份永远无法恢复。"++msgid "Each line is a link from this company's data to a row it doesn't own. Removing those rows lets the restore run."+msgstr "每一行都是从该公司的数据链接到它不拥有的一行。删除这些行可以运行恢复。"+msgid "Each operation's unused material returns as soon as the operation is done."msgstr "每个工序的未使用原材料在工序完成后立即退回。"@@ -8972,6 +9005,9 @@ msgstr "关联 Jira 问题"msgid "Link Linear Issue"msgstr "关联 Linear 问题"+msgid "link outside company"+msgstr "公司外的链接"+msgid "Link this Carbon customer to one of them, or create a separate Stripe customer."msgstr "将此 Carbon 客户链接到其中一个,或创建单独的 Stripe 客户。"@@ -12842,7 +12878,7 @@ msgid "Refresh exchange rate"msgstr "刷新汇率"msgid "Regenerate"-msgstr "再生成"+msgstr "重新生成"msgid "Regenerate the schedule for this location now. It also runs automatically about 30 seconds after the last scheduling change (edits are batched, so several quick changes trigger a single regeneration)."msgstr "立即为该地点重新生成排程。它也会在最后一次排程变化后约30秒自动运行(编辑是批处理的,因此几次快速变化会触发单次重新生成)。"@@ -12950,6 +12986,9 @@ msgstr "移除条款"msgid "Remove condition"msgstr "移除条件"+msgid "Remove corrupted data and restore"+msgstr "移除损坏数据并恢复"+msgid "Remove Employee"msgstr "移除员工"@@ -13267,6 +13306,9 @@ msgstr "恢复…"msgid "Restoring files"msgstr "正在恢复文件"+msgid "restoring…"+msgstr "恢复中…"+msgid "Result"msgstr "结果"@@ -13348,6 +13390,9 @@ msgstr "还原"msgid "Reverting"msgstr "正在还原"+msgid "reverting…"+msgstr "还原中…"+msgid "Review"msgstr "评审"@@ -13473,6 +13518,9 @@ msgstr "工艺路线"msgid "rows"msgstr "行"+msgid "Rows left out of this backup"+msgstr "此备份中遗漏的行"+msgid "Rule"msgstr "规则"@@ -14690,6 +14738,9 @@ msgstr "尺寸"msgid "Skip"msgstr "跳过"+msgid "Skip corrupted rows and retry"+msgstr "跳过损坏的行并重试"+msgid "Skip Existing"msgstr "跳过现有"@@ -14850,7 +14901,7 @@ msgid "SSO/SAML"msgstr "SSO/SAML"msgid "Staffing optional"-msgstr "人工配置可选"+msgstr "人员配置可选"msgid "Staffing required"msgstr "人工配置必需"@@ -15557,6 +15608,9 @@ msgstr "税"msgid "Team trained"msgstr "班组已培训"+msgid "Technical details"+msgstr "技术细节"+msgid "Technical support"msgstr "技术支持"@@ -15639,6 +15693,9 @@ msgstr "每个库存变动的追加专用记录;在手数量是其带符号条msgid "The authorization was refused in Onshape. Try connecting again."msgstr "授权在 Onshape 中被拒绝。请重新连接。"+msgid "The backup job reported this error."+msgstr "备份工作报告了此错误。"+msgid "The backward-computed date an operation must finish by to keep its job on time, written to the operation's due date. A stable target for measuring progress — never a constraint on placement."msgstr "为保持其工单按时完成,工序必须完成的反向计算日期,写入工序的到期日。测量进度的稳定目标 — 永远不是放置约束。"@@ -16026,7 +16083,7 @@ msgstr "程序文件的新版本号"#. placeholder {0}: formatDate( nextScheduledDate, { weekday: "long", month: "short", day: "numeric" }, locale )msgid "The next scheduled work at this location starts {0}."-msgstr "该地点的下一个排程工作开始于{0}。"+msgstr "此位置的下一个已排程工作开始于{0}。"msgid "The night shift suits you, {name}."msgstr "晚班适合你,{name}。"@@ -16173,6 +16230,9 @@ msgstr "工作在关闭时留下的残余在制品,扫至生产差异帐户 -msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape 的响应缺少必需的参数。请重新连接。"+msgid "The restore job reported this error."+msgstr "恢复工作报告了此错误。"+msgid "The result will not appear on the Runs page."msgstr "结果不会出现在运行页面上。"@@ -16410,9 +16470,18 @@ msgstr "这些工单在此工作中心分配了工序:"msgid "These journal entries are still Draft, so their debits and credits aren't in the ledger for this period. Post each one, or re-date it into a later open period."msgstr "这些凭证仍是草稿,所以其借方和贷方不在此期间的账簿中。过账每一个,或将其重新标注日期到更后的未结期间。"+msgid "These rows link to data outside this company, so a safety copy of your current data can't be made. Deleting them cannot be undone. If they turn out to be shared with other companies in this group, nothing is deleted and the restore doesn't start."+msgstr ""++msgid "These rows link to data outside this company, so they could never be restored. Everything else was backed up."+msgstr "这些行链接到公司外的数据,因此无法恢复它们。其他所有内容都已备份。"+msgid "this ability"msgstr "此能力"+msgid "This backup could not be completed."+msgstr "无法完成此备份。"+msgid "This backup hasn't been checked yet. Any differences are found when the restore runs."msgstr "此备份尚未检查。还原运行时将发现任何差异。"@@ -16508,7 +16577,7 @@ msgid "This job's own required quantity for the material."msgstr "这个工单所需的原材料数量。"msgid "This location only schedules staffed work centers, but this is a lights-out (24×7) station — it is exempt and keeps running unattended."-msgstr "该地点仅排程有人工作的工作中心,但这是一个熄灯(24×7)站 — 它豁免并保持无人运行。"+msgstr "此地点仅对配置人员的工作中心进行排程,但这是一个无人值守(24×7)工作站——它被豁免,可以无人值守运行。"msgid "This location only schedules work where an operator is assigned on the manning board. With no one assigned here, work is not scheduled and shows as unschedulable."msgstr "该地点仅排程在人员配备板上已分配操作员的工作。此处未分配任何人员时,工作不会被排程并显示为无法排程。"@@ -16561,6 +16630,12 @@ msgstr "本季度"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 "此操作移除其身份验证应用,因此其下次登录只需要魔法链接。当他们无法访问其身份验证器时使用此选项。它影响其所属每个公司的登录。"+msgid "This restore could not be completed."+msgstr "无法完成此恢复。"++msgid "This revert could not be completed."+msgstr "无法完成此还原。"+msgid "This revision is released (Production). Changes should normally flow through a change notice."msgstr "这个修订版已下达(生产)。更改应该通常通过变更通知进行。"@@ -16580,7 +16655,7 @@ msgid "This sales order has lines that require jobs to be created"msgstr "这个销售订单有需要创建工单的行。"msgid "This station runs ability-gated work — it only runs while a qualified operator is on shift; operators assigned on the manning board further shape available labor."-msgstr "该站运行技能门控工作 — 它仅在合格操作员轮班时运行;人员配备板上分配的操作员进一步塑造可用人工。"+msgstr "该工作站运行受技能限制的工作——仅在班次内有具合格操作员在岗时运行;人员配置板上已分配的操作员进一步决定可用人工。"msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "该站运行无技能要求的工作;人员配备板上分配的操作员塑造可用人工。"@@ -18330,9 +18405,15 @@ msgstr "为什么这个被已锁定了?"msgid "Why stock is changing — Positive (found), Negative (lost/scrap), or Set (replace count with a measured value)."msgstr "为什么库存在变化 — 正向(发现)、负向(丢失/报废)或设置(用测量值替换计数)。"+msgid "Why this backup failed"+msgstr "备份失败原因"+msgid "Why this line is being declined; surfaced on the printable quote and recorded for win-loss reporting."msgstr "该行被拒绝的原因;显示在可打印报价上,并为损益报告记录。"+msgid "Why this restore failed"+msgstr "还原失败原因"+msgid "Will remain as a comment line"msgstr "将保留为注释行"@@ -18569,6 +18650,9 @@ msgstr "您面向客户的价格表"msgid "Your data is accessible and reasonably clean"msgstr "您的数据可访问且相对干净"+msgid "Your data was not changed — the restore stops before touching anything if it can't complete."+msgstr "您的数据未被更改——如果还原无法完成,它会在修改任何内容之前停止。"+msgid "Your DNS provider may auto-append your domain to the record name — if so, enter only the part before it (e.g. _carbon-challenge plus any subdomain)."msgstr "您的 DNS 提供商可能会自动将您的域追加到记录名称中 — 如果是这样,只需输入它之前的部分(例如 _carbon-challenge 加上任何子域)。"