Skip to content

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

fix: cross-company restore no longer collides on FK-less id columns or SSO/OAuth rows

aashub4c99e3dfe94
diff --git a/.claude/rules/company-backup-restore.md b/.claude/rules/company-backup-restore.md
index a97ba60fe4..2a2faf537b 100644
--- a/.claude/rules/company-backup-restore.md
+++ b/.claude/rules/company-backup-restore.md
@@ -86,7 +86,9 @@ both use it; `company-backup.ts` re-exports it), exported to app code as
data; `companyGroupId` = config shared across a company group (chart of
accounts, currencies, dimensions).
- Skip/scope sets: `SECRET_TABLES` (`apiKey`, `apiKeyRateLimit`,
- `companyIntegration`, `employeePin`, `webhook`, `oauthClient`, `oauthToken` — never travel;
+ `companyIntegration`, `employeePin`, `webhook`, `oauthClient`, `oauthCode`, `oauthToken`,
+ `ssoConnection`, `ssoDomain` — never travel; SSO rows carry values unique across all
+ companies (`providerId`, a verified `domain`), so a cross-company copy collided;
`employeePin` holds console-PIN bcrypt hashes, a credential for a 4-digit PIN, and
stays in place on restore alongside `employee` (`IN_PLACE_SKIPPED_TABLES`), which is
never wiped, so its (employee, company) FK has nothing to orphan it from;
@@ -171,6 +173,19 @@ both use it; `company-backup.ts` re-exports it), exported to app code as
IS carried; a column missing from this set survives a cross-company restore
still pointing at the SOURCE company's prefix (which is what left restored
assemblies unable to load their model).
+- FK-less id refs: `ID_REF_COLUMNS` (`src/backups/id-refs.ts`, per table) lists
+ TEXT/TEXT[] columns that hold a tenant row's id with no FK — generic refs like
+ `inspection.sourceDocumentId`/`sourceDocumentLineId` (receipt line OR job
+ operation), `itemLedger.documentId`, `...Ids` arrays. `buildRowTransforms` rewrites
+ them through the combined `idRewrite` map on a remap load (element-wise for arrays,
+ lookup-only so non-id values pass through; an FK column is never treated this way).
+ Unlisted, a cross-company restore keeps the SOURCE ids: the
+ `inspection_sourceDocumentLineId_key` unique index (cross-company, on
+ `("sourceDocument","sourceDocumentLineId")`) then collides with the source
+ company's live rows and rolls the restore back. A migration adding such a column
+ must list it (`workflow-database-migration.md` step 3c). The map is typed against the
+ generated row types (`satisfies`), so a renamed/dropped column fails typecheck.
+ Neither `db:check:backups` nor any other check detects an UNLISTED new column yet.
- Asset transport: `copyAssetsToBackup` (server-side `storage.copy`
of `private/{companyId}/…` files into a backup's `assets/` folder) and
`restoreAssetsFromBackup` (copy them back to `private/`, rewriting paths +
diff --git a/.claude/rules/workflow-database-migration.md b/.claude/rules/workflow-database-migration.md
index 28b4740422..ca6e087bde 100644
--- a/.claude/rules/workflow-database-migration.md
+++ b/.claude/rules/workflow-database-migration.md
@@ -98,6 +98,23 @@ really a rename silently discards their rows and still reports success. So an un
missing table refuses the restore outright, and `pnpm db:check:backups` fails your commit
until the entry exists.
+### 3c. A column that holds a row id with no FK? Record it for backups
+
+If the migration adds a TEXT / TEXT[] column that stores another tenant row's id
+**without a foreign key** — usually a generic ref that can point at one of several
+tables (`inspection."sourceDocumentLineId"` is a receipt line OR a job operation), or an
+`...Ids` array — add it to `ID_REF_COLUMNS` in `packages/jobs/src/backups/id-refs.ts`
+in the SAME commit.
+
+A restore into a different company gives every row a new id and rewrites FK columns
+to match. It cannot see a column with no FK, so that column keeps the SOURCE
+company's ids — dangling at best, and a unique-index collision with the source
+company's live rows when the column is indexed (`inspection_sourceDocumentLineId_key`
+fails a cross-company restore this way). Listing it makes the restore rewrite it through
+the old→new id map. Readable numbers (`quote."quoteId"`), external ids and user refs are
+not row ids — leave them out. The map is typed against the generated row types, so a
+column you rename or drop fails `typecheck` until you update its entry.
+
### 4. Update the Zod validators
Update the module's `apps/erp/app/modules/{module}/{module}.models.ts` to match
@@ -140,6 +157,8 @@ pre-commit hook runs it anyway. Details: `onboarding-company-templates.md`.
`pnpm --filter @carbon/database authz migration <name>` (no `CREATE POLICY` in migrations)
- [ ] Renamed/dropped a tenant-scoped table? `TABLE_RENAMES` entry added
(`packages/jobs/src/backups/renames.ts`) — new name, or `null` if dropped with its feature
+- [ ] New TEXT/TEXT[] column holding a tenant row id with no FK? Listed in `ID_REF_COLUMNS`
+ (`packages/jobs/src/backups/id-refs.ts`)
- [ ] Zod validators updated in `{module}.models.ts`
- [ ] Applied locally with `pnpm db:migrate` (regenerates types) — never `db:build`
- [ ] Demo data updated for the new/changed tables, and `pnpm db:check:datasets` ✓×4
diff --git a/packages/jobs/src/backups/id-refs.ts b/packages/jobs/src/backups/id-refs.ts
new file mode 100644
index 0000000000..e5815741c1
--- /dev/null
+++ b/packages/jobs/src/backups/id-refs.ts
@@ -0,0 +1,102 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
+// including ports, remain AGPLv3; serving them over a network requires releasing their source.
+
+import type { Database } from "@carbon/database";
+
+type PublicTables = Database["public"]["Tables"];
+// Typed against the generated row types, so a renamed or dropped column fails to
+// compile instead of silently never being rewritten.
+type IdRefColumns = {
+ [T in keyof PublicTables]?: readonly Extract<
+ keyof PublicTables[T]["Row"],
+ string
+ >[];
+};
+
+/**
+ * TEXT (or TEXT[]) columns that hold another row's id WITHOUT a foreign key —
+ * mostly generic refs that point at one of several tables (`inspection.
+ * sourceDocumentLineId` is a receipt line OR a job operation), so no FK can
+ * express them. A foreign restore re-ids every row, and the FK-driven remap
+ * can't see these, so they are rewritten through the combined `idRewrite` map
+ * instead. Left alone they keep the SOURCE company's ids: a dangling ref at
+ * best, and a cross-company unique-index collision when the source rows still
+ * exist (`inspection_sourceDocumentLineId_key`).
+ *
+ * Lookup-only: a value that isn't a remapped id (a readable number, an external
+ * id, a global row) passes through untouched, so listing a column that only
+ * sometimes holds an id is harmless. Readable ids (`quote.quoteId`), external
+ * ids and user refs are NOT listed — they are not row ids.
+ *
+ * A migration that adds a TEXT/TEXT[] column holding a tenant row's id with no
+ * FK (a generic `sourceDocumentId`, an `...Ids` array) MUST add it here in the
+ * same commit. Nothing infers it: without an FK the column reads as plain text.
+ */
+export const ID_REF_COLUMNS: Partial<Record<string, readonly string[]>> = {
+ accountingSyncOperation: ["entityId"],
+ approvalRequest: ["documentId"],
+ approvalRule: ["approverGroupIds"],
+ changeOrder: ["requiredActionIds", "sourceId"],
+ costLedger: ["appliesToCostLedgerId", "documentId"],
+ document: ["sourceDocumentId"],
+ documentExtraction: ["sourceDocumentId"],
+ documentTemplate: ["footerSectionId", "headerSectionId"],
+ enforcementRule: ["filteredItemGroupIds"],
+ enforcementRuleAcknowledgment: [
+ "documentId",
+ "documentLineId",
+ "itemId",
+ "ruleId"
+ ],
+ externalIntegrationMapping: ["entityId"],
+ externalLink: ["documentId"],
+ inspection: ["sourceDocumentId", "sourceDocumentLineId"],
+ intercompanyEliminationLine: ["accountId", "itemId", "journalLineId"],
+ intercompanyTransaction: ["documentId"],
+ inventoryCountLine: [
+ "locationId",
+ "postedItemLedgerId",
+ "storageUnitId",
+ "trackedEntityId"
+ ],
+ itemLedger: ["correctionOfItemLedgerId", "documentId", "documentLineId"],
+ itemStockQuantities: ["itemId", "locationId"],
+ job: ["modelUploadId", "quoteLineId"],
+ jobMaterial: ["substitutedFromItemId"],
+ jobOperation: ["operationSupplierProcessId"],
+ jobOperationNote: ["jobOperationId"],
+ jobOperationStep: ["nonConformanceInvestigationId"],
+ journalLine: ["documentId"],
+ journalLineDimension: ["valueId"],
+ nonConformance: ["requiredActionIds"],
+ nonConformancePurchaseReturnOrderLine: ["purchaseReturnOrderId"],
+ nonConformanceSalesReturnOrderLine: ["salesReturnOrderId"],
+ nonConformanceWorkflow: ["requiredActionIds"],
+ note: ["documentId"],
+ notification: ["documentId"],
+ notificationDelivery: ["documentId"],
+ periodCloseTask: ["evidenceJournalId"],
+ pricingRule: ["customerIds", "customerTypeIds", "itemIds"],
+ printJob: ["sourceDocumentId"],
+ printerRoute: ["templateId"],
+ purchaseInvoiceLine: ["assetId", "serviceId"],
+ purchaseOrderLine: ["locationId"],
+ receipt: ["sourceDocumentId"],
+ receiptLine: ["lineId"],
+ reimbursementLineDimension: ["valueId"],
+ riskRegister: ["sourceId"],
+ salesInvoiceShipment: ["locationId", "shippingMethodId", "shippingTermId"],
+ salesOrderLine: ["locationId", "modelUploadId"],
+ salesOrderShipment: ["supplierId", "supplierLocationId"],
+ shipment: ["sourceDocumentId"],
+ shipmentLine: ["lineId"],
+ slackDocumentThread: ["documentId"],
+ storageUnit: ["storageTypeIds"],
+ supplierLedger: ["documentId"],
+ supplierPartPrice: ["sourceDocumentId"],
+ trackedActivity: ["sourceDocumentId"],
+ trackedEntity: ["sourceDocumentId"],
+ trainingAssignment: ["groupIds"],
+ workflowRun: ["causedByRunId", "rootRunId", "triggerRecordId"]
+} satisfies IdRefColumns;
diff --git a/packages/jobs/src/backups/schema.ts b/packages/jobs/src/backups/schema.ts
index 40b22d64ff..ce3d8c5a3b 100644
--- a/packages/jobs/src/backups/schema.ts
+++ b/packages/jobs/src/backups/schema.ts
@@ -28,7 +28,10 @@ export const BACKUP_VERSION = 1;
* operational counter, never user data. `employeePin` holds console PIN
* hashes — a 4-digit PIN's bcrypt hash is brute-forced offline in minutes, so
* it is a credential; being secret also keeps an in-place restore from wiping
- * every operator's PIN.)
+ * every operator's PIN. `ssoConnection` / `ssoDomain` are the company's login
+ * identity — `providerId` and a verified `domain` are unique across ALL
+ * companies, so a copy collides with the source company or hands its domain to
+ * another. `oauthCode` is a live auth code, and dangles without `oauthClient`.)
*/
export const SECRET_TABLES = [
"apiKey",
@@ -37,7 +40,10 @@ export const SECRET_TABLES = [
"employeePin",
"webhook",
"oauthClient",
- "oauthToken"
+ "oauthCode",
+ "oauthToken",
+ "ssoConnection",
+ "ssoDomain"
];
/**
diff --git a/packages/jobs/src/inngest/functions/tasks/company-backup.closure.test.ts b/packages/jobs/src/inngest/functions/tasks/company-backup.closure.test.ts
index 4d4b2f2df3..db8ef81905 100644
--- a/packages/jobs/src/inngest/functions/tasks/company-backup.closure.test.ts
+++ b/packages/jobs/src/inngest/functions/tasks/company-backup.closure.test.ts
@@ -513,6 +513,57 @@ describe("buildRowTransforms", () => {
);
expect(out.email).toBe("[email protected]");
});
+
+ it("rewrites a FK-less id ref through idRewrite (inspection.sourceDocumentLineId)", () => {
+ // The source company's inspection still holds ("Receipt", "line-old"); a
+ // verbatim copy collides on the cross-company unique index.
+ const t = table("inspection", [
+ col("id"),
+ col("companyId"),
+ col("sourceDocumentId"),
+ col("sourceDocumentLineId", { nullable: true })
+ ]);
+ const idRewrite = new Map([
+ ["receipt-old", "receipt-new"],
+ ["line-old", "line-new"]
+ ]);
+ const out = apply(
+ t,
+ {
+ id: "i1",
+ companyId: "src-co",
+ sourceDocumentId: "receipt-old",
+ sourceDocumentLineId: "line-old"
+ },
+ ctx({ idRewrite })
+ );
+ expect(out.sourceDocumentId).toBe("receipt-new");
+ expect(out.sourceDocumentLineId).toBe("line-new");
+ });
+
+ it("rewrites each element of a FK-less id-array ref, keeping unmapped values", () => {
+ const t = table("pricingRule", [
+ col("id"),
+ col("companyId"),
+ col("itemIds", { nullable: true })
+ ]);
+ const out = apply(
+ t,
+ { id: "r1", companyId: "src-co", itemIds: ["a-old", "global-1"] },
+ ctx({ idRewrite: new Map([["a-old", "a-new"]]) })
+ );
+ expect(out.itemIds).toEqual(["a-new", "global-1"]);
+ });
+
+ it("leaves an id ref verbatim on an own restore (remap=false)", () => {
+ const t = table("inspection", [col("id"), col("sourceDocumentLineId")]);
+ const out = apply(
+ t,
+ { id: "i1", sourceDocumentLineId: "line-old" },
+ ctx({ remap: false, idRewrite: new Map([["line-old", "line-new"]]) })
+ );
+ expect(out.sourceDocumentLineId).toBe("line-old");
+ });
});
describe("buildIdMaps", () => {
diff --git a/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts b/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts
index ec4e40b7f5..33c76e49bb 100644
--- a/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts
+++ b/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts
@@ -4,6 +4,7 @@
import type { KyselyDatabase } from "@carbon/database/client";
import { type Kysely, sql } from "kysely";
+import { ID_REF_COLUMNS } from "../../../backups/id-refs";
import {
type Catalog,
type ColumnInfo,
@@ -351,6 +352,12 @@ export function buildRowTransforms(
: rewriteStoragePath(v, sourceCompanyId, companyId, idRewrite);
};
}
+ if (!fk && ID_REF_COLUMNS[table.name]?.includes(col.name)) {
+ const { idRewrite } = ctx;
+ const rewrite = (id: unknown) =>
+ typeof id === "string" ? (idRewrite.get(id) ?? id) : id;
+ return (v) => (Array.isArray(v) ? v.map(rewrite) : rewrite(v));
+ }
if (fk) {
if (USER_REF_TABLES.has(fk.refTable)) {
return (v) => (v == null ? v : ctx.userId);
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index 7214760f7b..70bed74c57 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Retrograde Entnahme"
msgid "Backup failed"
msgstr "Sicherung fehlgeschlagen"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Sicherungen"
@@ -8133,6 +8136,10 @@ msgstr "Fehler beim Hochladen des PDF"
msgid "Failed to upload thumbnail"
msgstr "Fehler beim Hochladen des Vorschaubildes"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Fehler"
@@ -13641,6 +13648,9 @@ msgstr "Bevorzugter Lieferant"
msgid "Prefix"
msgstr "Präfix"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Anzahlungen"
@@ -16100,6 +16110,9 @@ msgstr "Segmente, die Kundenpreise und -bedingungen bestimmen"
msgid "Select"
msgstr "Auswählen"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Einen Bearbeiter auswählen"
@@ -20052,6 +20065,9 @@ msgstr "CSV hochladen"
msgid "Upload failed. Please try again."
msgstr "Hochladen fehlgeschlagen. Bitte versuchen Sie es erneut."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Modell hochgeladen"
@@ -20069,6 +20085,12 @@ msgstr "Wird hochgeladen {0}"
msgid "Uploading {fileName}"
msgstr "Wird hochgeladen {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Wird hochgeladen..."
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index 6bcd65154b..ce1b6b1105 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Backflush"
msgid "Backup failed"
msgstr "Backup failed"
+msgid "Backup uploaded"
+msgstr "Backup uploaded"
+
msgid "Backups"
msgstr "Backups"
@@ -8133,6 +8136,10 @@ msgstr "Failed to upload PDF"
msgid "Failed to upload thumbnail"
msgstr "Failed to upload thumbnail"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr "Failed to upload: {0}"
+
msgid "Failure"
msgstr "Failure"
@@ -13641,6 +13648,9 @@ msgstr "Preferred Supplier"
msgid "Prefix"
msgstr "Prefix"
+msgid "Preparing the backup for restore…"
+msgstr "Preparing the backup for restore…"
+
msgid "Prepayments"
msgstr "Prepayments"
@@ -16100,6 +16110,9 @@ msgstr "Segments that drive customer pricing and terms"
msgid "Select"
msgstr "Select"
+msgid "Select a .carbon.tar.gz backup"
+msgstr "Select a .carbon.tar.gz backup"
+
msgid "Select a assignee"
msgstr "Select a assignee"
@@ -20052,6 +20065,9 @@ msgstr "Upload CSV"
msgid "Upload failed. Please try again."
msgstr "Upload failed. Please try again."
+msgid "Upload new backup…"
+msgstr "Upload new backup…"
+
msgid "Uploaded model"
msgstr "Uploaded model"
@@ -20069,6 +20085,12 @@ msgstr "Uploading {0}"
msgid "Uploading {fileName}"
msgstr "Uploading {fileName}"
+msgid "Uploading backup"
+msgstr "Uploading backup"
+
+msgid "Uploading the backup file"
+msgstr "Uploading the backup file"
+
msgid "Uploading..."
msgstr "Uploading..."
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 56212d34ef..7fe1752231 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Consumo retroactivo"
msgid "Backup failed"
msgstr "Falló la copia de seguridad"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Copias de seguridad"
@@ -8133,6 +8136,10 @@ msgstr "No se pudo subir PDF"
msgid "Failed to upload thumbnail"
msgstr "No se pudo subir miniatura"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Fallo"
@@ -13641,6 +13648,9 @@ msgstr "Proveedor Preferido"
msgid "Prefix"
msgstr "Prefijo"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Anticipos (predeterminado)"
@@ -16100,6 +16110,9 @@ msgstr "Segmentos que determinan los precios y términos del cliente"
msgid "Select"
msgstr "Seleccionar"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Seleccionar un asignado"
@@ -20052,6 +20065,9 @@ msgstr "Subir CSV"
msgid "Upload failed. Please try again."
msgstr "Error al subir el archivo. Inténtalo de nuevo."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Modelo cargado"
@@ -20069,6 +20085,12 @@ msgstr "Cargando {0}"
msgid "Uploading {fileName}"
msgstr "Cargando {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Cargando..."
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 8cafcc0159..079d1e9ff4 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Post-consommation"
msgid "Backup failed"
msgstr "La sauvegarde a échoué"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Sauvegardes"
@@ -8133,6 +8136,10 @@ msgstr "Impossible de téléverser le PDF"
msgid "Failed to upload thumbnail"
msgstr "Impossible de téléverser la miniature"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Échec"
@@ -13641,6 +13648,9 @@ msgstr "Fournisseur préféré"
msgid "Prefix"
msgstr "Préfixe"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Acomptes (par défaut)"
@@ -16100,6 +16110,9 @@ msgstr "Segments qui déterminent la tarification et les conditions client"
msgid "Select"
msgstr "Sélectionner"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Sélectionner un assigné"
@@ -20052,6 +20065,9 @@ msgstr "Téléverser un CSV"
msgid "Upload failed. Please try again."
msgstr "Le téléversement a échoué. Veuillez réessayer."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Modèle téléchargé"
@@ -20069,6 +20085,12 @@ msgstr "Téléchargement de {0}"
msgid "Uploading {fileName}"
msgstr "Téléchargement de {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Téléchargement..."
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index fc98cf2b33..91e3e59674 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -3002,6 +3002,9 @@ msgstr "बैकफ्लश"
msgid "Backup failed"
msgstr "बैकअप विफल रहा"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "बैकअप"
@@ -8133,6 +8136,10 @@ msgstr "PDF अपलोड करने में विफल"
msgid "Failed to upload thumbnail"
msgstr "थंबनेल अपलोड करने में विफल"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "विफलता"
@@ -13641,6 +13648,9 @@ msgstr "पसंदीदा आपूर्तिकर्ता"
msgid "Prefix"
msgstr "उपसर्ग"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "अग्रिम भुगतान (डिफ़ॉल्ट)"
@@ -16100,6 +16110,9 @@ msgstr "ऐसे सेगमेंट जो ग्राहक मूल्
msgid "Select"
msgstr "चुनें"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "एक असाइनी चुनें"
@@ -20052,6 +20065,9 @@ msgstr "CSV अपलोड करें"
msgid "Upload failed. Please try again."
msgstr "अपलोड विफल रहा। कृपया पुनः प्रयास करें।"
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "अपलोड किया गया मॉडल"
@@ -20069,6 +20085,12 @@ msgstr "अपलोड किया जा रहा है {0}"
msgid "Uploading {fileName}"
msgstr "अपलोड किया जा रहा है {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "अपलोड हो रहा है..."
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index fc81baec9e..00f386aa35 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Backflush"
msgid "Backup failed"
msgstr "Backup non riuscito"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Backup"
@@ -8133,6 +8136,10 @@ msgstr "Caricamento PDF non riuscito"
msgid "Failed to upload thumbnail"
msgstr "Impossibile caricare la miniatura"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Errore"
@@ -13641,6 +13648,9 @@ msgstr "Fornitore preferenziale"
msgid "Prefix"
msgstr "Prefisso"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Acconti"
@@ -16100,6 +16110,9 @@ msgstr "Segmenti che determinano i prezzi e le condizioni dei clienti"
msgid "Select"
msgstr "Seleziona"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Seleziona un assegnatario"
@@ -20052,6 +20065,9 @@ msgstr "Carica CSV"
msgid "Upload failed. Please try again."
msgstr "Caricamento non riuscito. Riprova."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Modello caricato"
@@ -20069,6 +20085,12 @@ msgstr "Caricamento {0}"
msgid "Uploading {fileName}"
msgstr "Caricamento in corso {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Caricamento in corso..."
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index bfa74dd1aa..0b7038c3e4 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -3002,6 +3002,9 @@ msgstr "バックフラッシュ"
msgid "Backup failed"
msgstr "バックアップに失敗しました"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "バックアップ"
@@ -8133,6 +8136,10 @@ msgstr "PDFのアップロードに失敗しました"
msgid "Failed to upload thumbnail"
msgstr "サムネイルのアップロードに失敗しました"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "失敗"
@@ -13641,6 +13648,9 @@ msgstr "優先仕入先"
msgid "Prefix"
msgstr "プレフィックス"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "前払金(デフォルト)"
@@ -16100,6 +16110,9 @@ msgstr "得意先の価格設定と条件を決定するセグメント"
msgid "Select"
msgstr "選択"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "担当者を選択"
@@ -20052,6 +20065,9 @@ msgstr "CSVをアップロード"
msgid "Upload failed. Please try again."
msgstr "アップロードに失敗しました。もう一度お試しください。"
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "モデルをアップロードしました"
@@ -20069,6 +20085,12 @@ msgstr "アップロード中 {0}"
msgid "Uploading {fileName}"
msgstr "アップロード中 {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "アップロード中..."
diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.po
index bbff570d61..114aa64dea 100644
--- a/packages/locale/locales/ko/erp.po
+++ b/packages/locale/locales/ko/erp.po
@@ -3002,6 +3002,9 @@ msgstr "백플러시"
msgid "Backup failed"
msgstr "백업 실패"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "백업"
@@ -8133,6 +8136,10 @@ msgstr "PDF를 업로드하지 못했습니다"
msgid "Failed to upload thumbnail"
msgstr "썸네일을 업로드하지 못했습니다"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "실패"
@@ -13641,6 +13648,9 @@ msgstr "우선 공급업체"
msgid "Prefix"
msgstr "접두사"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "선급금"
@@ -16100,6 +16110,9 @@ msgstr "고객 가격 책정과 계약 조건을 좌우하는 구분 항목"
msgid "Select"
msgstr "선택"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "담당자 선택"
@@ -20052,6 +20065,9 @@ msgstr "CSV 업로드"
msgid "Upload failed. Please try again."
msgstr "업로드에 실패했습니다. 다시 시도해 주세요."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "업로드된 모델"
@@ -20069,6 +20085,12 @@ msgstr "{0} 업로드 중"
msgid "Uploading {fileName}"
msgstr "{fileName} 업로드 중"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "업로드 중..."
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 5b113e70bf..116f6e33cd 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Pobranie wsteczne"
msgid "Backup failed"
msgstr "Kopia bezpieczeństwa nie powiodła się"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Kopie zapasowe"
@@ -8133,6 +8136,10 @@ msgstr "Nie udało się przesłać pliku PDF"
msgid "Failed to upload thumbnail"
msgstr "Nie udało się przesłać miniatury."
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Niepowodzenie"
@@ -13641,6 +13648,9 @@ msgstr "Preferowany dostawca"
msgid "Prefix"
msgstr "Prefiks"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Zaliczki"
@@ -16100,6 +16110,9 @@ msgstr "Segmenty, które określają ceny i warunki dla klientów"
msgid "Select"
msgstr "Wybierz"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Wybierz osobę przypisaną"
@@ -20052,6 +20065,9 @@ msgstr "Prześlij plik CSV"
msgid "Upload failed. Please try again."
msgstr "Przesłanie pliku nie powiodło się. Spróbuj ponownie."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Model przesłany"
@@ -20069,6 +20085,12 @@ msgstr "Przesyłanie {0}"
msgid "Uploading {fileName}"
msgstr "Przesylanie {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Przesyłanie..."
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 78fe2cb8f3..5abac8af1e 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Baixa automática"
msgid "Backup failed"
msgstr "Backup falhou"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Backups"
@@ -8133,6 +8136,10 @@ msgstr "Falha ao enviar arquivo PDF"
msgid "Failed to upload thumbnail"
msgstr "Falha ao enviar arquivo de miniatura"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Falha"
@@ -13641,6 +13648,9 @@ msgstr "Fornecedor preferencial"
msgid "Prefix"
msgstr "Prefixo"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Adiantamentos (padrão)"
@@ -16100,6 +16110,9 @@ msgstr "Segmentos que determinam a precificação e os termos do cliente"
msgid "Select"
msgstr "Selecionar"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Selecione um designado"
@@ -20052,6 +20065,9 @@ msgstr "Enviar arquivo CSV"
msgid "Upload failed. Please try again."
msgstr "O envio do arquivo falhou. Por favor, tente novamente."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Modelo carregado"
@@ -20069,6 +20085,12 @@ msgstr "Enviando {0}"
msgid "Uploading {fileName}"
msgstr "Carregando {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Enviando..."
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 458dc3119b..cf6a2f5bcb 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Ретроградное списание"
msgid "Backup failed"
msgstr "Ошибка резервной копии"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Резервные копии"
@@ -8133,6 +8136,10 @@ msgstr "Ошибка загрузки PDF"
msgid "Failed to upload thumbnail"
msgstr "Не удалось загрузить миниатюру"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Сбой"
@@ -13641,6 +13648,9 @@ msgstr "Основной поставщик"
msgid "Prefix"
msgstr "Префикс"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Предоплаты"
@@ -16100,6 +16110,9 @@ msgstr "Сегменты, которые определяют ценообраз
msgid "Select"
msgstr "Выбрать"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Выберите исполнителя"
@@ -20052,6 +20065,9 @@ msgstr "Загрузить CSV"
msgid "Upload failed. Please try again."
msgstr "Не удалось загрузить файл. Попробуйте ещё раз."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Модель загружена"
@@ -20069,6 +20085,12 @@ msgstr "Загрузка {0}"
msgid "Uploading {fileName}"
msgstr "Загрузка {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Загрузка..."
diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.po
index 8f8787830d..8bd5a4485c 100644
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@ -3002,6 +3002,9 @@ msgstr "Geriye dönük tüketim"
msgid "Backup failed"
msgstr "Yedekleme başarısız oldu"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "Yedeklemeler"
@@ -8133,6 +8136,10 @@ msgstr "PDF yüklenemedi"
msgid "Failed to upload thumbnail"
msgstr "Küçük resim yüklenemedi"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "Başarısızlık"
@@ -13641,6 +13648,9 @@ msgstr "Tercih Edilen Tedarikçi"
msgid "Prefix"
msgstr "Ön Ek"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "Avanslar"
@@ -16100,6 +16110,9 @@ msgstr "Müşteri fiyatlandırması ve koşullarını belirleyen segmentler"
msgid "Select"
msgstr "Seç"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "Bir atanan seçin"
@@ -20052,6 +20065,9 @@ msgstr "CSV Yükle"
msgid "Upload failed. Please try again."
msgstr "Yükleme başarısız oldu. Lütfen tekrar deneyin."
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "Yüklenen model"
@@ -20069,6 +20085,12 @@ msgstr "Yükleniyor {0}"
msgid "Uploading {fileName}"
msgstr "{\"fileName\"} yükleniyor"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "Yükleniyor..."
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index 7b06bc98c6..2de6e0251e 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -3002,6 +3002,9 @@ msgstr "倒冲"
msgid "Backup failed"
msgstr "备份失败"
+msgid "Backup uploaded"
+msgstr ""
+
msgid "Backups"
msgstr "备份"
@@ -8133,6 +8136,10 @@ msgstr "上传 PDF 失败"
msgid "Failed to upload thumbnail"
msgstr "上传缩略图失败"
+#. placeholder {0}: (err as Error).message
+msgid "Failed to upload: {0}"
+msgstr ""
+
msgid "Failure"
msgstr "故障"
@@ -13641,6 +13648,9 @@ msgstr "首选供应商"
msgid "Prefix"
msgstr "前缀"
+msgid "Preparing the backup for restore…"
+msgstr ""
+
msgid "Prepayments"
msgstr "预付款(默认)"
@@ -16100,6 +16110,9 @@ msgstr "驱动客户定价和条款的细分市场"
msgid "Select"
msgstr "选择"
+msgid "Select a .carbon.tar.gz backup"
+msgstr ""
+
msgid "Select a assignee"
msgstr "选择经办人"
@@ -20052,6 +20065,9 @@ msgstr "上传 CSV"
msgid "Upload failed. Please try again."
msgstr "上传失败。请重试。"
+msgid "Upload new backup…"
+msgstr ""
+
msgid "Uploaded model"
msgstr "已上传模型"
@@ -20069,6 +20085,12 @@ msgstr "正在上传 {0}"
msgid "Uploading {fileName}"
msgstr "正在上传 {fileName}"
+msgid "Uploading backup"
+msgstr ""
+
+msgid "Uploading the backup file"
+msgstr ""
+
msgid "Uploading..."
msgstr "上传中..."