Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(backups): reseed import keeps referenced tables the target pre-populated
Sidwebworks96767291a745
diff --git a/.claude/rules/company-backup-restore.md b/.claude/rules/company-backup-restore.mdindex 6dfa21ae64..3c7538f848 100644--- a/.claude/rules/company-backup-restore.md+++ b/.claude/rules/company-backup-restore.md@@ -97,6 +97,20 @@ both use it; `company-backup.ts` re-exports it), exported to app code as- Versioning: `BACKUP_VERSION` (currently **1** — single supported format, nolegacy branch) in the manifest; `assertBackupImportable` rejects a file whoseversion no longer matches or that's missing a now-required column.+- Reseed re-inclusion: `filterUnpopulated` drops tables the target already+ populated (onboarding's own inserts), but a dropped table whose ids the kept+ rows still REFERENCE is re-added by `referencedDroppedTables`+ (`company-backup.transforms.ts`, transitive over `id`-FKs) — without it the+ backup's `location` table was dropped because onboarding had inserted one+ "Headquarters" row, and every imported `workCenter`/`job` locationId was+ nulled (nullable) or left dangling at the SOURCE company's row (NOT NULL,+ committed under replica mode) — the "schedule says no work centers exist"+ bug. A re-added table is populated in the target by definition and unique+ constraints stay enforced under replica mode, so backup rows that collide on+ a real unique key (both sides have a "Headquarters") are NOT inserted:+ `mapCollidingRows` + `matchableUniqueGroups` (+ `getUniqueColumnGroups` over+ `pg_index`) map the source id onto the existing target row's id instead, so+ every FK into the skipped row lands on the target's own row.- Id minting: `newIdForTable(table)` → `randomUUID()` for uuid id columns else`nanoid()`. `buildIdMaps` (`company-backup.transforms.ts`) decides WHICH rows getone, and both the restore and the reseed/import call it so they can't drift.diff --git a/apps/erp/app/routes/x+/priority+/operations.tsx b/apps/erp/app/routes/x+/priority+/operations.tsxindex ff7837d414..826256b9d1 100644--- a/apps/erp/app/routes/x+/priority+/operations.tsx+++ b/apps/erp/app/routes/x+/priority+/operations.tsx@@ -162,6 +162,18 @@ export async function loader({ request }: LoaderFunctionArgs) {getTagsList(client, companyId, "operation")]);+ // The empty state must tell "no work centers at THIS location" apart from+ // "none exist anywhere" — after a restore left work centers on another (or+ // no) location, the create-work-center prompt here misread the situation.+ let companyHasWorkCenters = (workCenters.data?.length ?? 0) > 0;+ if (!companyHasWorkCenters) {+ const anywhere = await client+ .from("workCenter")+ .select("id", { count: "exact", head: true })+ .eq("companyId", companyId);+ companyHasWorkCenters = (anywhere.count ?? 0) > 0;+ }+const processNameById = new Map((processes.data ?? []).map((p) => [p.id, p.name]));@@ -519,7 +531,8 @@ export async function loader({ request }: LoaderFunctionArgs) {)).map(([tag]) => tag),tags: tags.data ?? [],- locationId+ locationId,+ companyHasWorkCenters};}@@ -553,7 +566,8 @@ function KanbanSchedule() {salesOrders,availableTags,tags,- locationId+ locationId,+ companyHasWorkCenters} = useLoaderData<typeof loader>();const locations = useLocations();@@ -843,6 +857,26 @@ function KanbanSchedule() {<Trans>Clear Filters</Trans></Button></div>+ ) : companyHasWorkCenters ? (+ <div className="flex flex-col w-full h-full items-center justify-center gap-4">+ <div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">+ <LuTriangleAlert className="h-6 w-6" />+ </div>+ <span className="text-xs font-mono font-light text-foreground uppercase">+ <Trans>No work centers at this location</Trans>+ </span>+ <div className="w-64">+ <Combobox+ asButton+ size="sm"+ value={locationId}+ options={locations}+ onChange={(selected) => {+ window.location.href = getLocationPath(selected);+ }}+ />+ </div>+ </div>) : (<div className="flex flex-col w-full h-full items-center justify-center gap-4"><div className="flex justify-center items-center h-12 w-12 rounded-full bg-foreground text-background">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.tsindex 75af7558a7..6c3ff311e1 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@@ -12,7 +12,10 @@ import {assertReferentiallyClosed,buildIdMaps,buildRowTransforms,- findDanglingReferences+ findDanglingReferences,+ mapCollidingRows,+ matchableUniqueGroups,+ referencedDroppedTables} from "./company-backup.transforms";// ── Tiny synthetic-catalog builders ─────────────────────────────────────────@@ -637,3 +640,105 @@ describe("selectWipeableTables (identity tables vs foreign restore)", () => {expect(names).toContain("customerAccount");});});++describe("referencedDroppedTables (reseed re-inclusion)", () => {+ // The bug this pins: onboarding inserts one "Headquarters" location, so the+ // reseed dropped the backup's `location` table as "already populated" — and+ // every workCenter/job locationId was then nulled or left dangling.+ const LOCATION = table("location", [col("id"), col("companyId")]);+ const WORK_CENTER = table(+ "workCenter",+ [col("id"), col("locationId", { nullable: true }), col("companyId")],+ [fk("locationId", "location")]+ );++ it("re-adds a dropped table that kept rows reference", () => {+ const result = referencedDroppedTables([WORK_CENTER], [LOCATION]);+ expect(result.map((t) => t.name)).toEqual(["location"]);+ });++ it("does not resurrect a dropped table nothing references", () => {+ const SEQUENCE = table("sequence", [col("id"), col("companyId")]);+ const result = referencedDroppedTables([WORK_CENTER], [LOCATION, SEQUENCE]);+ expect(result.map((t) => t.name)).toEqual(["location"]);+ });++ it("follows a re-added table's own references transitively", () => {+ const ADDRESS = table("address", [col("id"), col("companyId")]);+ const SITE = table(+ "site",+ [col("id"), col("addressId"), col("companyId")],+ [fk("addressId", "address")]+ );+ const PLANT = table(+ "plant",+ [col("id"), col("siteId"), col("companyId")],+ [fk("siteId", "site")]+ );+ const result = referencedDroppedTables([PLANT], [SITE, ADDRESS]);+ expect(result.map((t) => t.name).sort()).toEqual(["address", "site"]);+ });++ it("ignores non-id FK references", () => {+ const REF = table("ref", [col("id"), col("code"), col("companyId")]);+ const USER_OF_CODE = table(+ "userOfCode",+ [col("id"), col("refCode"), col("companyId")],+ [{ column: "refCode", refTable: "ref", refColumn: "code" }]+ );+ expect(referencedDroppedTables([USER_OF_CODE], [REF])).toEqual([]);+ });+});++describe("matchableUniqueGroups", () => {+ const LOCATION = table(+ "location",+ [col("id"), col("name"), col("companyId")],+ [],+ { uniqueColumns: ["name", "companyId"] }+ );++ it("drops the scope column and keeps the natural key", () => {+ expect(matchableUniqueGroups([["name", "companyId"]], LOCATION)).toEqual([+ ["name"]+ ]);+ });++ it("rejects a group containing id or a remapped FK column", () => {+ const T = table(+ "t",+ [col("id"), col("parentId"), col("code"), col("companyId")],+ [fk("parentId", "parent")]+ );+ expect(+ matchableUniqueGroups([["id"], ["parentId", "code"], ["companyId"]], T)+ ).toEqual([]);+ });+});++describe("mapCollidingRows", () => {+ const groups = [["name"]];++ it("maps a colliding backup row onto the existing target row", () => {+ const { skippedSourceIds, overrides } = mapCollidingRows(+ groups,+ [+ { id: "src-hq", name: "Headquarters" },+ { id: "src-plant", name: "Manufacturing Plant" }+ ],+ [{ id: "tgt-hq", name: "Headquarters" }]+ );+ expect([...skippedSourceIds]).toEqual(["src-hq"]);+ expect(overrides.get("src-hq")).toBe("tgt-hq");+ expect(overrides.has("src-plant")).toBe(false);+ });++ it("never matches on NULL (Postgres unique treats NULLs as distinct)", () => {+ const { skippedSourceIds } = mapCollidingRows(+ groups,+ [{ id: "src", name: null }],+ [{ id: "tgt", name: null }]+ );+ expect(skippedSourceIds.size).toBe(0);+ });+});diff --git a/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts b/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.tsindex 3b9bc770f0..4f0cd723e4 100644--- a/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts+++ b/packages/jobs/src/inngest/functions/tasks/company-backup.transforms.ts@@ -403,3 +403,160 @@ export function buildRowTransforms(return base;});}++/**+ * Reseed drops tables the target already populated (`filterUnpopulated`) — but a+ * dropped table whose ids the kept rows still REFERENCE cannot simply vanish:+ * with no id map, every FK into it is nulled (nullable) or left dangling at the+ * source company's row (NOT NULL, committed under replica mode). That is how+ * creating a company from a backup detached every workCenter and job from its+ * location — onboarding had inserted one "Headquarters" row, so the backup's+ * whole `location` table was dropped as "already populated".+ *+ * Returns the dropped tables that must be imported anyway: those referenced via+ * an `id` FK from any kept table, transitively (a re-added table's own FK+ * targets may also have been dropped). Colliding rows are handled separately —+ * see `mapCollidingRows`.+ */+export function referencedDroppedTables(+ kept: TableInfo[],+ dropped: TableInfo[]+): TableInfo[] {+ const droppedByName = new Map(dropped.map((t) => [t.name, t]));+ const included = new Set(kept.map((t) => t.name));+ const readded = new Map<string, TableInfo>();+ const queue = [...kept];+ while (queue.length > 0) {+ const table = queue.pop()!;+ for (const fk of table.foreignKeys) {+ if (fk.refColumn !== "id") continue;+ if (included.has(fk.refTable) || readded.has(fk.refTable)) continue;+ const target = droppedByName.get(fk.refTable);+ if (!target) continue;+ readded.set(target.name, target);+ queue.push(target);+ }+ }+ return [...readded.values()];+}++/**+ * Unique index column groups usable for matching a backup row onto an EXISTING+ * target row before insert. The scope column is dropped from each group (it is+ * re-stamped to the target, so it matches by construction); a group left empty,+ * or containing `id` or any FK column, is unusable — those values are remapped+ * on load, so comparing raw backup values against target rows would be wrong.+ */+export function matchableUniqueGroups(+ groups: string[][],+ table: TableInfo+): string[][] {+ const remapped = new Set(table.foreignKeys.map((fk) => fk.column));+ remapped.add("id");+ const scopeColumn = table.scope.kind === "direct" ? table.scope.column : null;+ const usable: string[][] = [];+ for (const group of groups) {+ const cols = group.filter((c) => c !== scopeColumn);+ if (cols.length === 0) continue;+ if (cols.some((c) => remapped.has(c))) continue;+ usable.push(cols);+ }+ return usable;+}++export type CollisionResolution = {+ /** Source ids of backup rows NOT to insert — the target already has them. */+ skippedSourceIds: Set<string>;+ /** source id → the existing target row's id, applied onto the table's id map+ * so every FK into the skipped row lands on the target's own row. */+ overrides: Map<string, string>;+};++/**+ * Match backup rows against the target's existing rows on the given unique+ * column groups. A re-added table (see `referencedDroppedTables`) is by+ * definition already populated in the target, and inserting a backup row that+ * shares a unique key with an existing one would abort the whole load — unique+ * constraints stay enforced even under replica mode. The canonical case: both+ * sides carry a "Headquarters" location (onboarding names its first location+ * that), and the backup's must MAP onto the target's, not fight it.+ *+ * NULL never matches (Postgres unique treats NULLs as distinct); the first+ * matching group wins.+ */+export function mapCollidingRows(+ groups: string[][],+ backupRows: Array<{ [col: string]: unknown }>,+ targetRows: Array<{ [col: string]: unknown }>+): CollisionResolution {+ const skippedSourceIds = new Set<string>();+ const overrides = new Map<string, string>();++ const keyFor = (+ row: { [col: string]: unknown },+ cols: string[]+ ): string | null => {+ const values: unknown[] = [];+ for (const col of cols) {+ const v = row[col];+ if (v == null) return null;+ values.push(v);+ }+ return JSON.stringify(values);+ };++ const targetByKey = groups.map((cols) => {+ const index = new Map<string, string>();+ for (const row of targetRows) {+ if (typeof row.id !== "string") continue;+ const key = keyFor(row, cols);+ if (key !== null && !index.has(key)) index.set(key, row.id);+ }+ return index;+ });++ for (const row of backupRows) {+ if (typeof row.id !== "string") continue;+ for (let g = 0; g < groups.length; g++) {+ const key = keyFor(row, groups[g]!);+ if (key === null) continue;+ const targetId = targetByKey[g]!.get(key);+ if (targetId !== undefined) {+ skippedSourceIds.add(row.id);+ overrides.set(row.id, targetId);+ break;+ }+ }+ }++ return { skippedSourceIds, overrides };+}++/**+ * Composite unique index column groups of one table, for `mapCollidingRows`.+ * Primary keys are excluded (ids are minted fresh); partial and expression+ * indexes are excluded (their uniqueness is predicate/expression-dependent, so+ * raw column equality over-detects collisions).+ */+export async function getUniqueColumnGroups(+ db: Kysely<KyselyDatabase>,+ tableName: string+): Promise<string[][]> {+ const result = await sql<{ cols: string[] }>`+ -- attname is the "name" type; cast so the driver parses a real text[]+ SELECT array_agg(a.attname::text ORDER BY x.ordinality) AS cols+ FROM pg_index ix+ JOIN pg_class t ON t.oid = ix.indrelid+ JOIN pg_namespace n ON n.oid = t.relnamespace+ CROSS JOIN LATERAL unnest(ix.indkey) WITH ORDINALITY AS x(attnum, ordinality)+ JOIN pg_attribute a ON a.attrelid = t.oid AND a.attnum = x.attnum+ WHERE n.nspname = 'public'+ AND t.relname = ${tableName}+ AND ix.indisunique+ AND NOT ix.indisprimary+ AND ix.indexprs IS NULL+ AND ix.indpred IS NULL+ GROUP BY ix.indexrelid+ `.execute(db);+ return result.rows.map((r) => r.cols);+}diff --git a/packages/jobs/src/inngest/functions/tasks/company-import.ts b/packages/jobs/src/inngest/functions/tasks/company-import.tsindex ecad615e5e..0dfff80c8b 100644--- a/packages/jobs/src/inngest/functions/tasks/company-import.ts+++ b/packages/jobs/src/inngest/functions/tasks/company-import.ts@@ -4,6 +4,7 @@ import { sql } from "kysely";import { applyTableRenames } from "../../../backups/renames";import { getJobDatabaseClient } from "../../../db";import { inngest } from "../../client";+import type { TableInfo } from "./company-backup";import {assertBackupImportable,BACKUP_INTEGRATION,@@ -22,7 +23,11 @@ import {import {buildIdMaps,buildRowTransforms,- loadSubstrateIds+ getUniqueColumnGroups,+ loadSubstrateIds,+ mapCollidingRows,+ matchableUniqueGroups,+ referencedDroppedTables} from "./company-backup.transforms";const INSERT_CHUNK_SIZE = 200;@@ -145,7 +150,7 @@ export const companyImportFunction = inngest.createFunction(// correct in both cases: a bare clone imports everything, an// identity-seeded onboard skips exactly what's already there.const byName = new Map(catalog.tables.map((t) => [t.name, t]));- const importTables =+ const unpopulatedTables =mode === "reseed"? await filterUnpopulated(db,@@ -156,6 +161,30 @@ export const companyImportFunction = inngest.createFunction(): candidateTables;+ // A dropped-as-already-populated table whose ids the kept rows still+ // reference must be imported anyway, or every FK into it is nulled /+ // left dangling (this is how a reseed detached every workCenter and job+ // from its location — onboarding's one "Headquarters" row made the+ // backup's `location` table look "already populated"). Colliding rows+ // are mapped onto the target's own rows below instead of inserted.+ let readdedTables: TableInfo[] = [];+ let importTables = unpopulatedTables;+ if (mode === "reseed") {+ const keptNames = new Set(unpopulatedTables.map((t) => t.name));+ readdedTables = referencedDroppedTables(+ unpopulatedTables,+ candidateTables.filter((t) => !keptNames.has(t.name))+ );+ if (readdedTables.length > 0) {+ const keep = new Set([+ ...keptNames,+ ...readdedTables.map((t) => t.name)+ ]);+ // Re-filter from candidateTables so topological (catalog) order holds.+ importTables = candidateTables.filter((t) => keep.has(t.name));+ }+ }+// Reseed: assign a fresh id to every row of every id-bearing table up// front so FK references can be rewritten in a single pass. Shares// `buildIdMaps` with the restore path so the two can't drift.@@ -164,9 +193,46 @@ export const companyImportFunction = inngest.createFunction(? buildIdMaps(importTables, backup.data): new Map<string, Map<string, string>>();+ // Re-added tables are populated in the target BY DEFINITION, and unique+ // constraints stay enforced under replica mode — a backup row sharing a+ // unique key with an existing target row (both sides have a+ // "Headquarters" location) must map onto it, not be inserted against it.+ const collisionSkips = new Map<string, Set<string>>();+ for (const table of readdedTables) {+ const idMap = idMaps.get(table.name);+ if (!idMap || table.scope.kind !== "direct") continue;+ const scopeValue =+ table.scope.column === "companyId" ? companyId : targetGroupId;+ if (scopeValue == null) continue;+ const groups = matchableUniqueGroups(+ await getUniqueColumnGroups(db, table.name),+ table+ );+ if (groups.length === 0) continue;+ const cols = [...new Set(groups.flat())];+ const existing = await sql<{ [col: string]: unknown }>`+ SELECT ${sql.join([sql.id("id"), ...cols.map((c) => sql.id(c))])}+ FROM ${sql.id(table.name)}+ WHERE ${sql.id(table.scope.column)} = ${scopeValue}+ `.execute(db);+ const { skippedSourceIds, overrides } = mapCollidingRows(+ groups,+ backup.data[table.name] ?? [],+ existing.rows+ );+ for (const [sourceId, targetId] of overrides) {+ idMap.set(sourceId, targetId);+ }+ if (skippedSourceIds.size > 0) {+ collisionSkips.set(table.name, skippedSourceIds);+ }+ }+// Flat old-id → new-id lookup across every remapped table, used to rewrite// ids embedded in storage paths (e.g. `{co}/models/{modelId}.stl`) so the// restored files and their DB path columns line up. Empty in preserve mode.+ // Built AFTER collision overrides so a mapped-onto-target row's path+ // segments rewrite to the surviving id.const idRewrite = new Map<string, string>();for (const map of idMaps.values()) {for (const [oldId, newId] of map) idRewrite.set(oldId, newId);@@ -250,7 +316,13 @@ export const companyImportFunction = inngest.createFunction(onUnresolvedRef: recordUnresolvedRef,scrubEmail});- const originalRows = backup.data[table.name]!;+ const skips = collisionSkips.get(table.name);+ const allRows = backup.data[table.name]!;+ const originalRows = skips+ ? allRows.filter(+ (row) => !(typeof row.id === "string" && skips.has(row.id))+ )+ : allRows;// Hot path: indexed loops (no per-row `forEach` closure), packed// output array, `out` keys in fixed column order (one hidden class// per table).diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex f82f6c626b..b46ce4e13f 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Auftragsvorgang"msgid "Job operation batch"-msgstr ""+msgstr "Auftragsvorgang Los"msgid "Job Operations"msgstr "Auftragsvorgangänge"@@ -11025,6 +11025,9 @@ msgstr "Kein Lagerbestand für diesen Artikel ist erfasst. Sie können ihn trotzmsgid "No work center utilization data within range"msgstr "Keine Auslastungsdaten des Arbeitsplatzes im Bereich vorhanden"+msgid "No work centers at this location"+msgstr "Keine Arbeitsplätze an diesem Standort"+msgid "No work centers exist"msgstr "Keine Arbeitsplätze vorhanden"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 2fe9c427b8..07ad5e7b07 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -11025,6 +11025,9 @@ msgstr "No warehouse stock is on record for this item. You can still pick it —msgid "No work center utilization data within range"msgstr "No work center utilization data within range"+msgid "No work centers at this location"+msgstr "No work centers at this location"+msgid "No work centers exist"msgstr "No work centers exist"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 13ab7f314a..aaf6251b15 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Operación de la Orden"msgid "Job operation batch"-msgstr ""+msgstr "Lote de la operación de la orden"msgid "Job Operations"msgstr "Operaciones de la Orden"@@ -11025,6 +11025,9 @@ msgstr "No hay stock de almacén registrado para este artículo. Aún puedes recmsgid "No work center utilization data within range"msgstr "No hay datos de utilización del centro de trabajo dentro del rango"+msgid "No work centers at this location"+msgstr "No hay centros de trabajo en esta ubicación"+msgid "No work centers exist"msgstr "No existen centros de trabajo"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 9f933830f2..714fdd78fb 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Opération d'OF"msgid "Job operation batch"-msgstr ""+msgstr "Lot de production d'opération d'OF"msgid "Job Operations"msgstr "Opérations d'OF"@@ -11025,6 +11025,9 @@ msgstr "Aucun stock d'entrepôt n'est enregistré pour cet article. Vous pouvezmsgid "No work center utilization data within range"msgstr "Aucune donnée d'utilisation des postes de travail dans la plage"+msgid "No work centers at this location"+msgstr "Aucun poste de travail sur ce site"+msgid "No work centers exist"msgstr "Aucun poste de travail n'existe"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex b41c9e8fce..da67bb0a46 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "जॉब ऑपरेशन"msgid "Job operation batch"-msgstr ""+msgstr "जॉब ऑपरेशन बैच"msgid "Job Operations"msgstr "जॉब ऑपरेशन"@@ -11025,6 +11025,9 @@ msgstr "इस आइटम के लिए कोई गोदाम स्टmsgid "No work center utilization data within range"msgstr "सीमा के भीतर कोई वर्क सेंटर उपयोग डेटा नहीं"+msgid "No work centers at this location"+msgstr "इस स्थान पर कोई वर्क सेंटर नहीं"+msgid "No work centers exist"msgstr "कोई वर्क सेंटर मौजूद नहीं है"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 0dcee44ede..ae241ec677 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Operazione dell'ordine"msgid "Job operation batch"-msgstr ""+msgstr "Lotto di operazione dell'ordine"msgid "Job Operations"msgstr "Operazioni dell'ordine"@@ -11025,6 +11025,9 @@ msgstr "Nessuna giacenza di magazzino è registrata per questo articolo. Puoi comsgid "No work center utilization data within range"msgstr "Nessun dato di utilizzo del centro di lavoro nell'intervallo"+msgid "No work centers at this location"+msgstr "Nessun centro di lavoro in questa ubicazione"+msgid "No work centers exist"msgstr "Non esistono centri di lavoro"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex b9531bcaef..b130ba06b3 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "指図工程"msgid "Job operation batch"-msgstr ""+msgstr "指図工程バッチ"msgid "Job Operations"msgstr "指図工程"@@ -11025,6 +11025,9 @@ msgstr "このアイテムの倉庫在庫は記録されていません。それmsgid "No work center utilization data within range"msgstr "範囲内の作業区の稼働率データがありません"+msgid "No work centers at this location"+msgstr "この拠点には作業区がありません"+msgid "No work centers exist"msgstr "作業区がありません"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 6bc969cd67..b1fb940d50 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "작업 지시 공정"msgid "Job operation batch"-msgstr ""+msgstr "작업 지시 공정 배치"msgid "Job Operations"msgstr "작업 지시 공정"@@ -11025,6 +11025,9 @@ msgstr "이 품목에 대한 창고 재고 기록이 없습니다. 그래도 피msgid "No work center utilization data within range"msgstr "해당 기간 내 작업장 가동률 데이터가 없습니다"+msgid "No work centers at this location"+msgstr "이 사업장에 작업장이 없습니다"+msgid "No work centers exist"msgstr "존재하는 작업장이 없습니다"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 4dba2b6362..20bbcf86e0 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Operacja zlecenia"msgid "Job operation batch"-msgstr ""+msgstr "Partia produkcyjna operacji zlecenia"msgid "Job Operations"msgstr "Operacje zlecenia"@@ -11025,6 +11025,9 @@ msgstr "Brak zapasu w magazynie dla tego artykułu. Możesz go mimo tego pobraćmsgid "No work center utilization data within range"msgstr "Brak danych o wykorzystaniu stanowiska roboczego w podanym zakresie"+msgid "No work centers at this location"+msgstr "Brak stanowisk roboczych w tej lokalizacji"+msgid "No work centers exist"msgstr "Nie istnieją stanowiska robocze"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 6630295476..5be0f0442c 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Operação da ordem"msgid "Job operation batch"-msgstr ""+msgstr "Lote de produção da operação da ordem"msgid "Job Operations"msgstr "Operações da ordem"@@ -11025,6 +11025,9 @@ msgstr "Nenhum estoque de armazém está registrado para este item. Você aindamsgid "No work center utilization data within range"msgstr "Nenhum dado de utilização do centro de trabalho dentro do intervalo"+msgid "No work centers at this location"+msgstr "Sem centros de trabalho neste local"+msgid "No work centers exist"msgstr "Nenhum centro de trabalho existe"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex fd3d95ab92..2693b8c63d 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "Операция заказа"msgid "Job operation batch"-msgstr ""+msgstr "Серия операции заказа"msgid "Job Operations"msgstr "Операции заказа"@@ -11025,6 +11025,9 @@ msgstr "На складе нет записей о наличии этого тmsgid "No work center utilization data within range"msgstr "Нет данных об использовании рабочего центра в указанном диапазоне"+msgid "No work centers at this location"+msgstr "На этой площадке нет рабочих центров"+msgid "No work centers exist"msgstr "Рабочих центров не существует"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex b69bef36c5..8161d3ad44 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "İş emri operasyonu"msgid "Job operation batch"-msgstr ""+msgstr "İş emri operasyonu partisi"msgid "Job Operations"msgstr "İş emri operasyonları"@@ -11025,6 +11025,9 @@ msgstr "Bu ürün için depoda kayıtlı stok bulunmamaktadır. Sayım yeniden dmsgid "No work center utilization data within range"msgstr "Belirlenen aralıkta iş merkezi kullanım verisi yok"+msgid "No work centers at this location"+msgstr "Bu lokasyonda İş merkezi yok"+msgid "No work centers exist"msgstr "İş merkezi bulunmamaktadır"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 6e22b4bd1b..b932af7384 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -8889,7 +8889,7 @@ msgid "Job Operation"msgstr "工单工序"msgid "Job operation batch"-msgstr ""+msgstr "工单工序批次"msgid "Job Operations"msgstr "工单工序"@@ -11025,6 +11025,9 @@ msgstr "此物料的仓库库存无记录。您仍然可以拣货 — 在手库msgid "No work center utilization data within range"msgstr "范围内没有工作中心利用率数据"+msgid "No work centers at this location"+msgstr "此地点没有工作中心"+msgid "No work centers exist"msgstr "没有工作中心存在"