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.

Merge remote-tracking branch 'origin/main' into feat/asembly-view-isolation

aashu4ee4eab14abb
diff --cc apps/erp/app/modules/production/production.service.ts
index eebb859fc6,832bd9d389..d7a005b4b1
--- a/apps/erp/app/modules/production/production.service.ts
+++ b/apps/erp/app/modules/production/production.service.ts
@@@ -7541,33 -7603,18 +7677,37 @@@ export async function updateAssemblyIns
export async function updateAssemblyInstructionStepOrder(
db: Kysely<KyselyDatabase>,
+ companyId: string,
+ userId: string,
assemblyInstructionId: string,
- updates: { id: string; sortOrder: number; updatedBy: string }[]
+ updates: { id: string; sortOrder: number }[]
) {
- return db.transaction().execute(async (trx) => {
- for (const { id, sortOrder, updatedBy } of updates) {
- await trx
- .updateTable("assemblyInstructionStep")
- .set({ sortOrder, updatedBy, updatedAt: new Date().toISOString() })
- .where("id", "=", id)
- .execute();
- }
+ return updateSortOrder(db, {
+ table: "assemblyInstructionStep",
+ column: "sortOrder",
+ companyId,
+ userId,
+ parent: { column: "assemblyInstructionId", id: assemblyInstructionId },
- updates
++ updates,
+ // A step built aside must still come before its join step; a reorder that
+ // breaks that turns it back into a built-in-place step.
- await trx
- .updateTable("assemblyInstructionStep as s")
- .set({ parentStepId: null })
- .where("s.assemblyInstructionId", "=", assemblyInstructionId)
- .where("s.parentStepId", "is not", null)
- .where(({ exists, selectFrom }) =>
- exists(
- selectFrom("assemblyInstructionStep as j")
- .select("j.id")
- .whereRef("j.id", "=", "s.parentStepId")
- .whereRef("j.sortOrder", "<=", "s.sortOrder")
++ afterUpdate: async (trx) => {
++ await trx
++ .updateTable("assemblyInstructionStep as s")
++ .set({ parentStepId: null })
++ .where("s.companyId", "=", companyId)
++ .where("s.assemblyInstructionId", "=", assemblyInstructionId)
++ .where("s.parentStepId", "is not", null)
++ .where(({ exists, selectFrom }) =>
++ exists(
++ selectFrom("assemblyInstructionStep as j")
++ .select("j.id")
++ .whereRef("j.id", "=", "s.parentStepId")
++ .whereRef("j.sortOrder", "<=", "s.sortOrder")
++ )
+ )
- )
- .execute();
++ .execute();
++ }
});
}
diff --cc apps/erp/app/modules/shared/sort-order.ts
index 0000000000,bc02dac156..fc2f38442c
mode 000000,100644..100644
--- a/apps/erp/app/modules/shared/sort-order.ts
+++ b/apps/erp/app/modules/shared/sort-order.ts
@@@ -1,0 -1,172 +1,176 @@@
+ import type { Database } from "@carbon/database";
+ import type { Kysely, KyselyDatabase } from "@carbon/database/client";
+ import { datetime } from "@carbon/utils";
++import type { Transaction } from "kysely";
+ import { sql } from "kysely";
+ import { z } from "zod";
+
+ // Drag-sort persistence for every child list (document lines, assembly steps,
+ // change-notice actions). Not a `*.service.ts` on purpose: a generic
+ // "reorder any table" function must never be scanned into the API/MCP
+ // manifest — the per-table wrappers in each module's service are the contract.
+ //
+ // Kysely bypasses RLS, and the ids come from the request body, so the
+ // companyId AND parent-document predicates are the only thing stopping a
+ // request made through one document's route from reordering another
+ // document's rows. Both are mandatory arguments, not options.
+
+ type PublicTables = Database["public"]["Tables"];
+ type Row<T extends keyof PublicTables> = PublicTables[T]["Row"];
+
+ type SortColumnName = "sortOrder" | "order";
+ type RequiredColumns = "id" | "companyId" | "updatedBy" | "updatedAt";
+
+ /** Columns of `T` holding a text value (ids, foreign keys). */
+ type TextColumn<T extends keyof PublicTables> = {
+ [K in keyof Row<T>]: Row<T>[K] extends string | null ? K : never;
+ }[keyof Row<T>] &
+ string;
+
+ /** Tables with an `id` and a `companyId` — anything a parent can be. */
+ export type TenantTable = {
+ [T in keyof PublicTables]: "id" | "companyId" extends keyof Row<T>
+ ? T
+ : never;
+ }[keyof PublicTables];
+
+ /** Tables a drag-sort can reorder: tenant key, audit columns and a sort column. */
+ export type SortableTable = {
+ [T in keyof PublicTables]: RequiredColumns extends keyof Row<T>
+ ? [Extract<keyof Row<T>, SortColumnName>] extends [never]
+ ? never
+ : T
+ : never;
+ }[keyof PublicTables];
+
+ export type SortColumn<T extends SortableTable> = Extract<
+ keyof Row<T>,
+ SortColumnName
+ >;
+
+ export type ParentColumn<T extends keyof PublicTables> = Exclude<
+ TextColumn<T>,
+ RequiredColumns | "createdBy"
+ >;
+
+ /**
+ * How the rows are tied to the document whose route is reordering them.
+ * `id` when the row carries the parent's id itself (`quoteLine.quoteId`);
+ * `via` when it is one hop away (`assemblyInstructionStepMaterial.stepId` →
+ * `assemblyInstructionStep.assemblyInstructionId`).
+ */
+ export type SortParent<T extends SortableTable, P extends TenantTable> =
+ | { column: ParentColumn<T>; id: string }
+ | {
+ column: ParentColumn<T>;
+ via: { table: P; column: ParentColumn<P>; id: string };
+ };
+
+ export type UpdateSortOrderArgs<
+ T extends SortableTable,
+ P extends TenantTable = TenantTable
+ > = {
+ table: T;
+ column: SortColumn<T>;
+ companyId: string;
+ userId: string;
+ parent: SortParent<T, P>;
+ updates: { id: string; sortOrder: number }[];
++ /** Runs in the same transaction after the reorder, for rules the new order can break. */
++ afterUpdate?: (trx: Transaction<KyselyDatabase>) => Promise<void>;
+ };
+
+ /**
+ * The single statement behind `updateSortOrder`, exported so its SQL can be
+ * pinned by compiling it (no database needed).
+ */
+ export function buildSortOrderUpdate<
+ T extends SortableTable,
+ P extends TenantTable = TenantTable
+ >(args: UpdateSortOrderArgs<T, P> & { updatedAt: string }) {
+ const { table, column, companyId, userId, parent, updates, updatedAt } = args;
+
+ const values = sql.join(
+ updates.map(
+ ({ id, sortOrder }) => sql`(${id}::text, ${sortOrder}::numeric)`
+ )
+ );
+
+ const parentPredicate =
+ "via" in parent
+ ? sql`${sql.ref(`t.${parent.column}`)} IN (SELECT p."id" FROM ${sql.table(parent.via.table)} AS p WHERE ${sql.ref(`p.${parent.via.column}`)} = ${parent.via.id} AND p."companyId" = ${companyId})`
+ : sql`${sql.ref(`t.${parent.column}`)} = ${parent.id}`;
+
+ return sql<{
+ id: string;
+ }>`UPDATE ${sql.table(table)} AS t SET ${sql.ref(column)} = v."sortOrder", "updatedBy" = ${userId}, "updatedAt" = ${updatedAt} FROM (VALUES ${values}) AS v("id", "sortOrder") WHERE t."id" = v."id" AND t."companyId" = ${companyId} AND ${parentPredicate} RETURNING t."id"`;
+ }
+
+ /**
+ * Persist a drag-sort in ONE `UPDATE … FROM (VALUES …)`, scoped to the company
+ * and the parent document. All-or-nothing: if any id is outside that scope (or
+ * missing, or repeated) fewer rows come back than were sent, and the
+ * transaction rolls the whole reorder back.
+ *
+ * Takes the Kysely handle as an argument — never builds one (see AGENTS.md:
+ * service files are browser-bundled). Throws; the route try/catches it.
+ */
+ export async function updateSortOrder<
+ T extends SortableTable,
+ P extends TenantTable = TenantTable
+ >(db: Kysely<KyselyDatabase>, args: UpdateSortOrderArgs<T, P>) {
+ if (args.updates.length === 0) return;
+
+ const parentId = "via" in args.parent ? args.parent.via.id : args.parent.id;
+ if (!parentId) throw new Error(`${args.table}: missing parent id`);
+
+ const query = buildSortOrderUpdate({
+ ...args,
+ updatedAt: datetime.timestamp()
+ });
+
+ await db.transaction().execute(async (trx) => {
+ const { rows } = await query.execute(trx);
+ if (rows.length !== args.updates.length) {
+ throw new Error(
+ `${args.table}: ${args.updates.length - rows.length} of ${args.updates.length} rows are not on this document`
+ );
+ }
++ await args.afterUpdate?.(trx);
+ });
+ }
+
+ // The drag-sort UI posts `updates` as a JSON map of row id → new sort order.
+ // A value must be a real finite number (or a numeric string): `Number()` turns
+ // garbage into NaN and "" into 0, and either would be written as a sort order.
+ const sortOrderValue = z.union([
+ z.number(),
+ z.string().trim().min(1).pipe(z.coerce.number())
+ ]);
+ const sortOrderUpdatesValidator = z
+ .record(z.string().min(1), sortOrderValue)
+ .refine((map) => Object.keys(map).length > 0);
+
+ /**
+ * Parse a reorder route's `updates` form field. Returns null when it is
+ * missing, not JSON, empty, or carries a non-numeric sort order — the route
+ * flashes an error instead of writing anything.
+ */
+ export function parseSortOrderUpdates(
+ formData: FormData
+ ): { id: string; sortOrder: number }[] | null {
+ const raw = formData.get("updates");
+ if (typeof raw !== "string" || !raw) return null;
+ let json: unknown;
+ try {
+ json = JSON.parse(raw);
+ } catch {
+ return null;
+ }
+ const parsed = sortOrderUpdatesValidator.safeParse(json);
+ if (!parsed.success) return null;
+ return Object.entries(parsed.data).map(([id, sortOrder]) => ({
+ id,
+ sortOrder
+ }));
+ }
diff --cc apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
index f4d1869be4,a9f323345e..f2b0bb08b8
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json
@@@ -1,5 -1,5 +1,5 @@@
{
- "totalTools": 1549,
- "totalTools": 1548,
++ "totalTools": 1550,
"modules": 15,
"tools": [
{"name":"account_deleteUserAttributeValue","classification":"DESTRUCTIVE","paramCount":2,"schema":"0d38e12233b4","response":"bcde375ebd4c","injectAuth":"companyId+userId","permission":"none","paginates":false},
diff --cc packages/jobs/manifests/schema.json
index ea5ed590b4,23c237359d..48e9fad8e5
--- a/packages/jobs/manifests/schema.json
+++ b/packages/jobs/manifests/schema.json
@@@ -2597,6 -2597,6 +2597,7 @@@
"name": "assemblyInstructionStep",
"rows": 0,
"columns": [
++ "hiddenComponentNodeIds",
"sortOrder",
"type",
"description",
diff --cc packages/locale/locales/de/erp.po
index 749aa116d2,9fbedde1d9..8bc527573c
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 Tage
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Eine «muss übereinstimmen»-Regel für diesen Verfahren blockiert diese vor dem Teilen eines Los"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Eine 4-stellige PIN wird generiert, wenn ein Werker erstellt wird."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Ein Los benötigt mindestens einen Arbeitsgang. Um das ganze Los aufzulösen, nutzen Sie stattdessen Auflösen."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Eine von Carbon durchgeführte Datenmigration – Sie laden Ihre eigenen Daten"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "{0} aus Los entfernen
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Entfernen Sie {0} aus diesem Los? Sein Arbeitsgang kehrt zum Terminplan zurück, um eigenständig zu laufen."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "{0} von {memberCount} Arbeitsgängen aus {1} entfernen?"
+
msgid "Remove {label}"
msgstr "Entfernen {label}"
diff --cc packages/locale/locales/en/erp.po
index d9c4f4a54d,38dff3d42d..a93c888558
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90D
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "A \"must match\" rule on this process blocks these from sharing a batch"
+msgid "A 3D model the operator can turn around"
+msgstr "A 3D model the operator can turn around"
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "A 4-digit PIN is generated when the operator is created."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "A Carbon-run data migration — you load your own data"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Remove {0} from batch
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr "Remove {0} from this step"
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Remove {0} of {memberCount} operations from {1}?"
+
msgid "Remove {label}"
msgstr "Remove {label}"
diff --cc packages/locale/locales/es/erp.po
index 69f35c823c,72817595df..6eb5ec1da3
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 días
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Una regla \"debe coincidir\" en este proceso impide que estos compartan un lote de producción"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Se genera un PIN de 4 dígitos cuando se crea el operario."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Un lote de producción necesita al menos una operación. Para dividir el lote de producción completo, utilice Disolver en su lugar."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Una migración de datos ejecutada por Carbon — usted carga sus propios datos"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Quitar {0} del lote de producci
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "¿Quitar {0} de este lote? Su operación vuelve al programa para ejecutarse por sí sola."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "¿Quitar {0} de {memberCount} operaciones de {1}?"
+
msgid "Remove {label}"
msgstr "Quitar {label}"
diff --cc packages/locale/locales/fr/erp.po
index f903e96fa6,aca637d9fb..e9161b8561
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 jours
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Une règle « doit correspondre » sur ce procédé empêche ces articles de partager un lot de production"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Un code PIN à 4 chiffres est généré lors de la création de l'opérateur."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Un lot de production a besoin d'au moins une opération. Pour diviser tout le lot, utilisez plutôt Dissoudre."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Une migration de données gérée par Carbon — vous chargez vos propres données"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Retirer {0} du lot de productio
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Retirer {0} de ce lot de production ? Son opération retourne au planning pour s'exécuter seule."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Retirer {0} sur {memberCount} opérations de {1} ?"
+
msgid "Remove {label}"
msgstr "Retirer {label}"
diff --cc packages/locale/locales/hi/erp.po
index 0c9c799480,907424f05d..f085b56ef3
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 दिन
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "इस प्रक्रिया पर एक \"मेल खाना चाहिए\" नियम इन्हें एक बैच साझा करने से रोकता है"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "ऑपरेटर बनाए जाने पर एक 4-अंकीय PIN बनाया जाता है।"
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "बैच को कम से कम एक ऑपरेशन की आवश्यकता है। पूरे बैच को विभाजित करने के लिए, इसके बजाय विघटन का उपयोग करें।"
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "एक कार्बन-चलाया गया डेटा माइग्रेशन — आप अपना डेटा लोड करते हैं"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "बैच से {0} निक�
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "इस बैच से {0} को निकालें? इसका ऑपरेशन अपने आप चलने के लिए शेड्यूल में वापस जाता है।"
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "क्या बैच {1} से {memberCount} में से {0} ऑपरेशन निकाले जाएँ?"
+
msgid "Remove {label}"
msgstr "निकालें {label}"
diff --cc packages/locale/locales/it/erp.po
index 63988ae4bd,ee6aefd219..53c7aa7ae1
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 giorni
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Una regola \"devono corrispondere\" su questo processo impedisce a questi di condividere un lotto di produzione"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Un PIN a 4 cifre viene generato quando l'operatore viene creato."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Un lotto di produzione richiede almeno un'operazione. Per dividere l'intero lotto di produzione, utilizza Dissolvi."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Una migrazione dati gestita da Carbon — tu carichi i tuoi dati"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Rimuovi {0} dal lotto di produz
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Rimuovere {0} da questo lotto di produzione? La sua operazione ritorna al programma per essere eseguita autonomamente."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Rimuovi {0} su {memberCount} operazioni da {1}?"
+
msgid "Remove {label}"
msgstr "Rimuovi {label}"
diff --cc packages/locale/locales/ja/erp.po
index 9a0c8c1b65,46ebfb1340..a4923288fb
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90日
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "このプロセスの\"一致必須\"ルールにより、これらはバッチを共有できません"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "4 桁の PIN は、作業者が作成されるときに生成されます。"
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "バッチには少なくとも 1 つの工程が必要です。バッチ全体を分割するには、代わりに [分割] を使用してください。"
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Carbon実行のデータ移行 — あなたが自分のデータをロードします"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "バッチから {0} を除去
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "{0}をこのバッチから除去しますか?その工程はスケジュールに戻り、独自に実行されます。"
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "{1} から {memberCount} 工程中 {0} 個を除去しますか?"
+
msgid "Remove {label}"
msgstr "{label}を除去"
diff --cc packages/locale/locales/ko/erp.po
index 50ff8c14fa,4655fac2f8..e9525a76ff
--- a/packages/locale/locales/ko/erp.po
+++ b/packages/locale/locales/ko/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90일
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "이 공정의 \"일치해야 함\" 규칙이 이들을 배치 공유에서 차단합니다"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "작업자를 생성할 때 4자리 PIN이 생성됩니다."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "배치는 최소한 하나의 공정이 필요합니다. 전체 배치를 분할하려면 대신 Dissolve를 사용하세요."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Carbon이 진행하는 데이터 마이그레이션 — 직접 데이터를 업로드"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "배치에서 {0} 제거
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "{0}을(를) 이 배치에서 제거하시겠습니까? 그 공정은 일정으로 돌아가 자체적으로 실행됩니다."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "{1}에서 {memberCount}개 공정 중 {0}개를 제거하시겠습니까?"
+
msgid "Remove {label}"
msgstr "제거 {label}"
diff --cc packages/locale/locales/pl/erp.po
index 769bc11b7f,cc8729288d..c51614540a
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 dni
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Reguła \"muszą się zgadzać\" w tym procesie blokuje wspólne tworzenie partii produkcyjnej"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "4-cyfrowy PIN jest generowany podczas tworzenia operatora."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Partia produkcyjna wymaga co najmniej jednej operacji. Aby podzielić całą partię produkcyjną, użyj opcji Rozpuść."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Migracja danych prowadzona przez Carbon — ty ładujesz swoje dane"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Usuń z listy {0} z partii prod
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Usunąć {0} z tej partii produkcyjnej? Jej operacja wraca do harmonogramu, aby uruchamiać się niezależnie."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Usuń z listy {0} z {memberCount} operacji z {1}?"
+
msgid "Remove {label}"
msgstr "Usuń z listy {label}"
diff --cc packages/locale/locales/pt/erp.po
index 66b789cd74,d635a8b1eb..c66b643fe1
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 dias
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Uma regra \"deve coincidir\" neste processo impede que estes compartilhem um lote de produção"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Um PIN de 4 dígitos é gerado quando o operador é criado."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Um lote de produção precisa de pelo menos uma operação. Para dividir o lote de produção inteiro, use Dissolver em vez disso."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Uma migração de dados executada pela Carbon — você carrega seus próprios dados"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Remover {0} do lote de produç�
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Remover {0} do lote de produção? Sua operação volta à programação para ser executada independentemente."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Remover {0} de {memberCount} operações de {1}?"
+
msgid "Remove {label}"
msgstr "Remover {label}"
diff --cc packages/locale/locales/ru/erp.po
index 44e98d3922,1bb2a77782..bfab905026
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90 дней
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Правило «должны совпадать» на этом процессе препятствует размещению в одной серии"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "4-значный PIN создается при создании оператора."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Серия должна содержать по крайней мере одну операцию. Чтобы разделить всю серию, используйте вместо этого «Растворить»."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Миграция данных, управляемая Carbon — вы загружаете свои собственные данные"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "Убрать {0} из сери�
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "Убрать {0} из этой серии? Его операция вернется в график для самостоятельного запуска."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "Убрать {0} из {memberCount} операций из {1}?"
+
msgid "Remove {label}"
msgstr "Убрать {label}"
diff --cc packages/locale/locales/tr/erp.po
index d3e752af1b,f883964e3f..d80bb2f6ca
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90G
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "Bu operasyon üzerinde \"eşleşmeli\" kuralı bunların bir partide paylaşılmasını engeller"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "Operatör oluşturulduğunda bir 4 haneli PIN oluşturulur."
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "Bir parti en az bir operasyon gerektirir. Bütün partiyi ayırmak için bunun yerine Çöz'ü kullanın."
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Bir Carbon tarafından yönetilen veri taşıması — kendi verilerinizi yüklersiniz"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "{0}'i partiden kaldır
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "{0} bu partiyi kaldırmak istiyor musunuz? Operasyonu çizelgeye geri döner ve kendi başına çalışacak."
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "{1}'den {memberCount} operasyondan {0}'ını kaldırılsın mı?"
+
msgid "Remove {label}"
msgstr "{label}'i Kaldır"
diff --cc packages/locale/locales/zh/erp.po
index 2cd7331122,48bb234c7c..cc7589eee2
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@@ -541,9 -542,12 +545,15 @@@ msgstr "90天
msgid "A \"must match\" rule on this process blocks these from sharing a batch"
msgstr "此工序上的 \"必须匹配\" 规则阻止这些共享一个生产批次"
+msgid "A 3D model the operator can turn around"
+msgstr ""
+
+ msgid "A 4-digit PIN is generated when the operator is created."
+ msgstr "创建操作员时会生成4位数PIN。"
+
+ msgid "A batch needs at least one operation. To break up the whole batch, use Dissolve instead."
+ msgstr "生产批次需要至少一个工序。要分解整个生产批次,请改用\"分解\"。"
+
msgid "A Carbon-run data migration — you load your own data"
msgstr "Carbon 运行的数据迁移 — 您加载自己的数据"
@@@ -14279,10 -14144,11 +14300,15 @@@ msgstr "从生产批次中移除 {0}
msgid "Remove {0} from this batch? Its operation goes back to the schedule to run on its own."
msgstr "从此生产批次中移除 {0}?其工序回到排程以单独运行。"
+#. placeholder {0}: group.name
+msgid "Remove {0} from this step"
+msgstr ""
+
+ #. placeholder {0}: selectedIds.size
+ #. placeholder {1}: batch.readableId
+ msgid "Remove {0} of {memberCount} operations from {1}?"
+ msgstr "从 {1} 中移除 {0} 个(共 {memberCount} 个)工序?"
+
msgid "Remove {label}"
msgstr "移除 {label}"