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(production): defer serial numbers to production with a company setting
Raul8cd1b5c4ddb7
diff --git a/apps/erp/app/modules/inventory/inventory.service.ts b/apps/erp/app/modules/inventory/inventory.service.tsindex 30c8caa062..359f27a5b2 100644--- a/apps/erp/app/modules/inventory/inventory.service.ts+++ b/apps/erp/app/modules/inventory/inventory.service.ts@@ -22537,6 +22537,13 @@ async function produceBatchOutput(throw new NotFoundError("Tracked entity not found");}+ // First-touch numbering (serialNumberTiming = 'production'). A no-op for a+ // unit already numbered, which is every unit under the default timing.+ await sequence.assignSerialNumberIfMissing(trx, {+ trackedEntityId,+ companyId+ });+if (trackedEntity.status !== "Consumed") {const activityId = nanoid();await trx@@ -22931,6 +22938,14 @@ export async function issueMaterial(throw new NotFoundError("Tracked entity not found");}+ // First-touch numbering (serialNumberTiming = 'production'). A no-op+ // for a unit already numbered, which is every unit under the default+ // timing.+ await sequence.assignSerialNumberIfMissing(trx, {+ trackedEntityId,+ companyId+ });+if (trackedEntity.status !== "Consumed") {const activityId = nanoid();await trx@@ -22992,8 +23007,14 @@ export async function issueMaterial(// sequence was configured later), so it would otherwise be created with// a null readableId. Resolve the job's location for the %{location}// token; the reservation runs in this transaction, atomic with the spawn.+ // Under serialNumberTiming = 'production' the spawned unit stays+ // unnumbered until it is first touched.let spawnReadableId: string | null = null;- if (trackedEntity.itemId) {+ if (+ trackedEntity.itemId &&+ (await sequence.getSerialNumberTiming(trx, companyId)) !==+ "production"+ ) {let locationCode: string | null = null;let locationName: string | null = null;const jobIdForLocation = (@@ -23259,6 +23280,16 @@ export async function issueMaterial(scrappedEntityAttributes =entity.attributes as TrackedEntityAttributes;+ // A unit scrapped before it completed an operation never reached a+ // completion hook, so number it here (serialNumberTiming =+ // 'production'). It consumed real material and needs an identifier+ // on its scrap journal, NCR and lineage; its replacement must not+ // take the number this unit should have had.+ await sequence.assignSerialNumberIfMissing(trx, {+ trackedEntityId: scrapEntityId,+ companyId+ });+const scrapActivityId = nanoid();await trx.insertInto("trackedActivity")diff --git a/apps/erp/app/modules/production/AGENTS.md b/apps/erp/app/modules/production/AGENTS.mdindex c01dfb52c7..8f7909011f 100644--- a/apps/erp/app/modules/production/AGENTS.md+++ b/apps/erp/app/modules/production/AGENTS.md@@ -40,6 +40,7 @@ Work orders (jobs), scheduling, routings (operations), bill of materials, proced- It **refuses** a quantity ≤ 0 or below what was already received (stocked items), and a fractional quantity on a serial job. Those raises reach the `jobOperation` UPDATE when they happen under the trigger — `sync_finish_job_operation` therefore clamps with `GREATEST(computed, received)` before calling.- The serial branch receives the delta one numbered unit at a time — shop-floor-finished (`Available`) first, then by `readableId` — skipping `Consumed`/`Rejected`/`Scrapped` and any unit with a `Job Receipt` ledger row for this job, so re-completion never double-receives. An item with **no serial sequence** never reaches `assign-serial-numbers`, so its job keeps one whole-quantity seed entity and the delta is received against that seed instead.- **Make to Asset branch.** A job with `fixedAssetClassId` completes into one new `fixedAsset` per unit (status `Active`, or `Under Construction` when the class `isConstructionInProgress`; `acquisitionCost` = swept WIP ÷ units; one Posted `fixedAssetTransfer` per asset, `type 'Capitalization'`, `sourceType 'Job'`); a job with `fixedAssetId` sweeps its WIP onto that Construction in Progress asset as one `fixedAssetCipCost` row + one transfer. The units never enter stock: no `itemLedger`, `costLedger`, `pickMethod` or `itemCost` write, and the WIP discharge posts Dr class `assetAccountId` / Cr WIP as an `'Asset Transfer'` journal (both lines still `documentId = jobId`, so the per-job WIP balance nets to zero). Each serial unit goes `Consumed` with `attributes["Fixed Asset"]` and a `'Capitalize'` `trackedActivity`; every company writes the asset cost (the journal is Provisional before the accounting cutover). Guards raise before anything moves: `'A job linked to a sales order line cannot complete to a fixed asset'`; `'A job that completes to a fixed asset class needs a serialized item'` (any quantity — every asset a class job makes is a fleet unit followed by its serial); `'Make to Asset needs a serialized item or a quantity of one'` (a job attached to an asset under construction); a job attached to a non-CIP asset is also refused (`'… is not in a Construction in Progress class'`). The item rule is `makeToAssetItemError` (`production.models.ts`), applied by `x+/job+/new.tsx` on save (a field error on the item), by `updateJobDetails` (the details form), by `setJobItem` on a property-panel item change and by `resumeJob` when a paused job goes back to `Ready`, with the sales order line gate. Covered by `packages/database/supabase/tests/job-completion-to-asset.test.sql`. Full flow: `.claude/rules/fixed-asset-lifecycle.md`.+- **Serial number timing** (`companySettings.serialNumberTiming`, Settings → Production → Serial Numbers). `jobCreation` (default): `assignJobSerialNumbers` splits and numbers every unit when the job is created. `production`: it is skipped, the job keeps its unnumbered seed, and a unit draws its number at its first touch through `assignSerialNumberIfMissing` (`@carbon/database/sequence`): the MES start (`start.$operationId.tsx`, `x+/event.tsx`, via `services/serial-number.server.ts`), the `issue` posting's serial completion, batch output and operation scrap, and the ERP completion. A unit the serial completion spawns stays unnumbered under `production`. `completeJob` runs `numberSerialUnitsForCompletion` before the RPC: it plans with `planSerialUnitsForCompletion` (the RPC's receipt or Make to Asset order), splits what the completion needs off the seed and numbers every unit it takes, so the RPC never receives an unnumbered lump. The `sync_finish_job_operation` path (an operation marked Done) calls the RPC from SQL and does not run it.- Dialog logic lives in `ui/Jobs/job-complete-logic.ts` (pure, no JSX/lingui, unit-tested by `apps/erp/test/job-complete-logic.test.ts`); the SQL is covered by `packages/database/supabase/tests/job-completion-received-quantity.test.sql`, hand-run like its siblings (nothing in CI runs `supabase/tests/`).### Loaded operation and unattributed machine timediff --git a/apps/erp/app/modules/production/production.server.ts b/apps/erp/app/modules/production/production.server.tsindex b62c187c51..920becff96 100644--- a/apps/erp/app/modules/production/production.server.ts+++ b/apps/erp/app/modules/production/production.server.ts@@ -864,9 +864,11 @@ export const closeJob = defineServiceFn({* job's own), backflushes materials, rolls up cost and, for a Make to Asset* job, creates the fixed assets. It refuses a quantity of zero or below what* was received, a fractional quantity on a serial job, and the Make to Asset- * rules; its message says what to fix (a `rule` error). Then the picked- * material the job did not consume is returned to the warehouse; a failure- * there leaves the job completed and is returned as `warning`.+ * rules; its message says what to fix (a `rule` error). When the company+ * numbers serials at production, the units the completion takes are split off+ * the job's seed and numbered first. Then the picked material the job did not+ * consume is returned to the warehouse; a failure there leaves the job+ * completed and is returned as `warning`.** @mcp*/@@ -883,6 +885,23 @@ export const completeJob = defineServiceFn({const companyId = ctx.company.id;const userId = ctx.auditUserId;+ // Under serialNumberTiming = 'production' the units this completion takes+ // may be unnumbered, or still one unsplit seed: the receipt is their first+ // touch, so split and number them before the RPC receives them.+ try {+ await service.numberSerialUnitsForCompletion(ctx.asSystem.pg, {+ jobId,+ quantityComplete,+ companyId+ });+ } catch (error) {+ return ctx.error(+ "internal",+ "Failed to number the serial units being completed",+ error+ );+ }+// It must NOT write job.quantityShipped: that column is advanced only by// post-shipment, and the shipment builder ships quantityComplete less it.const rpc = await ctx.asCaller.supabase.rpc("complete_job_to_inventory", {diff --git a/apps/erp/app/modules/production/production.service.test.ts b/apps/erp/app/modules/production/production.service.test.tsindex 2aa74add90..1261aaa45a 100644--- a/apps/erp/app/modules/production/production.service.test.ts+++ b/apps/erp/app/modules/production/production.service.test.ts@@ -37,7 +37,8 @@ const {planOrphanStepAdoption,maxToolQuantityByItem,buildAssemblyToolStepLinks,- duplicateJobOperationStep+ duplicateJobOperationStep,+ planSerialUnitsForCompletion} = await import("./production.service");// ── Assembly → BoP sync: marker reconciliation ───────────────────────────────@@ -492,3 +493,116 @@ describe("duplicateJobOperationStep", () => {expect(inserts.some((i) => i.table === "jobMaterialStep")).toBe(false);});});++// ── Serial numbers at production: what a completion takes ───────────────────+describe("planSerialUnitsForCompletion", () => {+ type Unit = Parameters<typeof planSerialUnitsForCompletion>[0][number];+ const unit = (overrides: Partial<Unit> & { id: string }): Unit => ({+ status: "Reserved",+ quantity: 1,+ readableId: null,+ createdAt: "2026-10-19T09:00:00.000Z",+ received: false,+ bookedOut: false,+ fixedAsset: false,+ ...overrides+ });++ it("splits an untouched seed into numbered units for a partial completion", () => {+ const plan = planSerialUnitsForCompletion(+ [unit({ id: "seed", quantity: 5 })],+ 2,+ "receipt"+ );+ expect(plan).toEqual({+ numberUnitIds: [],+ split: {+ seedId: "seed",+ seedQuantity: 5,+ seedReadableId: null,+ newUnits: 2,+ seedBecomesUnit: false+ }+ });+ });++ it("turns the seed itself into the last unit when the completion takes all of it", () => {+ const plan = planSerialUnitsForCompletion(+ [unit({ id: "seed", quantity: 3 })],+ 3,+ "receipt"+ );+ expect(plan?.split).toMatchObject({ newUnits: 2, seedBecomesUnit: true });+ });++ it("takes finished units first and numbers only the unnumbered ones it takes", () => {+ const plan = planSerialUnitsForCompletion(+ [+ unit({ id: "done-numbered", status: "Available", readableId: "SN-1" }),+ unit({ id: "done-blank", status: "Available" }),+ unit({ id: "waiting", status: "Reserved" })+ ],+ 2,+ "receipt"+ );+ expect(plan).toEqual({ numberUnitIds: ["done-blank"], split: null });+ });++ it("does nothing when every unit it takes is numbered", () => {+ expect(+ planSerialUnitsForCompletion(+ [+ unit({ id: "a", status: "Available", readableId: "SN-1" }),+ unit({ id: "b", status: "Reserved" })+ ],+ 1,+ "receipt"+ )+ ).toBeNull();+ });++ it("skips received, scrapped and rejected units, and Consumed units never booked out", () => {+ const plan = planSerialUnitsForCompletion(+ [+ unit({ id: "received", status: "Available", received: true }),+ unit({ id: "scrapped", status: "Scrapped" }),+ unit({ id: "rejected", status: "Rejected" }),+ unit({ id: "consumed-in-place", status: "Consumed" }),+ unit({ id: "issued", status: "Consumed", bookedOut: true }),+ unit({ id: "next", status: "Reserved" })+ ],+ 2,+ "receipt"+ );+ expect(plan).toEqual({ numberUnitIds: ["issued", "next"], split: null });+ });++ it("refuses to plan when even the seed cannot cover the completion", () => {+ expect(+ planSerialUnitsForCompletion(+ [unit({ id: "seed", quantity: 2 })],+ 3,+ "receipt"+ )+ ).toBeNull();+ });++ it("uses the Make to Asset order: no Consumed units, none already an asset", () => {+ const plan = planSerialUnitsForCompletion(+ [+ unit({ id: "issued", status: "Consumed", bookedOut: true }),+ unit({ id: "asset", status: "Available", fixedAsset: true }),+ unit({ id: "free", status: "Reserved" })+ ],+ 1,+ "asset"+ );+ expect(plan).toEqual({ numberUnitIds: ["free"], split: null });+ });++ it("ignores a fractional or non-positive completion", () => {+ const units = [unit({ id: "seed", quantity: 4 })];+ expect(planSerialUnitsForCompletion(units, 0, "receipt")).toBeNull();+ expect(planSerialUnitsForCompletion(units, 1.5, "receipt")).toBeNull();+ });+});diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.tsindex 73d35bab04..703d01c4a9 100644--- a/apps/erp/app/modules/production/production.service.ts+++ b/apps/erp/app/modules/production/production.service.ts@@ -73,9 +73,11 @@ import {updateRows} from "@carbon/database/rows";import {+ getEntityJobLocation,getNextRevisionSequence,getNextSequence,- getNextSerialNumbers+ getNextSerialNumbers,+ getSerialNumberTiming} from "@carbon/database/sequence";import { getStrictBackflushSettings } from "@carbon/database/strict-backflush";import {@@ -3804,6 +3806,11 @@ export async function insertJob(* Best-effort and cheap: it skips the operation entirely unless the item has* an `itemSerialSequence` configured. Shared by every job-creation path so serial* numbering is applied consistently (insertJob, sales-order conversion, ...).+ *+ * Skipped when `companySettings.serialNumberTiming = 'production'`: the job's+ * units then stay unnumbered and each draws its number the first time it is+ * touched (see `assignSerialNumberIfMissing` and+ * `numberSerialUnitsForCompletion`).*/async function assignJobSerialNumbers(client: SupabaseClient<Database>,@@ -3827,6 +3834,9 @@ async function assignJobSerialNumbers(return;}if (!serialSequence.data) return;+ if ((await getSerialNumberTiming(db, args.companyId)) === "production") {+ return;+ }const { error } = await invokePosting({ client, db, companyId: args.companyId, userId: args.userId },"assign-serial-numbers",@@ -12724,6 +12734,311 @@ export async function assignSerialNumbers(return { assigned: count };});}++/** A unit of a job's root make method, as a completion sees it. */+export type CompletionSerialUnit = {+ id: string;+ status: string;+ quantity: number;+ readableId: string | null;+ createdAt: string;+ /** Has a `Job Receipt` ledger row for this job. */+ received: boolean;+ /** Booked out of stock (a negative ledger row): issued before its receipt. */+ bookedOut: boolean;+ /** Already turned into a fixed asset. */+ fixedAsset: boolean;+};++export type CompletionSerialPlan = {+ /** Existing single units that this completion takes and that have no number. */+ numberUnitIds: string[];+ /**+ * Units to split off the unsplit seed: `newUnits` new single units, plus the+ * seed itself when the completion takes all of it (`seedBecomesUnit`).+ */+ split: {+ seedId: string;+ seedQuantity: number;+ seedReadableId: string | null;+ newUnits: number;+ seedBecomesUnit: boolean;+ } | null;+};++/**+ * Which units a completion of `delta` units will take, in the order+ * `complete_job_to_inventory` takes them (the receipt branch, or the Make to+ * Asset branch for a job that completes to a fixed asset), and which of them+ * still need a number or a split. Pure: `numberSerialUnitsForCompletion` reads+ * the units and applies the plan.+ *+ * Null when there is nothing to do, or when the job cannot cover `delta` even+ * after splitting its seed: the completion then refuses with its own message+ * and no number is spent.+ */+export function planSerialUnitsForCompletion(+ units: CompletionSerialUnit[],+ delta: number,+ target: "receipt" | "asset"+): CompletionSerialPlan | null {+ if (!Number.isInteger(delta) || delta <= 0) return null;++ const takeable = units.filter((unit) => {+ if (unit.quantity !== 1) return false;+ if (target === "asset") {+ return (+ !["Consumed", "Rejected", "Scrapped"].includes(unit.status) &&+ !unit.fixedAsset+ );+ }+ if (unit.received) return false;+ if (unit.status === "Consumed") return unit.bookedOut;+ return !["Rejected", "Scrapped"].includes(unit.status);+ });++ const rank = (status: string) =>+ status === "Available" || (target === "receipt" && status === "Consumed")+ ? 0+ : status === "Reserved"+ ? 1+ : 2;+ // Numbered before unnumbered within a rank, as the RPC's `readableId NULLS+ // LAST`. Once this plan numbers a unit it sorts ahead of every unnumbered+ // one of its rank, so the RPC takes the same units.+ const ordered = [...takeable].sort(+ (a, b) =>+ rank(a.status) - rank(b.status) ||+ Number(a.readableId === null) - Number(b.readableId === null) ||+ (a.readableId ?? "").localeCompare(b.readableId ?? "") ||+ a.createdAt.localeCompare(b.createdAt) ||+ a.id.localeCompare(b.id)+ );++ const taken = ordered.slice(0, delta);+ const numberUnitIds = taken+ .filter((unit) => unit.readableId === null)+ .map((unit) => unit.id);++ const short = delta - taken.length;+ if (short === 0) {+ return numberUnitIds.length > 0 ? { numberUnitIds, split: null } : null;+ }++ const seed = units+ .filter(+ (unit) =>+ unit.quantity > 1 &&+ !["Consumed", "Rejected", "Scrapped"].includes(unit.status)+ )+ .sort((a, b) => a.createdAt.localeCompare(b.createdAt))[0];+ if (!seed || seed.quantity < short) return null;++ const seedBecomesUnit = seed.quantity === short;+ return {+ numberUnitIds,+ split: {+ seedId: seed.id,+ seedQuantity: seed.quantity,+ seedReadableId: seed.readableId,+ newUnits: seedBecomesUnit ? short - 1 : short,+ seedBecomesUnit+ }+ };+}++/**+ * Receipt as first touch (`companySettings.serialNumberTiming = 'production'`):+ * before `complete_job_to_inventory` takes `quantityComplete` units of a serial+ * job, split what it needs off the job's unsplit seed and number every unit it+ * takes. Without this an untouched job would be received as one unnumbered+ * entity holding every unit.+ *+ * No-op under the default `jobCreation` timing (every unit is numbered at+ * creation), for an item with no serial sequence (its job keeps one seed by+ * design), and when nothing taken is missing a number. Commits on its own, before+ * the RPC: a completion the RPC then refuses for another reason keeps the units+ * it split and numbered, which are the job's next units either way.+ */+export async function numberSerialUnitsForCompletion(+ db: Kysely<KyselyDatabase>,+ args: { jobId: string; quantityComplete: number; companyId: string }+): Promise<{ numbered: number }> {+ const { jobId, quantityComplete, companyId } = args;+ return db.transaction().execute(async (trx) => {+ if ((await getSerialNumberTiming(trx, companyId)) !== "production") {+ return { numbered: 0 };+ }++ const job = await trx+ .selectFrom("job")+ .innerJoin("item", "item.id", "job.itemId")+ .leftJoin("itemSerialSequence", (join) =>+ join+ .onRef("itemSerialSequence.itemId", "=", "job.itemId")+ .onRef("itemSerialSequence.companyId", "=", "job.companyId")+ )+ .innerJoin("jobMakeMethod", (join) =>+ join+ .onRef("jobMakeMethod.jobId", "=", "job.id")+ .on("jobMakeMethod.parentMaterialId", "is", null)+ )+ .select([+ "job.itemId",+ "job.quantityReceivedToInventory",+ "job.fixedAssetClassId",+ "job.fixedAssetId",+ "item.itemTrackingType",+ "itemSerialSequence.id as sequenceId",+ "jobMakeMethod.id as makeMethodId",+ "jobMakeMethod.requiresSerialTracking"+ ])+ .where("job.id", "=", jobId)+ .where("job.companyId", "=", companyId)+ .executeTakeFirst();+ if (+ !job ||+ job.itemTrackingType !== "Serial" ||+ !job.requiresSerialTracking ||+ !job.sequenceId+ ) {+ return { numbered: 0 };+ }++ const delta =+ quantityComplete - Number(job.quantityReceivedToInventory ?? 0);+ const entities = await trx+ .selectFrom("trackedEntity")+ .select([+ "id",+ "status",+ "quantity",+ "readableId",+ "createdAt",+ "attributes"+ ])+ .where("companyId", "=", companyId)+ .where(sql<boolean>`attributes->>'Job Make Method' = ${job.makeMethodId}`)+ .forUpdate()+ .execute();+ if (entities.length === 0) return { numbered: 0 };++ const ids = entities.map((entity) => entity.id);+ const ledger = await trx+ .selectFrom("itemLedger")+ .select([+ "trackedEntityId",+ sql<boolean>`bool_or("documentType" = 'Job Receipt' AND "documentId" = ${jobId})`.as(+ "received"+ ),+ sql<boolean>`bool_or(quantity < 0)`.as("bookedOut")+ ])+ .where("companyId", "=", companyId)+ .where("trackedEntityId", "in", ids)+ .groupBy("trackedEntityId")+ .execute();+ const ledgerByEntity = new Map(+ ledger.map((row) => [row.trackedEntityId, row])+ );++ const plan = planSerialUnitsForCompletion(+ entities.map((entity) => ({+ id: entity.id,+ status: entity.status,+ quantity: Number(entity.quantity),+ readableId: entity.readableId,+ createdAt: String(entity.createdAt),+ received: ledgerByEntity.get(entity.id)?.received === true,+ bookedOut: ledgerByEntity.get(entity.id)?.bookedOut === true,+ fixedAsset:+ (entity.attributes as Record<string, unknown> | null)?.[+ "Fixed Asset"+ ] !== undefined+ })),+ delta,+ job.fixedAssetClassId || job.fixedAssetId ? "asset" : "receipt"+ );+ if (!plan) return { numbered: 0 };++ const split = plan.split;+ const numberSeed =+ split?.seedBecomesUnit === true && split.seedReadableId === null;+ const count =+ plan.numberUnitIds.length + (split?.newUnits ?? 0) + (numberSeed ? 1 : 0);+ const serials = await getNextSerialNumbers(trx, {+ itemId: job.itemId,+ companyId,+ count,+ ...(await getEntityJobLocation(trx, { Job: jobId }, companyId))+ });+ if (serials.length < count) return { numbered: 0 };++ const toNumber = [...plan.numberUnitIds];+ if (numberSeed && split) toNumber.push(split.seedId);+ const numberedSerials = serials.slice(0, toNumber.length);+ const newSerials = serials.slice(toNumber.length);++ if (toNumber.length > 0) {+ await sql`+ UPDATE "trackedEntity" AS te+ SET "readableId" = v.serial+ FROM (VALUES ${sql.join(+ toNumber.map((id, index) => sql`(${id}, ${numberedSerials[index]})`)+ )}) AS v(id, serial)+ WHERE te.id = v.id+ AND te."companyId" = ${companyId}+ AND te."readableId" IS NULL+ `.execute(trx);+ }++ if (split) {+ const seed = entities.find((entity) => entity.id === split.seedId)!;+ const fullSeed = await trx+ .selectFrom("trackedEntity")+ .selectAll()+ .where("id", "=", split.seedId)+ .where("companyId", "=", companyId)+ .executeTakeFirstOrThrow();+ await trx+ .updateTable("trackedEntity")+ .set({+ quantity: split.seedBecomesUnit+ ? 1+ : Number(seed.quantity) - split.newUnits+ })+ .where("id", "=", split.seedId)+ .where("companyId", "=", companyId)+ .execute();+ if (newSerials.length > 0) {+ // One millisecond apart, after every existing unit: `createdAt` is the+ // unit axis step records are indexed by (see assignSerialNumbers), so+ // the new units take the next positions and no existing unit moves.+ await trx+ .insertInto("trackedEntity")+ .values(+ newSerials.map((readableId, offset) => ({+ createdAt: sql<string>`now() + ${offset + 1}::int * interval '1 millisecond'`,+ sourceDocument: fullSeed.sourceDocument,+ sourceDocumentId: fullSeed.sourceDocumentId,+ sourceDocumentReadableId: fullSeed.sourceDocumentReadableId,+ quantity: 1,+ status: fullSeed.status,+ attributes: fullSeed.attributes,+ itemId: fullSeed.itemId ?? null,+ expirationDate: fullSeed.expirationDate ?? null,+ readableId,+ companyId,+ createdBy: fullSeed.createdBy+ }))+ )+ .execute();+ }+ }++ return { numbered: count };+ });+}+const sandboxLogger = getLogger("erp", "configuration-rule");/**diff --git a/apps/erp/app/modules/settings/settings.models.ts b/apps/erp/app/modules/settings/settings.models.tsindex 6960129f6d..0be70ea6dc 100644--- a/apps/erp/app/modules/settings/settings.models.ts+++ b/apps/erp/app/modules/settings/settings.models.ts@@ -397,6 +397,17 @@ export const returnPickedMaterialTimingValidator = z.object({returnPickedMaterialTiming: z.enum(returnPickedMaterialTimings).default("job")});+// When a produced unit's serial number is drawn from the item's serial sequence.+// 'jobCreation' (default) reserves one number per unit as soon as the job exists;+// 'production' waits until the unit is first touched on the floor — its first+// production event, its first operation completion, or its scrap.+export const serialNumberTimings = ["jobCreation", "production"] as const;+export type SerialNumberTiming = (typeof serialNumberTimings)[number];++export const serialNumberTimingValidator = z.object({+ serialNumberTiming: z.enum(serialNumberTimings).default("jobCreation")+});+export const updateLeadTimesOnReceiptValidator = z.object({updateLeadTimesOnReceipt: zfd.checkbox()});diff --git a/apps/erp/app/modules/settings/settings.server.ts b/apps/erp/app/modules/settings/settings.server.tsindex 8e0164b4e4..c69027b0e4 100644--- a/apps/erp/app/modules/settings/settings.server.ts+++ b/apps/erp/app/modules/settings/settings.server.ts@@ -91,6 +91,7 @@ import {kanbanOutputTypes,purchasePriceUpdateTimingTypes,returnPickedMaterialTimings,+ serialNumberTimings,subsidiaryValidator} from "./settings.models";import * as service from "./settings.service";@@ -369,11 +370,13 @@ export const updateItemsSettings = defineServiceFn({* Writes the fields sent and leaves the rest: who is notified when an* inventory or a sales job completes, whether opening an operation starts its* timer, whether the job traveler lists materials and operations, whether- * tracked material is pre-selected without a picking list, and whether one- * location requires an assigned operator before the scheduler places work- * there. The staffing rule lives on the location row and is written for the- * company's own location only, so a settings admin without the resources- * permission can still set it.+ * tracked material is pre-selected without a picking list, when a produced+ * unit draws its serial number (when the job is created, or the first time+ * the unit is worked on, scrapped or received), and whether one location+ * requires an assigned operator before the scheduler places work there. The+ * staffing rule lives on the location row and is written for the company's+ * own location only, so a settings admin without the resources permission can+ * still set it.** @mcp*/@@ -385,6 +388,7 @@ export const updateProductionSettings = defineServiceFn({includeMaterialsOnTraveler: z.boolean().optional(),includeOperationsOnTraveler: z.boolean().optional(),autoSelectMaterialWithoutPickingList: z.boolean().optional(),+ serialNumberTiming: z.enum(serialNumberTimings).optional(),locationStaffing: z.object({locationId: z.string().min(1),diff --git a/apps/erp/app/routes/x+/settings+/production.tsx b/apps/erp/app/routes/x+/settings+/production.tsxindex c71172d8b5..dc95a9abb4 100644--- a/apps/erp/app/routes/x+/settings+/production.tsx+++ b/apps/erp/app/routes/x+/settings+/production.tsx@@ -6,7 +6,13 @@ import { carbon } from "@carbon/api/carbon.server";import { error } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";-import { Submit, ValidatedForm, validator } from "@carbon/form";+import {+ Hidden,+ Submit,+ useControlField,+ ValidatedForm,+ validator+} from "@carbon/form";import { useAction } from "@carbon/query";import {Card,@@ -15,6 +21,7 @@ import {CardFooter,CardHeader,CardTitle,+ ChoiceSelect,HStack,Label,ScrollArea,@@ -27,7 +34,7 @@ import { redirect } from "@carbon/utils";import { msg } from "@lingui/core/macro";import { Trans, useLingui } from "@lingui/react/macro";import { useCallback } from "react";-import { LuMapPin } from "react-icons/lu";+import { LuFactory, LuMapPin, LuTicket } from "react-icons/lu";import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";import { useLoaderData } from "react-router";import { z } from "zod";@@ -35,6 +42,8 @@ import { Users } from "~/components/Form";import { SettingsPage, SettingsPageHeading } from "~/components/SettingsPage";import {jobCompletedValidator,+ type SerialNumberTiming,+ serialNumberTimingValidator,settingsToggle} from "~/modules/settings/settings.models";import type { updateProductionSettings } from "~/modules/settings/settings.server";@@ -93,6 +102,9 @@ const productionSettingsForm = z.discriminatedUnion("intent", ["autoSelectMaterialWithoutPickingListToggle","autoSelectMaterialWithoutPickingList"),+ serialNumberTimingValidator.extend({+ intent: z.literal("serialNumberTiming")+ }),z.object({intent: z.literal("locationRequiresStaffing"),@@ -151,6 +163,11 @@ export default function ProductionSettingsRoute() {? t`Material pre-selection enabled`: t`Material pre-selection disabled`;}+ if (data.serialNumberTiming !== undefined) {+ return data.serialNumberTiming === "production"+ ? t`Serial numbers are drawn when a unit is produced`+ : t`Serial numbers are drawn when the job is created`;+ }if (data.locationStaffing) {return data.locationStaffing.requiresStaffing? t`Staffing requirement enabled`@@ -391,6 +408,44 @@ export default function ProductionSettingsRoute() {</CardContent></Card>+ <Card>+ <ValidatedForm+ method="post"+ validator={serialNumberTimingValidator}+ defaultValues={{+ serialNumberTiming:+ (companySettings.serialNumberTiming as+ | SerialNumberTiming+ | null+ | undefined) ?? "jobCreation"+ }}+ fetcher={fetcher}+ >+ <CardHeader>+ <CardTitle>+ <Trans>Serial Numbers</Trans>+ </CardTitle>+ <CardDescription>+ <Trans>+ Decide when a produced unit draws its number from the item's+ serial sequence. Items without a sequence are unaffected.+ </Trans>+ </CardDescription>+ </CardHeader>+ <CardContent>+ <Hidden name="intent" value="serialNumberTiming" />+ <div className="flex flex-col gap-3 max-w-[640px]">+ <SerialNumberTimingChoice />+ </div>+ </CardContent>+ <CardFooter>+ <Submit>+ <Trans>Save</Trans>+ </Submit>+ </CardFooter>+ </ValidatedForm>+ </Card>+<Card><CardHeader><CardTitle>@@ -509,3 +564,36 @@ export default function ProductionSettingsRoute() {</ScrollArea>);}++// ChoiceSelect for when a produced unit draws its serial number. Mirrors the+// timing choices in Settings → Inventory: a compact trigger plus a hidden input+// so the value posts with the surrounding ValidatedForm.+function SerialNumberTimingChoice() {+ const { t } = useLingui();+ const [value, setValue] =+ useControlField<SerialNumberTiming>("serialNumberTiming");+ const current: SerialNumberTiming = value ?? "jobCreation";+ return (+ <>+ <ChoiceSelect<SerialNumberTiming>+ value={current}+ onChange={setValue}+ options={[+ {+ value: "jobCreation",+ title: t`When the job is created`,+ description: t`Every unit is numbered up front, so serials can be printed before work starts.`,+ icon: <LuTicket />+ },+ {+ value: "production",+ title: t`When the unit is produced`,+ description: t`A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none.`,+ icon: <LuFactory />+ }+ ]}+ />+ <input type="hidden" name="serialNumberTiming" value={current} />+ </>+ );+}diff --git a/apps/mes/app/routes/x+/event.tsx b/apps/mes/app/routes/x+/event.tsxindex 14d30255f7..dadb9a7504 100644--- a/apps/mes/app/routes/x+/event.tsx+++ b/apps/mes/app/routes/x+/event.tsx@@ -20,6 +20,7 @@ import {startMachineProductionEvent,startProductionEvent} from "~/services/operations.service";+import { assignSerialNumberOnFirstTouch } from "~/services/serial-number.server";import { OUTSIDE_PROCESSING_REFUSAL } from "~/utils/operationView";export async function action({ request }: ActionFunctionArgs) {@@ -157,6 +158,12 @@ export async function action({ request }: ActionFunctionArgs) {await postEnded(startEvent.data.endedEventIds);}+ // First touch: number the unit if the company numbers serials at+ // production.+ if (trackedEntityId) {+ await assignSerialNumberOnFirstTouch({ trackedEntityId, companyId });+ }+return data(startEvent.data,await flash(request, success(`Started ${d.type.toLowerCase()} operation`))diff --git a/apps/mes/app/routes/x+/start.$operationId.tsx b/apps/mes/app/routes/x+/start.$operationId.tsxindex 3702eb4266..8837d22dd7 100644--- a/apps/mes/app/routes/x+/start.$operationId.tsx+++ b/apps/mes/app/routes/x+/start.$operationId.tsx@@ -22,6 +22,7 @@ import {startMachineProductionEvent,startProductionEvent} from "~/services/operations.service";+import { assignSerialNumberOnFirstTouch } from "~/services/serial-number.server";import { OUTSIDE_PROCESSING_REFUSAL } from "~/utils/operationView";import { path } from "~/utils/path";@@ -318,5 +319,10 @@ export async function loader({ request, params }: LoaderFunctionArgs) {ids: ended});+ // First touch: number the unit if the company numbers serials at production.+ if (trackedEntityId) {+ await assignSerialNumberOnFirstTouch({ trackedEntityId, companyId });+ }+throw redirect(path.to.operation(operationId));}diff --git a/apps/mes/app/services/serial-number.server.ts b/apps/mes/app/services/serial-number.server.tsnew file mode 100644index 0000000000..2f1a66ff6f--- /dev/null+++ b/apps/mes/app/services/serial-number.server.ts@@ -0,0 +1,37 @@+// 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 { assignSerialNumberIfMissing } from "@carbon/database/sequence";+import { getLogger } from "@carbon/logger";+import { getDatabaseClient } from "~/services/database.server";++const log = getLogger("mes", "serial-number");++/**+ * Number a unit from its item's serial sequence when work first starts on it+ * (`companySettings.serialNumberTiming = 'production'`). A no-op for a unit+ * that already has a number, which is every unit under the default timing, so+ * it is safe on every start.+ *+ * Best-effort: a failure never stops a timer from starting, and the ERP's+ * completion and scrap postings number the unit later if this was lost. It+ * writes as the system: the caller has already admitted the operator to start+ * the operation, and an operator need not hold `update: production`.+ */+export async function assignSerialNumberOnFirstTouch(args: {+ trackedEntityId: string;+ companyId: string;+}) {+ try {+ await getDatabaseClient()+ .transaction()+ .execute((trx) => assignSerialNumberIfMissing(trx, args));+ } catch (error) {+ log.error("Failed to assign a serial number on first touch", {+ error,+ trackedEntityId: args.trackedEntityId,+ companyId: args.companyId+ });+ }+}diff --git a/packages/database/src/sequence.ts b/packages/database/src/sequence.tsindex 91f528b73b..f30bb155bf 100644--- a/packages/database/src/sequence.ts+++ b/packages/database/src/sequence.ts@@ -5,7 +5,7 @@// Document-number allocation lives in one place: duplicate implementations// silently diverge and mint duplicate sequence IDs.import { CalendarDate, getDayOfWeek, now } from "@internationalized/date";-import { sql, type Transaction } from "kysely";+import { type Kysely, sql, type Transaction } from "kysely";import type { KyselyDatabase } from "./client.ts";import { getCompanyTimeZone } from "./timezone.ts";@@ -158,10 +158,11 @@ export async function getNextRevisionSequence(* Each number interpolates the date/week tokens (%{yyyy} %{yy} %{mm} %{ww} %{dd})* plus %{location} (location.code, falling back to the location name).*- * Used by both `assign-serial-numbers` (the N units that exist at job creation)- * and `issue` (a unit spawned lazily on completion, e.g. after the job quantity- * was increased), so serials follow the pattern regardless of when the entity is- * created.+ * Used by `assign-serial-numbers` (the N units that exist at job creation),+ * `issue` (a unit spawned lazily on completion, e.g. after the job quantity was+ * increased) and the `serialNumberTiming = 'production'` first-touch paths+ * (`assignSerialNumberIfMissing`, the ERP completion), so serials follow the+ * pattern regardless of when the entity is numbered.*/export async function getNextSerialNumbers(trx: Transaction<KyselyDatabase>,@@ -208,3 +209,97 @@ export async function getNextSerialNumbers(}return serials;}++/**+ * When a produced unit draws its serial number: `jobCreation` (the default)+ * numbers every unit when the job is created; `production` leaves the job's+ * units unnumbered and numbers each one the first time it is touched (its first+ * production event, its first operation completion, its scrap, or the receipt+ * that completes the job). Read with a failure falling back to the default,+ * which is what every company had before the setting existed.+ */+export async function getSerialNumberTiming(+ db: Transaction<KyselyDatabase> | Kysely<KyselyDatabase>,+ companyId: string+): Promise<"jobCreation" | "production"> {+ const settings = await db+ .selectFrom("companySettings")+ .select(["serialNumberTiming"])+ .where("id", "=", companyId)+ .executeTakeFirst();+ return settings?.serialNumberTiming === "production"+ ? "production"+ : "jobCreation";+}++/**+ * Number ONE tracked entity from its item's `itemSerialSequence`, if it has no+ * number yet. Returns the assigned serial, or null when nothing was assigned:+ * the entity is already numbered, has no item, or its item has no sequence.+ *+ * This is the `serialNumberTiming = 'production'` path, so every call site is a+ * "first touch" hook and must be safe to fire repeatedly on the same unit:+ * hence the `readableId IS NULL` guard and the row lock. Two operators touching+ * the same unit at once serialize on the entity row, and the second sees the+ * first one's number instead of reserving and burning another. Runs inside the+ * caller's transaction, so the counter reservation commits or rolls back with+ * the write that prompted it.+ */+export async function assignSerialNumberIfMissing(+ trx: Transaction<KyselyDatabase>,+ args: { trackedEntityId: string; companyId: string }+): Promise<string | null> {+ const entity = await trx+ .selectFrom("trackedEntity")+ .select(["id", "itemId", "readableId", "attributes"])+ .where("id", "=", args.trackedEntityId)+ .where("companyId", "=", args.companyId)+ .forUpdate()+ .executeTakeFirst();++ if (!entity || entity.readableId || !entity.itemId) return null;++ const [readableId] = await getNextSerialNumbers(trx, {+ itemId: entity.itemId,+ companyId: args.companyId,+ count: 1,+ ...(await getEntityJobLocation(trx, entity.attributes, args.companyId))+ });+ if (!readableId) return null;++ await trx+ .updateTable("trackedEntity")+ .set({ readableId })+ .where("id", "=", entity.id)+ .where("companyId", "=", args.companyId)+ .execute();++ return readableId;+}++/**+ * The %{location} context for a job's unit: the location of the job named by+ * its `Job` attribute. A unit with no Job attribute interpolates the token to+ * nothing, as it would at job creation for a job with no location.+ */+export async function getEntityJobLocation(+ trx: Transaction<KyselyDatabase>,+ attributes: unknown,+ companyId: string+): Promise<{ locationCode: string | null; locationName: string | null }> {+ const jobId = (attributes as Record<string, unknown> | null)?.Job;+ if (typeof jobId !== "string") {+ return { locationCode: null, locationName: null };+ }+ const location = await trx+ .selectFrom("job")+ .innerJoin("location", "location.id", "job.locationId")+ .select(["location.code as code", "location.name as name"])+ .where("job.id", "=", jobId)+ .where("job.companyId", "=", companyId)+ .executeTakeFirst();+ return {+ locationCode: location?.code ?? null,+ locationName: location?.name ?? null+ };+}diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 233f50c863..b82b512da0 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -8380,6 +8380,7 @@ export type Database = {salesJobCompletedNotificationGroup: string[]salesRuleNotificationGroup: string[]samplingStandard: Database["public"]["Enums"]["samplingStandard"]+ serialNumberTiming: stringshelfLabelSize: string | nullshowBomExplorerReadableId: booleanshowCurrencyTrailingZeros: boolean@@ -8456,6 +8457,7 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]salesRuleNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]+ serialNumberTiming?: stringshelfLabelSize?: string | nullshowBomExplorerReadableId?: booleanshowCurrencyTrailingZeros?: boolean@@ -8532,6 +8534,7 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]salesRuleNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]+ serialNumberTiming?: stringshelfLabelSize?: string | nullshowBomExplorerReadableId?: booleanshowCurrencyTrailingZeros?: booleandiff --git a/packages/database/supabase/migrations/20261021103300_serial-number-timing.sql b/packages/database/supabase/migrations/20261021103300_serial-number-timing.sqlnew file mode 100644index 0000000000..5b563c11c4--- /dev/null+++ b/packages/database/supabase/migrations/20261021103300_serial-number-timing.sql@@ -0,0 +1,19 @@+-- Serial-number timing: when a produced unit's serial number is drawn from the+-- item's `itemSerialSequence`.+--+-- 'jobCreation' (default, current behavior) reserves N numbers the moment the job+-- is created (assignSerialNumbers). Numbers are burned on jobs that are later+-- cancelled or reduced, and they run in planning order rather than production+-- order.+--+-- 'production' leaves the job's tracked entities unnumbered at creation and draws+-- a number the first time a unit is touched: its first production event, its+-- first operation completion, its scrap, or the ERP completion that receives it+-- (completeJob splits and numbers the units it takes before+-- complete_job_to_inventory runs). Each allocation site guards on+-- `readableId IS NULL`, so flipping this setting never renumbers work already in+-- flight, and a unit nothing was ever done to stays unnumbered.++ALTER TABLE "companySettings"+ ADD COLUMN IF NOT EXISTS "serialNumberTiming" TEXT NOT NULL DEFAULT 'jobCreation'+ CHECK ("serialNumberTiming" IN ('jobCreation', 'production'));diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 154ca145af..e48b3fcb6a 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -1588,6 +1588,9 @@ msgstr "Eine zeitgestempelte Aufzeichnung von Rüsten, Personal- oder Maschinenamsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Ein Werkzeug ist ein physischer Artikel, der zur Herstellung eines Teils verwendet wird und über mehrere Fertigungsaufträge hinweg eingesetzt werden kann"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Eine Einheit wird als Verkauf behandelt, wenn eine dieser Bedingungen zutrifft, andernfalls als Leasing."@@ -7130,6 +7133,9 @@ msgstr "Entscheiden Sie, was ein Werker sieht, wenn er versucht, ein abgelaufenemsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Entscheiden Sie, was passiert, wenn ein Werker in der Werkstatt „Fertig\" drückt, während Material noch nicht kommissioniert wurde."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Entscheiden Sie, wann Material, das zu einem Arbeitsplatz kommissioniert, aber nicht verbraucht wurde, zum Lager zurückfließt."@@ -9489,6 +9495,9 @@ msgstr "Jede Zeile wurde erfolgreich importiert."msgid "Every unit has a rate."msgstr "Jede Einheit hat einen Satz."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Jeder muss eine Authentifizierungs-App einrichten, bevor er dieses Unternehmen öffnet."@@ -20764,6 +20773,12 @@ msgstr "Seriennummer:"msgid "Serial Numbers"msgstr "Seriennummern"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Seriennummern werden nur für Artikel mit Serien- oder Chargenverfolgung generiert."@@ -26391,6 +26406,9 @@ msgstr "Wenn die Kundenanfrage nicht mehr aktuell ist; nach diesem Datum wird dimsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Wenn die Waren tatsächlich ankamen; auf dem Beleg aufgezeichnet und zur Bewertung der Liefertreue des Lieferanten verwendet."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Wenn die Kanban-Karte gescannt wird, wird der Job automatisch aus dem Entwurf entfernt und zur Freigabe auf den Boden freigegeben."@@ -26412,6 +26430,9 @@ msgstr "Wann sich der Lieferant zur Lieferung verpflichtet hat; Planung nutzt dimsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Wenn die Preisfindung des Lieferanten nicht mehr gültig ist; das Umwandeln dieses Angebots in eine Bestellung nach diesem Datum kann ein Neuangebot erfordern."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Wenn dieses Prüfmittel zur Kalibrierung fällig wird; sobald es überfällig ist, wird es als „Außer Kalibrierung\" angezeigt."diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 2fbdebd198..f923a84972 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -1588,6 +1588,9 @@ msgstr "A timed record of Setup, Labor, or Machine work logged against a job opemsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "A tool is a physical item used to make a part that can be used across multiple jobs"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "A unit is treated as a sale when any of these is true, and as a rental otherwise."@@ -7130,6 +7133,9 @@ msgstr "Decide what an operator sees if they try to issue a batch or serial thatmsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Decide when material picked to a work center but not consumed flows back to the warehouse."@@ -9489,6 +9495,9 @@ msgstr "Every row was imported successfully."msgid "Every unit has a rate."msgstr "Every unit has a rate."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr "Every unit is numbered up front, so serials can be printed before work starts."+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Everyone must set up an authenticator app before opening this company."@@ -20764,6 +20773,12 @@ msgstr "Serial Number:"msgid "Serial Numbers"msgstr "Serial Numbers"+msgid "Serial numbers are drawn when a unit is produced"+msgstr "Serial numbers are drawn when a unit is produced"++msgid "Serial numbers are drawn when the job is created"+msgstr "Serial numbers are drawn when the job is created"+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Serial numbers are only generated for serial- or batch-tracked items."@@ -26391,6 +26406,9 @@ msgstr "When the customer's request stops being current; past this date the RFQmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."+msgid "When the job is created"+msgstr "When the job is created"+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."@@ -26412,6 +26430,9 @@ msgstr "When the supplier committed to deliver; planning uses this date for themsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."+msgid "When the unit is produced"+msgstr "When the unit is produced"+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 65c29fe927..6ba59987f5 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -1588,6 +1588,9 @@ msgstr "Un registro temporizado de trabajo de Preparación, Mano de obra o Máqumsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Una herramienta es un artículo físico utilizado para fabricar una pieza que puede utilizarse en múltiples órdenes de trabajo."+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Una unidad se trata como una venta cuando alguno de estos es verdadero, y como un alquiler en caso contrario."@@ -7130,6 +7133,9 @@ msgstr "Decide qué ve el operario si intenta hacer una salida de material de unmsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Decide qué ocurre cuando un operario presiona Finalizar en la planta con material aún no recolectado."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Decide cuándo el material enviado a un centro de trabajo pero no consumido fluye de vuelta al almacén."@@ -9489,6 +9495,9 @@ msgstr "Cada fila se importó correctamente."msgid "Every unit has a rate."msgstr "Cada unidad tiene una tarifa."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Todos deben configurar una aplicación autenticadora antes de abrir esta empresa."@@ -20764,6 +20773,12 @@ msgstr "Número de Serie:"msgid "Serial Numbers"msgstr "Números de Serie"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Los números de serie se generan solo para artículos con seguimiento de serie o lote."@@ -26391,6 +26406,9 @@ msgstr "Cuando la solicitud del cliente deja de ser actual; después de esta fecmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Cuando los bienes realmente llegaron; registrado en el recibo y utilizado para puntuar la puntualidad de entrega del proveedor."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Cuando se escanea la tarjeta kanban, el trabajo se mueve automáticamente fuera del borrador y se libera al piso."@@ -26412,6 +26430,9 @@ msgstr "Cuándo el proveedor se comprometió a entregar; la planificación utilimsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Cuándo el precio del proveedor deja de ser honrado; convertir esta cotización a PO después de esta fecha puede requerir una nueva cotización."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Cuándo este instrumento de medición se vence para calibración; una vez vencido se lee como Fuera de calibración."diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 585289829a..f088a8d566 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -1588,6 +1588,9 @@ msgstr "Un enregistrement de temps pour travail de Réglage, Main-d'œuvre ou Mamsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Un Outil est un Article physique utilisé pour fabriquer une Pièce qui peut être utilisé sur plusieurs Ordres de fabrication"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Une unité est traitée comme une vente lorsque l'une de ces conditions est vraie, et comme une location sinon."@@ -7130,6 +7133,9 @@ msgstr "Décidez ce qu'un opérateur voit s'il essaie d'émettre un lot ou un numsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Décidez ce qui se passe lorsqu'un opérateur appuie sur Terminer à l'atelier avec du matériel non prélevé."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Décider quand le matériel prélevé vers un poste de travail mais non consommé retourne à l'entrepôt."@@ -9489,6 +9495,9 @@ msgstr "Chaque ligne a été importée avec succès."msgid "Every unit has a rate."msgstr "Chaque unité a un taux."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Tout le monde doit configurer une application d'authentification avant d'ouvrir cette société."@@ -20764,6 +20773,12 @@ msgstr "Numéro de série :"msgid "Serial Numbers"msgstr "Numéros de série"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Les numéros de série ne sont générés que pour les articles suivis en série ou en lot."@@ -26391,6 +26406,9 @@ msgstr "Quand la demande du client cesse d'être à jour ; après cette date, lamsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Quand les marchandises sont réellement arrivées ; enregistré sur le reçu et utilisé pour la notation de la ponctualité de livraison du fournisseur."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Lorsque la carte kanban est scannée, le travail est automatiquement déplacé hors du brouillon et libéré à l'étage."@@ -26412,6 +26430,9 @@ msgstr "Quand le fournisseur s'est engagé à livrer ; la planification utilisemsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Quand la tarification du fournisseur cesse d'être honorée ; convertir cette cotisation à un bon de commande après cette date peut nécessiter une nouvelle soumission."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Quand cet instrument de mesure doit être étalonné ; une fois en retard, il affiche Hors calibrage."diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex d19d2f0454..bef9831afd 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -1588,6 +1588,9 @@ msgstr "एक जॉब ऑपरेशन के विरुद्ध लॉmsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "एक टूल एक भौतिक आइटम है जिसका उपयोग एक पार्ट बनाने के लिए किया जाता है जिसे कई जॉब में उपयोग किया जा सकता है"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "एक इकाई को बिक्री के रूप में माना जाता है जब इनमें से कोई भी सत्य है, और अन्यथा किराया के रूप में।"@@ -7130,6 +7133,9 @@ msgstr "तय करें कि यदि कोई ऑपरेटर एकmsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "तय करें कि जब ऑपरेटर शॉप फ्लोर पर फिनिश दबाता है तो क्या होता है जब सामग्री अभी भी अनचुनी होती है।"+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "तय करें कि वर्क सेंटर में चुनी गई अप्रयुक्त सामग्री कब गोदाम में वापस जाए।"@@ -9489,6 +9495,9 @@ msgstr "हर पंक्ति सफलतापूर्वक आयातmsgid "Every unit has a rate."msgstr "प्रत्येक इकाई की एक दर है।"+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "इस कंपनी को खोलने से पहले सभी को प्रमाणकर्ता ऐप सेट अप करना होगा।"@@ -20764,6 +20773,12 @@ msgstr "सीरियल नंबर:"msgid "Serial Numbers"msgstr "सीरियल नंबर"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "सीरियल नंबर केवल सीरियल या बैच-ट्रैक किए गए आइटम के लिए उत्पन्न होते हैं।"@@ -26391,6 +26406,9 @@ msgstr "जब ग्राहक का अनुरोध वर्तमाmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "जब सामान वास्तव में आ गए; रसीद पर दर्ज किए गए और आपूर्तिकर्ता की समय पर डिलीवरी स्कोरिंग के लिए उपयोग किए गए।"+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "जब कानबान कार्ड को स्कैन किया जाता है, तो नौकरी स्वचालित रूप से ड्राफ्ट से बाहर चली जाती है और फर्श पर रिलीज के लिए जारी की जाती है।"@@ -26412,6 +26430,9 @@ msgstr "जब आपूर्तिकर्ता डिलीवरी केmsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "जब आपूर्तिकर्ता की मूल्य निर्धारण सम्मानित नहीं रह जाती है; इस तारीख के बाद इस उद्धरण को एक पीओ में परिवर्तित करने के लिए पुनः-उद्धरण की आवश्यकता हो सकती है।"+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "जब यह गेज अंशांकन के लिए देय हो जाता है; एक बार देय होने के बाद यह Out-of-Calibration पढ़ता है।"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex f0470f9196..49d94ab2d2 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -1588,6 +1588,9 @@ msgstr "Una registrazione temporale di Attrezzaggio, Manodopera, o lavoro di Macmsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Un utensile è un articolo fisico usato per fare un componente che può essere usato su più ordini di produzione"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Un'unità è trattata come vendita quando una di queste è vera, e come noleggio altrimenti."@@ -7130,6 +7133,9 @@ msgstr "Decidi cosa vede un operatore se tenta di emettere un lotto o un numeromsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Decidi cosa accade quando un operatore preme Fine in officina con materiale ancora non prelevato."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Decidere quando il materiale prelevato a un centro di lavoro ma non consumato ritorna al deposito."@@ -9489,6 +9495,9 @@ msgstr "Ogni riga è stata importata correttamente."msgid "Every unit has a rate."msgstr "Ogni unità ha un tasso."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Tutti devono configurare un'app autenticatore prima di aprire questa azienda."@@ -20764,6 +20773,12 @@ msgstr "Numero di Serie:"msgid "Serial Numbers"msgstr "Numeri di Serie"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "I numeri di serie vengono generati solo per articoli tracciati in serie o per lotto."@@ -26391,6 +26406,9 @@ msgstr "Quando la richiesta del cliente non è più attuale; dopo questa data, lmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Quando i beni sono effettivamente arrivati; registrato sulla ricevuta e utilizzato per il punteggio di puntualità di consegna del fornitore."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Quando la carta kanban viene scansionata, il lavoro viene automaticamente spostato dalla bozza e rilasciato al piano."@@ -26412,6 +26430,9 @@ msgstr "Quando il fornitore si è impegnato a consegnare; la pianificazione utilmsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Quando la determinazione dei prezzi del fornitore non è più onorata; la conversione di questa quotazione a un ordine di acquisto dopo questa data potrebbe richiedere una nuova quotazione."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Quando questo strumento di misura è scaduto per la taratura; una volta scaduto, indica Non tarato."diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex d1761af7f5..e220950af2 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -1588,6 +1588,9 @@ msgstr "ジョブ指図工程に対して記録された段取り、労務、まmsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "工具は部品を製造するために使用され、複数の製造指図で使用できる物理的アイテムです"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "以下のいずれかが当てはまる場合、個は売上として処理され、そうでない場合はレンタルとして処理されます。"@@ -7130,6 +7133,9 @@ msgstr "作業者が既に期限切れのバッチまたはシリアルを出庫msgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "作業者が製造現場で完了を押したときに、ピック待ちの材料がある場合に何が起こるかを決定します。"+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "作業区にピッキングされたが消費済みでない材料がいつ倉庫に戻されるかを決定"@@ -9489,6 +9495,9 @@ msgstr "すべての行が正常にインポートされました。"msgid "Every unit has a rate."msgstr "すべての個にレートが設定されています。"+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "この会社を開く前に、誰もが認証器アプリをセットアップする必要があります。"@@ -20764,6 +20773,12 @@ msgstr "シリアル番号:"msgid "Serial Numbers"msgstr "シリアル番号"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "シリアル番号は、シリアルまたはバッチ追跡アイテムに対してのみ生成されます。"@@ -26391,6 +26406,9 @@ msgstr "得意先のリクエストが現在のものでなくなった日。こmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "商品が実際に到着した日時。入荷に記録され、仕入先の定時配達スコアリングに使用されます。"+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "かんばんカードがスキャンされると、製造指図は自動的に下書きから移動され、フロアにリリース済となります。"@@ -26412,6 +26430,9 @@ msgstr "仕入先が配達を約束した日時。計画はこの日付を使用msgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "仕入先の価格設定が有効でなくなる日時。この日付以降にこの見積をPOに変換する場合、再見積が必要な場合があります。"+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "この測定器が校正の対象日となる日時。期限を過ぎるとOut-of-Calibrationと表示されます。"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 0b5367ca61..e68304b887 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -1588,6 +1588,9 @@ msgstr "작업 지시 공정에 기록된 셋업, 노무 또는 기계 작업의msgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "공구는 여러 작업 지시에 걸쳐 사용될 수 있는 부품을 만드는 데 사용되는 물리적 품목입니다"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "개가 다음 중 하나라도 참인 경우 판매로 취급되고, 그 외의 경우 임차로 취급됩니다."@@ -7130,6 +7133,9 @@ msgstr "작업자가 이미 만료된 배치 또는 직렬 번호를 불출하msgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "작업자가 아직 선택되지 않은 재료가 있는 상태에서 현장에서 완료를 누를 때 발생할 사항을 결정하십시오."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "작업장으로 이송했으나 소비하지 않은 재료가 창고로 반환되는 시기를 결정합니다."@@ -9489,6 +9495,9 @@ msgstr "모든 행이 성공적으로 가져와졌습니다."msgid "Every unit has a rate."msgstr "모든 단위에 요율이 있습니다."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "이 회사를 열기 전에 모든 사람이 인증기 앱을 설정해야 합니다."@@ -20764,6 +20773,12 @@ msgstr "시리얼 번호:"msgid "Serial Numbers"msgstr "시리얼 번호"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "시리얼 번호는 시리얼 또는 배치 추적 항목에만 생성됩니다."@@ -26391,6 +26406,9 @@ msgstr "고객의 요청이 더 이상 유효하지 않을 때; 이 날짜가msgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "재화가 실제로 도착한 시점으로, 입고에 기록되며 공급업체 정시 납품 평가에 사용됩니다."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "칸반 카드를 스캔하면 작업이 자동으로 초안 상태에서 벗어나 현장으로 릴리즈됩니다."@@ -26412,6 +26430,9 @@ msgstr "공급업체가 납품을 약속한 시점으로, 계획에서는 이msgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "공급업체의 가격이 더 이상 유효하지 않을 때; 이 날짜 이후에 이 견적서를 발주서로 전환하는 것은 다시 견적이 필요할 수 있습니다."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "이 계측기의 교정이 만료될 때; 만료되면 Out-of-Calibration으로 표시됩니다."diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex cbb874e80b..312d0c686d 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -1588,6 +1588,9 @@ msgstr "Zanotowany w czasie zapis pracy Przezbrojenia, Robocizny lub Maszyny zalmsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Narzędzie to rzeczywisty artykuł używany do produkcji części, które można stosować w wielu zleceniach produkcyjnych"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Sztuka jest traktowana jako sprzedaż, gdy którykolwiek z tych warunków jest spełniony, a w przeciwnym razie jako wynajem."@@ -7130,6 +7133,9 @@ msgstr "Zdecyduj, co operator widzi, jeśli spróbuje wydać partię lub numer smsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Zdecyduj, co się stanie, gdy operator naciśnie przycisk Zakończ na hali produkcyjnej, a materiał nie został jeszcze pobrany."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Zdecyduj, kiedy materiał pobrany na stanowisko robocze, ale niezużyty, wraca do magazynu."@@ -9489,6 +9495,9 @@ msgstr "Każdy wiersz został pomyślnie zaimportowany."msgid "Every unit has a rate."msgstr "Każda sztuka ma stawkę."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Każdy musi skonfigurować aplikację uwierzytelniającą przed otwarciem tej firmy."@@ -20764,6 +20773,12 @@ msgstr "Numer seryjny:"msgid "Serial Numbers"msgstr "Numery seryjne"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Numery seryjne są generowane tylko dla elementów śledzonych numerem seryjnym lub partią."@@ -26391,6 +26406,9 @@ msgstr "Gdy prośba klienta przestaje być aktualna; po tej dacie RFQ jest autommsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Kiedy towary faktycznie przybyły; zarejestrowane na paragonie i używane do oceny punktualności dostawy dostawcy."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Gdy karta kanban zostanie zeskanowana, zlecenie produkcyjne jest automatycznie przenoszone z wersji roboczej i zwalniane na halę."@@ -26412,6 +26430,9 @@ msgstr "Kiedy dostawca zobowiązał się do dostawy; planowanie wykorzystuje tęmsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Gdy wycena dostawcy przestaje być honorowana; konwersja tej oferty do PO po tej dacie może wymagać ponownego ofertowania."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Gdy ten przyrząd pomiarowy jest wymagany do wzorcowania; po upłynięciu terminu wyświetla Poza wzorcowaniem."diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 0cf8392660..6edb78f673 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -1588,6 +1588,9 @@ msgstr "Um registro cronometrado de trabalho de Setup, Mão de obra ou Máquinamsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Uma ferramenta é um item físico usado para fabricar uma peça que pode ser usada em múltiplas ordens de produção"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Uma unidade é tratada como venda quando qualquer uma destas for verdadeira e como aluguel caso contrário."@@ -7130,6 +7133,9 @@ msgstr "Decida o que um operador vê se tentar requisitar um lote de produçãomsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Decida o que acontece quando um operador pressiona Concluir no chão de fábrica com material ainda não retirado."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Decida quando o material coletado para um centro de trabalho, mas não consumido, flui de volta para o armazém."@@ -9489,6 +9495,9 @@ msgstr "Cada linha foi importada com sucesso."msgid "Every unit has a rate."msgstr "Cada unidade tem uma taxa."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Todos devem configurar um aplicativo autenticador antes de abrir esta empresa."@@ -20764,6 +20773,12 @@ msgstr "Número de Série:"msgid "Serial Numbers"msgstr "Números de Série"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Números de série são gerados apenas para itens rastreados por série ou lote."@@ -26391,6 +26406,9 @@ msgstr "Quando a solicitação do cliente deixa de ser atual; após esta data, amsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Quando os bens realmente chegaram; registrado na nota fiscal e usado para pontuar o desempenho de entrega no prazo do fornecedor."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Quando o cartão kanban é escaneado, o trabalho é automaticamente retirado do rascunho e liberado para o piso."@@ -26412,6 +26430,9 @@ msgstr "Quando o fornecedor se comprometeu a entregar; o planejamento usa esta dmsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Quando o preço do fornecedor deixa de ser honrado; converter este orçamento em Pedido de compra após esta data pode precisar de uma nova cotação."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Quando este Instrumento de medição vence para calibração; uma vez vencido, mostra Fora de calibração."diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 8ca604ea27..244f0cc8ed 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -1588,6 +1588,9 @@ msgstr "Фиксированная по времени запись работыmsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Инструмент — это физический предмет, используемый для производства детали, который можно использовать на нескольких производственных заказах"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Единица рассматривается как продажа, если выполнено одно из этих условий, в противном случае — как аренда."@@ -7130,6 +7133,9 @@ msgstr "Решите, что видит оператор при попыткеmsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Решите, что происходит, когда оператор нажимает «Завершить» на цехе с еще не отобранным материалом."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Решение о том, когда материал, отобранный в рабочий центр, но не использованный, поступает обратно на склад."@@ -9489,6 +9495,9 @@ msgstr "Каждая строка была успешно импортироваmsgid "Every unit has a rate."msgstr "Каждая единица имеет ставку."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Все должны установить приложение-аутентификатор перед открытием этой организации."@@ -20764,6 +20773,12 @@ msgstr "Серийный номер:"msgid "Serial Numbers"msgstr "Серийные номера"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Серийные номера генерируются только для серийных или партионно отслеживаемых товаров."@@ -26391,6 +26406,9 @@ msgstr "Когда запрос покупателя перестает бытьmsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Когда товары действительно прибыли; записано в квитанцию и используется для оценки доставки поставщика вовремя."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Когда карточка канбана сканируется, задание автоматически удаляется из черновика и выпускается на пол."@@ -26412,6 +26430,9 @@ msgstr "Когда поставщик обязался доставить; плmsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Когда ценообразование поставщика перестает действовать; преобразование этого Коммерческого предложения в Заказ поставщику после этой даты может потребовать переквотирования."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Когда это Средство измерения подлежит Калибровке; после истечения срока оно показывает « Вне калибровки »."diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 39ec50ea25..50b7b93c2e 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -1588,6 +1588,9 @@ msgstr "Bir iş emri operasyonuna karşı kaydedilen Hazırlık, İşçilik veyamsgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "Takım, bir Parça yapmak için kullanılan ve birden fazla İş emirlerine göre kullanılabilen fiziksel bir Stok kartıdır."+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "Bunlardan biri doğru olduğunda bir adet satış olarak muhasebeleştirilir, aksi takdirde kiralama olarak muhasebeleştirilir."@@ -7130,6 +7133,9 @@ msgstr "Süresi dolmuş bir Parti veya seri için Malzeme çıkışı yapmaya çmsgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "Bir operatör atölyede henüz çıkış yapılmamış malzeme varken Bitir'e bastığında ne olacağını belirleyin."+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "Bir iş merkezine alınan ancak tüketilmeyen malzemenin depoya geri akışının ne zaman gerçekleşeceğine karar verin."@@ -9489,6 +9495,9 @@ msgstr "Her satır başarıyla içe aktarıldı."msgid "Every unit has a rate."msgstr "Her adetin bir oranı vardır."+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "Herkes bu şirketi açmadan önce bir kimlik doğrulaması uygulaması kurması gerekir."@@ -20764,6 +20773,12 @@ msgstr "Seri Numarası:"msgid "Serial Numbers"msgstr "Seri Numaraları"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "Seri numaraları yalnızca seri- veya batch-izlenen öğeler için oluşturulur."@@ -26391,6 +26406,9 @@ msgstr "Müşterinin talebi geçerli olmaktan çıktığında; bu tarihten sonramsgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "Mallar gerçekten geldiğinde; makbuzda kaydedilmiş ve tedarikçinin zamanında teslimat puanlaması için kullanılmıştır."+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "Kanban kartı tarandığında, iş otomatik olarak taslaktan çıkarılır ve yere yayınlanır."@@ -26412,6 +26430,9 @@ msgstr "Tedarikçi teslim etmeyi ne zaman taahhüt etti; planlama bu tarihi gelemsgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "Tedarikçi fiyatlandırması artık kabul edilmediğinde; bu fiyatlandırmayı bu tarihten sonra bir PO'ya dönüştürmek yeniden fiyatlandırma gerektirebilir."+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "Bu ölçü aleti kalibrasyonun yapılması gerektiğinde; vadesi geçtikten sonra Kalibrasyondan Çıktı olarak okunur."diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 4e27d6ff52..b6e68d268b 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -1588,6 +1588,9 @@ msgstr "针对工单工序记录的换型、人工或机器工作的计时记录msgid "A tool is a physical item used to make a part that can be used across multiple jobs"msgstr "刀具是用于制造零件的物理物料,可在多个工单中使用"+msgid "A unit draws its number the first time it is worked on, scrapped or received, so cancelled jobs burn none."+msgstr ""+msgid "A unit is treated as a sale when any of these is true, and as a rental otherwise."msgstr "当以下任何条件为真时,件作为销售处理,否则作为租赁处理。"@@ -7130,6 +7133,9 @@ msgstr "决定操作员在尝试发放已过期的批次或序列号时看到的msgid "Decide what happens when an operator presses Finish on the shop floor with material still unpicked."msgstr "决定当操作员在车间按下完成时且原材料仍未拣货时发生的情况。"+msgid "Decide when a produced unit draws its number from the item's serial sequence. Items without a sequence are unaffected."+msgstr ""+msgid "Decide when material picked to a work center but not consumed flows back to the warehouse."msgstr "决定何时将拣货到工作中心但未消耗的原材料流回仓库。"@@ -9489,6 +9495,9 @@ msgstr "每一行都已成功导入。"msgid "Every unit has a rate."msgstr "每件都有费率。"+msgid "Every unit is numbered up front, so serials can be printed before work starts."+msgstr ""+msgid "Everyone must set up an authenticator app before opening this company."msgstr "每个人在打开此公司之前都必须设置身份验证器应用程序。"@@ -20764,6 +20773,12 @@ msgstr "序列号:"msgid "Serial Numbers"msgstr "序列号"+msgid "Serial numbers are drawn when a unit is produced"+msgstr ""++msgid "Serial numbers are drawn when the job is created"+msgstr ""+msgid "Serial numbers are only generated for serial- or batch-tracked items."msgstr "序列号仅为序列号或批次跟踪的物料生成。"@@ -26391,6 +26406,9 @@ msgstr "当客户请求不再最新时;此日期之后,RFQ将自动关闭,除非msgid "When the goods actually arrived; recorded on the receipt and used for supplier on-time-delivery scoring."msgstr "货物实际到达时;在收据上记录,用于供应商准时交货评分。"+msgid "When the job is created"+msgstr ""+msgid "When the kanban card is scanned, the job is automatically moved out of draft and released to the floor."msgstr "当扫描看板卡时,工单自动从草稿移出并已下达到工厂。"@@ -26412,6 +26430,9 @@ msgstr "供应商何时承诺交货;计划使用该日期进行入库库存到msgid "When the supplier's pricing stops being honored; converting this quote to a PO after this date may need re-quoting."msgstr "供应商定价不再被遵守时;此日期之后将该报价转换为PO可能需要重新报价。"+msgid "When the unit is produced"+msgstr ""+msgid "When this gauge becomes due for calibration; once past due it reads Out-of-Calibration."msgstr "该量具何时需要校准;过期后读数显示为失准。"