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): release selected jobs from the jobs table
naveenkash9739f3903bfa
diff --git a/.ai/lessons.md b/.ai/lessons.mdindex a181456bcb..1643c4f2f6 100644--- a/.ai/lessons.md+++ b/.ai/lessons.md@@ -2229,7 +2229,9 @@ invisible to the missing-translation gate because the placeholder IS filled.**Rule:** Never put a pluralizing (or any word-choosing) ternary inside a`t` tagged template or `<Trans>`. Use the ICU plural macro: `<Plural value={n}one="# day" other="# days" />` from `@lingui/react/macro` (or `plural()` in-non-JSX). The whole phrase with `#` goes in each branch+non-JSX — but not inside a `memo(…)`-wrapped component, see "Lingui: `plural()`+inside a `memo(…)` component calls the global i18n" below). The whole phrase+with `#` goes in each branch(`one="# operation has no time standards"`), so the words are extracted andtranslated. After adding one, re-run `lingui:extract` + `/translate` — the newICU msgid needs its own filled `msgstr` per locale (locales with more CLDR@@ -2999,3 +3001,14 @@ tag until proven otherwise.**Rule:** A prefetch only helps if the browser may reuse its response. Give a prefetch response (`Sec-Purpose: prefetch`) a short `private` lifetime and leave every other response uncached; `prefetchCacheMiddleware` (`@carbon/utils`) does it in each app's root `middleware`, the fix React Router points to (remix-run/react-router#13255). Measure a prefetch by click-to-page time, not by whether the request was sent. A first fix removed the prefetch instead (`6e3bdf7bc6`); it worked but threw away the head start.**Applies to:** `packages/react/src/PrefetchLink.tsx`; `packages/utils/src/prefetch.ts`; any `<Link prefetch>` or `PrefetchPageLinks`; a revalidation started while a navigation to the same URL is loading.+++## Lingui: `plural()` inside a `memo(…)` component calls the global i18n++**Context:** The jobs table's bulk-release toast needed "Released 1 job" / "Released N jobs". The table is `memo((props) => { … })`, and the toast text was written as `` t`${plural(count, { one: "Released # job", other: "Released # jobs" })}` `` with `t` from `useLingui()` and `plural` from `@lingui/core/macro`.++**Problem:** Lingui 6.9.0's macro transform folds a nested `plural()` into the surrounding `t` only when the component or hook is a function declaration or a plain `const X = () => …`. When the function is an inline ARGUMENT of a call (`memo((props) => …)`), the `plural()` is expanded on its own into `i18n._(…)` on the global `@lingui/core` instance, and the outer `t` becomes `{0}` with that call as its value. The global instance is never activated here (see `.claude/rules/i18n-lingui-system.md`), so the string throws "Attempted to call a translation function without setting a locale" the first time it is built. Typecheck, Biome and `lingui:extract` all pass: the catalog shows a normal ICU plural msgid. Only the compiled output shows it.++**Rule:** Do not call `plural()` (or `select()`) from `@lingui/core/macro` inside a component passed inline to `memo(…)` or any other call. Use `<Plural>` in JSX. For a string (a toast), either build it in a function-declaration hook (`function useX() { const { t } = useLingui(); return (n: number) => t`${plural(n, …)}`; }`), or choose between two whole `t` phrases (``n === 1 ? t`Released 1 job` : t`Released ${n} jobs` ``) — both phrases are extracted and translated, but a locale with more plural forms gets only two. When in doubt, read the compiled module (Vite `transformRequest` on the file) and check for an import of `i18n` from `@lingui/core`.++**Applies to:** every `memo(…)` component in `apps/{erp,mes}/app` and `packages/{react,form}/src` (most ERP tables); any new use of `plural` / `select` from `@lingui/core/macro`.diff --git a/.claude/rules/i18n-lingui-system.md b/.claude/rules/i18n-lingui-system.mdindex bceaa77f62..55635db0a7 100644--- a/.claude/rules/i18n-lingui-system.md+++ b/.claude/rules/i18n-lingui-system.md@@ -96,6 +96,15 @@ its query; delete it once Lingui strips the query itself.(e.g. `assignments.tsx` columns memo, dep `[t]`).- **Never `import { t }` from `@lingui/core/macro`** in app code (currently zero suchimports — only `{ msg }` is imported from `core/macro`).+- **Plurals:** `<Plural value={n} one="# day" other="# days" />` from+ `@lingui/react/macro` in JSX. `plural()` from `@lingui/core/macro` nested in+ `useLingui().t` is folded into the `t` message only when the component or hook is a+ function declaration or a plain `const X = () => …`. Inside a component passed inline+ to a call — `memo((props) => …)`, which is most ERP tables — Lingui 6.9.0 expands it+ into a call on the global `@lingui/core` instance instead, which throws at runtime+ for the reason above. Extract, typecheck and Biome do not catch it. There, build the+ string in a function-declaration hook, or choose between two whole `t` phrases+ (`JobsTable.tsx`, `BatchesTable.tsx`). No app code calls `plural()` today.## Adding strings / localesdiff --git a/apps/erp/app/modules/production/AGENTS.md b/apps/erp/app/modules/production/AGENTS.mdindex 5cd5aeec14..e7669883dc 100644--- a/apps/erp/app/modules/production/AGENTS.md+++ b/apps/erp/app/modules/production/AGENTS.md@@ -84,6 +84,7 @@ pnpm --filter @carbon/erp test- `convertSalesOrderLinesToJobs` — creates jobs from sales order Make to Order lines; each job takes the order line's `configuration` (else the converted quote line's, via `resolveJobConfiguration` in `~/modules/sales`) and is built with `itemToJob` instead of `quoteLineToJob` when the order line was reconfigured- `getJob` / `getJobs` / `getJobMethodTree` / `getJobMethodTreeArray` — job reads with method hierarchy+- `releaseJobs` (`production.server.ts`) — the one release path (recalc, MRP, status Ready, outside-operation POs, releasedDate); returns the supplier→PO map with the POs it created so a caller releasing job by job keeps one PO per supplier. Callers: the job Release dialog (`$jobId.status.tsx`), batch release (`releaseBatchMemberJobs`), and the jobs table's bulk **Release Jobs** action (`x+/job+/release.tsx`, `path.to.bulkReleaseJob`). Bulk release has no dialog: each selected Draft/Planned job is checked on its own (`getJobReleaseReadiness` once for the selection — every read goes through `fetchAllByIds`, which sends each id list in groups of 100 (an `in` filter rides in the URL) and pages each group with `fetchAllRecords` (a page of jobs passes PostgREST's 1000-row cap); pinned by `test/job-release-readiness.test.ts` — `jobReleaseProblems` in `ui/Jobs/job-release-logic.ts`, plus zero quantity and — via the per-job `supplierIds` — a supplier with Draft POs to choose from); a job with a problem is skipped and named in the toast's `failed` list, the rest release, then `runLocationSchedule` runs once per location. Pinned by `routes/x+/job+/release.test.ts`- `getJobMaterialsWithQuantityOnHand` — BOM with on-hand for shortfall visibility- `getJobMaterialShortfallByItem` — priority-adjusted shortfall calculation- `getJobOrderStatusMap` — procurement status indicators per materialdiff --git a/apps/erp/app/modules/production/production.server.ts b/apps/erp/app/modules/production/production.server.tsindex ffcb69655f..286b034ff6 100644--- a/apps/erp/app/modules/production/production.server.ts+++ b/apps/erp/app/modules/production/production.server.ts@@ -15,6 +15,7 @@ import {runMRP,updateJobStatus} from "./production.service";+import { jobReleaseProblems } from "./ui/Jobs/job-release-logic";// The geometry (assembler) service backs model conversion and motion planning.// When it's unreachable those actions can't run, so loaders probe its health and@@ -72,7 +73,8 @@ export async function isAssemblerServiceHealthy(): Promise<boolean> {//// `purchaseOrdersBySupplierId` maps a supplier to "new" or a Draft PO id; a// supplier's first "new" PO is reused for the jobs after it, so a batch puts-// each supplier's outside operations from every member job on one PO.+// each supplier's outside operations from every member job on one PO. The map+// is returned with those POs filled in, for a caller releasing job by job.// Validation (getJobReleaseReadiness) is the caller's, BEFORE this runs.export async function releaseJobs({client,@@ -88,7 +90,10 @@ export async function releaseJobs({companyId: string;userId: string;purchaseOrdersBySupplierId: Record<string, string>;-}): Promise<{ error: string | null }> {+}): Promise<{+ error: string | null;+ purchaseOrdersBySupplierId: Record<string, string>;+}> {const serviceRole = getCarbonServiceRole();const purchaseOrders = { ...purchaseOrdersBySupplierId };@@ -98,7 +103,12 @@ export async function releaseJobs({companyId,userId});- if (recalc.error) return { error: `Failed to recalculate job ${id}` };+ if (recalc.error) {+ return {+ error: `Failed to recalculate job ${id}`,+ purchaseOrdersBySupplierId: purchaseOrders+ };+ }await runMRP(serviceRole, db, { type: "job", id, companyId, userId });@@ -108,7 +118,12 @@ export async function releaseJobs({status: "Ready",updatedBy: userId});- if (update.error) return { error: `Failed to release job ${id}` };+ if (update.error) {+ return {+ error: `Failed to release job ${id}`,+ purchaseOrdersBySupplierId: purchaseOrders+ };+ }const purchaseOrder = await serverFns.system({ db, companyId, userId })@@ -122,7 +137,8 @@ export async function releaseJobs({error: getErrorMessage(purchaseOrder.error,`Failed to create purchase orders for job ${id}`- )+ ),+ purchaseOrdersBySupplierId: purchaseOrders};}Object.assign(@@ -136,7 +152,7 @@ export async function releaseJobs({.eq("id", id).eq("companyId", companyId);}- return { error: null };+ return { error: null, purchaseOrdersBySupplierId: purchaseOrders };}// Releasing a batch releases its Draft/Planned member jobs through the same@@ -177,25 +193,9 @@ export async function releaseBatchMemberJobs({return { error: "Failed to validate the batch's jobs" };}- const problems = readiness.data.jobs.flatMap((job) => [- ...(job.manufacturingBlocked- ? [`${job.jobId}: manufacturing is blocked`]- : []),- ...(job.missingAssemblies.length > 0- ? [- `${job.jobId}: no operations on ${job.missingAssemblies- .map((m) => m.description)- .join(", ")}`- ]- : []),- // No per-operation supplier picker here: an ambiguous or missing supplier- // is settled on the job's own Release.- ...job.outsideOperationsWithoutSupplier.map((op) =>- op.missing === "choose"- ? `${job.jobId}: choose a supplier for ${op.description} on the job`- : `${job.jobId}: ${op.description} has no supplier`- )- ]);+ const problems = readiness.data.jobs.flatMap((job) =>+ jobReleaseProblems(job).map((problem) => `${job.jobId}: ${problem}`)+ );if (problems.length > 0) {return { error: `Fix these jobs before releasing: ${problems.join("; ")}` };}diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.tsindex 5b715078b4..169d6e8ea5 100644--- a/apps/erp/app/modules/production/production.service.ts+++ b/apps/erp/app/modules/production/production.service.ts@@ -16,6 +16,7 @@ import type { JSONContent } from "@carbon/react";import { type ServerFnInput, serverFns } from "@carbon/server-functions";import {async,+ chunkArray,datetime,getErrorMessage,groupBy,@@ -2903,6 +2904,29 @@ export async function updateJobBatchNumber(.select("id, readableId");}+// An `in` filter rides in the request URL and a response stops at PostgREST's+// row cap, so a read keyed by an id list walks the ids in groups and pages each+// group. A read cut short either way would say "nothing there" for the rest.+const IN_FILTER_BATCH_SIZE = 100;++async function fetchAllByIds<T extends object>(+ ids: string[],+ buildQuery: (batch: string[]) => {+ range(+ from: number,+ to: number+ ): PromiseLike<{ data: T[] | null; error: PostgrestError | null }>;+ }+): Promise<{ data: T[] | null; error: PostgrestError | null }> {+ const rows: T[] = [];+ for (const batch of chunkArray(ids, IN_FILTER_BATCH_SIZE)) {+ const result = await fetchAllRecords(() => buildQuery(batch));+ if (result.error) return { data: null, error: result.error };+ rows.push(...result.data);+ }+ return { data: rows, error: null };+}+export type JobReleaseReadiness = {jobs: {id: string;@@ -2917,6 +2941,8 @@ export type JobReleaseReadiness = {description: string;missing: "none" | "choose";}[];+ // The suppliers this job's outside operations go on a purchase order for.+ supplierIds: string[];}[];// Suppliers whose outside operations release will put on a purchase order,// with the Draft POs the planner may add them to instead of a new one.@@ -2939,33 +2965,45 @@ export async function getJobReleaseReadiness(return { data: { jobs: [], suppliers: [] }, error: null };const [jobs, roots, materials, operations] = await Promise.all([- client- .from("job")- .select(- "id, jobId, status, item(itemReplenishment(manufacturingBlocked))"- )- .in("id", jobIds)- .eq("companyId", companyId),- client- .from("jobMakeMethod")- .select("id, jobId")- .in("jobId", jobIds)- .eq("companyId", companyId)- .is("parentMaterialId", null),- client- .from("jobMaterialWithMakeMethodId")- .select(- "jobId, jobMaterialMakeMethodId, methodType, kit, description, itemReadableId"- )- .in("jobId", jobIds)- .eq("companyId", companyId),- client- .from("jobOperation")- .select(- "id, jobId, jobMakeMethodId, operationType, operationSupplierProcessId, processId, description"- )- .in("jobId", jobIds)- .eq("companyId", companyId)+ fetchAllByIds(jobIds, (batch) =>+ client+ .from("job")+ .select(+ "id, jobId, status, item(itemReplenishment(manufacturingBlocked))"+ )+ .in("id", batch)+ .eq("companyId", companyId)+ .order("id")+ ),+ fetchAllByIds(jobIds, (batch) =>+ client+ .from("jobMakeMethod")+ .select("id, jobId")+ .in("jobId", batch)+ .eq("companyId", companyId)+ .is("parentMaterialId", null)+ .order("id")+ ),+ fetchAllByIds(jobIds, (batch) =>+ client+ .from("jobMaterialWithMakeMethodId")+ .select(+ "jobId, jobMaterialMakeMethodId, methodType, kit, description, itemReadableId"+ )+ .in("jobId", batch)+ .eq("companyId", companyId)+ .order("id")+ ),+ fetchAllByIds(jobIds, (batch) =>+ client+ .from("jobOperation")+ .select(+ "id, jobId, jobMakeMethodId, operationType, operationSupplierProcessId, processId, description"+ )+ .in("jobId", batch)+ .eq("companyId", companyId)+ .order("id")+ )]);const failed =jobs.error ?? roots.error ?? materials.error ?? operations.error;@@ -2974,13 +3012,14 @@ export async function getJobReleaseReadiness(const outsideOperationIds = (operations.data ?? []).filter((op) => op.operationType === "Outside Processing").map((op) => op.id);- const purchaseOrderLines = outsideOperationIds.length- ? await client- .from("purchaseOrderLine")- .select("jobOperationId")- .in("jobOperationId", outsideOperationIds)- .eq("companyId", companyId)- : { data: [], error: null };+ const purchaseOrderLines = await fetchAllByIds(outsideOperationIds, (batch) =>+ client+ .from("purchaseOrderLine")+ .select("jobOperationId")+ .in("jobOperationId", batch)+ .eq("companyId", companyId)+ .order("id")+ );if (purchaseOrderLines.error)return { data: null, error: purchaseOrderLines.error };@@ -3007,20 +3046,22 @@ export async function getJobReleaseReadiness()];const [ownSupplierProcesses, processSupplierProcesses] = await Promise.all([- ownSupplierProcessIds.length- ? client- .from("supplierProcess")- .select("id, supplierId, processId")- .in("id", ownSupplierProcessIds)- .eq("companyId", companyId)- : { data: [], error: null },- processIds.length- ? client- .from("supplierProcess")- .select("id, supplierId, processId")- .in("processId", processIds)- .eq("companyId", companyId)- : { data: [], error: null }+ fetchAllByIds(ownSupplierProcessIds, (batch) =>+ client+ .from("supplierProcess")+ .select("id, supplierId, processId")+ .in("id", batch)+ .eq("companyId", companyId)+ .order("id")+ ),+ fetchAllByIds(processIds, (batch) =>+ client+ .from("supplierProcess")+ .select("id, supplierId, processId")+ .in("processId", batch)+ .eq("companyId", companyId)+ .order("id")+ )]);const supplierProcessError =ownSupplierProcesses.error ?? processSupplierProcesses.error;@@ -3058,14 +3099,16 @@ export async function getJobReleaseReadiness(resolved.filter(({ supplier }) => "missing" in supplier),({ op }) => op.jobId);- const drafts = supplierIds.length- ? await client- .from("purchaseOrder")- .select("id, purchaseOrderId, supplierId")- .eq("status", "Draft")- .in("supplierId", supplierIds)- .eq("companyId", companyId)- : { data: [], error: null };+ const resolvedByJob = groupBy(resolved, ({ op }) => op.jobId);+ const drafts = await fetchAllByIds(supplierIds, (batch) =>+ client+ .from("purchaseOrder")+ .select("id, purchaseOrderId, supplierId")+ .eq("status", "Draft")+ .in("supplierId", batch)+ .eq("companyId", companyId)+ .order("id")+ );if (drafts.error) return { data: null, error: drafts.error };const materialsByJob = groupBy(materials.data ?? [], (m) => m.jobId ?? "");@@ -3103,7 +3146,16 @@ export async function getJobReleaseReadiness(id: op.id,description: op.description ?? op.id,missing: "missing" in supplier ? supplier.missing : "none"- }))+ })),+ supplierIds: [+ ...new Set(+ (resolvedByJob[job.id] ?? []).flatMap(({ supplier }) =>+ "supplierProcess" in supplier+ ? [supplier.supplierProcess.supplierId]+ : []+ )+ )+ ]})),suppliers: supplierIds.map((supplierId) => ({supplierId,diff --git a/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx b/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsxindex 8fb680e659..fb8ecb3b30 100644--- a/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx+++ b/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx@@ -202,7 +202,13 @@ const BatchesTable = memo(({ data, count }: BatchesTableProps) => {toast.error(d.message);return;}- if (d.dissolved) toast.success(t`Dissolved ${d.dissolved} batches`);+ if (d.dissolved) {+ toast.success(+ d.dissolved === 1+ ? t`Dissolved 1 batch`+ : t`Dissolved ${d.dissolved} batches`+ );+ }if (d.failed?.length) {toast.error(t`Could not dissolve ${d.failed.length}: ${d.failed@@ -236,7 +242,13 @@ const BatchesTable = memo(({ data, count }: BatchesTableProps) => {toast.error(d.message);return;}- if (d.released) toast.success(t`Released ${d.released} batches`);+ if (d.released) {+ toast.success(+ d.released === 1+ ? t`Released 1 batch`+ : t`Released ${d.released} batches`+ );+ }if (d.failed?.length) {toast.error(t`Could not release ${d.failed.length}: ${d.failed@@ -272,7 +284,9 @@ const BatchesTable = memo(({ data, count }: BatchesTableProps) => {}><DropdownMenuIcon icon={<LuCirclePlay />} />- {t`Release ${releasable.length} batches`}+ {releasable.length === 1+ ? t`Release 1 batch`+ : t`Release ${releasable.length} batches`}</DropdownMenuItem><DropdownMenuItemdestructive@@ -289,7 +303,9 @@ const BatchesTable = memo(({ data, count }: BatchesTableProps) => {}><DropdownMenuIcon icon={<LuTrash />} />- {t`Dissolve ${dissolvable.length} batches`}+ {dissolvable.length === 1+ ? t`Dissolve 1 batch`+ : t`Dissolve ${dissolvable.length} batches`}</DropdownMenuItem></DropdownMenuContent>);diff --git a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsxindex ee16bbaae0..b8dd2171e4 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx@@ -33,6 +33,7 @@ import { AiOutlinePartition } from "react-icons/ai";import {LuBookMarked,LuCalendar,+ LuCirclePlay,LuClock,LuHash,LuLayers,@@ -61,6 +62,7 @@ import { useLocations } from "~/components/Form/Location";import { ConfirmDelete } from "~/components/Modals";import { usePermissions, useUrlParams, useUser } from "~/hooks";import { useCustomColumns } from "~/hooks/useCustomColumns";+import type { action as releaseAction } from "~/routes/x+/job+/release";import type { action } from "~/routes/x+/job+/update";import { useCustomers, useParts, usePeople, useTools } from "~/stores";import { path } from "~/utils/path";@@ -688,8 +690,40 @@ const JobsTable = memo((props: JobsTableProps) => {[]);+ // Bulk release for the selected rows — Draft and Planned jobs only. Posts the+ // ids to the release action, which holds each job to the job page's release+ // checks and releases the ones that pass; we toast the summary.+ const releaseFetcher = useAction<typeof releaseAction>({+ onSuccess: (result) => {+ if (!result.success) return;+ if (result.released) {+ toast.success(+ result.released === 1+ ? t`Released 1 job`+ : t`Released ${result.released} jobs`+ );+ }+ if (result.failed.length) {+ toast.error(+ t`Could not release ${result.failed.length}: ${result.failed+ .map((f) => `${f.readableId} (${f.message})`)+ .join(", ")}`+ );+ }+ if (!result.scheduled) {+ toast.error(t`The schedule could not be updated after the release`);+ }+ },+ onError: (result) => {+ if (!result.success) toast.error(result.message);+ }+ });+const renderActions = useCallback((selectedRows: typeof data) => {+ const releasable = selectedRows.filter(+ (row) => row.status === "Draft" || row.status === "Planned"+ );return (<DropdownMenuContent align="end" className="min-w-[200px]"><DropdownMenuLabel>@@ -697,6 +731,26 @@ const JobsTable = memo((props: JobsTableProps) => {</DropdownMenuLabel><DropdownMenuSeparator /><DropdownMenuGroup>+ <DropdownMenuItem+ disabled={+ !permissions.can("update", "production") ||+ releasable.length === 0 ||+ releaseFetcher.isPending+ }+ onClick={() =>+ releaseFetcher.submit(+ { jobIds: releasable.flatMap((row) => row.id ?? []) },+ {+ method: "post",+ action: path.to.bulkReleaseJob,+ encType: "application/json"+ }+ )+ }+ >+ <MenuIcon icon={<LuCirclePlay />} />+ <Trans>Release Jobs</Trans>+ </DropdownMenuItem><DropdownMenuItemdisabled={!permissions.can("delete", "production") ||@@ -721,7 +775,7 @@ const JobsTable = memo((props: JobsTableProps) => {</DropdownMenuContent>);},- [onBulkUpdate, permissions]+ [onBulkUpdate, permissions, releaseFetcher]);// biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migrationdiff --git a/apps/erp/app/modules/production/ui/Jobs/job-release-logic.ts b/apps/erp/app/modules/production/ui/Jobs/job-release-logic.tsindex 856762b0f7..7669b6c71d 100644--- a/apps/erp/app/modules/production/ui/Jobs/job-release-logic.ts+++ b/apps/erp/app/modules/production/ui/Jobs/job-release-logic.ts@@ -86,3 +86,33 @@ export function resolveOperationSupplier(if (candidates.length === 1) return { supplierProcess: candidates[0]! };return { missing: candidates.length === 0 ? "none" : "choose" };}++// What stands between a job and release, in words. A release with no dialog to+// settle these in (bulk job release, batch release) refuses the job and names+// them; the job's own Release dialog is where they are fixed.+export function jobReleaseProblems(job: {+ manufacturingBlocked: boolean;+ missingAssemblies: { description: string }[];+ outsideOperationsWithoutSupplier: {+ description: string;+ missing: "none" | "choose";+ }[];+}): string[] {+ return [+ ...(job.manufacturingBlocked ? ["manufacturing is blocked"] : []),+ ...(job.missingAssemblies.length > 0+ ? [+ `no operations on ${job.missingAssemblies+ .map((m) => m.description)+ .join(", ")}`+ ]+ : []),+ // No per-operation supplier picker here: an ambiguous or missing supplier+ // is settled on the job's own Release.+ ...job.outsideOperationsWithoutSupplier.map((op) =>+ op.missing === "choose"+ ? `choose a supplier for ${op.description} on the job`+ : `${op.description} has no supplier`+ )+ ];+}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.jsonindex 70178007a9..139f1b5d1c 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json@@ -694,7 +694,7 @@{"name":"production_getJobPromiseDate","classification":"READ","paramCount":1,"schema":"4999bd4be598","response":"f6521bc077a4","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getJobPurchaseOrderLines","classification":"READ","paramCount":1,"schema":"4999bd4be598","response":"309dea2a265c","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getJobReceiptSnapshot","classification":"READ","paramCount":1,"schema":"4999bd4be598","response":"af63ddd51939","injectAuth":"companyId","permission":"production:view","paginates":false},- {"name":"production_getJobReleaseReadiness","classification":"READ","paramCount":1,"schema":"267b4780c1d3","response":"e79774d3c8e8","injectAuth":"companyId","permission":"production:view","paginates":false},+ {"name":"production_getJobReleaseReadiness","classification":"READ","paramCount":1,"schema":"267b4780c1d3","response":"24be23319468","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getJobs","classification":"READ","paramCount":1,"schema":"ed8b79d0644f","response":"630059095fdc","injectAuth":"companyId","permission":"production:view","paginates":true,"defaults":"always"},{"name":"production_getJobsByDateRange","classification":"READ","paramCount":3,"schema":"00794c516592","response":"737259a0d747","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getJobsBySalesOrderLine","classification":"READ","paramCount":1,"schema":"58e3c9762923","response":"630059095fdc","injectAuth":"companyId","permission":"production:view","paginates":false},diff --git a/apps/erp/app/routes/x+/job+/$jobId.status.test.ts b/apps/erp/app/routes/x+/job+/$jobId.status.test.tsindex 2d7b1c7880..d6718a13c0 100644--- a/apps/erp/app/routes/x+/job+/$jobId.status.test.ts+++ b/apps/erp/app/routes/x+/job+/$jobId.status.test.ts@@ -88,7 +88,7 @@ vi.mock("~/modules/production/production.server", async () => {updatedBy: userId});}- return { error: null };+ return { error: null, purchaseOrdersBySupplierId: {} };})};});@@ -159,7 +159,8 @@ function setup() {status: "Draft",manufacturingBlocked: false,missingAssemblies: [],- outsideOperationsWithoutSupplier: []+ outsideOperationsWithoutSupplier: [],+ supplierIds: []}],suppliers: []@@ -249,7 +250,8 @@ describe("Job release status action", () => {missingAssemblies: [{ makeMethodId: "mm-2", description: "Bracket" }],- outsideOperationsWithoutSupplier: []+ outsideOperationsWithoutSupplier: [],+ supplierIds: []}],suppliers: []diff --git a/apps/erp/app/routes/x+/job+/release.test.ts b/apps/erp/app/routes/x+/job+/release.test.tsnew file mode 100644index 0000000000..035599318b--- /dev/null+++ b/apps/erp/app/routes/x+/job+/release.test.ts@@ -0,0 +1,307 @@+// 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 { requirePermissions } from "@carbon/auth/auth.server";+import { runLocationSchedule } from "@carbon/planning";+import { beforeEach, describe, expect, it, vi } from "vitest";++vi.mock("@carbon/auth", () => ({+ assertIsPost: vi.fn()+}));+vi.mock("@carbon/auth/auth.server", () => ({+ requirePermissions: vi.fn()+}));+vi.mock("@carbon/auth/client.server", () => ({+ getCarbonServiceRole: vi.fn(() => ({}))+}));+vi.mock("@carbon/planning", () => ({+ runLocationSchedule: vi.fn()+}));+vi.mock("@carbon/logger", () => ({+ getLogger: () => ({ error: vi.fn() })+}));+vi.mock("~/services/database.server", () => ({+ getDatabaseClient: vi.fn(() => ({}))+}));+vi.mock("~/modules/production", () => ({+ getJobReleaseReadiness: vi.fn()+}));+vi.mock("~/modules/production/production.server", () => ({+ releaseJobs: vi.fn()+}));++import { getJobReleaseReadiness } from "~/modules/production";+import { releaseJobs } from "~/modules/production/production.server";+import { action } from "./release";++type JobRow = {+ id: string;+ jobId: string;+ status: string;+ quantity: number;+ scrapQuantity: number;+ locationId: string;+};++const job = (id: string, overrides: Partial<JobRow> = {}): JobRow => ({+ id,+ jobId: id.toUpperCase(),+ status: "Planned",+ quantity: 10,+ scrapQuantity: 0,+ locationId: "location-1",+ ...overrides+});++const ready = (id: string, overrides: Record<string, unknown> = {}) => ({+ id,+ jobId: id.toUpperCase(),+ status: "Planned" as const,+ manufacturingBlocked: false,+ missingAssemblies: [],+ outsideOperationsWithoutSupplier: [],+ supplierIds: [] as string[],+ ...overrides+});++// The selected jobs behind a chainable, thenable client stand-in that applies+// the `in` filter on the id. `inFilterSizes` records how many ids each carried.+function setup(jobs: JobRow[]) {+ const inFilterSizes: number[] = [];+ const from = vi.fn(() => {+ let rows = jobs;+ const chain: Record<string, any> = {};+ for (const method of ["select", "eq", "order"]) {+ chain[method] = vi.fn(() => chain);+ }+ chain.in = vi.fn((_column: string, ids: string[]) => {+ inFilterSizes.push(ids.length);+ rows = rows.filter((row) => ids.includes(row.id));+ return chain;+ });+ chain.then = (+ resolve: (value: { data: JobRow[]; error: null }) => unknown+ ) => Promise.resolve({ data: rows, error: null }).then(resolve);+ return chain;+ });++ vi.mocked(requirePermissions).mockResolvedValue({+ client: { from },+ companyId: "company-1",+ userId: "user-1"+ } as any);+ return { inFilterSizes };+}++const request = (jobIds: string[]) =>+ new Request("http://localhost/x/job/release", {+ method: "POST",+ body: JSON.stringify({ jobIds }),+ headers: { "Content-Type": "application/json" }+ });++const run = (jobIds: string[]) =>+ action({ request: request(jobIds), params: {}, context: {} } as any);++beforeEach(() => {+ vi.clearAllMocks();+ vi.mocked(releaseJobs).mockImplementation(+ async ({ purchaseOrdersBySupplierId }) => ({+ error: null,+ purchaseOrdersBySupplierId+ })+ );+});++describe("bulk job release", () => {+ it("releases Draft and Planned jobs and skips the rest of the selection", async () => {+ setup([+ job("j1", { status: "Draft" }),+ job("j2"),+ job("j3", { status: "In Progress" })+ ]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: { jobs: [ready("j1"), ready("j2")], suppliers: [] },+ error: null+ });++ const result = await run(["j1", "j2", "j3"]);++ expect(vi.mocked(getJobReleaseReadiness).mock.calls[0]?.[1]).toEqual([+ "j1",+ "j2"+ ]);+ expect(+ vi.mocked(releaseJobs).mock.calls.map(([args]) => args.jobIds)+ ).toEqual([["j1"], ["j2"]]);+ expect(result).toEqual({+ success: true,+ released: 2,+ failed: [],+ scheduled: true+ });+ });++ it("names a job that is not ready and still releases the others", async () => {+ setup([job("j1"), job("j2"), job("j3", { quantity: 0 })]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: {+ jobs: [+ ready("j1", { manufacturingBlocked: true }),+ ready("j2"),+ ready("j3")+ ],+ suppliers: []+ },+ error: null+ });++ const result = await run(["j1", "j2", "j3"]);++ expect(+ vi.mocked(releaseJobs).mock.calls.map(([args]) => args.jobIds)+ ).toEqual([["j2"]]);+ expect(result).toMatchObject({+ released: 1,+ failed: [+ { readableId: "J1", message: "manufacturing is blocked" },+ { readableId: "J3", message: "nothing to make" }+ ]+ });+ });++ it("skips a job whose supplier has a draft purchase order to choose from", async () => {+ setup([job("j1"), job("j2")]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: {+ jobs: [+ ready("j1", { supplierIds: ["supplier-a"] }),+ ready("j2", { supplierIds: ["supplier-b"] })+ ],+ suppliers: [+ {+ supplierId: "supplier-a",+ draftPurchaseOrders: [{ id: "po-1", purchaseOrderId: "PO000001" }]+ },+ { supplierId: "supplier-b", draftPurchaseOrders: [] }+ ]+ },+ error: null+ });++ const result = await run(["j1", "j2"]);++ expect(+ vi.mocked(releaseJobs).mock.calls.map(([args]) => args.jobIds)+ ).toEqual([["j2"]]);+ expect(result).toMatchObject({+ released: 1,+ failed: [+ {+ readableId: "J1",+ message:+ "choose a purchase order for its outside operations on the job"+ }+ ]+ });+ });++ it("puts later jobs on the purchase order an earlier job created", async () => {+ setup([job("j1"), job("j2")]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: {+ jobs: [+ ready("j1", { supplierIds: ["supplier-a"] }),+ ready("j2", { supplierIds: ["supplier-a"] })+ ],+ suppliers: [{ supplierId: "supplier-a", draftPurchaseOrders: [] }]+ },+ error: null+ });+ vi.mocked(releaseJobs).mockResolvedValue({+ error: null,+ purchaseOrdersBySupplierId: { "supplier-a": "po-new" }+ });++ await run(["j1", "j2"]);++ expect(+ vi+ .mocked(releaseJobs)+ .mock.calls.map(([args]) => args.purchaseOrdersBySupplierId)+ ).toEqual([{ "supplier-a": "new" }, { "supplier-a": "po-new" }]);+ });++ it("reports a job the release path refused and schedules each location once", async () => {+ setup([+ job("j1"),+ job("j2"),+ job("j3"),+ job("j4", { locationId: "location-2" })+ ]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: {+ jobs: [ready("j1"), ready("j2"), ready("j3"), ready("j4")],+ suppliers: []+ },+ error: null+ });+ vi.mocked(releaseJobs).mockImplementation(async ({ jobIds }) => ({+ error: jobIds[0] === "j2" ? "Failed to recalculate job j2" : null,+ purchaseOrdersBySupplierId: {}+ }));++ const result = await run(["j1", "j2", "j3", "j4"]);++ expect(result).toMatchObject({+ released: 3,+ failed: [{ readableId: "J2", message: "Failed to recalculate job j2" }],+ scheduled: true+ });+ expect(+ vi.mocked(runLocationSchedule).mock.calls.map(([args]) => args.locationId)+ ).toEqual(["location-1", "location-2"]);+ });++ it("says so when the released jobs could not be scheduled", async () => {+ setup([job("j1")]);+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: { jobs: [ready("j1")], suppliers: [] },+ error: null+ });+ vi.mocked(runLocationSchedule).mockRejectedValue(new Error("no calendar"));++ expect(await run(["j1"])).toMatchObject({ released: 1, scheduled: false });+ });++ it("loads a large selection in groups, and releases it in job order", async () => {+ const ids = Array.from({ length: 250 }, (_, index) => `j${index}`);+ // Stored out of order, so the release order is the route's own doing.+ const { inFilterSizes } = setup(+ [...ids].reverse().map((id) => job(id, { jobId: id.padStart(5, "0") }))+ );+ vi.mocked(getJobReleaseReadiness).mockResolvedValue({+ data: { jobs: ids.map((id) => ready(id)), suppliers: [] },+ error: null+ });++ const result = await run(ids);++ expect(inFilterSizes).toEqual([100, 100, 50]);+ expect(result).toMatchObject({ released: 250, failed: [] });+ const released = vi+ .mocked(releaseJobs)+ .mock.calls.map(([args]) => args.jobIds[0]);+ expect(released.slice(0, 3)).toEqual(["j0", "j1", "j2"]);+ });++ it("refuses an empty selection", async () => {+ setup([]);+ expect(await run([])).toEqual({+ success: false,+ message: "No jobs selected"+ });+ expect(releaseJobs).not.toHaveBeenCalled();+ });+});diff --git a/apps/erp/app/routes/x+/job+/release.tsx b/apps/erp/app/routes/x+/job+/release.tsxnew file mode 100644index 0000000000..8ab3c65c8f--- /dev/null+++ b/apps/erp/app/routes/x+/job+/release.tsx@@ -0,0 +1,163 @@+// 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 { assertIsPost } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { getLogger } from "@carbon/logger";+import { runLocationSchedule } from "@carbon/planning";+import { chunkArray } from "@carbon/utils";+import type { ActionFunctionArgs } from "react-router";+import { getJobReleaseReadiness } from "~/modules/production";+import { releaseJobs } from "~/modules/production/production.server";+import { jobReleaseProblems } from "~/modules/production/ui/Jobs/job-release-logic";+import { getDatabaseClient } from "~/services/database.server";++const logger = getLogger("erp", "job-release");++// Bulk release — the jobs table's "Release Jobs" action. Each selected Draft /+// Planned job goes through the job page's release path (releaseJobs) on its+// own: a job that is not ready is reported in `failed` while the rest still+// release. There is no dialog here, so a job with something to fix or a+// purchase order to choose is skipped and named — the planner releases it from+// the job. A job in any other status (a stale selection) is skipped silently.+// Fetcher-driven; the table toasts the summary and the loader revalidates.+export async function action({ request }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client, companyId, userId } = await requirePermissions(request, {+ update: "production"+ });++ const { jobIds } = (await request.json()) as { jobIds?: string[] };+ const ids = [...new Set((jobIds ?? []).filter(Boolean))];+ if (ids.length === 0) {+ return { success: false as const, message: "No jobs selected" };+ }++ // An `in` filter rides in the request URL, so a whole page of ids is read in+ // groups.+ const jobs = [];+ for (const batch of chunkArray(ids, 100)) {+ const page = await client+ .from("job")+ .select("id, jobId, status, quantity, scrapQuantity, locationId")+ .in("id", batch)+ .eq("companyId", companyId);+ if (page.error) {+ logger.error("Failed to load the selected jobs", {+ companyId,+ error: page.error+ });+ return {+ success: false as const,+ message: "Failed to load the selected jobs"+ };+ }+ jobs.push(...page.data);+ }++ const releasable = jobs+ .filter((job) => job.status === "Draft" || job.status === "Planned")+ .sort((a, b) => a.jobId.localeCompare(b.jobId));+ const readiness = await getJobReleaseReadiness(+ client,+ releasable.map((job) => job.id),+ companyId+ );+ if (readiness.error || !readiness.data) {+ logger.error("Failed to validate the selected jobs", {+ companyId,+ error: readiness.error+ });+ return {+ success: false as const,+ message: "Failed to validate the selected jobs"+ };+ }++ const readinessByJobId = new Map(+ readiness.data.jobs.map((job) => [job.id, job] as const)+ );+ const suppliersWithDraftPurchaseOrders = new Set(+ readiness.data.suppliers+ .filter((supplier) => supplier.draftPurchaseOrders.length > 0)+ .map((supplier) => supplier.supplierId)+ );+ // Every supplier starts on a new PO; one a job creates is reused by the jobs+ // after it, so the selection lands on one PO per supplier.+ let purchaseOrders: Record<string, string> = Object.fromEntries(+ readiness.data.suppliers.map((supplier) => [supplier.supplierId, "new"])+ );++ let released = 0;+ const failed: { readableId: string; message: string }[] = [];+ const locationIds = new Set<string>();+ for (const job of releasable) {+ const ready = readinessByJobId.get(job.id);+ const problems = ready+ ? [+ // The job page disables Release for the same job.+ ...(job.quantity === 0 && job.scrapQuantity === 0+ ? ["nothing to make"]+ : []),+ ...jobReleaseProblems(ready),+ ...(ready.supplierIds.some((id) =>+ suppliersWithDraftPurchaseOrders.has(id)+ )+ ? ["choose a purchase order for its outside operations on the job"]+ : [])+ ]+ : ["could not be validated"];+ if (problems.length > 0) {+ failed.push({ readableId: job.jobId, message: problems.join("; ") });+ continue;+ }++ const result = await releaseJobs({+ client,+ db: getDatabaseClient(),+ jobIds: [job.id],+ companyId,+ userId,+ purchaseOrdersBySupplierId: purchaseOrders+ });+ purchaseOrders = result.purchaseOrdersBySupplierId;+ if (result.error) {+ logger.error("Failed to release job", {+ companyId,+ jobId: job.id,+ error: result.error+ });+ failed.push({ readableId: job.jobId, message: result.error });+ continue;+ }++ locationIds.add(job.locationId);+ released += 1;+ }++ // After every status flip is persisted — the scheduler only places jobs that+ // are already released. One run per location, as on the job page.+ let scheduled = true;+ for (const locationId of locationIds) {+ try {+ await runLocationSchedule({+ db: getDatabaseClient(),+ client: getCarbonServiceRole(),+ locationId,+ companyId,+ userId+ });+ } catch (error) {+ logger.error("Failed to schedule released jobs", {+ companyId,+ locationId,+ error+ });+ scheduled = false;+ }+ }++ return { success: true as const, released, failed, scheduled };+}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 1fc5ba464b..61035b19ba 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -440,6 +440,7 @@ export const path = {generatePath(`${x}/inventory/batch-property/${itemId}/property/order`),billing: `${x}/settings/billing`,bulkEditPermissions: `${x}/users/bulk-edit-permissions`,+ bulkReleaseJob: `${x}/job/release`,bulkUpdateIssue: `${x}/issue/update`,bulkUpdateIssueWorkflow: `${x}/issue-workflow/update`,bulkUpdateItems: `${x}/items/update`,diff --git a/apps/erp/test/job-release-logic.test.ts b/apps/erp/test/job-release-logic.test.tsindex 7b31985f23..ff6767e2fc 100644--- a/apps/erp/test/job-release-logic.test.ts+++ b/apps/erp/test/job-release-logic.test.ts@@ -4,6 +4,7 @@import { describe, expect, it } from "vitest";import {+ jobReleaseProblems,makeMethodsMissingOperations,outsideOperationsNeedingPurchaseOrders,resolveOperationSupplier,@@ -102,3 +103,36 @@ describe("resolveOperationSupplier", () => {).toEqual({ missing: "none" });});});++describe("jobReleaseProblems", () => {+ const ready = {+ manufacturingBlocked: false,+ missingAssemblies: [],+ outsideOperationsWithoutSupplier: []+ };++ it("finds nothing to fix on a job that is ready", () => {+ expect(jobReleaseProblems(ready)).toEqual([]);+ });++ it("names every problem, assemblies together and operations one by one", () => {+ expect(+ jobReleaseProblems({+ manufacturingBlocked: true,+ missingAssemblies: [+ { description: "Bracket" },+ { description: "Housing" }+ ],+ outsideOperationsWithoutSupplier: [+ { description: "Heat Treat", missing: "choose" },+ { description: "Paint", missing: "none" }+ ]+ })+ ).toEqual([+ "manufacturing is blocked",+ "no operations on Bracket, Housing",+ "choose a supplier for Heat Treat on the job",+ "Paint has no supplier"+ ]);+ });+});diff --git a/apps/erp/test/job-release-readiness.test.ts b/apps/erp/test/job-release-readiness.test.tsnew file mode 100644index 0000000000..d2013061b8--- /dev/null+++ b/apps/erp/test/job-release-readiness.test.ts@@ -0,0 +1,172 @@+// 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 { describe, expect, it, vi } from "vitest";++// The service's imports reach the glossary, whose `msg` macro only runs compiled.+vi.mock("@lingui/core/macro", () => ({+ msg: (strings: TemplateStringsArray) => ({ id: strings.join("") })+}));++import { getJobReleaseReadiness } from "../app/modules/production/production.service";++// PostgREST returns at most this many rows per request (`max_rows`).+const ROW_CAP = 1000;++// A supabase-client stand-in that applies `in` filters and enforces the row+// cap: an unpaged read is cut off at ROW_CAP, a `.range()` read returns its+// page. `inFilterSizes` records how many ids each `in` filter carried.+function cappedClient(tables: Record<string, Record<string, unknown>[]>) {+ const inFilterSizes: number[] = [];+ const client = {+ from: (table: string) => {+ let rows = tables[table] ?? [];+ const chain: Record<string, any> = {};+ for (const method of ["select", "eq", "is", "order"]) {+ chain[method] = () => chain;+ }+ chain.in = (column: string, values: string[]) => {+ inFilterSizes.push(values.length);+ rows = rows.filter((row) => values.includes(row[column] as string));+ return chain;+ };+ chain.range = async (from: number, to: number) => ({+ data: rows.slice(from, Math.min(to + 1, from + ROW_CAP)),+ error: null+ });+ chain.then = (resolve: (value: unknown) => unknown) =>+ Promise.resolve({ data: rows.slice(0, ROW_CAP), error: null }).then(+ resolve+ );+ return chain;+ }+ } as any;+ return { client, inFilterSizes };+}++describe("getJobReleaseReadiness", () => {+ it("reads materials and operations past the row cap", async () => {+ const { client } = cappedClient({+ job: [{ id: "job-1", jobId: "J000001", status: "Planned", item: null }],+ jobMakeMethod: [{ id: "root", jobId: "job-1" }],+ jobMaterialWithMakeMethodId: [+ ...Array.from({ length: ROW_CAP }, () => ({+ jobId: "job-1",+ jobMaterialMakeMethodId: null,+ methodType: "Pull from Inventory",+ kit: false,+ description: "Fastener",+ itemReadableId: "F-100"+ })),+ // Past the cap: a sub-assembly nothing on the floor builds.+ {+ jobId: "job-1",+ jobMaterialMakeMethodId: "sub-late",+ methodType: "Make to Order",+ kit: false,+ description: "Late Bracket",+ itemReadableId: "B-200"+ }+ ],+ jobOperation: [+ ...Array.from({ length: ROW_CAP }, (_, index) => ({+ id: `op-${index}`,+ jobId: "job-1",+ jobMakeMethodId: "root",+ operationType: "Process",+ operationSupplierProcessId: null,+ processId: "machining",+ description: "Machine"+ })),+ // Past the cap: an outside operation release must put on a PO.+ {+ id: "op-plating",+ jobId: "job-1",+ jobMakeMethodId: "root",+ operationType: "Outside Processing",+ operationSupplierProcessId: null,+ processId: "plating",+ description: "Plating"+ }+ ],+ supplierProcess: [+ { id: "sp-1", supplierId: "supplier-a", processId: "plating" }+ ],+ purchaseOrder: [+ { id: "po-1", purchaseOrderId: "PO000001", supplierId: "supplier-a" }+ ]+ });++ const { data, error } = await getJobReleaseReadiness(+ client,+ ["job-1"],+ "company-1"+ );++ expect(error).toBeNull();+ expect(data?.jobs).toEqual([+ {+ id: "job-1",+ jobId: "J000001",+ status: "Planned",+ manufacturingBlocked: false,+ missingAssemblies: [+ { makeMethodId: "sub-late", description: "Late Bracket" }+ ],+ outsideOperationsWithoutSupplier: [],+ supplierIds: ["supplier-a"]+ }+ ]);+ expect(data?.suppliers).toEqual([+ {+ supplierId: "supplier-a",+ draftPurchaseOrders: [{ id: "po-1", purchaseOrderId: "PO000001" }]+ }+ ]);+ });++ it("reads a whole page of jobs without one long id list", async () => {+ const jobIds = Array.from({ length: 250 }, (_, index) => `job-${index}`);+ const { client, inFilterSizes } = cappedClient({+ job: jobIds.map((id) => ({+ id,+ jobId: id.toUpperCase(),+ status: "Planned",+ item: null+ })),+ jobMakeMethod: jobIds.map((id) => ({ id: `root-${id}`, jobId: id })),+ jobOperation: jobIds.map((id) => ({+ id: `op-${id}`,+ jobId: id,+ jobMakeMethodId: `root-${id}`,+ operationType: "Outside Processing",+ operationSupplierProcessId: null,+ processId: "plating",+ description: "Plating"+ })),+ supplierProcess: [+ { id: "sp-1", supplierId: "supplier-a", processId: "plating" }+ ]+ });++ const { data, error } = await getJobReleaseReadiness(+ client,+ jobIds,+ "company-1"+ );++ expect(error).toBeNull();+ // Every job came back once, with the operation that sits in its own group.+ expect(data?.jobs.map((job) => job.id).sort()).toEqual([...jobIds].sort());+ expect(+ data?.jobs.every(+ (job) =>+ job.missingAssemblies.length === 0 &&+ job.supplierIds.join() === "supplier-a"+ )+ ).toBe(true);+ // 250 job ids and 250 outside-operation ids, never more than 100 in a URL.+ expect(Math.max(...inFilterSizes)).toBe(100);+ });+});diff --git a/docs/content/docs/reference/jobs.mdx b/docs/content/docs/reference/jobs.mdxindex 87dad4c406..38264beed6 100644--- a/docs/content/docs/reference/jobs.mdx+++ b/docs/content/docs/reference/jobs.mdx@@ -47,6 +47,8 @@ A **Completed**, **Closed**, or **Cancelled** job is locked. Its method, quantitIn the Jobs list, the **Ready** status is labelled **"Released"** — the underlying value is still `Ready`. Note also the spelling: a job is **Cancelled** (two L's), but a job *operation* is **Canceled** (one L). Different enums, different spelling.</Callout>+To release several jobs at once, select them in the Jobs list and choose **"Release Jobs"** from the actions menu. Only **Draft** and **Planned** jobs in the selection are released. There is no dialog here: a job that needs fixing, or whose outside operations go to a supplier that already has a draft purchase order to choose from, is skipped and named in the summary. Release those from the job itself.+## OperationsThe job's <Term id="routing">routing</Term> is copied into job-specific **operations** on release, each a process on a <Term id="work-center">work center</Term>, carrying its own setup, labor, and machine time. The floor runs the job by running its operations, and each carries its own status. A job reads **"In Progress"** the moment any single operation does.diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex fe53607745..0353c08eaa 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Dokument konnte nicht gelesen werden: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Konnte {0} nicht freigeben: {1}"@@ -6394,6 +6396,9 @@ msgstr "Auflösen"msgid "Dissolve {0} batches"msgstr "Auflösen {0} Chargen"+msgid "Dissolve 1 batch"+msgstr "1 Los auflösen"+msgid "Dissolve batch"msgstr "Batch auflösen"@@ -6404,6 +6409,9 @@ msgstr "Batch auflösen"msgid "Dissolved {0} batches"msgstr "Aufgelöst {0} Chargen"+msgid "Dissolved 1 batch"+msgstr "1 Los aufgelöst"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Das Auflösen von {0} gibt seine {memberCount} Arbeitsgänge als nicht ausgeführt zur Planung zurück und löscht das Los. Ein Los mit erfasster Produktion muss stattdessen abgeschlossen werden."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Kein Bestand an diesem Ort"msgid "No stock on hand at this location."-msgstr ""+msgstr "Kein Bestand an diesem Standort vorhanden."msgid "No stockout projected in the next 48 weeks"msgstr "Kein Fehlbestand für die nächsten 48 Wochen erwartet"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Keine Lagereinheit"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Keine Lagereinheiten oder Verfolgungsnummern stimmen überein."msgid "No suppliers yet"msgstr "Noch keine Lieferanten"@@ -14863,6 +14871,9 @@ msgstr "Freigeben"msgid "Release {0} batches"msgstr "{0} Lose freigeben"+msgid "Release 1 batch"+msgstr "1 Los freigeben"+msgid "Release Batch"msgstr "Los freigeben"@@ -14883,6 +14894,9 @@ msgstr "Freigabenkontrolle"msgid "Release Job"msgstr "Auftrag freigeben"+msgid "Release Jobs"+msgstr "Fertigungsaufträge freigeben"+msgid "Released"msgstr "Freigegeben"@@ -14890,6 +14904,16 @@ msgstr "Freigegeben"msgid "Released {0} batches"msgstr "{0} Lose freigegeben"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "{0} Fertigungsaufträge freigegeben"++msgid "Released 1 batch"+msgstr "1 Los freigegeben"++msgid "Released 1 job"+msgstr "1 Fertigungsauftrag freigegeben"+msgid "Released date"msgstr "Freigabedatum"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Nach verwandten Elementen suchen..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Lagereinheiten und Verfolgungsnummern suchen"msgid "Search suppliers..."msgstr "Lieferanten durchsuchen..."@@ -18745,6 +18769,9 @@ msgstr "Dieselbe Person darf überprüfen"msgid "The SAML metadata URL published by your identity provider"msgstr "Die von Ihrem Identitätsanbieter veröffentlichte SAML-Metadaten-URL"+msgid "The schedule could not be updated after the release"+msgstr "Der Terminplan konnte nach der Freigabe nicht aktualisiert werden."+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "Der Zeitplan, der verwendet wird, um die Kosten dieses Vermögenswerts über seine Nutzungsdauer zu verteilen (linear, degressiv, Produktionseinheiten)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Unbenannter Schritt"msgid "Untracked"-msgstr ""+msgstr "Nicht verfolgt"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Ungenutzte kommissionierte Materialien werden vom Arbeitsplatz zurück ins Lager geleitet."diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex ace6a865a9..ff1e862efe 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Could not read the document: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Could not release {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Dissolve"msgid "Dissolve {0} batches"msgstr "Dissolve {0} batches"+msgid "Dissolve 1 batch"+msgstr "Dissolve 1 batch"+msgid "Dissolve batch"msgstr "Dissolve batch"@@ -6404,6 +6409,9 @@ msgstr "Dissolve Batch"msgid "Dissolved {0} batches"msgstr "Dissolved {0} batches"+msgid "Dissolved 1 batch"+msgstr "Dissolved 1 batch"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."@@ -14863,6 +14871,9 @@ msgstr "Release"msgid "Release {0} batches"msgstr "Release {0} batches"+msgid "Release 1 batch"+msgstr "Release 1 batch"+msgid "Release Batch"msgstr "Release Batch"@@ -14883,6 +14894,9 @@ msgstr "Release Control"msgid "Release Job"msgstr "Release Job"+msgid "Release Jobs"+msgstr "Release Jobs"+msgid "Released"msgstr "Released"@@ -14890,6 +14904,16 @@ msgstr "Released"msgid "Released {0} batches"msgstr "Released {0} batches"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Released {0} jobs"++msgid "Released 1 batch"+msgstr "Released 1 batch"++msgid "Released 1 job"+msgstr "Released 1 job"+msgid "Released date"msgstr "Released date"@@ -18745,6 +18769,9 @@ msgstr "The same person may inspect"msgid "The SAML metadata URL published by your identity provider"msgstr "The SAML metadata URL published by your identity provider"+msgid "The schedule could not be updated after the release"+msgstr "The schedule could not be updated after the release"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex b00d38fe6e..47f0e380ca 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "No se pudo leer el documento: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "No se pudo liberar {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Disolver"msgid "Dissolve {0} batches"msgstr "Disolver {0} lotes"+msgid "Dissolve 1 batch"+msgstr "Disolver 1 lote de producción"+msgid "Dissolve batch"msgstr "Disolver lote"@@ -6404,6 +6409,9 @@ msgstr "Disolver Lote"msgid "Dissolved {0} batches"msgstr "Disuelto {0} lotes"+msgid "Dissolved 1 batch"+msgstr "Se disolvió 1 lote de producción"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Disolver {0} devuelve sus {memberCount} operaciones a la programación sin ejecutar y elimina el lote. Un lote con producción registrada debe completarse en su lugar."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Sin stock en esta ubicación"msgid "No stock on hand at this location."-msgstr ""+msgstr "No hay existencias disponibles en esta ubicación."msgid "No stockout projected in the next 48 weeks"msgstr "Sin proyección de rotura de stock en las próximas 48 semanas"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Sin unidad de almacenamiento"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "No coinciden unidades de almacenamiento ni números de seguimiento."msgid "No suppliers yet"msgstr "Sin proveedores aún"@@ -14863,6 +14871,9 @@ msgstr "Liberar"msgid "Release {0} batches"msgstr "Liberar {0} lotes de producción"+msgid "Release 1 batch"+msgstr "Liberar 1 lote de producción"+msgid "Release Batch"msgstr "Liberar lote de producción"@@ -14883,6 +14894,9 @@ msgstr "Control de liberación"msgid "Release Job"msgstr "Liberar Trabajo"+msgid "Release Jobs"+msgstr "Liberar órdenes de trabajo"+msgid "Released"msgstr "Liberado"@@ -14890,6 +14904,16 @@ msgstr "Liberado"msgid "Released {0} batches"msgstr "Liberados {0} lotes de producción"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Se liberaron {0} órdenes de trabajo"++msgid "Released 1 batch"+msgstr "Se liberó 1 lote de producción"++msgid "Released 1 job"+msgstr "Se liberó 1 orden de trabajo"+msgid "Released date"msgstr "Fecha de liberación"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Buscar elementos relacionados..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Buscar unidades de almacenamiento y números de seguimiento"msgid "Search suppliers..."msgstr "Buscar proveedores..."@@ -18745,6 +18769,9 @@ msgstr "La misma persona puede inspeccionar"msgid "The SAML metadata URL published by your identity provider"msgstr "La URL de metadatos SAML publicada por su proveedor de identidad"+msgid "The schedule could not be updated after the release"+msgstr "No se pudo actualizar el programa después de la liberación"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "El cronograma utilizado para distribuir el costo de este activo durante su vida útil (línea recta, saldo decreciente, unidades de producción)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Paso sin título"msgid "Untracked"-msgstr ""+msgstr "Sin seguimiento"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Material recogido no utilizado devuelto desde el centro de trabajo al almacén."diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 5ea94de107..62bf395937 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Impossible de lire le document : {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Impossible de lancer {0} : {1}"@@ -6394,6 +6396,9 @@ msgstr "Dissoudre"msgid "Dissolve {0} batches"msgstr "Dissoudre {0} lots"+msgid "Dissolve 1 batch"+msgstr "Annuler 1 lot de production"+msgid "Dissolve batch"msgstr "Dissoudre le lot"@@ -6404,6 +6409,9 @@ msgstr "Dissoudre le lot"msgid "Dissolved {0} batches"msgstr "Dissous {0} lots"+msgid "Dissolved 1 batch"+msgstr "1 lot de production annulé"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "La dissolution de {0} remet ses {memberCount} opérations à la planification en tant que non-exécutées et supprime le lot. Un lot avec production enregistrée doit être complété à la place."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Pas de stock à cet endroit"msgid "No stock on hand at this location."-msgstr ""+msgstr "Aucun stock disponible sur ce site."msgid "No stockout projected in the next 48 weeks"msgstr "Aucune rupture de stock prévue au cours des 48 prochaines semaines"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Aucune unité de stockage"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Aucune unité de stockage ou numéro de suivi ne correspond."msgid "No suppliers yet"msgstr "Aucun fournisseur pour le moment"@@ -14863,6 +14871,9 @@ msgstr "Lancer"msgid "Release {0} batches"msgstr "Lancer {0} lots de production"+msgid "Release 1 batch"+msgstr "Lancer 1 lot de production"+msgid "Release Batch"msgstr "Lancer le lot de production"@@ -14883,6 +14894,9 @@ msgstr "Contrôle de lancement"msgid "Release Job"msgstr "Lancer le travail"+msgid "Release Jobs"+msgstr "Lancer les ordres de fabrication"+msgid "Released"msgstr "Libéré"@@ -14890,6 +14904,16 @@ msgstr "Libéré"msgid "Released {0} batches"msgstr "{0} lots de production lancés"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "{0} ordres de fabrication lancés"++msgid "Released 1 batch"+msgstr "1 lot de production lancé"++msgid "Released 1 job"+msgstr "1 ordre de fabrication lancé"+msgid "Released date"msgstr "Date de libération"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Rechercher les articles associés..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Rechercher les unités de stockage et numéros de suivi"msgid "Search suppliers..."msgstr "Rechercher des fournisseurs..."@@ -18745,6 +18769,9 @@ msgstr "La même personne peut inspecter"msgid "The SAML metadata URL published by your identity provider"msgstr "L'URL des métadonnées SAML publiée par votre fournisseur d'identité"+msgid "The schedule could not be updated after the release"+msgstr "Le planning n'a pas pu être mis à jour après le lancement"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "Le planning utilisé pour étaler le coût de cet actif sur sa durée d'utilité (linéaire, dégressif, unités de production)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Étape sans titre"msgid "Untracked"-msgstr ""+msgstr "Non suivi"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Matière prélevée inutilisée renvoyée du poste de travail à l'entrepôt."diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex f8b84b07a3..02ccd5c21f 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "दस्तावेज़ नहीं पढ़ा जा सका: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "जारी नहीं कर सके {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "भंग करना"msgid "Dissolve {0} batches"msgstr "{0} बैच को भंग करें"+msgid "Dissolve 1 batch"+msgstr "1 बैच को भंग करें"+msgid "Dissolve batch"msgstr "बैच को भंग करें"@@ -6404,6 +6409,9 @@ msgstr "बैच भंग करना"msgid "Dissolved {0} batches"msgstr "{0} बैच भंग कर दिए गए"+msgid "Dissolved 1 batch"+msgstr "1 बैच भंग किया गया"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "भंग करने से {0} अपने {memberCount} ऑपरेशन को शेड्यूल को अचलित लौटाता है और बैच को हटा देता है। उत्पादन रिकॉर्ड के साथ एक बैच को पूर्ण किया जाना चाहिए।"@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "इस स्थान पर कोई स्टॉक नहीं"msgid "No stock on hand at this location."-msgstr ""+msgstr "इस स्थान पर कोई स्टॉक उपलब्ध नहीं है।"msgid "No stockout projected in the next 48 weeks"msgstr "अगले 48 सप्ताह में कोई स्टॉकआउट प्रक्षेपित नहीं है"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "कोई भंडारण इकाई नहीं"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "कोई भंडारण इकाई या ट्रैकिंग संख्या मेल नहीं खाती।"msgid "No suppliers yet"msgstr "अभी तक कोई आपूर्तिकर्ता नहीं"@@ -14863,6 +14871,9 @@ msgstr "जारी करें"msgid "Release {0} batches"msgstr "{0} बैच जारी करें"+msgid "Release 1 batch"+msgstr "1 बैच को जारी करें"+msgid "Release Batch"msgstr "बैच जारी करें"@@ -14883,6 +14894,9 @@ msgstr "नियंत्रण जारी करें"msgid "Release Job"msgstr "जॉब जारी करें"+msgid "Release Jobs"+msgstr "जॉब को जारी करें"+msgid "Released"msgstr "जारी किया गया"@@ -14890,6 +14904,16 @@ msgstr "जारी किया गया"msgid "Released {0} batches"msgstr "{0} बैच जारी किए गए"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "{0} जॉब जारी किए गए"++msgid "Released 1 batch"+msgstr "1 बैच जारी किया गया"++msgid "Released 1 job"+msgstr "1 जॉब जारी किया गया"+msgid "Released date"msgstr "जारी की गई तारीख"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "संबंधित आइटम खोजें..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "भंडारण इकाइयों और ट्रैकिंग संख्याओं को खोजें"msgid "Search suppliers..."msgstr "आपूर्तिकर्ताओं को खोजें..."@@ -18745,6 +18769,9 @@ msgstr "एक ही व्यक्ति निरीक्षण कर सmsgid "The SAML metadata URL published by your identity provider"msgstr "आपके आइडेंटिटी प्रदाता द्वारा प्रकाशित SAML मेटाडेटा URL"+msgid "The schedule could not be updated after the release"+msgstr "रिलीज के बाद शेड्यूल को अपडेट नहीं किया जा सका"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "यह शेड्यूल जिसका उपयोग इस संपत्ति की लागत को इसके उपयोगी जीवन (सीधी लाइन मूल्यह्रास, ह्रासमान शेष, उत्पादन की इकाई) पर फैलाने के लिए किया जाता है।"@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "बिना शीर्षक वाला चरण"msgid "Untracked"-msgstr ""+msgstr "अनट्रैक"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "अप्रयुक्त सामग्री को वर्क सेंटर से गोदाम में वापस भेजा गया।"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex b5742743a3..2764d21346 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Non è stato possibile leggere il documento: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Non è stato possibile rilasciare {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Sciogliere"msgid "Dissolve {0} batches"msgstr "Dissolvi {0} lotti"+msgid "Dissolve 1 batch"+msgstr "Sciogli 1 lotto di produzione"+msgid "Dissolve batch"msgstr "Elimina batch"@@ -6404,6 +6409,9 @@ msgstr "Sciogliere Lotto"msgid "Dissolved {0} batches"msgstr "Dissolti {0} lotti"+msgid "Dissolved 1 batch"+msgstr "Sciolto 1 lotto di produzione"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Lo scioglimento di {0} restituisce le sue {memberCount} operazioni al programma in sospeso ed elimina il lotto. Un lotto con produzione registrata deve essere completato."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Nessuno stock in questa posizione"msgid "No stock on hand at this location."-msgstr ""+msgstr "Nessuna giacenza disponibile in questa ubicazione."msgid "No stockout projected in the next 48 weeks"msgstr "Nessuna rottura di stock prevista nei prossimi 48 settimane"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Nessuna unità di stoccaggio"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Nessuna unità di stoccaggio o numero di tracciamento corrisponde."msgid "No suppliers yet"msgstr "Nessun fornitore ancora"@@ -14863,6 +14871,9 @@ msgstr "Rilascio"msgid "Release {0} batches"msgstr "Rilascia {0} lotti di produzione"+msgid "Release 1 batch"+msgstr "Rilascia 1 lotto di produzione"+msgid "Release Batch"msgstr "Rilascia lotto"@@ -14883,6 +14894,9 @@ msgstr "Controllo Rilascio"msgid "Release Job"msgstr "Rilascia Commessa"+msgid "Release Jobs"+msgstr "Rilascia Ordini di produzione"+msgid "Released"msgstr "Rilasciato"@@ -14890,6 +14904,16 @@ msgstr "Rilasciato"msgid "Released {0} batches"msgstr "Rilasciati {0} lotti di produzione"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Rilasciati {0} ordini di produzione"++msgid "Released 1 batch"+msgstr "Rilasciato 1 lotto di produzione"++msgid "Released 1 job"+msgstr "Rilasciato 1 ordine di produzione"+msgid "Released date"msgstr "Data di rilascio"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Cerca elementi correlati..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Cerca unità di stoccaggio e numeri di tracciamento"msgid "Search suppliers..."msgstr "Cerca fornitori..."@@ -18745,6 +18769,9 @@ msgstr "La stessa persona potrebbe ispezionare"msgid "The SAML metadata URL published by your identity provider"msgstr "L'URL dei metadati SAML pubblicati dal tuo provider di identità"+msgid "The schedule could not be updated after the release"+msgstr "Il programma non è stato aggiornato dopo il rilascio"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "Il programma utilizzato per distribuire il costo di questo asset nel corso della sua vita utile (lineare, quote decrescenti, unità di produzione)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Passo senza titolo"msgid "Untracked"-msgstr ""+msgstr "Non tracciato"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Materiale prelevato non utilizzato reso dal centro di lavoro al deposito."diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 5a35f54042..936910e62e 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "文書が読み込めません: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "{0}をリリースできませんでした: {1}"@@ -6394,6 +6396,9 @@ msgstr "解散"msgid "Dissolve {0} batches"msgstr "バッチ {0} を解散"+msgid "Dissolve 1 batch"+msgstr "1 バッチを解散"+msgid "Dissolve batch"msgstr "バッチを解除"@@ -6404,6 +6409,9 @@ msgstr "バッチを解散"msgid "Dissolved {0} batches"msgstr "{0} バッチを解散しました"+msgid "Dissolved 1 batch"+msgstr "1 バッチを解散しました"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "{0}を解除するとその{memberCount}個の工程がスケジュールに未実行で戻され、バッチが削除されます。記録された生産があるバッチは代わりに完了させる必要があります。"@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "この場所には在庫がありません"msgid "No stock on hand at this location."-msgstr ""+msgstr "この拠点に在庫がありません。"msgid "No stockout projected in the next 48 weeks"msgstr "今後48週間に欠品は予測されていません"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "保管ユニットがありません"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "保管ユニットまたはトラッキング番号に一致するものはありません。"msgid "No suppliers yet"msgstr "仕入先がまだありません"@@ -14863,6 +14871,9 @@ msgstr "リリース"msgid "Release {0} batches"msgstr "{0}個のバッチをリリース"+msgid "Release 1 batch"+msgstr "1 バッチをリリース"+msgid "Release Batch"msgstr "バッチをリリース"@@ -14883,6 +14894,9 @@ msgstr "リリース管理"msgid "Release Job"msgstr "ジョブをリリース"+msgid "Release Jobs"+msgstr "製造指図をリリース"+msgid "Released"msgstr "リリース済み"@@ -14890,6 +14904,16 @@ msgstr "リリース済み"msgid "Released {0} batches"msgstr "{0}個のバッチがリリース済"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "{0} 件の製造指図をリリースしました"++msgid "Released 1 batch"+msgstr "1 バッチをリリースしました"++msgid "Released 1 job"+msgstr "1 件の製造指図をリリースしました"+msgid "Released date"msgstr "リリース日"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "関連アイテムを検索..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "保管ユニットとトラッキング番号を検索"msgid "Search suppliers..."msgstr "仕入先を検索..."@@ -18745,6 +18769,9 @@ msgstr "同じ個人が検査できます"msgid "The SAML metadata URL published by your identity provider"msgstr "あなたのアイデンティティプロバイダーによって公開されたSAMLメタデータURL"+msgid "The schedule could not be updated after the release"+msgstr "リリース後、スケジュールを更新できませんでした。"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "この資産の原価を耐用年数にわたって配分するために使用されるスケジュール(定額法、定率法、生産単位法)。"@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "無題のステップ"msgid "Untracked"-msgstr ""+msgstr "未追跡"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "未使用のピッキング済み材料が作業区から倉庫に戻されました。"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 7e832ff9a3..ce1c2d8efc 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "문서를 읽을 수 없습니다: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "{0}을 릴리스할 수 없음: {1}"@@ -6394,6 +6396,9 @@ msgstr "해체"msgid "Dissolve {0} batches"msgstr "{0} 배치 해제"+msgid "Dissolve 1 batch"+msgstr "배치 1개 해제"+msgid "Dissolve batch"msgstr "배치 해제"@@ -6404,6 +6409,9 @@ msgstr "배치 해체"msgid "Dissolved {0} batches"msgstr "{0} 배치 해제됨"+msgid "Dissolved 1 batch"+msgstr "배치 1개 해제됨"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "배치 {0}를 해제하면 {memberCount}개의 공정을 미실행 상태로 일정에 반환하고 배치를 삭제합니다. 기록된 생산이 있는 배치는 대신 완료되어야 합니다."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "이 위치에 재고가 없습니다"msgid "No stock on hand at this location."-msgstr ""+msgstr "이 사업장에 재고가 없습니다."msgid "No stockout projected in the next 48 weeks"msgstr "향후 48주 내에 재고 부족이 예상되지 않습니다."@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "보관 단위가 없습니다."msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "일치하는 보관 단위 또는 추적 번호가 없습니다."msgid "No suppliers yet"msgstr "아직 공급업체가 없습니다"@@ -14863,6 +14871,9 @@ msgstr "릴리스"msgid "Release {0} batches"msgstr "{0}개 배치 릴리스"+msgid "Release 1 batch"+msgstr "배치 1개 릴리스"+msgid "Release Batch"msgstr "배치 릴리스"@@ -14883,6 +14894,9 @@ msgstr "릴리스 제어"msgid "Release Job"msgstr "작업 지시 릴리스"+msgid "Release Jobs"+msgstr "작업 지시 릴리스"+msgid "Released"msgstr "릴리즈됨"@@ -14890,6 +14904,16 @@ msgstr "릴리즈됨"msgid "Released {0} batches"msgstr "{0}개 배치 릴리스됨"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "작업 지시 {0}개 릴리스됨"++msgid "Released 1 batch"+msgstr "배치 1개 릴리스됨"++msgid "Released 1 job"+msgstr "작업 지시 1개 릴리스됨"+msgid "Released date"msgstr "출시일"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "관련 품목 검색..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "보관 단위 및 추적 번호 검색"msgid "Search suppliers..."msgstr "공급업체 검색..."@@ -18745,6 +18769,9 @@ msgstr "동일한 개인이 검사할 수 있습니다"msgid "The SAML metadata URL published by your identity provider"msgstr "신원 공급자가 게시한 SAML 메타데이터 URL"+msgid "The schedule could not be updated after the release"+msgstr "릴리스 후 일정을 업데이트할 수 없었습니다."+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "이 자산의 원가를 내용연수에 걸쳐 배분하는 데 사용되는 상각 스케줄입니다(정액법, 정률법, 생산량비례법)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "제목 없는 단계"msgid "Untracked"-msgstr ""+msgstr "미추적"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "작업장에서 창고로 반환된 미사용 선택 재료."diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex c9af36ef36..d6986321d9 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Nie można odczytać dokumentu: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Nie można było zwolnić {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Rozpuść"msgid "Dissolve {0} batches"msgstr "Rozwiązać {0} partii"+msgid "Dissolve 1 batch"+msgstr "Rozpuść 1 partię produkcyjną"+msgid "Dissolve batch"msgstr "Rozwiązać partię"@@ -6404,6 +6409,9 @@ msgstr "Rozpuść partię"msgid "Dissolved {0} batches"msgstr "Rozwiązane {0} partii"+msgid "Dissolved 1 batch"+msgstr "Rozwiązano 1 partię produkcyjną"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Rozpuszczenie {0} zwraca jego {memberCount} operacji do harmonogramu nie wykonanych i usuwa partię. Partię z zarejestrowaną produkcją należy zamiast tego ukończyć."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Brak magazynu w tej lokalizacji"msgid "No stock on hand at this location."-msgstr ""+msgstr "Brak zapasu w tej lokalizacji."msgid "No stockout projected in the next 48 weeks"msgstr "Brak prognozowanego braku zapasów w ciągu następnych 48 tygodni"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Brak jednostki magazynowania"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Brak zgodnych jednostek magazynowych ani numerów śledzenia."msgid "No suppliers yet"msgstr "Brak dostawców"@@ -14863,6 +14871,9 @@ msgstr "Zwolnienie"msgid "Release {0} batches"msgstr "Zwolnij {0} partie produkcyjne"+msgid "Release 1 batch"+msgstr "Zwolnij 1 partię produkcyjną"+msgid "Release Batch"msgstr "Zwolnij partię produkcyjną"@@ -14883,6 +14894,9 @@ msgstr "Kontrola Zwolnienia"msgid "Release Job"msgstr "Zwolnij zadanie"+msgid "Release Jobs"+msgstr "Zwolnij zlecenia produkcyjne"+msgid "Released"msgstr "Wydane"@@ -14890,6 +14904,16 @@ msgstr "Wydane"msgid "Released {0} batches"msgstr "Zwolniono {0} partie produkcyjne"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Zwolniono {0} zleceń produkcyjnych"++msgid "Released 1 batch"+msgstr "Zwolniono 1 partię produkcyjną"++msgid "Released 1 job"+msgstr "Zwolniono 1 zlecenie produkcyjne"+msgid "Released date"msgstr "Data wydania"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Szukaj powiązanych elementów..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Szukaj jednostek magazynowych i numerów śledzenia"msgid "Search suppliers..."msgstr "Szukaj dostawców..."@@ -18745,6 +18769,9 @@ msgstr "Ta sama osoba może inspekcjonować"msgid "The SAML metadata URL published by your identity provider"msgstr "Adres URL metadanych SAML opublikowany przez dostawcę tożsamości"+msgid "The schedule could not be updated after the release"+msgstr "Nie można było zaktualizować harmonogramu po zwolnieniu"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "Harmonogram używany do rozłożenia kosztu tego zasobu na jego okres użytkowania (liniowy, metoda degresywna, jednostki produkcji)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Krok bez tytułu"msgid "Untracked"-msgstr ""+msgstr "Nieśledzone"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Materiał pobrany, ale nieużywany, zwracany ze stanowiska roboczego do magazynu."diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 62c65dfdb3..d050afd726 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Não foi possível ler o documento: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Não foi possível liberar {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Dissolver"msgid "Dissolve {0} batches"msgstr "Dissolver {0} lotes"+msgid "Dissolve 1 batch"+msgstr "Dissolver 1 lote de produção"+msgid "Dissolve batch"msgstr "Dissolver lote"@@ -6404,6 +6409,9 @@ msgstr "Dissolver Lote"msgid "Dissolved {0} batches"msgstr "Dissolvido {0} lotes"+msgid "Dissolved 1 batch"+msgstr "1 lote de produção dissolvido"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "A dissolução de {0} retorna suas {memberCount} operações para o cronograma não executado e exclui o lote. Um lote com produção registrada deve ser concluído."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Sem estoque neste local"msgid "No stock on hand at this location."-msgstr ""+msgstr "Nenhum estoque disponível neste local."msgid "No stockout projected in the next 48 weeks"msgstr "Sem ruptura de estoque projetada nas próximas 48 semanas"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Sem unidade de armazenamento"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Nenhuma unidade de armazenamento ou número de rastreamento corresponde."msgid "No suppliers yet"msgstr "Nenhum fornecedor ainda"@@ -14863,6 +14871,9 @@ msgstr "Liberação"msgid "Release {0} batches"msgstr "Liberar {0} lotes de produção"+msgid "Release 1 batch"+msgstr "Liberar 1 lote de produção"+msgid "Release Batch"msgstr "Liberar lote de produção"@@ -14883,6 +14894,9 @@ msgstr "Liberar Controle"msgid "Release Job"msgstr "Liberar Trabalho"+msgid "Release Jobs"+msgstr "Liberar Ordens de produção"+msgid "Released"msgstr "Liberado"@@ -14890,6 +14904,16 @@ msgstr "Liberado"msgid "Released {0} batches"msgstr "Liberados {0} lotes de produção"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Liberado {0} ordens de produção"++msgid "Released 1 batch"+msgstr "1 lote de produção liberado"++msgid "Released 1 job"+msgstr "1 ordem de produção liberada"+msgid "Released date"msgstr "Data de lançamento"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Pesquisar itens relacionados..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Pesquisar unidades de armazenamento e números de rastreamento"msgid "Search suppliers..."msgstr "Pesquisar fornecedores..."@@ -18745,6 +18769,9 @@ msgstr "A mesma pessoa pode inspecionar"msgid "The SAML metadata URL published by your identity provider"msgstr "O URL de metadados SAML publicado por seu provedor de identidade"+msgid "The schedule could not be updated after the release"+msgstr "A programação não pôde ser atualizada após a liberação"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "O cronograma usado para distribuir o custo deste ativo durante sua vida útil (linha reta, saldo decrescente, unidades de produção)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Etapa sem título"msgid "Untracked"-msgstr ""+msgstr "Sem rastreamento"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Material coletado não utilizado devolvido do centro de trabalho para o armazém."diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex ed16bf0b6d..3127cdf76d 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Не удалось прочитать документ: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "Не удалось запустить в работу {0}: {1}"@@ -6394,6 +6396,9 @@ msgstr "Распустить"msgid "Dissolve {0} batches"msgstr "Растворить {0} партий"+msgid "Dissolve 1 batch"+msgstr "Закрыть 1 серию"+msgid "Dissolve batch"msgstr "Разбить партию"@@ -6404,6 +6409,9 @@ msgstr "Распустить партию"msgid "Dissolved {0} batches"msgstr "Растворено {0} партий"+msgid "Dissolved 1 batch"+msgstr "Закрыта 1 серия"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "Распускание {0} возвращает его {memberCount} операций в расписание невыполненными и удаляет партию. Партию с записанным производством необходимо вместо этого завершить."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Нет запасов в этом месте"msgid "No stock on hand at this location."-msgstr ""+msgstr "На этой площадке нет запаса."msgid "No stockout projected in the next 48 weeks"msgstr "Отсутствие дефицита запасов не прогнозируется в течение следующих 48 недель"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Нет единицы хранения"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Единицы хранения или номера отслеживания не совпадают."msgid "No suppliers yet"msgstr "Поставщиков еще нет"@@ -14863,6 +14871,9 @@ msgstr "Запустить в работу"msgid "Release {0} batches"msgstr "Запустить в работу {0} серий"+msgid "Release 1 batch"+msgstr "Запустить в работу 1 серию"+msgid "Release Batch"msgstr "Запустить серию в работу"@@ -14883,6 +14894,9 @@ msgstr "Управление запуском в работу"msgid "Release Job"msgstr "Запустить производственный заказ в работу"+msgid "Release Jobs"+msgstr "Запустить в работу производственные заказы"+msgid "Released"msgstr "Выпущено"@@ -14890,6 +14904,16 @@ msgstr "Выпущено"msgid "Released {0} batches"msgstr "Запущено {0} серий"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "Запущено {0} производственных заказов"++msgid "Released 1 batch"+msgstr "Запущена 1 серия"++msgid "Released 1 job"+msgstr "Запущен 1 производственный заказ"+msgid "Released date"msgstr "Дата выпуска"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "Поиск связанных элементов..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Поиск единиц хранения и номеров отслеживания"msgid "Search suppliers..."msgstr "Поиск поставщиков..."@@ -18745,6 +18769,9 @@ msgstr "Тот же инспектор может проверять"msgid "The SAML metadata URL published by your identity provider"msgstr "URL метаданных SAML, опубликованный вашим поставщиком удостоверений"+msgid "The schedule could not be updated after the release"+msgstr "График не удалось обновить после запуска в работу"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "График, используемый для распределения Себестоимости этого актива в течение его Срока полезного использования (линейный, Уменьшаемый остаток, единицы производства)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Шаг без названия"msgid "Untracked"-msgstr ""+msgstr "Без отслеживания"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "Неиспользованный отобранный материал поступает обратно из рабочего центра на склад."diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 4ad5a5241a..e27555a126 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "Belge okunamadı: {0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "{0} serbest bırakılamadı: {1}"@@ -6394,6 +6396,9 @@ msgstr "Çöz"msgid "Dissolve {0} batches"msgstr "{0} parti çöz"+msgid "Dissolve 1 batch"+msgstr "1 Partiyi Çöz"+msgid "Dissolve batch"msgstr "Toplu İşi Kaldır"@@ -6404,6 +6409,9 @@ msgstr "Toplu İşi Çöz"msgid "Dissolved {0} batches"msgstr "{0} parti çözüldü"+msgid "Dissolved 1 batch"+msgstr "1 Parti Çözüldü"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "{0} çözüldüğünde, {memberCount} operasyonu zamanlamaya yürütülmemiş olarak geri verir ve toplu işi siler. Kaydedilmiş üretimi olan bir toplu iş yerine tamamlanmalıdır."@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "Bu konumda stok yok"msgid "No stock on hand at this location."-msgstr ""+msgstr "Bu lokasyonda stok yoktur."msgid "No stockout projected in the next 48 weeks"msgstr "Sonraki 48 hafta içinde stoksuzluk öngörülmedi"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "Depolama birimi yok"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "Depolama birimleri veya takip numaraları eşleşmiyor."msgid "No suppliers yet"msgstr "Henüz tedarikçi yok"@@ -14863,6 +14871,9 @@ msgstr "Serbest Bırakma"msgid "Release {0} batches"msgstr "{0} partiyi serbest bırak"+msgid "Release 1 batch"+msgstr "1 Partiyi Serbest Bırak"+msgid "Release Batch"msgstr "Partiyi Serbest Bırak"@@ -14883,6 +14894,9 @@ msgstr "Serbest Bırakma Kontrolü"msgid "Release Job"msgstr "İş emrini serbest bırak"+msgid "Release Jobs"+msgstr "İş emirlerini Serbest Bırak"+msgid "Released"msgstr "Yayınlandı"@@ -14890,6 +14904,16 @@ msgstr "Yayınlandı"msgid "Released {0} batches"msgstr "{0} parti serbest bırakıldı"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "{0} İş emri serbest bırakıldı"++msgid "Released 1 batch"+msgstr "1 Parti serbest bırakıldı"++msgid "Released 1 job"+msgstr "1 İş emri serbest bırakıldı"+msgid "Released date"msgstr "Yayın tarihi"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "İlgili öğeleri ara..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "Depolama birimlerini ve takip numaralarını ara"msgid "Search suppliers..."msgstr "Tedarikçileri ara..."@@ -18745,6 +18769,9 @@ msgstr "Aynı kişi denetim yapabilir"msgid "The SAML metadata URL published by your identity provider"msgstr "Kimlik sağlayıcınız tarafından yayınlanan SAML meta veri URL'si"+msgid "The schedule could not be updated after the release"+msgstr "Serbest bırakıldıktan sonra çizelge güncellenemedi."+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "Bu varlığın Maliyetini Faydalı ömrü boyunca yaymak için kullanılan amortisman yöntemi (doğrusal, Azalan bakiye, üretim birimleri)."@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "Başlıksız Adım"msgid "Untracked"-msgstr ""+msgstr "İzlenmeyen"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "İş merkezinden depoya geri gönderilen kullanılmayan alınan malzeme."diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 3ecfedbbe5..52fcee7272 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -4825,7 +4825,9 @@ msgid "Could not read the document: {0}"msgstr "无法读取文件:{0}"#. placeholder {0}: d.failed.length+#. placeholder {0}: result.failed.length#. placeholder {1}: d.failed .map((f) => f.readableId) .join(", ")+#. placeholder {1}: result.failed .map((f) => `${f.readableId} (${f.message})`) .join(", ")msgid "Could not release {0}: {1}"msgstr "无法下达{0}:{1}"@@ -6394,6 +6396,9 @@ msgstr "解散"msgid "Dissolve {0} batches"msgstr "解散 {0} 批次"+msgid "Dissolve 1 batch"+msgstr "取消1个生产批次"+msgid "Dissolve batch"msgstr "解散批次"@@ -6404,6 +6409,9 @@ msgstr "解散批次"msgid "Dissolved {0} batches"msgstr "已解散 {0} 批次"+msgid "Dissolved 1 batch"+msgstr "已取消1个生产批次"+#. placeholder {0}: batch.readableIdmsgid "Dissolving {0} returns its {memberCount} operations to the schedule un-run and deletes the batch. A batch with recorded production must be completed instead."msgstr "解散{0}会将其{memberCount}个操作返回到未运行的计划中,并删除该批次。包含已记录生产的批次必须改为完成。"@@ -12185,7 +12193,7 @@ msgid "No stock at this location"msgstr "此位置没有库存"msgid "No stock on hand at this location."-msgstr ""+msgstr "此地点没有库存。"msgid "No stockout projected in the next 48 weeks"msgstr "未来 48 周内没有预计缺货"@@ -12194,7 +12202,7 @@ msgid "No storage unit"msgstr "无存储单元"msgid "No storage units or tracking numbers match."-msgstr ""+msgstr "没有存储单元或追踪号与之匹配。"msgid "No suppliers yet"msgstr "还没有供应商"@@ -14863,6 +14871,9 @@ msgstr "下达"msgid "Release {0} batches"msgstr "下达{0}个生产批次"+msgid "Release 1 batch"+msgstr "下达1个生产批次"+msgid "Release Batch"msgstr "下达生产批次"@@ -14883,6 +14894,9 @@ msgstr "下达控制"msgid "Release Job"msgstr "下达工单"+msgid "Release Jobs"+msgstr "下达工单"+msgid "Released"msgstr "已下达"@@ -14890,6 +14904,16 @@ msgstr "已下达"msgid "Released {0} batches"msgstr "已下达{0}个生产批次"+#. placeholder {0}: result.released+msgid "Released {0} jobs"+msgstr "已下达{0}个工单"++msgid "Released 1 batch"+msgstr "已下达1个生产批次"++msgid "Released 1 job"+msgstr "已下达1个工单"+msgid "Released date"msgstr "下达日期"@@ -16144,7 +16168,7 @@ msgid "Search related items..."msgstr "搜索相关物料..."msgid "Search storage units and tracking numbers"-msgstr ""+msgstr "搜索存储单元和追踪号"msgid "Search suppliers..."msgstr "搜索供应商..."@@ -18745,6 +18769,9 @@ msgstr "同一个人可以检查"msgid "The SAML metadata URL published by your identity provider"msgstr "您的身份提供商发布的 SAML 元数据 URL"+msgid "The schedule could not be updated after the release"+msgstr "下达后无法更新排程。"+msgid "The schedule used to spread this asset's cost over its useful life (straight-line, declining balance, units of production)."msgstr "用于在其使用年限内分摊此资产成本的排程(直线法、余额递减法、生产单位法)。"@@ -20016,7 +20043,7 @@ msgid "Untitled step"msgstr "未命名步骤"msgid "Untracked"-msgstr ""+msgstr "未追踪"msgid "Unused picked material flushed back from the work center to the warehouse."msgstr "未使用的已拣货物料从工作中心冲回至仓库。"