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(settings): strict backflush review drawers and negative-stock switch
naveenkashbdb26a1ab5fe
diff --git a/.ai/playbooks/strict-backflush.md b/.ai/playbooks/strict-backflush.mdindex c6b26e01d5..64899b48f9 100644--- a/.ai/playbooks/strict-backflush.md+++ b/.ai/playbooks/strict-backflush.md@@ -16,6 +16,9 @@ Routes: `/x/settings/items`, `/x/part/<itemId>/make/<makeMethodId>`, `/x/job/<jo### 1. Settings — `/x/settings/items` → "Strict Backflush" card switch.Expect "Strict backflush is on" and "1 active method has materials with no Pull From"with a link (SAW-001).+Below it, "Prevent negative stock" (enabled only while strict backflush is on). Off: a short+storage unit is drawn below zero and the operation completes; a missing storage unit is+still refused.### 2. Activation — part make page → version button ("V1 Draft") → hover "Version 1 Draft"→ "Set as Active Version" → "Make Active". With gaps: toast"Set a Pull From storage unit before you activate this version: <part>; <part>".diff --git a/.ai/specs/2026-10-14-strict-backflush.md b/.ai/specs/2026-10-14-strict-backflush.mdindex 072b6d8178..cece184d72 100644--- a/.ai/specs/2026-10-14-strict-backflush.md+++ b/.ai/specs/2026-10-14-strict-backflush.md@@ -56,9 +56,10 @@ Example: the BoM says "pull 10 × PART-123 from Shelf A-4". Shelf A-4 has 6 and| 3 | Which locations need a Pull From | Each location that has at least one active work center and at least one active storage unit. | Pull From is stored per location (`methodMaterial.storageUnitIds`). A location with no work center builds nothing. A location with no storage unit has no bin a line could name, so a Pull From there can never be set. || 4 | Draft methods | Release refuses a job whose pulled line has no `storageUnitId`. | A job can come from a Draft method, so the activation check alone has a gap. || 5 | Picked stock | The material's picks and unclaimed lineside stock are consumed first, as today. The strict rule applies to the remainder. | A pick moves stock out of the Pull From bin with a transfer, so the records stay correct. Picking also moves `jobMaterial.storageUnitId` to the lineside bin. |+| 6a | Negative stock under strict bins | A second switch, `companySettings.preventNegativeBackflush` ("Prevent negative stock", default `true`), nested under Strict Backflush and only active while it is on. Off: the material is still drawn only from its own storage unit, and that storage unit may go below zero. A missing storage unit is refused either way. | A company can want strict bins (accurate per-location stock) without the hard stop on a short bin. Default `true` keeps the behavior the setting shipped with. || 6 | Where a shortage stops the work | At operation completion (MES and ERP), at job completion, and at manual issue of a planned material. | If only job completion stopped, the operation would take stock from another bin first. || 7 | Batch and serial items | The activation and release checks include them. Their issue flow does not change. | An operator scans the unit, and the unit knows its own bin. |-| 8 | Methods that are already Active | Carbon does not change them. The settings card shows how many Active methods have a gap, and lists them. | Changing a live method without warning is a large risk. |+| 8 | Methods that are already Active, jobs already released | Carbon does not change them. The settings card counts Active methods with a gap and open jobs (Ready, In Progress, Paused) with a material that has no storage unit. Each count opens a drawer with the full list, searchable and paged. | Changing a live method or job without warning is a large risk. A card can hold a count, not a list of hundreds. || 9 | Produced units with no consumption | MES records a production quantity before it calls `issue`. When strict backflush is on, MES first runs `issue` as a dry run (all writes rolled back). If the dry run fails, MES records nothing. | Without the dry run, a refusal leaves produced units with no material consumed. A retry then records the units a second time. || 10 | Error text | The refusal names the part, the storage unit, the quantity needed and the quantity on hand. One refusal lists every short material. MES and ERP show the server's message instead of a fixed fallback. | "Failed to issue materials" tells the operator nothing to fix. A refusal that names one part at a time makes the material controller fix them one retry at a time. || 11 | One rule, three users | The line predicate lives once in `@carbon/database/strict-backflush`. Activation, release and the settings card all read it. | Three copies of the rule would drift apart. |@@ -73,11 +74,14 @@ Example: the BoM says "pull 10 × PART-123 from Shelf A-4". Shelf A-4 has 6 and## Data Model Changes-One new column. One function replaced.+Two new columns. One function replaced.```sqlALTER TABLE "companySettings"ADD COLUMN "requireBackflushStorageUnit" BOOLEAN NOT NULL DEFAULT false;++ALTER TABLE "companySettings"+ ADD COLUMN "preventNegativeBackflush" BOOLEAN NOT NULL DEFAULT true;````backflush_job_materials` is replaced with a copy of its live definition (`20261009010412_job-costing-always-post.sql`). The only changes are in the storage unit step:@@ -105,7 +109,7 @@ No new table. No RLS change.| `getJobReleaseReadiness` | Each job gets `materialsWithoutStorageUnit: { id, description }[]`. The list is empty when the setting is off. || `jobReleaseProblems` | Adds "set a Pull From storage unit on PART-1, PART-2". || `$jobId.status.tsx` (Release dialog path) | Refuses a job with `materialsWithoutStorageUnit` and names the parts. |-| `settings.service.ts` | `updateRequireBackflushStorageUnitSetting` and `getActiveMethodsMissingPullFrom(db, companyId)`. |+| `settings.service.ts` | `updateRequireBackflushStorageUnitSetting`, `updatePreventNegativeBackflushSetting`, `getActiveMethodsMissingPullFrom(db, companyId)` and `getOpenJobsMissingStorageUnit(db, companyId)`. || `versions.activate.$id.tsx`, `applyChangeNotice` | Show the server's message when activation fails. || MES `complete.tsx`, `end.$operationId.tsx`, `quality.server.ts` | Run the `dryRun` issue before `insertProductionQuantity`. Show the server's message. || MES `scrap.tsx`, `issue.tsx` | Show the server's message. |@@ -131,7 +135,7 @@ No new table. No RLS change.- [ ] Shelf A-4 holds 10. The operation completes, and the ledger row is against Shelf A-4.- [ ] 6 of the 10 were picked to the lineside bin, and Shelf A-4 holds 4. The operation completes. 6 come from the lineside bin and 4 from Shelf A-4.- [ ] ERP Job → Complete with a short bin shows the refusal text, and the job stays open.-- [ ] The settings card shows the count of Active methods with a gap.+- [ ] The settings card shows the count of Active methods with a gap and of open jobs with a material that has no storage unit. Review opens a drawer that lists every one, with search.- [ ] Unit tests pin `needsPullFrom`, `missingPullFromLocations` and the shortfall arithmetic.## Risks@@ -161,6 +165,9 @@ No new table. No RLS change.## Changelog- 2026-10-14: Created from the backflush rules design discussion.+- 2026-10-16: The settings card counts open jobs with a material that has no storage unit, and both counts open a searchable drawer instead of an inline list (user request).+- 2026-10-16: The drawers show locations as pills. A materials cell shows 3 part IDs, and "+N more" opens the full list in a popover that scrolls (user request).+- 2026-10-16: Split the no-negative rule into its own switch, `preventNegativeBackflush` (decision 6a, user request).- 2026-10-15: Long lists. A 20-line BoM produced a 912-character toast that ran off a small screen and faded before it could be read. Every strict refusal now names the first entries and counts the rest (`summarizeList`: 5 part names, 3 shortfalls; the SQL caps at 3 too). The Release dialog keeps the full list in a scroll box, and a collapsed BoM or job BoM row shows a red "No storage unit" badge.- 2026-10-15: The activation error names only the parts, not the locations (user request).- 2026-10-15: Browser test. Fixed: a location with a work center but no storage unit blocked activation for good; the release list named a part twice; the Release dialog did not warn before submit; the job BoM line showed "Default Storage Unit" and "Optional"; a refusal named only the first short material (TypeScript and SQL).diff --git a/apps/erp/app/modules/production/AGENTS.md b/apps/erp/app/modules/production/AGENTS.mdindex b7106d4849..5d89c44bc5 100644--- a/apps/erp/app/modules/production/AGENTS.md+++ b/apps/erp/app/modules/production/AGENTS.md@@ -20,14 +20,14 @@ Work orders (jobs), scheduling, routings (operations), bill of materials, proced### Strict backflush-`companySettings.requireBackflushStorageUnit` (Settings → Items → Strict Backflush, off by default; spec `.ai/specs/2026-10-14-strict-backflush.md`). When it is on, a stocked material is consumed only from its own storage unit, and a missing or short bin refuses the work instead of drawing from another bin:+`companySettings.requireBackflushStorageUnit` (Settings → Items → Strict Backflush, off by default; spec `.ai/specs/2026-10-14-strict-backflush.md`). When it is on, a stocked material is consumed only from its own storage unit, never another bin. A missing bin refuses the work. A short bin refuses it only while `companySettings.preventNegativeBackflush` is on (the nested "Prevent negative stock" switch, on by default); with it off the bin is drawn below zero. `getStrictBackflushSettings` (`packages/server-functions/src/lib/strict-backflush.ts`) reads both, and `binCoverProblem` skips the quantity check and its lock when negative stock is allowed; the SQL reads the same two columns:- **Which lines.** `needsPullFrom` (`@carbon/database/strict-backflush`): not Make to Order, item type Material / Part / Consumable, item not Non-Inventory. The locations are `getPullFromLocations` — each with an active work center AND an active storage unit (a location with no storage unit has no bin a line could name, so requiring one there would block activation for good). Activation, release and the settings card all read these two.- **Activation.** `convert` `methodVersionToActive` calls `assertMethodHasPullFrom` (`packages/server-functions/src/lib/strict-backflush.ts`) and refuses a version with a line missing a Pull From at one of those locations.- **Release.** `getJobReleaseReadiness` returns `materialsWithoutStorageUnit` per job (`materialsWithoutStorageUnit` in `job-release-logic.ts`, one entry per part); `jobReleaseProblems`, the Release dialog route and `BatchReleaseModal` refuse on it. `JobStartModal` runs the same function before submit, lists the parts and disables Release Job. The BoM editor and the job BoM editor show a red "No storage unit" badge on such a line.- **Backflush.** `issueJobOperationMaterials` and `partToOperation` (planned material, consuming issue) consume what no pick covered from `jobMaterial.storageUnitId` only, through `assertBinCovers` (409, names the part, the bin, need and have; it first takes `pg_advisory_xact_lock` on `strict-backflush:<companyId>:<bin>:<item>`, the same key the SQL takes). Picked and unclaimed lineside stock is still drawn first. `issueJobOperationMaterials` collects every shortfall (`binCoverProblem`) and refuses once; the SQL does the same. A refusal is a toast, so every strict message goes through `summarizeList` (`@carbon/database/strict-backflush`): the first 5 part names or 3 shortfalls, then "and N more" (the full shortfall list is logged). The Release dialog shows the full list in a scroll box; collapsed BoM and job BoM rows carry the red "No storage unit" badge (`MaterialRowTitle` `missingPullFrom`). SQL `backflush_job_materials` (`20261015163040_strict-backflush.sql`) raises the same refusal at job completion.- **Produced units with no consumption.** Callers that record a production quantity before they call `issue` — MES `complete.tsx`, `end.$operationId.tsx`, `quality.server.ts` `postBulkCompletion`, ERP `completeOperation`, `batch-operations` `complete` — first invoke `issue` `jobOperation` with `dryRun: true` (a rolled-back run; a no-op when the setting is off).-- **Existing Active methods are never changed** when the setting turns on; `getActiveMethodsMissingPullFrom` lists them on the settings card.+- **Existing Active methods and released jobs are never changed** when the setting turns on. The settings card counts both gaps — `getActiveMethodsMissingPullFrom` (Active methods with a material missing a Pull From) and `getOpenJobsMissingStorageUnit` (Ready / In Progress / Paused jobs with a material that has no storage unit; release would refuse them, but they are past it) — and each count's Review button opens a route drawer (`settings+/items.methods-missing-pull-from.tsx`, `items.jobs-missing-storage-unit.tsx`) with the full list in a searchable, paged `Table` (`ui/StrictBackflush/StrictBackflushTables.tsx`; the loaders page in memory with `pageInMemory` from `~/utils/query`). A long list never goes in the card itself. Locations render as `Enumerable` pills; a materials cell shows 3 part IDs and a "+N more" button that opens all of them in a scrolling popover. The popover is `modal` — it renders in a portal outside the drawer, and without its own scroll lock the drawer's lock cancels the wheel over it.### Job completiondiff --git a/apps/erp/app/modules/settings/settings.service.ts b/apps/erp/app/modules/settings/settings.service.tsindex d7feb527ff..eb99d78882 100644--- a/apps/erp/app/modules/settings/settings.service.ts+++ b/apps/erp/app/modules/settings/settings.service.ts@@ -1236,27 +1236,40 @@ export async function updateRequireBackflushStorageUnitSetting(.eq("id", companyId);}-const MISSING_PULL_FROM_SHOWN = 10;+/** @mcp update */+export async function updatePreventNegativeBackflushSetting(+ client: SupabaseClient<Database>,+ companyId: string,+ preventNegativeBackflush: boolean+) {+ return client+ .from("companySettings")+ .update({ preventNegativeBackflush })+ .eq("id", companyId);+}-// Strict backflush: the Active make methods with a pulled, stocked line that-// has no Pull From at a location with an active work center. Turning the-// setting on leaves these methods Active; the settings card lists them.-// Kysely, not PostgREST: a company's Active BoM lines can pass the 1000-row cap.+export type MethodMissingPullFrom = {+ makeMethodId: string;+ itemId: string;+ itemType: string;+ readableId: string;+ name: string;+ version: number;+ /** The pulled, stocked materials on this version with a gap. */+ materials: string[];+ /** The locations at least one of those materials has no Pull From at. */+ locations: string[];+};++// Strict backflush: every Active make method with a pulled, stocked line that+// has no Pull From at a location with an active work center and a storage+// unit. Turning the setting on leaves these methods Active; the settings card+// counts them and its drawer lists them. Kysely, not PostgREST: a company's+// Active BoM lines can pass the 1000-row cap.export async function getActiveMethodsMissingPullFrom(db: Kysely<KyselyDatabase>,companyId: string-): Promise<{- data: {- count: number;- methods: {- makeMethodId: string;- itemId: string;- itemType: string;- readableId: string;- }[];- } | null;- error: Error | null;-}> {+): Promise<{ data: MethodMissingPullFrom[] | null; error: Error | null }> {try {// One query at a time: run together, each would take its own pooled// connection, and opening one costs more than these reads do.@@ -1275,29 +1288,33 @@ export async function getActiveMethodsMissingPullFrom(.where("methodMaterial.itemType", "in", [...PULLED_ITEM_TYPES]).select(["makeMethod.id as makeMethodId",+ "makeMethod.version","parent.id as itemId","parent.type as itemType","parent.readableIdWithRevision as readableId",+ "parent.name","methodMaterial.methodType","methodMaterial.itemType as lineItemType","methodMaterial.storageUnitIds",- "component.itemTrackingType"+ "component.itemTrackingType",+ "component.id as componentId",+ "component.readableIdWithRevision as componentReadableId"]).execute();const locations = await getPullFromLocations(db, companyId);const locationIds = locations.map((location) => location.id);+ const locationName = new Map(+ locations.map((location) => [location.id, location.name])+ );const methods = new Map<string,- {- makeMethodId: string;- itemId: string;- itemType: string;- readableId: string;+ Omit<MethodMissingPullFrom, "materials" | "locations"> & {+ materials: Set<string>;+ locations: Set<string>;}>();for (const line of lines) {- if (methods.has(line.makeMethodId)) continue;if (!needsPullFrom({methodType: line.methodType,@@ -1306,23 +1323,123 @@ export async function getActiveMethodsMissingPullFrom(}))continue;- if (missingPullFromLocations(line.storageUnitIds, locationIds).length > 0)- methods.set(line.makeMethodId, {- makeMethodId: line.makeMethodId,- itemId: line.itemId,+ const missing = missingPullFromLocations(+ line.storageUnitIds,+ locationIds+ );+ if (missing.length === 0) continue;++ const method = methods.get(line.makeMethodId) ?? {+ makeMethodId: line.makeMethodId,+ itemId: line.itemId,+ itemType: line.itemType,+ readableId: line.readableId ?? line.itemId,+ name: line.name,+ version: Number(line.version),+ materials: new Set<string>(),+ locations: new Set<string>()+ };+ method.materials.add(line.componentReadableId ?? line.componentId);+ for (const id of missing)+ method.locations.add(locationName.get(id) ?? id);+ methods.set(line.makeMethodId, method);+ }++ return {+ data: [...methods.values()]+ .map((method) => ({+ ...method,+ materials: [...method.materials].sort(),+ locations: [...method.locations].sort()+ }))+ .sort((a, b) => a.readableId.localeCompare(b.readableId)),+ error: null+ };+ } catch (error) {+ return { data: null, error: error as Error };+ }+}++export type JobMissingStorageUnit = {+ id: string;+ jobId: string;+ status: Database["public"]["Enums"]["jobStatus"];+ readableId: string | null;+ locationName: string | null;+ /** The pulled, stocked materials on this job with no storage unit. */+ materials: string[];+};++// The jobs already on the floor (released before strict backflush was turned+// on, or edited since) that have a pulled, stocked line with no storage unit.+// Release refuses such a job, but these are past release — their next+// backflush will be refused instead, so the settings card counts them and its+// drawer lists them.+const OPEN_JOB_STATUSES = ["Ready", "In Progress", "Paused"] as const;++export async function getOpenJobsMissingStorageUnit(+ db: Kysely<KyselyDatabase>,+ companyId: string+): Promise<{ data: JobMissingStorageUnit[] | null; error: Error | null }> {+ try {+ const lines = await db+ .selectFrom("jobMaterial")+ .innerJoin("job", (join) =>+ join+ .onRef("job.id", "=", "jobMaterial.jobId")+ .on("job.companyId", "=", companyId)+ .on("job.status", "in", [...OPEN_JOB_STATUSES])+ )+ .innerJoin("item as component", "component.id", "jobMaterial.itemId")+ .leftJoin("item as jobItem", "jobItem.id", "job.itemId")+ .leftJoin("location", "location.id", "job.locationId")+ .where("jobMaterial.companyId", "=", companyId)+ .where("jobMaterial.storageUnitId", "is", null)+ .where("jobMaterial.methodType", "!=", "Make to Order")+ .where("jobMaterial.itemType", "in", [...PULLED_ITEM_TYPES])+ .select([+ "job.id",+ "job.jobId",+ "job.status",+ "jobItem.readableIdWithRevision as readableId",+ "location.name as locationName",+ "jobMaterial.methodType",+ "jobMaterial.itemType",+ "component.itemTrackingType",+ "component.id as componentId",+ "component.readableIdWithRevision as componentReadableId"+ ])+ .execute();++ const jobs = new Map<+ string,+ Omit<JobMissingStorageUnit, "materials"> & { materials: Set<string> }+ >();+ for (const line of lines) {+ if (+ !needsPullFrom({+ methodType: line.methodType,itemType: line.itemType,- readableId: line.readableId ?? line.itemId- });+ itemTrackingType: line.itemTrackingType+ })+ )+ continue;+ const job = jobs.get(line.id) ?? {+ id: line.id,+ jobId: line.jobId,+ status: line.status,+ readableId: line.readableId,+ locationName: line.locationName,+ materials: new Set<string>()+ };+ job.materials.add(line.componentReadableId ?? line.componentId);+ jobs.set(line.id, job);}- const sorted = [...methods.values()].sort((a, b) =>- a.readableId.localeCompare(b.readableId)- );return {- data: {- count: sorted.length,- methods: sorted.slice(0, MISSING_PULL_FROM_SHOWN)- },+ data: [...jobs.values()]+ .map((job) => ({ ...job, materials: [...job.materials].sort() }))+ .sort((a, b) => a.jobId.localeCompare(b.jobId)),error: null};} catch (error) {diff --git a/apps/erp/app/modules/settings/ui/StrictBackflush/StrictBackflushTables.tsx b/apps/erp/app/modules/settings/ui/StrictBackflush/StrictBackflushTables.tsxnew file mode 100644index 0000000000..d27abe2040--- /dev/null+++ b/apps/erp/app/modules/settings/ui/StrictBackflush/StrictBackflushTables.tsx@@ -0,0 +1,266 @@+// 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 {+ Button,+ Popover,+ PopoverContent,+ PopoverHeader,+ PopoverTrigger,+ useViewport+} from "@carbon/react";+import { useLingui } from "@lingui/react/macro";+import type { ColumnDef } from "@tanstack/react-table";+import { memo, useMemo } from "react";+import {+ LuBookMarked,+ LuGitBranch,+ LuMapPin,+ LuPackage,+ LuSquareStack,+ LuText+} from "react-icons/lu";+import { Hyperlink, Table } from "~/components";+import { Enumerable } from "~/components/Enumerable";+import JobStatus from "~/modules/production/ui/Jobs/JobStatus";+import { path } from "~/utils/path";+import type {+ JobMissingStorageUnit,+ MethodMissingPullFrom+} from "../../settings.service";++// The make-method page of a method's item, by item type. Only Parts, Tools and+// Services carry make methods with their own route.+export function makeMethodPath(method: {+ itemId: string;+ itemType: string;+ makeMethodId: string;+}): string | null {+ switch (method.itemType) {+ case "Part":+ return path.to.partMake(method.itemId, method.makeMethodId);+ case "Tool":+ return path.to.toolMake(method.itemId, method.makeMethodId);+ case "Service":+ return path.to.serviceMake(method.itemId, method.makeMethodId);+ default:+ return null;+ }+}++const PARTS_SHOWN = 3;++// A list of part IDs in one cell. An ID never breaks across lines. Past the+// first few, "+N more" opens the whole list in a scrolling popover (a sheet on+// a phone). The drawer's search and the CSV download cover every ID too.+function PartList({ parts, label }: { parts: string[]; label: string }) {+ const { t } = useLingui();+ const { isPhone } = useViewport();+ const shown = parts.slice(0, PARTS_SHOWN);+ const more = parts.length - shown.length;+ return (+ <div className="flex flex-wrap items-center gap-x-1 text-sm min-w-0 max-w-full">+ {shown.map((part, index) => (+ <span key={part} className="whitespace-nowrap">+ {part}+ {index < shown.length - 1 ? "," : ""}+ </span>+ ))}+ {more > 0 && (+ // Modal: the drawer's scroll lock blocks the wheel outside the drawer,+ // and the popover renders in a portal outside it. A modal popover+ // takes the lock itself, so its list scrolls.+ <Popover modal>+ <PopoverTrigger asChild>+ <Button variant="link" size="sm" className="text-muted-foreground">+ {t`+${more} more`}+ </Button>+ </PopoverTrigger>+ <PopoverContent+ align="start"+ collisionPadding={8}+ className="w-64 p-0"+ aria-label={label}+ >+ {/* A phone's sheet titles itself from aria-label. */}+ {!isPhone && (+ <PopoverHeader className="mx-0 mt-0 mb-0 flex items-center justify-between gap-2">+ <span className="truncate">{label}</span>+ <span className="shrink-0 tabular-nums text-muted-foreground">+ {parts.length}+ </span>+ </PopoverHeader>+ )}+ <ul className="max-h-72 overflow-y-auto py-1 text-sm">+ {parts.map((part) => (+ <li key={part} className="truncate px-4 py-1" title={part}>+ {part}+ </li>+ ))}+ </ul>+ </PopoverContent>+ </Popover>+ )}+ </div>+ );+}++function LocationPills({ locations }: { locations: string[] }) {+ return (+ <div className="flex flex-wrap gap-1">+ {locations.map((location) => (+ <Enumerable key={location} value={location} />+ ))}+ </div>+ );+}++export const MethodsMissingPullFromTable = memo(+ ({ data, count }: { data: MethodMissingPullFrom[]; count: number }) => {+ const { t } = useLingui();+ const columns = useMemo<ColumnDef<MethodMissingPullFrom>[]>(+ () => [+ {+ accessorKey: "readableId",+ header: t`Part`,+ cell: ({ row }) => {+ const to = makeMethodPath(row.original);+ return to ? (+ <Hyperlink to={to}>{row.original.readableId}</Hyperlink>+ ) : (+ <span className="whitespace-nowrap">+ {row.original.readableId}+ </span>+ );+ },+ meta: { mobile: "P1", icon: <LuBookMarked /> }+ },+ {+ accessorKey: "name",+ header: t`Description`,+ cell: ({ row }) => (+ <span className="line-clamp-1">{row.original.name}</span>+ ),+ meta: { icon: <LuText /> }+ },+ {+ accessorKey: "version",+ header: t`Version`,+ cell: ({ row }) => <span>V{row.original.version}</span>,+ meta: { icon: <LuGitBranch /> }+ },+ {+ accessorKey: "materials",+ header: t`Materials missing a Pull From`,+ cell: ({ row }) => (+ <PartList+ parts={row.original.materials}+ label={t`Materials missing a Pull From`}+ />+ ),+ meta: {+ mobile: "P2",+ icon: <LuSquareStack />,+ exportValue: (row) => row.materials.join(", ")+ }+ },+ {+ accessorKey: "locations",+ header: t`Locations`,+ cell: ({ row }) => (+ <LocationPills locations={row.original.locations} />+ ),+ meta: {+ icon: <LuMapPin />,+ exportValue: (row) => row.locations.join(", ")+ }+ }+ ],+ [t]+ );++ return (+ <Table<MethodMissingPullFrom>+ data={data}+ columns={columns}+ count={count}+ title={t`Methods`}+ table="strictBackflushMethods"+ withSearch+ withPagination+ />+ );+ }+);+MethodsMissingPullFromTable.displayName = "MethodsMissingPullFromTable";++export const JobsMissingStorageUnitTable = memo(+ ({ data, count }: { data: JobMissingStorageUnit[]; count: number }) => {+ const { t } = useLingui();+ const columns = useMemo<ColumnDef<JobMissingStorageUnit>[]>(+ () => [+ {+ accessorKey: "jobId",+ header: t`Job`,+ cell: ({ row }) => (+ <Hyperlink to={path.to.job(row.original.id)}>+ {row.original.jobId}+ </Hyperlink>+ ),+ meta: { mobile: "P1", icon: <LuBookMarked /> }+ },+ {+ accessorKey: "status",+ header: t`Status`,+ cell: ({ row }) => <JobStatus status={row.original.status} />+ },+ {+ accessorKey: "readableId",+ header: t`Part`,+ cell: ({ row }) => (+ <span className="whitespace-nowrap">+ {row.original.readableId ?? ""}+ </span>+ ),+ meta: { icon: <LuPackage /> }+ },+ {+ accessorKey: "locationName",+ header: t`Location`,+ cell: ({ row }) => <Enumerable value={row.original.locationName} />,+ meta: { icon: <LuMapPin /> }+ },+ {+ accessorKey: "materials",+ header: t`Materials with no storage unit`,+ cell: ({ row }) => (+ <PartList+ parts={row.original.materials}+ label={t`Materials with no storage unit`}+ />+ ),+ meta: {+ mobile: "P2",+ icon: <LuSquareStack />,+ exportValue: (row) => row.materials.join(", ")+ }+ }+ ],+ [t]+ );++ return (+ <Table<JobMissingStorageUnit>+ data={data}+ columns={columns}+ count={count}+ title={t`Jobs`}+ table="strictBackflushJobs"+ withSearch+ withPagination+ />+ );+ }+);+JobsMissingStorageUnitTable.displayName = "JobsMissingStorageUnitTable";diff --git a/apps/erp/app/modules/settings/ui/StrictBackflush/index.ts b/apps/erp/app/modules/settings/ui/StrictBackflush/index.tsnew file mode 100644index 0000000000..915f77d0bb--- /dev/null+++ b/apps/erp/app/modules/settings/ui/StrictBackflush/index.ts@@ -0,0 +1,9 @@+// 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.++export {+ JobsMissingStorageUnitTable,+ MethodsMissingPullFromTable,+ makeMethodPath+} from "./StrictBackflushTables";diff --git a/apps/erp/app/modules/settings/ui/index.ts b/apps/erp/app/modules/settings/ui/index.tsindex 5a440d9efa..979a1fd397 100644--- a/apps/erp/app/modules/settings/ui/index.ts+++ b/apps/erp/app/modules/settings/ui/index.ts@@ -18,5 +18,6 @@ export * from "./Printing";export * from "./Security";export * from "./Sequences";export * from "./SerialNumbers";+export * from "./StrictBackflush";export * from "./Theme";export { useSettingsSubmodules };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 47c0b96814..423e408dc9 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@@ -1,5 +1,5 @@{- "totalTools": 1557,+ "totalTools": 1558,"modules": 15,"tools": [{"name":"account_deleteUserAttributeValue","classification":"DESTRUCTIVE","paramCount":2,"schema":"0d38e12233b4","response":"bcde375ebd4c","injectAuth":"companyId+userId","permission":"none","paginates":false},@@ -1421,7 +1421,7 @@{"name":"settings_getCompany","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"81a93f0029ec","injectAuth":"companyId","permission":"settings:view","paginates":false},{"name":"settings_getCompanyIntegrations","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"3a98b34db51d","injectAuth":"companyId","permission":"settings:view","paginates":false},{"name":"settings_getCompanyPlan","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"none","injectAuth":"companyId","permission":"settings:view","paginates":false},- {"name":"settings_getCompanySettings","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"d8783d378f25","injectAuth":"companyId","permission":"settings:view","paginates":false},+ {"name":"settings_getCompanySettings","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"62d80c17f737","injectAuth":"companyId","permission":"settings:view","paginates":false},{"name":"settings_getConfig","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"aa1021ff34cf","injectAuth":"companyId","permission":"settings:view","paginates":false},{"name":"settings_getCurrentSequence","classification":"READ","paramCount":1,"schema":"f55836d6d401","response":"00404e686415","injectAuth":"companyId","permission":"settings:view","paginates":false},{"name":"settings_getCustomField","classification":"READ","paramCount":1,"schema":"3797626bd17e","response":"a533a796c094","injectAuth":"companyId","permission":"settings:view","paginates":false},@@ -1484,6 +1484,7 @@{"name":"settings_updateMetricSettings","classification":"WRITE","paramCount":1,"schema":"6310a488e8b2","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},{"name":"settings_updateMrpRunTimeSetting","classification":"WRITE","paramCount":1,"schema":"7e0d8d6dda56","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},{"name":"settings_updatePlmReleaseControlSetting","classification":"WRITE","paramCount":1,"schema":"b74d1adb972d","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},+ {"name":"settings_updatePreventNegativeBackflushSetting","classification":"WRITE","paramCount":1,"schema":"421ef959d827","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},{"name":"settings_updatePurchasePriceUpdateTimingSetting","classification":"WRITE","paramCount":1,"schema":"6e01697e737c","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},{"name":"settings_updateQuoteLineCategoryMarkups","classification":"WRITE","paramCount":1,"schema":"46b636ff84f8","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},{"name":"settings_updateRequireBackflushStorageUnitSetting","classification":"WRITE","paramCount":1,"schema":"2f238b14da00","response":"bcde375ebd4c","injectAuth":"companyId","permission":"settings:update","paginates":false},diff --git a/apps/erp/app/routes/x+/settings+/items.jobs-missing-storage-unit.tsx b/apps/erp/app/routes/x+/settings+/items.jobs-missing-storage-unit.tsxnew file mode 100644index 0000000000..cb5b6381f6--- /dev/null+++ b/apps/erp/app/routes/x+/settings+/items.jobs-missing-storage-unit.tsx@@ -0,0 +1,75 @@+// 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 { getLogger } from "@carbon/logger";+import {+ Drawer,+ DrawerBody,+ DrawerContent,+ DrawerHeader,+ DrawerTitle+} from "@carbon/react";+import { Trans } from "@lingui/react/macro";+import type { LoaderFunctionArgs } from "react-router";+import { useLoaderData, useNavigate } from "react-router";+import {+ getOpenJobsMissingStorageUnit,+ JobsMissingStorageUnitTable+} from "~/modules/settings";+import { getDatabaseClient } from "~/services/database.server";+import { path } from "~/utils/path";+import { pageInMemory } from "~/utils/query";++const logger = getLogger("erp", "settings-items");++// Strict backflush: every open job with a material that has no storage unit,+// searchable and paged — the settings card only counts them.+export async function loader({ request }: LoaderFunctionArgs) {+ const { companyId } = await requirePermissions(request, {+ view: "settings"+ });++ const jobs = await getOpenJobsMissingStorageUnit(+ getDatabaseClient(),+ companyId+ );+ if (jobs.error) {+ logger.error("Failed to read open jobs missing a storage unit", {+ companyId,+ error: jobs.error+ });+ }++ const page = pageInMemory(+ jobs.data ?? [],+ new URL(request.url).searchParams,+ (job) => [job.jobId, job.readableId, job.locationName, ...job.materials]+ );+ return { jobs: page.rows, count: page.count };+}++export default function JobsMissingStorageUnitRoute() {+ const { jobs, count } = useLoaderData<typeof loader>();+ const navigate = useNavigate();+ return (+ <Drawer+ open+ onOpenChange={(open) => {+ if (!open) navigate(path.to.itemsSettings);+ }}+ >+ <DrawerContent size="xl">+ <DrawerHeader>+ <DrawerTitle>+ <Trans>Open Jobs Missing a Storage Unit</Trans>+ </DrawerTitle>+ </DrawerHeader>+ <DrawerBody className="p-0 max-md:p-0">+ <JobsMissingStorageUnitTable data={jobs} count={count} />+ </DrawerBody>+ </DrawerContent>+ </Drawer>+ );+}diff --git a/apps/erp/app/routes/x+/settings+/items.methods-missing-pull-from.tsx b/apps/erp/app/routes/x+/settings+/items.methods-missing-pull-from.tsxnew file mode 100644index 0000000000..09754221d7--- /dev/null+++ b/apps/erp/app/routes/x+/settings+/items.methods-missing-pull-from.tsx@@ -0,0 +1,75 @@+// 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 { getLogger } from "@carbon/logger";+import {+ Drawer,+ DrawerBody,+ DrawerContent,+ DrawerHeader,+ DrawerTitle+} from "@carbon/react";+import { Trans } from "@lingui/react/macro";+import type { LoaderFunctionArgs } from "react-router";+import { useLoaderData, useNavigate } from "react-router";+import {+ getActiveMethodsMissingPullFrom,+ MethodsMissingPullFromTable+} from "~/modules/settings";+import { getDatabaseClient } from "~/services/database.server";+import { path } from "~/utils/path";+import { pageInMemory } from "~/utils/query";++const logger = getLogger("erp", "settings-items");++// Strict backflush: every Active method with a material that has no Pull From,+// searchable and paged — the settings card only counts them.+export async function loader({ request }: LoaderFunctionArgs) {+ const { companyId } = await requirePermissions(request, {+ view: "settings"+ });++ const methods = await getActiveMethodsMissingPullFrom(+ getDatabaseClient(),+ companyId+ );+ if (methods.error) {+ logger.error("Failed to read methods missing a Pull From", {+ companyId,+ error: methods.error+ });+ }++ const page = pageInMemory(+ methods.data ?? [],+ new URL(request.url).searchParams,+ (method) => [method.readableId, method.name, ...method.materials]+ );+ return { methods: page.rows, count: page.count };+}++export default function MethodsMissingPullFromRoute() {+ const { methods, count } = useLoaderData<typeof loader>();+ const navigate = useNavigate();+ return (+ <Drawer+ open+ onOpenChange={(open) => {+ if (!open) navigate(path.to.itemsSettings);+ }}+ >+ <DrawerContent size="xl">+ <DrawerHeader>+ <DrawerTitle>+ <Trans>Active Methods Missing a Pull From</Trans>+ </DrawerTitle>+ </DrawerHeader>+ <DrawerBody className="p-0 max-md:p-0">+ <MethodsMissingPullFromTable data={methods} count={count} />+ </DrawerBody>+ </DrawerContent>+ </Drawer>+ );+}diff --git a/apps/erp/app/routes/x+/settings+/items.tsx b/apps/erp/app/routes/x+/settings+/items.tsxindex 907c4dba62..5fc0910ea1 100644--- a/apps/erp/app/routes/x+/settings+/items.tsx+++ b/apps/erp/app/routes/x+/settings+/items.tsx@@ -8,6 +8,7 @@ import { flash } from "@carbon/auth/session.server";import { Hidden, Select, Submit, ValidatedForm, validator } from "@carbon/form";import { getLogger } from "@carbon/logger";import {+ Button,Card,CardContent,CardDescription,@@ -15,6 +16,7 @@ import {CardHeader,CardTitle,HStack,+ RecordOutlet,ScrollArea,Switch,toast,@@ -23,6 +25,7 @@ import {import { redirect } from "@carbon/utils";import { msg } from "@lingui/core/macro";import { Plural, Trans, useLingui } from "@lingui/react/macro";+import type { ReactNode } from "react";import { useCallback, useEffect } from "react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";import { Link, useFetcher, useLoaderData } from "react-router";@@ -32,12 +35,14 @@ import { plmReleaseControl } from "~/modules/items";import {getActiveMethodsMissingPullFrom,getCompanySettings,+ getOpenJobsMissingStorageUnit,plmReleaseControlValidator,updateAllowLowercaseItemIdsSetting,updateBomExplorerReadableIdSetting,updateMaterialGeneratedIdsSetting,updateMetricSettings,updatePlmReleaseControlSetting,+ updatePreventNegativeBackflushSetting,updateRequireBackflushStorageUnitSetting} from "~/modules/settings";import { getDatabaseClient } from "~/services/database.server";@@ -66,26 +71,37 @@ export async function loader({ request }: LoaderFunctionArgs) {));- // Strict backflush leaves Active methods as they are; the card lists the- // ones with a gap so they can be fixed.- let methodsMissingPullFrom: Awaited<- ReturnType<typeof getActiveMethodsMissingPullFrom>- >["data"] = null;+ // Strict backflush leaves Active methods and released jobs as they are; the+ // card counts the ones with a gap and links to a drawer listing them all.+ let methodsMissingPullFrom: number | null = null;+ let jobsMissingStorageUnit: number | null = null;if (companySettings.data.requireBackflushStorageUnit) {- const missing = await getActiveMethodsMissingPullFrom(- getDatabaseClient(),- companyId- );- if (missing.error) {+ const db = getDatabaseClient();+ // One at a time: each read would otherwise take its own pooled connection.+ const methods = await getActiveMethodsMissingPullFrom(db, companyId);+ if (methods.error) {logger.error("Failed to read methods missing a Pull From", {companyId,- error: missing.error+ error: methods.error+ });+ }+ methodsMissingPullFrom = methods.data?.length ?? null;++ const jobs = await getOpenJobsMissingStorageUnit(db, companyId);+ if (jobs.error) {+ logger.error("Failed to read open jobs missing a storage unit", {+ companyId,+ error: jobs.error});}- methodsMissingPullFrom = missing.data;+ jobsMissingStorageUnit = jobs.data?.length ?? null;}- return { companySettings: companySettings.data, methodsMissingPullFrom };+ return {+ companySettings: companySettings.data,+ methodsMissingPullFrom,+ jobsMissingStorageUnit+ };}export async function action({ request }: ActionFunctionArgs) {@@ -139,6 +155,17 @@ export async function action({ request }: ActionFunctionArgs) {return { success: true, message: "Strict backflush setting updated" };}+ case "preventNegativeBackflush": {+ const result = await updatePreventNegativeBackflushSetting(+ client,+ companyId,+ enabled+ );+ if (result.error)+ return { success: false, message: result.error.message };+ return { success: true, message: "Negative stock setting updated" };+ }+case "bomExplorerReadableId": {const result = await updateBomExplorerReadableIdSetting(client,@@ -174,7 +201,7 @@ export async function action({ request }: ActionFunctionArgs) {export default function ItemsSettingsRoute() {const { t } = useLingui();- const { companySettings, methodsMissingPullFrom } =+ const { companySettings, methodsMissingPullFrom, jobsMissingStorageUnit } =useLoaderData<typeof loader>();const fetcher = useFetcher<typeof action>();@@ -239,6 +266,16 @@ export default function ItemsSettingsRoute() {[fetcher]);+ const handlePreventNegativeBackflushToggle = useCallback(+ (checked: boolean) => {+ fetcher.submit(+ { intent: "preventNegativeBackflush", enabled: String(checked) },+ { method: "POST" }+ );+ },+ [fetcher]+ );+const handleBomExplorerReadableIdToggle = useCallback((checked: boolean) => {fetcher.submit(@@ -398,8 +435,7 @@ export default function ItemsSettingsRoute() {<CardDescription><Trans>Backflush each material only from the storage unit on its- material line, and stop the operation or job when that storage- unit does not have enough stock.+ material line, never from another storage unit.</Trans></CardDescription></CardHeader>@@ -434,36 +470,75 @@ export default function ItemsSettingsRoute() {disabled={isToggling}/></HStack>- {methodsMissingPullFrom && methodsMissingPullFrom.count > 0 && (- <VStack className="items-start w-full" spacing={1}>- <span className="text-sm font-medium">- <Plural- value={methodsMissingPullFrom.count}- one="# active method has materials with no Pull From"- other="# active methods have materials with no Pull From"- />+ {/* Only meaningful under strict backflush: without it a short+ bin falls back to another storage unit and never goes+ negative from a backflush. */}+ <HStack className="justify-between items-center w-full border-t pt-4">+ <VStack className="items-start" spacing={1}>+ <span className="font-medium">+ <Trans>Prevent negative stock</Trans>+ </span>+ <span className="text-sm text-muted-foreground">+ {!companySettings.requireBackflushStorageUnit ? (+ <Trans>Applies when strict backflush is on.</Trans>+ ) : companySettings.preventNegativeBackflush ? (+ <Trans>+ An operation or job that would take its storage unit+ below zero is stopped until the stock is there.+ </Trans>+ ) : (+ <Trans>+ A short storage unit goes below zero, and the operation+ or job still completes.+ </Trans>+ )}</span>- <ul className="text-sm list-disc pl-4 space-y-1">- {methodsMissingPullFrom.methods.map((method) => {- const to = makeMethodPath(method);- return (- <li key={method.makeMethodId}>- {to ? (- <Link- to={to}- className="underline-offset-2 hover:underline"- >- {method.readableId}- </Link>- ) : (- method.readableId- )}- </li>- );- })}- </ul></VStack>- )}+ <Switch+ checked={companySettings.preventNegativeBackflush ?? true}+ onCheckedChange={handlePreventNegativeBackflushToggle}+ disabled={+ isToggling || !companySettings.requireBackflushStorageUnit+ }+ />+ </HStack>+ {methodsMissingPullFrom !== null &&+ methodsMissingPullFrom > 0 && (+ <GapRow+ to={path.to.itemsSettingsMethodsMissingPullFrom}+ label={+ <Plural+ value={methodsMissingPullFrom}+ one="# active method has materials with no Pull From"+ other="# active methods have materials with no Pull From"+ />+ }+ description={+ <Trans>+ Set a Pull From on each one through a new version.+ </Trans>+ }+ />+ )}+ {jobsMissingStorageUnit !== null &&+ jobsMissingStorageUnit > 0 && (+ <GapRow+ to={path.to.itemsSettingsJobsMissingStorageUnit}+ label={+ <Plural+ value={jobsMissingStorageUnit}+ one="# open job has materials with no storage unit"+ other="# open jobs have materials with no storage unit"+ />+ }+ description={+ <Trans>+ Their next backflush will be refused until each material+ has a storage unit.+ </Trans>+ }+ />+ )}</VStack></CardContent></Card>@@ -555,24 +630,34 @@ export default function ItemsSettingsRoute() {</CardFooter></ValidatedForm></Card>+ <RecordOutlet /></SettingsPage></ScrollArea>);}-function makeMethodPath(method: {- itemId: string;- itemType: string;- makeMethodId: string;-}): string | null {- switch (method.itemType) {- case "Part":- return path.to.partMake(method.itemId, method.makeMethodId);- case "Tool":- return path.to.toolMake(method.itemId, method.makeMethodId);- case "Service":- return path.to.serviceMake(method.itemId, method.makeMethodId);- default:- return null;- }+// One gap in strict backflush coverage: the count, what it means, and a way to+// see every entry (a searchable drawer — a long list does not fit a card).+function GapRow({+ to,+ label,+ description+}: {+ to: string;+ label: ReactNode;+ description: ReactNode;+}) {+ return (+ <HStack className="justify-between items-center w-full border-t pt-4 gap-4">+ <VStack className="items-start min-w-0 flex-1" spacing={1}>+ <span className="text-sm font-medium">{label}</span>+ <span className="text-sm text-muted-foreground">{description}</span>+ </VStack>+ <Button variant="secondary" className="shrink-0" asChild>+ <Link to={to}>+ <Trans>Review</Trans>+ </Link>+ </Button>+ </HStack>+ );}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 61934b05d2..439f261be9 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -1466,6 +1466,8 @@ export const path = {itemProperties: (id: string) => generatePath(`${x}/items/${id}/properties`),items: `${x}/items`,itemsSettings: `${x}/settings/items`,+ itemsSettingsJobsMissingStorageUnit: `${x}/settings/items/jobs-missing-storage-unit`,+ itemsSettingsMethodsMissingPullFrom: `${x}/settings/items/methods-missing-pull-from`,job: (id: string) => generatePath(`${x}/job/${id}`),jobBatchNumber: (id: string) => generatePath(`${x}/job/${id}/batch`),jobComplete: (id: string) => generatePath(`${x}/job/${id}/complete`),diff --git a/apps/erp/app/utils/query.ts b/apps/erp/app/utils/query.tsindex 01edc4224f..8f2f98ba34 100644--- a/apps/erp/app/utils/query.ts+++ b/apps/erp/app/utils/query.ts@@ -258,3 +258,49 @@ export const filterOperatorLabels = Object.entries(filterOperators).map(label: value}));++/**+ * Search, sort and page a list held in memory, honouring the shared `Table`'s+ * URL parameters (`search`, `sort`, `limit`, `offset`). For lists computed in+ * TypeScript from a whole-company read (the strict backflush drawers), where+ * PostgREST cannot do the paging. Array values sort by their first entry.+ */+export function pageInMemory<T extends Record<string, unknown>>(+ rows: T[],+ searchParams: URLSearchParams,+ searchable: (row: T) => (string | null | undefined)[]+): { rows: T[]; count: number } {+ const search = searchParams.get("search")?.trim().toLowerCase() ?? "";+ const { limit, offset, sorts } = getGenericQueryFilters(searchParams);++ const matching = search+ ? rows.filter((row) =>+ searchable(row).some((value) =>+ (value ?? "").toLowerCase().includes(search)+ )+ )+ : [...rows];++ const sortValue = (row: T, key: string) => {+ const value = row[key];+ return Array.isArray(value) ? value[0] : value;+ };+ for (const { sortBy, sortAsc } of [...(sorts ?? [])].reverse()) {+ matching.sort((a, b) => {+ const left = sortValue(a, sortBy);+ const right = sortValue(b, sortBy);+ const order =+ typeof left === "number" && typeof right === "number"+ ? left - right+ : String(left ?? "").localeCompare(String(right ?? ""), undefined, {+ numeric: true+ });+ return sortAsc ? order : -order;+ });+ }++ return {+ rows: matching.slice(offset, offset + limit),+ count: matching.length+ };+}diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex 66d70eddb9..255e935495 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -102405,6 +102405,9 @@ export default {{$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"},+ {+ $ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"+ },{$ref: "#/parameters/select"},@@ -102680,6 +102683,9 @@ export default {{$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"},+ {+ $ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"+ },{$ref: "#/parameters/preferReturn"}@@ -102909,6 +102915,9 @@ export default {{$ref: "#/parameters/rowFilter.companySettings.leaseReminderDays"},+ {+ $ref: "#/parameters/rowFilter.companySettings.preventNegativeBackflush"+ },{$ref: "#/parameters/body.companySettings"},@@ -166690,7 +166699,8 @@ export default {"requireBackflushStorageUnit","leaseIncrementalBorrowingRate","leaseShortTermExpedient",- "leaseReminderDays"+ "leaseReminderDays",+ "preventNegativeBackflush"],properties: {id: {@@ -167083,6 +167093,11 @@ export default {default: 90,format: "integer",type: "integer"+ },+ preventNegativeBackflush: {+ default: true,+ format: "boolean",+ type: "boolean"}},type: "object"@@ -222678,6 +222693,12 @@ export default {in: "query",type: "string"},+ "rowFilter.companySettings.preventNegativeBackflush": {+ name: "preventNegativeBackflush",+ required: false,+ in: "query",+ type: "string"+ },"body.part": {name: "part",description: "part",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 90aa1b9e0c..1afa09b6b7 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -8362,6 +8362,7 @@ export type Database = {operationsDispatchNotificationGroup: string[] | nullotherDispatchNotificationGroup: string[] | nullplmReleaseControl: string+ preventNegativeBackflush: booleanprinting: Json | nullproductLabelSize: string | nullpurchasePriceUpdateTiming: Database["public"]["Enums"]["purchasePriceUpdateTiming"]@@ -8436,6 +8437,7 @@ export type Database = {operationsDispatchNotificationGroup?: string[] | nullotherDispatchNotificationGroup?: string[] | nullplmReleaseControl?: string+ preventNegativeBackflush?: booleanprinting?: Json | nullproductLabelSize?: string | nullpurchasePriceUpdateTiming?: Database["public"]["Enums"]["purchasePriceUpdateTiming"]@@ -8510,6 +8512,7 @@ export type Database = {operationsDispatchNotificationGroup?: string[] | nullotherDispatchNotificationGroup?: string[] | nullplmReleaseControl?: string+ preventNegativeBackflush?: booleanprinting?: Json | nullproductLabelSize?: string | nullpurchasePriceUpdateTiming?: Database["public"]["Enums"]["purchasePriceUpdateTiming"]diff --git a/packages/database/supabase/migrations/20261015163040_strict-backflush.sql b/packages/database/supabase/migrations/20261015163040_strict-backflush.sqlindex 6c1f2b137b..cc7ca04b0c 100644--- a/packages/database/supabase/migrations/20261015163040_strict-backflush.sql+++ b/packages/database/supabase/migrations/20261015163040_strict-backflush.sql@@ -1,16 +1,22 @@-- Strict backflush (.ai/specs/2026-10-14-strict-backflush.md).---- companySettings.requireBackflushStorageUnit turns it on (off by default).+-- companySettings.preventNegativeBackflush (on by default) decides what a+-- short bin does under it: refuse, or let the bin go negative.-- backflush_job_materials is copied from its live definition--- (20261009010412_job-costing-always-post.sql) with one change: when the--- setting is on, a stocked material is consumed only from--- jobMaterial.storageUnitId, and a missing or short bin raises instead of--- falling back to the pick method's bin or the fullest bin. With the setting--- off the function is unchanged.+-- (20261009010412_job-costing-always-post.sql) with one change: when strict+-- backflush is on, a stocked material is consumed only from+-- jobMaterial.storageUnitId — a missing bin raises, and a short bin raises+-- only while preventNegativeBackflush is on — instead of falling back to the+-- pick method's bin or the fullest bin. With strict backflush off the+-- function is unchanged.ALTER TABLE "companySettings"ADD COLUMN IF NOT EXISTS "requireBackflushStorageUnit" BOOLEAN NOT NULL DEFAULT false;+ALTER TABLE "companySettings"+ ADD COLUMN IF NOT EXISTS "preventNegativeBackflush" BOOLEAN NOT NULL DEFAULT true;+CREATE OR REPLACE FUNCTION public.backflush_job_materials(p_job_id text, p_quantity_complete numeric, p_company_id text, p_user_id text)RETURNS voidLANGUAGE plpgsql@@ -28,6 +34,7 @@ DECLAREv_bin_work_center_id TEXT;v_bin_on_hand NUMERIC;v_strict BOOLEAN;+ v_prevent_negative BOOLEAN;v_storage_unit_name TEXT;v_strict_problems TEXT[] := '{}';v_material_costing_method TEXT;@@ -82,12 +89,16 @@ BEGINv_ratio := p_quantity_complete / v_job_quantity;-- Strict backflush (.ai/specs/2026-10-14-strict-backflush.md): a stocked- -- material is consumed only from its own storage unit, and a short bin- -- refuses the whole completion instead of drawing from another bin.- SELECT COALESCE("requireBackflushStorageUnit", false) INTO v_strict+ -- material is consumed only from its own storage unit. A short bin refuses+ -- the whole completion while preventNegativeBackflush is on; with it off the+ -- bin is drawn below zero instead of drawing from another bin.+ SELECT COALESCE("requireBackflushStorageUnit", false),+ COALESCE("preventNegativeBackflush", true)+ INTO v_strict, v_prevent_negativeFROM "companySettings"WHERE id = p_company_id;v_strict := COALESCE(v_strict, false);+ v_prevent_negative := COALESCE(v_prevent_negative, true);-- Backflush non-tracked materialsFOR v_material IN@@ -124,35 +135,39 @@ BEGINCONTINUE;END IF;- -- Serialize strict draws on this bin and item until the transaction- -- ends; the TypeScript backflush (assertBinCovers) takes the same key.- PERFORM pg_advisory_xact_lock(hashtextextended(- 'strict-backflush:' || p_company_id || ':' || v_material_storage_unit_id- || ':' || v_material."itemId",- 0- ));+ -- A short bin is refused only while negative stock is prevented; with it+ -- allowed, the material is drawn from its own bin even below zero.+ IF v_prevent_negative THEN+ -- Serialize strict draws on this bin and item until the transaction+ -- ends; the TypeScript backflush (assertBinCovers) takes the same key.+ PERFORM pg_advisory_xact_lock(hashtextextended(+ 'strict-backflush:' || p_company_id || ':' || v_material_storage_unit_id+ || ':' || v_material."itemId",+ 0+ ));- SELECT COALESCE(SUM(quantity), 0) INTO v_bin_on_hand- FROM "itemLedger"- WHERE "itemId" = v_material."itemId"- AND "storageUnitId" = v_material_storage_unit_id- AND "locationId" = v_job_location_id- AND "companyId" = p_company_id- AND "trackedEntityId" IS NULL;-- IF v_bin_on_hand < v_material_qty_to_issue THEN- SELECT name INTO v_storage_unit_name- FROM "storageUnit"- WHERE id = v_material_storage_unit_id;+ SELECT COALESCE(SUM(quantity), 0) INTO v_bin_on_hand+ FROM "itemLedger"+ WHERE "itemId" = v_material."itemId"+ AND "storageUnitId" = v_material_storage_unit_id+ AND "locationId" = v_job_location_id+ AND "companyId" = p_company_id+ AND "trackedEntityId" IS NULL;- v_strict_problems := v_strict_problems || format(- 'Not enough %s in %s: need %s, have %s',- COALESCE(v_material."itemReadableId", v_material."itemId"),- COALESCE(v_storage_unit_name, v_material_storage_unit_id),- trim_scale(v_material_qty_to_issue),- trim_scale(GREATEST(v_bin_on_hand, 0))- );- CONTINUE;+ IF v_bin_on_hand < v_material_qty_to_issue THEN+ SELECT name INTO v_storage_unit_name+ FROM "storageUnit"+ WHERE id = v_material_storage_unit_id;++ v_strict_problems := v_strict_problems || format(+ 'Not enough %s in %s: need %s, have %s',+ COALESCE(v_material."itemReadableId", v_material."itemId"),+ COALESCE(v_storage_unit_name, v_material_storage_unit_id),+ trim_scale(v_material_qty_to_issue),+ trim_scale(GREATEST(v_bin_on_hand, 0))+ );+ CONTINUE;+ END IF;END IF;ELSE-- Resolve storage unit (strict backflush off: the pre-existing fallbacks)diff --git a/packages/jobs/manifests/schema.json b/packages/jobs/manifests/schema.jsonindex a54565822c..884247b67b 100644--- a/packages/jobs/manifests/schema.json+++ b/packages/jobs/manifests/schema.json@@ -5,7 +5,7 @@"sourceCompanyId": "schema-baseline","sourceCompanyGroupId": null,"sourceCompanyName": null,- "exportedAt": "2026-10-15T16:34:01.599Z",+ "exportedAt": "2026-10-16T06:06:27.959Z","exportedBy": "schema-baseline","label": "schema baseline","includeStorage": "none",@@ -482,7 +482,8 @@"requireBackflushStorageUnit","leaseIncrementalBorrowingRate","leaseShortTermExpedient",- "leaseReminderDays"+ "leaseReminderDays",+ "preventNegativeBackflush"]},{diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex d82ded7bb8..cc2e19f8f1 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -60,10 +60,6 @@ msgstr "(auf mehr als ein Carbon-Konto abgebildet)"msgid "(not an Equity posting account)"msgstr "(kein Eigenkapital-Buchungskonto)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# Aktive Methode hat Materialien ohne Entnahme-Lagereinheit} other {# Aktive Methoden haben Materialien ohne Entnahme-Lagereinheit}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# blockierter Datensatz} other {# blockierte Datensätze}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} weitere: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} eingefügt, {updated} aktualisiert, {0} benötigen Behebung, {1} übersprungen."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# offener Fertigungsauftrag hat Materialien ohne Lagereinheit} other {# offene Fertigungsaufträge haben Materialien ohne Lagereinheit}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} wird von Dokumenten, Buchungssätzen oder Standardkonten verwendet, daher kann es nicht gelöscht werden."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB-Limit"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# Schritt} other {# Schritte}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# aktive Methode hat Materialien ohne Entnahme} other {# aktive Methoden haben Materialien ohne Entnahme}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} Monate mit abweichenden Summen"@@ -725,6 +727,9 @@ msgstr "↩ {0} umgeleitet von veralteten {1}"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} weitere"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Lieferantenteil hinzufügen</0> für diesen Artikel, um einen bevorzugten Lieferanten festzulegen."@@ -1438,6 +1443,9 @@ msgstr "Die Verfolgungsnummer einer Lieferung ändert sich"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Eine Lagereinheit mit unzureichendem Bestand weicht auf eine andere Lagereinheit mit Bestand aus."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Eine Lagereinheit unterschreitet Null, und der Arbeitsgang oder Fertigungsauftrag wird trotzdem abgeschlossen."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Ein kurzfristiges Leasing kann 12 Monate ab Beginn nicht überschreiten. Beenden Sie es und geben Sie die Verlängerung als neues Leasing ein."@@ -1815,6 +1823,9 @@ msgstr "Aktiv"msgid "Active Jobs"msgstr "Aktive Fertigungsaufträge"+msgid "Active Methods Missing a Pull From"+msgstr "Aktive Methoden ohne Entnahme"+msgid "Active Statuses"msgstr "Aktive Status"@@ -2617,6 +2628,9 @@ msgstr "Ein Arbeitsgang, der von einem externen Lieferanten anstelle eines intermsgid "An operation on this job runs in this batch"msgstr "Ein Arbeitsgang dieses Auftrags läuft in diesem Batch"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Ein Arbeitsgang oder Fertigungsauftrag, der seine Lagereinheit unter Null bringen würde, wird gestoppt, bis der Bestand vorhanden ist."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Die Position eines Arbeitsgangs in der Warteschlange seines Arbeitsplatzes — die Reihenfolge, in der die Fertigung die Arbeit aufnimmt. Die Engine nummeriert sie nach Platzierungsreihenfolge (frühester prognostizierter Start zuerst); das Neuordnen von Karten auf der Arbeitsplatz-Tafel setzt sie außer Kraft, ohne die Daten zu ändern."@@ -2790,6 +2804,9 @@ msgstr "Gilt für alle Arbeitsplätze"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Gilt für Merkmale ohne eigene Regel und für die Charge, wenn dieser Plan eine Prüfung durchführt."+msgid "Applies when strict backflush is on."+msgstr "Gilt, wenn strenge Retrograde Entnahme aktiviert ist."+msgid "Apply"msgstr "Anwenden"@@ -3832,8 +3849,8 @@ msgstr "Zurück zur Rückverfolgbarkeit"msgid "Backflush"msgstr "Retrograde Entnahme"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Retrograde Entnahme für jedes Material nur aus der Lagereinheit dieser Position durchführen und den Arbeitsgang oder Fertigungsauftrag stoppen, wenn die Lagereinheit nicht genug Bestand hat."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Retrograde Entnahme für jeden Werkstoff nur aus der Lagereinheit auf seiner Position, niemals aus einer anderen Lagereinheit."msgid "Background"msgstr "Hintergrund"@@ -13264,6 +13281,12 @@ msgstr "Materialien sind enthalten"msgid "Materials are not included"msgstr "Materialien sind nicht enthalten"+msgid "Materials missing a Pull From"+msgstr "Materialien ohne Entnahme"++msgid "Materials with no storage unit"+msgstr "Materialien ohne Lagereinheit"+msgid "Matrix"msgstr "Matrix"@@ -15539,6 +15562,9 @@ msgstr "Offene Fertigungsaufträge"msgid "Open Jobs"msgstr "Offene Fertigungsaufträge"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Offene Fertigungsaufträge ohne Lagereinheit"+msgid "Open menu"msgstr "Menü öffnen"@@ -16826,6 +16852,9 @@ msgstr "Drücke '/' für Befehle"msgid "Prev"msgstr "Zurück"+msgid "Prevent negative stock"+msgstr "Negativen Bestand verhindern"+msgid "Preventive action"msgstr "Vorbeugende Maßnahme"@@ -20255,6 +20284,9 @@ msgstr "Sitzung gesperrt"msgid "Set a customer on this return to add from a shipment."msgstr "Legen Sie einen Kunden für diese Rücksendung fest, um aus einer Lieferung hinzuzufügen."+msgid "Set a Pull From on each one through a new version."+msgstr "Legen Sie für jede eine Entnahme über eine neue Version fest."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "Entnahme-Lagereinheit für {0} festlegen"@@ -23182,6 +23214,9 @@ msgstr "Die Arbeitszeiten und Kalender, die die Planung steuern"msgid "Their dates and splits are planned again from the lines."msgstr "Ihre Termine und Aufteilungen werden erneut aus den Positionen geplant."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Die nächste retrograde Entnahme wird verweigert, bis jedes Material eine Lagereinheit hat."+msgid "Theme"msgstr "Design"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex ca697136a1..986caabb7e 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -60,10 +60,6 @@ msgstr "(mapped to more than one Carbon account)"msgid "(not an Equity posting account)"msgstr "(not an Equity posting account)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# blocking record} other {# blocking records}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} more: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} is used by documents, journals or default accounts, so it cannot be deleted."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB limit"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# step} other {# steps}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} months with mismatched totals"@@ -725,6 +727,9 @@ msgstr "↩ {0} redirected from superseded {1}"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} more"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Add a supplier part</0> for this item to set a preferred supplier."@@ -1438,6 +1443,9 @@ msgstr "A shipment's tracking number changes"msgid "A short storage unit falls back to another storage unit with stock."msgstr "A short storage unit falls back to another storage unit with stock."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "A short storage unit goes below zero, and the operation or job still completes."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."@@ -1815,6 +1823,9 @@ msgstr "Active"msgid "Active Jobs"msgstr "Active Jobs"+msgid "Active Methods Missing a Pull From"+msgstr "Active Methods Missing a Pull From"+msgid "Active Statuses"msgstr "Active Statuses"@@ -2617,6 +2628,9 @@ msgstr "An operation done by an outside supplier rather than an in-house work cemsgid "An operation on this job runs in this batch"msgstr "An operation on this job runs in this batch"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."@@ -2790,6 +2804,9 @@ msgstr "Applies to all work centers"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."+msgid "Applies when strict backflush is on."+msgstr "Applies when strict backflush is on."+msgid "Apply"msgstr "Apply"@@ -3832,8 +3849,8 @@ msgstr "Back to traceability"msgid "Backflush"msgstr "Backflush"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Backflush each material only from the storage unit on its material line, never from another storage unit."msgid "Background"msgstr "Background"@@ -13264,6 +13281,12 @@ msgstr "Materials are included"msgid "Materials are not included"msgstr "Materials are not included"+msgid "Materials missing a Pull From"+msgstr "Materials missing a Pull From"++msgid "Materials with no storage unit"+msgstr "Materials with no storage unit"+msgid "Matrix"msgstr "Matrix"@@ -15539,6 +15562,9 @@ msgstr "Open jobs"msgid "Open Jobs"msgstr "Open Jobs"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Open Jobs Missing a Storage Unit"+msgid "Open menu"msgstr "Open menu"@@ -16826,6 +16852,9 @@ msgstr "Press '/' for commands"msgid "Prev"msgstr "Prev"+msgid "Prevent negative stock"+msgstr "Prevent negative stock"+msgid "Preventive action"msgstr "Preventive action"@@ -20255,6 +20284,9 @@ msgstr "Session locked"msgid "Set a customer on this return to add from a shipment."msgstr "Set a customer on this return to add from a shipment."+msgid "Set a Pull From on each one through a new version."+msgstr "Set a Pull From on each one through a new version."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "set a Pull From storage unit on {0}"@@ -23182,6 +23214,9 @@ msgstr "The working hours and calendars that drive scheduling"msgid "Their dates and splits are planned again from the lines."msgstr "Their dates and splits are planned again from the lines."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Their next backflush will be refused until each material has a storage unit."+msgid "Theme"msgstr "Theme"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex a7e8a81de7..902c99ae37 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -60,10 +60,6 @@ msgstr "(asignado a más de una cuenta de Carbon)"msgid "(not an Equity posting account)"msgstr "(no es una cuenta de Contabilización de Patrimonio)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# método activo tiene materiales sin Extraer de} other {# métodos activos tienen materiales sin Extraer de}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# registro bloqueante} other {# registros bloqueantes}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} más: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} insertados, {updated} actualizados, {0} necesitan corrección, {1} omitidos."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# orden de trabajo abierta tiene materiales sin unidad de almacenamiento} other {# órdenes de trabajo abiertas tienen materiales sin unidad de almacenamiento}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} se utiliza en documentos, asientos o cuentas predeterminadas, por lo que no se puede eliminar."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB límite"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# paso} other {# pasos}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# método activo tiene materiales sin Extraer de} other {# métodos activos tienen materiales sin Extraer de}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} meses con totales no coincidentes"@@ -725,6 +727,9 @@ msgstr "↩ {0} redirigido desde {1} obsoleto"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} más"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Agregue una parte de proveedor</0> para este artículo para establecer un proveedor preferido."@@ -1438,6 +1443,9 @@ msgstr "El número de seguimiento de un envío cambia"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Una unidad de almacenamiento con existencias insuficientes recurre a otra unidad de almacenamiento con existencias."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Una unidad de almacenamiento insuficiente desciende por debajo de cero, y la operación u orden de trabajo aún se completa."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Un arrendamiento a corto plazo no puede extenderse más allá de 12 meses desde el comienzo. Finalícelo e ingrese la extensión como un nuevo arrendamiento."@@ -1815,6 +1823,9 @@ msgstr "Activo"msgid "Active Jobs"msgstr "Órdenes de trabajo activas"+msgid "Active Methods Missing a Pull From"+msgstr "Métodos Activos sin Extraer de"+msgid "Active Statuses"msgstr "Estados Activos"@@ -2617,6 +2628,9 @@ msgstr "Una operación realizada por un proveedor externo en lugar de un centromsgid "An operation on this job runs in this batch"msgstr "Una operación de este trabajo se ejecuta en este lote"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Una operación u orden de trabajo que llevaría su unidad de almacenamiento por debajo de cero se detiene hasta que las existencias estén disponibles."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La posición de una operación en la cola de su centro de trabajo — el orden en que el piso toma el trabajo. El motor lo numera según el orden de colocación (inicio proyectado más temprano primero); reordenar tarjetas en el tablero de centros de trabajo la reemplaza sin cambiar fechas."@@ -2790,6 +2804,9 @@ msgstr "Se aplica a todos los centros de trabajo"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Se aplica a las características sin su propia regla y al lote cuando este plan impulsa una inspección."+msgid "Applies when strict backflush is on."+msgstr "Se aplica cuando el consumo retroactivo estricto está activo."+msgid "Apply"msgstr "Aplicar"@@ -3832,8 +3849,8 @@ msgstr "Volver a trazabilidad"msgid "Backflush"msgstr "Consumo retroactivo"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Realice el consumo retroactivo de cada material solo desde la unidad de almacenamiento en su línea de material y detenga la operación u orden de trabajo cuando esa unidad de almacenamiento no tenga suficientes existencias."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Consumo retroactivo de cada material solo desde la unidad de almacenamiento en su línea de material, nunca desde otra unidad de almacenamiento."msgid "Background"msgstr "Fondo"@@ -13264,6 +13281,12 @@ msgstr "Los materiales están incluidos"msgid "Materials are not included"msgstr "Los materiales no están incluidos"+msgid "Materials missing a Pull From"+msgstr "Materiales sin Extraer de"++msgid "Materials with no storage unit"+msgstr "Materiales sin unidad de almacenamiento"+msgid "Matrix"msgstr "Matriz"@@ -15539,6 +15562,9 @@ msgstr "Órdenes de trabajo abiertas"msgid "Open Jobs"msgstr "Órdenes de trabajo Abiertas"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Órdenes de trabajo abiertas sin Unidad de almacenamiento"+msgid "Open menu"msgstr "Abrir menú"@@ -16826,6 +16852,9 @@ msgstr "Presione «/» para comandos"msgid "Prev"msgstr "Anterior"+msgid "Prevent negative stock"+msgstr "Prevenir existencias negativas"+msgid "Preventive action"msgstr "Acción preventiva"@@ -20255,6 +20284,9 @@ msgstr "Sesión bloqueada"msgid "Set a customer on this return to add from a shipment."msgstr "Establezca un cliente en esta devolución para agregar desde un envío."+msgid "Set a Pull From on each one through a new version."+msgstr "Establezca un Extraer de en cada uno a través de una nueva versión."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "Configurar una unidad de almacenamiento de origen en {0}"@@ -23182,6 +23214,9 @@ msgstr "Las horas de trabajo y calendarios que impulsan la programación"msgid "Their dates and splits are planned again from the lines."msgstr "Sus fechas y divisiones se planifican nuevamente a partir de las líneas."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Su próximo consumo retroactivo será rechazado hasta que cada material tenga una unidad de almacenamiento."+msgid "Theme"msgstr "Tema"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 874575f6f6..4c33ac0198 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -60,10 +60,6 @@ msgstr "(Associé à plusieurs comptes Carbon)"msgid "(not an Equity posting account)"msgstr "(pas un compte de comptabilisation de capitaux propres)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# méthode active a des matières sans unité de prélèvement} other {# méthodes actives ont des matières sans unité de prélèvement}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# enregistrement bloquant} other {# enregistrements bloquants}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} autres : {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} insérés, {updated} mis à jour, {0} nécessitent correction, {1} ignorés."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# ordre de fabrication ouvert a des matériaux sans unité de stockage} other {# ordres de fabrication ouverts ont des matériaux sans unité de stockage}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} est utilisé par des documents, des écritures ou des comptes par défaut, il ne peut donc pas être supprimé."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB limite"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# étape} other {# étapes}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# méthode active a des matériaux sans Prélèvement depuis} other {# méthodes actives ont des matériaux sans Prélèvement depuis}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} mois avec des totaux non concordants"@@ -725,6 +727,9 @@ msgstr "↩ {0} redirigé depuis {1} obsolète"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} plus"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Ajoutez une pièce fournisseur</0> pour cet article pour définir un fournisseur préféré."@@ -1438,6 +1443,9 @@ msgstr "Le numéro de suivi d'une expédition change"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Une unité de stockage insuffisante bascule vers une autre unité de stockage ayant du stock."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Une unité de stockage peut descendre en dessous de zéro, et l'opération ou l'ordre de fabrication se termine quand même."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Une location à court terme ne peut pas s'étendre au-delà de 12 mois à compter de sa date de début. Mettez-la fin et saisissez l'extension en tant que nouvelle location."@@ -1815,6 +1823,9 @@ msgstr "Actif"msgid "Active Jobs"msgstr "Ordres de fabrication actifs"+msgid "Active Methods Missing a Pull From"+msgstr "Méthodes actives sans Prélèvement depuis"+msgid "Active Statuses"msgstr "Statuts actifs"@@ -2617,6 +2628,9 @@ msgstr "Une Opération effectuée par un Fournisseur externe plutôt qu'un Postemsgid "An operation on this job runs in this batch"msgstr "Une opération de cet OF s'exécute dans ce lot"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Une opération ou un ordre de fabrication qui mènerait son unité de stockage en dessous de zéro est arrêté jusqu'à ce que le stock soit disponible."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La position d'une opération dans la file d'attente de son poste de travail — l'ordre dans lequel l'atelier exécute le travail. Le moteur la numérote d'après l'ordre de placement (le démarrage projeté le plus tôt d'abord) ; le réordonnancement des cartes sur le Tableau des postes de travail la remplace sans modifier les dates."@@ -2790,6 +2804,9 @@ msgstr "S'applique à tous les Postes de travail"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "S'applique aux caractéristiques sans leur propre règle et au lot lorsque ce plan de contrôle entraîne une inspection."+msgid "Applies when strict backflush is on."+msgstr "S'applique quand la post-consommation stricte est activée."+msgid "Apply"msgstr "Appliquer"@@ -3832,8 +3849,8 @@ msgstr "Retour à la traçabilité"msgid "Backflush"msgstr "Post-consommation"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Post-consommer chaque matière uniquement depuis l'unité de stockage de sa ligne de matière, et arrêter l'opération ou l'ordre de fabrication quand cette unité de stockage n'a pas assez de stock."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Post-consommer chaque matière uniquement depuis l'unité de stockage de sa ligne de matière, jamais depuis une autre unité de stockage."msgid "Background"msgstr "Arrière-plan"@@ -13264,6 +13281,12 @@ msgstr "Les matériaux sont inclus"msgid "Materials are not included"msgstr "Les matériaux ne sont pas inclus"+msgid "Materials missing a Pull From"+msgstr "Matériaux sans Prélèvement depuis"++msgid "Materials with no storage unit"+msgstr "Matériaux sans unité de stockage"+msgid "Matrix"msgstr "Matrice"@@ -15539,6 +15562,9 @@ msgstr "Ordres de fabrication ouverts"msgid "Open Jobs"msgstr "Ordres de fabrication Ouverts"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Ordres de fabrication ouverts sans unité de stockage"+msgid "Open menu"msgstr "Ouvrir le menu"@@ -16826,6 +16852,9 @@ msgstr "Appuyez sur « / » pour les commandes"msgid "Prev"msgstr "Précédent"+msgid "Prevent negative stock"+msgstr "Empêcher le stock négatif"+msgid "Preventive action"msgstr "Action préventive"@@ -20255,6 +20284,9 @@ msgstr "Session verrouillée"msgid "Set a customer on this return to add from a shipment."msgstr "Définissez un client sur ce retour pour ajouter à partir d'une expédition."+msgid "Set a Pull From on each one through a new version."+msgstr "Définissez un Prélèvement depuis pour chacun via une nouvelle version."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "Définir une unité de stockage de prélèvement sur {0}"@@ -23182,6 +23214,9 @@ msgstr "Les heures de travail et les calendriers qui pilotent la planification"msgid "Their dates and splits are planned again from the lines."msgstr "Leurs dates et fractions sont recalculées à partir des lignes."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Leur prochaine post-consommation sera refusée jusqu'à ce que chaque matériau ait une unité de stockage."+msgid "Theme"msgstr "Thème"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 387575b774..8bd59477c9 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -60,10 +60,6 @@ msgstr "(एक से अधिक Carbon खातों में मैपmsgid "(not an Equity posting account)"msgstr "(इक्विटी पोस्टिंग खाता नहीं है)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# सक्रिय विधि में खींचने की भंडारण इकाई के बिना सामग्री है} other {# सक्रिय विधियों में खींचने की भंडारण इकाई के बिना सामग्री है}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# अवरोधक रिकॉर्ड} other {# अवरोधक रिकॉर्डें}}"@@ -528,6 +524,9 @@ msgstr "और {hiddenCount}: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} सम्मिलित किया गया, {updated} अपडेट किया गया, {0} को ठीक करने की आवश्यकता है, {1} छोड़ा गया।"+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# खुले जॉब में भंडारण इकाई के बिना सामग्री है} other {# खुले जॉब में भंडारण इकाई के बिना सामग्री हैं}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} को दस्तावेज़, जर्नल या डिफ़ॉल्ट खातों द्वारा उपयोग किया जाता है, इसलिए इसे हटाया नहीं जा सकता।"@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB सीमा"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# चरण} other {# चरण}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# सक्रिय विधि में Pull From के बिना सामग्री है} other {# सक्रिय विधि में Pull From के बिना सामग्री हैं}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} महीने बेमेल कुल के साथ"@@ -725,6 +727,9 @@ msgstr "↩ {0} अप्रचलित {1} से पुनर्निर्msgid "+{0}h"msgstr "+{0}घंटे"+msgid "+{more} more"+msgstr "+{more} और"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>इस आइटम के लिए एक आपूर्तिकर्ता भाग जोड़ें</0> एक पसंदीदा आपूर्तिकर्ता सेट करने के लिए।"@@ -1438,6 +1443,9 @@ msgstr "एक शिपमेंट का ट्रैकिंग नंबmsgid "A short storage unit falls back to another storage unit with stock."msgstr "एक अपर्याप्त भंडारण इकाई दूसरी भंडारण इकाई पर वापस आती है जिसमें स्टॉक है।"+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "एक छोटी भंडारण इकाई शून्य से नीचे चली जाती है, और ऑपरेशन या जॉब फिर भी पूर्ण हो जाता है।"+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "एक अल्पकालिक संपत्ति शुरुआत से 12 महीने के बाद नहीं चल सकती। इसे समाप्त करें और विस्तार को एक नई पट्टा के रूप में दर्ज करें।"@@ -1815,6 +1823,9 @@ msgstr "सक्रिय"msgid "Active Jobs"msgstr "सक्रिय जॉब"+msgid "Active Methods Missing a Pull From"+msgstr "Pull From के बिना सक्रिय विधि"+msgid "Active Statuses"msgstr "सक्रिय स्थितियाँ"@@ -2617,6 +2628,9 @@ msgstr "एक आपूर्तिकर्ता द्वारा कियmsgid "An operation on this job runs in this batch"msgstr "इस जॉब की एक प्रक्रिया इस बैच में चल रही है"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "एक ऑपरेशन या जॉब जो इसकी भंडारण इकाई को शून्य से नीचे ले जाएगा, तब तक रुक जाता है जब तक स्टॉक उपलब्ध नहीं हो।"+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "एक ऑपरेशन की वर्क सेंटर की कतार में स्थिति — वह क्रम जिसमें फ्लोर काम लेता है। इंजन इसे प्लेसमेंट क्रम से संख्या देता है (सबसे पहली अनुमानित शुरुआत पहले); वर्क सेंटर बोर्ड पर कार्ड्स को पुनः क्रमित करना तारीख बदले बिना इसे निरस्त करता है।"@@ -2790,6 +2804,9 @@ msgstr "सभी वर्क सेंटर पर लागू होताmsgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "उन विशेषताओं पर लागू होता है जिनके अपने नियम नहीं हैं, और लॉट पर जब यह योजना निरीक्षण संचालित करती है।"+msgid "Applies when strict backflush is on."+msgstr "सख्त बैकफ्लश चालू होने पर लागू होता है।"+msgid "Apply"msgstr "लागू करें"@@ -3832,8 +3849,8 @@ msgstr "ट्रेसेबिलिटी पर वापस जाएं"msgid "Backflush"msgstr "बैकफ्लश"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "प्रत्येक सामग्री को केवल इसकी सामग्री पंक्ति पर भंडारण इकाई से बैकफ्लश करें, और जब वह भंडारण इकाई में पर्याप्त स्टॉक नहीं है तो ऑपरेशन या जॉब को रोकें।"+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "प्रत्येक सामग्री को केवल इसकी सामग्री पंक्ति की भंडारण इकाई से बैकफ्लश करें, किसी अन्य भंडारण इकाई से कभी नहीं।"msgid "Background"msgstr "पृष्ठभूमि"@@ -13264,6 +13281,12 @@ msgstr "सामग्री शामिल है"msgid "Materials are not included"msgstr "सामग्री शामिल नहीं है"+msgid "Materials missing a Pull From"+msgstr "Pull From के बिना सामग्री"++msgid "Materials with no storage unit"+msgstr "भंडारण इकाई के बिना सामग्री"+msgid "Matrix"msgstr "मैट्रिक्स"@@ -15539,6 +15562,9 @@ msgstr "खुली जॉबें"msgid "Open Jobs"msgstr "खुली जॉब्स"+msgid "Open Jobs Missing a Storage Unit"+msgstr "भंडारण इकाई के बिना खुले जॉब"+msgid "Open menu"msgstr "मेनू खोलें"@@ -16826,6 +16852,9 @@ msgstr "आदेशों के लिए '/' दबाएं"msgid "Prev"msgstr "पिछला"+msgid "Prevent negative stock"+msgstr "नकारात्मक स्टॉक रोकें"+msgid "Preventive action"msgstr "निवारक कार्रवाई"@@ -20255,6 +20284,9 @@ msgstr "सत्र लॉक किया गया"msgid "Set a customer on this return to add from a shipment."msgstr "शिपमेंट से जोड़ने के लिए इस वापसी पर एक ग्राहक सेट करें।"+msgid "Set a Pull From on each one through a new version."+msgstr "एक नए संस्करण के माध्यम से प्रत्येक पर Pull From निर्दिष्ट करें।"+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "खींचने की भंडारण इकाई को {0} पर सेट करें"@@ -23182,6 +23214,9 @@ msgstr "कार्य घंटे और कैलेंडर जो शेmsgid "Their dates and splits are planned again from the lines."msgstr "उनकी तारीखें और विभाजन पंक्तियों से फिर से योजनाबद्ध किए जाते हैं।"+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "प्रत्येक सामग्री के पास भंडारण इकाई होने तक उनका अगला बैकफ्लश अस्वीकार कर दिया जाएगा।"+msgid "Theme"msgstr "थीम"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 01686810b1..2df504426f 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -60,10 +60,6 @@ msgstr "(associato a più di un account Carbon)"msgid "(not an Equity posting account)"msgstr "(non un account di registrazione Patrimonio netto)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# Metodo Attivo ha Materiali senza Prelevamento da} other {# Metodi Attivi hanno Materiali senza Prelevamento da}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# record bloccante} other {# record bloccanti}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} altri: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} inseriti, {updated} aggiornati, {0} richiedono correzione, {1} saltati."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# ordine di produzione aperto ha materiali senza unità di stoccaggio} other {# ordini di produzione aperti hanno materiali senza unità di stoccaggio}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} è utilizzato da Documenti, Prima nota o conti predefiniti, quindi non può essere eliminato."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB limite"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# passo} other {# passi}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# metodo attivo ha materiali senza Pull From} other {# metodi attivi hanno materiali senza Pull From}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} mesi con totali non corrispondenti"@@ -725,6 +727,9 @@ msgstr "↩ {0} reindirizzato da {1} obsoleto"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} altri"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Aggiungi un componente fornitore</0> per questo articolo per impostare un fornitore preferenziale."@@ -1438,6 +1443,9 @@ msgstr "Il numero di tracciamento di una spedizione cambia"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Un'Unità di stoccaggio insufficiente ricorre a un'altra Unità di stoccaggio con Giacenza."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Un'Unità di stoccaggio scende sotto lo zero, e l'Operazione o l'Ordine di produzione si completa comunque."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Una locazione a breve termine non può durare più di 12 mesi dalla data di inizio. Terminarla e inserire l'estensione come una nuova locazione."@@ -1815,6 +1823,9 @@ msgstr "Attivo"msgid "Active Jobs"msgstr "Ordini di produzione in corso"+msgid "Active Methods Missing a Pull From"+msgstr "Metodi attivi senza Pull From"+msgid "Active Statuses"msgstr "Stati Attivi"@@ -2617,6 +2628,9 @@ msgstr "Un'operazione eseguita da un fornitore esterno anziché da un centro dimsgid "An operation on this job runs in this batch"msgstr "Un'operazione di questa commessa è in questo lotto"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Un'Operazione o un Ordine di produzione che porterebbe la sua Unità di stoccaggio sotto lo zero viene fermato finché la Giacenza non è disponibile."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La posizione dell'operazione nella coda del suo centro di lavoro — l'ordine in cui l'officina raccoglie il lavoro. Il motore lo numera in base all'ordine di posizionamento (inizio previsto più vicino per primo); il riordinamento delle schede sulla lavagna dei Centri di lavoro la sovrascrive senza modificare le date."@@ -2790,6 +2804,9 @@ msgstr "Si applica a tutti i centri di lavoro"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Si applica alle caratteristiche senza propria regola, e al lotto quando questo piano guida un controllo."+msgid "Applies when strict backflush is on."+msgstr "Si applica quando il Backflush rigoroso è attivato."+msgid "Apply"msgstr "Applica"@@ -3832,8 +3849,8 @@ msgstr "Torna alla tracciabilità"msgid "Backflush"msgstr "Backflush"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Consuma con Backflush ogni materiale solo dall'Unità di stoccaggio sulla sua riga e arresta l'Operazione o l'Ordine di produzione quando quell'Unità di stoccaggio non ha Giacenza sufficiente."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Backflush ogni Materiale solo dall'Unità di stoccaggio sulla sua Riga di materiale, mai da un'altra Unità di stoccaggio."msgid "Background"msgstr "Sfondo"@@ -13264,6 +13281,12 @@ msgstr "I materiali sono inclusi"msgid "Materials are not included"msgstr "I materiali non sono inclusi"+msgid "Materials missing a Pull From"+msgstr "Materiali senza Pull From"++msgid "Materials with no storage unit"+msgstr "Materiali senza unità di stoccaggio"+msgid "Matrix"msgstr "Matrice"@@ -15539,6 +15562,9 @@ msgstr "Ordini di produzione aperti"msgid "Open Jobs"msgstr "Ordini di produzione aperti"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Ordini di produzione aperti senza unità di stoccaggio"+msgid "Open menu"msgstr "Apri menu"@@ -16826,6 +16852,9 @@ msgstr "Premi «/» per i comandi"msgid "Prev"msgstr "Prec"+msgid "Prevent negative stock"+msgstr "Impedisci Giacenza negativa"+msgid "Preventive action"msgstr "Azione preventiva"@@ -20255,6 +20284,9 @@ msgstr "Sessione bloccata"msgid "Set a customer on this return to add from a shipment."msgstr "Imposta un cliente su questo reso per aggiungere da una spedizione."+msgid "Set a Pull From on each one through a new version."+msgstr "Imposta un Pull From su ognuno tramite una nuova versione."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "Imposta un'Unità di stoccaggio di Prelevamento da su {0}"@@ -23182,6 +23214,9 @@ msgstr "Gli orari di lavoro e i calendari che guidano la pianificazione"msgid "Their dates and splits are planned again from the lines."msgstr "Le loro date e suddivisioni vengono pianificate di nuovo dalle righe."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Il loro prossimo backflush sarà rifiutato finché ogni materiale non avrà un'unità di stoccaggio."+msgid "Theme"msgstr "Tema"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 8287843db8..d4f0f664f2 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -60,10 +60,6 @@ msgstr "(複数のCarbonアカウントにマップされています)"msgid "(not an Equity posting account)"msgstr "(純資産転記勘定科目ではありません)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# 個の有効な製法に「抽出元」未設定の材料があります} other {# 個の有効な製法に「抽出元」未設定の材料があります}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# ブロック中のレコード} other {# ブロック中のレコード}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} 件さらに表示: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} 件が挿入されました、{updated} 件が更新されました、{0} 件の修正が必要です、{1} 件がスキップされました。"+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {#個のオープン製造指図に保管ユニットがない材料があります} other {#個のオープン製造指図に保管ユニットがない材料があります}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} はドキュメント、仕訳、またはデフォルトアカウントで使用されているため、削除できません。"@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB制限"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# ステップ} other {# ステップ}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {#個の有効な製法に引き出し元がない材料があります} other {#個の有効な製法に引き出し元がない材料があります}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount}ヶ月の合計が一致していません"@@ -725,6 +727,9 @@ msgstr "↩ {0} は廃止された {1} からリダイレクトされました"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more}件"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>この商品の仕入先部品を追加</0>して、優先仕入先を設定してください。"@@ -1438,6 +1443,9 @@ msgstr "出荷の追跡番号が変更される"msgid "A short storage unit falls back to another storage unit with stock."msgstr "在庫が不足している保管ユニットは、在庫がある別の保管ユニットにフォールバックします。"+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "保管ユニットが不足してマイナスに達しても、工程または製造指図は完了する。"+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "短期資産はcommencement(開始日)から12ヶ月を超えて実行することはできません。終了してから、延長を新しいリースとして入力してください。"@@ -1815,6 +1823,9 @@ msgstr "有効"msgid "Active Jobs"msgstr "有効な製造指図"+msgid "Active Methods Missing a Pull From"+msgstr "引き出し元未設定の有効な製法"+msgid "Active Statuses"msgstr "アクティブなステータス"@@ -2617,6 +2628,9 @@ msgstr "社内作業区ではなく外部仕入先が実行する工程で、外msgid "An operation on this job runs in this batch"msgstr "このジョブの工程がこのバッチで実行されます"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "保管ユニットをマイナスにする工程または製造指図は、在庫が準備されるまで停止する。"+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "作業区のキューにおける工程のポジション — 床がピックアップする順序。エンジンは配置順序(最初に予想される開始が最初)からそれに番号を付けます。作業区ボード上でカードを並べ替えることは、日付を変えずにそれを上書きします。"@@ -2790,6 +2804,9 @@ msgstr "すべての作業区に適用"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "独自のルールを持たない特性に適用され、この計画が検査を実施する場合はロットに適用されます。"+msgid "Applies when strict backflush is on."+msgstr "厳密なバックフラッシュが有効な場合に適用します。"+msgid "Apply"msgstr "適用"@@ -3832,8 +3849,8 @@ msgstr "トレーサビリティに戻る"msgid "Backflush"msgstr "バックフラッシュ"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "各材料をその材料明細上の保管ユニットからのみバックフラッシュし、その保管ユニットに十分な在庫がない場合は工程または製造指図を停止します。"+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "各材料をバックフラッシュする際は、その材料明細上の保管ユニットからのみ行い、別の保管ユニットからは行わない。"msgid "Background"msgstr "背景"@@ -13264,6 +13281,12 @@ msgstr "材料が含まれています"msgid "Materials are not included"msgstr "材料は含まれていません"+msgid "Materials missing a Pull From"+msgstr "引き出し元未設定の材料"++msgid "Materials with no storage unit"+msgstr "保管ユニット未設定の材料"+msgid "Matrix"msgstr "マトリックス"@@ -15539,6 +15562,9 @@ msgstr "オープン製造指図"msgid "Open Jobs"msgstr "オープン製造指図"+msgid "Open Jobs Missing a Storage Unit"+msgstr "保管ユニット未設定のオープン製造指図"+msgid "Open menu"msgstr "メニューを開く"@@ -16826,6 +16852,9 @@ msgstr "コマンドを実行するには「/」を押してください"msgid "Prev"msgstr "前へ"+msgid "Prevent negative stock"+msgstr "負の在庫を防ぐ"+msgid "Preventive action"msgstr "予防アクション"@@ -20255,6 +20284,9 @@ msgstr "セッションがロック中"msgid "Set a customer on this return to add from a shipment."msgstr "出荷から追加するにはこのリターンに得意先を設定してください。"+msgid "Set a Pull From on each one through a new version."+msgstr "新しいバージョンで各々に引き出し元を設定してください。"+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "{0} に抽出元保管ユニットを設定する"@@ -23182,6 +23214,9 @@ msgstr "スケジューリングを駆動する勤務時間とカレンダー"msgid "Their dates and splits are planned again from the lines."msgstr "日付と分割は明細から再度計画されます。"+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "各材料が保管ユニットを持つまで、次のバックフラッシュは拒否されます。"+msgid "Theme"msgstr "テーマ"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 6dbc78aad3..d15609a7d0 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -60,10 +60,6 @@ msgstr "(하나 이상의 Carbon 계정에 매핑됨)"msgid "(not an Equity posting account)"msgstr "(자본 전기 계정이 아님)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# 활성 방법에 Pull From 보관 단위가 없는 자재가 있습니다} other {# 활성 방법에 Pull From 보관 단위가 없는 자재가 있습니다}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# 차단 레코드} other {# 차단 레코드}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount}개 추가: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted}개 추가, {updated}개 업데이트, {0}개 수정 필요, {1}개 건너뜀."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# 개의 미결 작업 지시에 보관 단위가 없는 자재가 있습니다} other {# 개의 미결 작업 지시에 보관 단위가 없는 자재가 있습니다}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label}은(는) 문서, 전표 또는 기본 계정에서 사용 중이므로 삭제할 수 없습니다."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB 제한"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# 단계} other {# 단계}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# 개의 활성 방법이 출처가 없는 자재를 포함합니다} other {# 개의 활성 방법이 출처가 없는 자재를 포함합니다}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "총액이 일치하지 않는 {mismatchCount}개월"@@ -725,6 +727,9 @@ msgstr "↩ 대체된 {1}에서 {0}(으)로 전환됨"msgid "+{0}h"msgstr "+{0}시간"+msgid "+{more} more"+msgstr "+{more} 더"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>이 품목에 공급업체 부품 추가</0>하여 우선 공급업체를 설정하세요."@@ -1438,6 +1443,9 @@ msgstr "출하의 추적 번호가 변경됨"msgid "A short storage unit falls back to another storage unit with stock."msgstr "보관 단위의 재고가 부족하면 재고가 있는 다른 보관 단위로 전환됩니다."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "보관 단위가 마이너스가 되면, 공정 또는 작업 지시는 여전히 완료 처리된다."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "단기 자산은 개시일로부터 12개월을 초과하여 운영할 수 없습니다. 종료하고 연장을 새로운 리스로 입력합니다."@@ -1815,6 +1823,9 @@ msgstr "활성"msgid "Active Jobs"msgstr "진행 중인 작업 지시"+msgid "Active Methods Missing a Pull From"+msgstr "출처가 없는 활성 방법"+msgid "Active Statuses"msgstr "활성 상태"@@ -2617,6 +2628,9 @@ msgstr "사내 작업장이 아닌 외부 공급업체에서 수행되고 외주msgid "An operation on this job runs in this batch"msgstr "이 작업의 공정이 이 배치에서 실행됩니다"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "보관 단위를 마이너스로 만들 공정 또는 작업 지시는 재고가 있을 때까지 중단된다."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "공정이 작업장의 대기열에서 차지하는 위치 — 현장이 작업을 처리하는 순서입니다. 엔진은 배치 순서(가장 빠른 예상 시작)에 따라 번호를 매깁니다. 작업장 보드에서 카드 순서를 변경하면 날짜를 변경하지 않고 이를 재정의합니다."@@ -2790,6 +2804,9 @@ msgstr "모든 작업장에 적용"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "자신의 규칙이 없는 특성과 이 계획이 검사를 실행하는 로트에 적용됩니다."+msgid "Applies when strict backflush is on."+msgstr "엄격한 백플러시가 활성화되었을 때 적용된다."+msgid "Apply"msgstr "적용"@@ -3832,8 +3849,8 @@ msgstr "추적성으로 돌아가기"msgid "Backflush"msgstr "백플러시"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "각 자재를 자재 라인의 보관 단위에서만 백플러시하고, 해당 보관 단위의 재고가 부족할 때 공정 또는 작업 지시를 중지합니다."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "각 자재는 해당 자재 라인의 보관 단위에서만 백플러시되며, 다른 보관 단위에서는 백플러시되지 않는다."msgid "Background"msgstr "배경"@@ -13264,6 +13281,12 @@ msgstr "자재 포함됨"msgid "Materials are not included"msgstr "자재 미포함"+msgid "Materials missing a Pull From"+msgstr "출처가 없는 자재"++msgid "Materials with no storage unit"+msgstr "보관 단위가 없는 자재"+msgid "Matrix"msgstr "매트릭스"@@ -15539,6 +15562,9 @@ msgstr "미결 작업 지시"msgid "Open Jobs"msgstr "미결 작업 지시"+msgid "Open Jobs Missing a Storage Unit"+msgstr "보관 단위가 없는 미결 작업 지시"+msgid "Open menu"msgstr "메뉴 열기"@@ -16826,6 +16852,9 @@ msgstr "'/'를 눌러 명령어 표시"msgid "Prev"msgstr "이전"+msgid "Prevent negative stock"+msgstr "마이너스 재고 방지"+msgid "Preventive action"msgstr "예방 조치"@@ -20255,6 +20284,9 @@ msgstr "세션 잠김"msgid "Set a customer on this return to add from a shipment."msgstr "출하에서 추가할 고객을 이 반품에 설정하세요."+msgid "Set a Pull From on each one through a new version."+msgstr "새 버전을 통해 각각에 출처를 설정합니다."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "{0}에 Pull From 보관 단위를 설정합니다"@@ -23182,6 +23214,9 @@ msgstr "일정 수립의 기준이 되는 근무 시간 및 캘린더"msgid "Their dates and splits are planned again from the lines."msgstr "그들의 날짜와 분할이 라인에서 다시 계획됩니다."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "각 자재가 보관 단위를 가질 때까지 다음 백플러시는 거부됩니다."+msgid "Theme"msgstr "테마"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 5366c66fac..38101d005b 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -60,10 +60,6 @@ msgstr "(zmapowane na więcej niż jedno konto Carbon)"msgid "(not an Equity posting account)"msgstr "(nie jest kontem Kapitału własnego do księgowania)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# aktywna metoda ma materiały bez magazynu pobrania} other {# aktywne metody mają materiały bez magazynu pobrania}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# rekord blokujący} other {# rekordy blokujące}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} więcej: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} wstawiono, {updated} zaktualizowano, {0} wymagają naprawy, {1} pominięte."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# otwarte zlecenie produkcyjne ma materiały bez jednostki magazynowej} other {# otwarte zlecenia produkcyjne mają materiały bez jednostki magazynowej}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} jest używany w dokumentach, dowodach księgowych lub domyślnych kontach, dlatego nie można go usunąć."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB limit"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# krok} other {# kroki}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# aktywna metoda ma materiały bez Pull From} other {# aktywne metody mają materiały bez Pull From}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} miesięcy z niezgodnymi sumami"@@ -725,6 +727,9 @@ msgstr "↩ {0} przekierowano z wycofanych {1}"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} więcej"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Dodaj część dostawcy</0> do tego artykułu, aby ustawić preferowanego dostawcę."@@ -1438,6 +1443,9 @@ msgstr "Zmiana numeru śledzenia wysyłki"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Jednostka magazynowa z niewystarczającym zapasem przechodzi na inną jednostkę magazynową."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Jednostka magazynowa spada poniżej zera, a operacja lub zlecenie produkcyjne mimo to się kończy."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Zasób krótkoterminowy nie może trwać dłużej niż 12 miesięcy od daty rozpoczęcia. Zakończ go i wprowadź przedłużenie jako nową umowę najmu."@@ -1815,6 +1823,9 @@ msgstr "Aktywny"msgid "Active Jobs"msgstr "Bieżące zlecenia produkcyjne"+msgid "Active Methods Missing a Pull From"+msgstr "Aktywne metody bez Pull From"+msgid "Active Statuses"msgstr "Aktywne statusy"@@ -2617,6 +2628,9 @@ msgstr "Operacja wykonywana przez dostawcę zewnętrznego zamiast wewnętrznegomsgid "An operation on this job runs in this batch"msgstr "Operacja tego zlecenia jest w tej partii"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Operacja lub zlecenie produkcyjne, które mogłoby doprowadzić do ujemnego stanu jednostki magazynowej, jest wstrzymana do czasu dostępności zapasu."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Pozycja operacji w kolejce stanowiska roboczego — kolejność, w jakiej brygada podejmuje prace. Silnik numeruje ją na podstawie kolejności umieszczenia (najwcześniejszy planowany start najpierw); zmiana kolejności kart na tablicy Stanowisk roboczych zmienia ją bez zmiany dat."@@ -2790,6 +2804,9 @@ msgstr "Dotyczy wszystkich stanowisk roboczych"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Dotyczy charakterystyk bez własnej reguły i partii, gdy ten plan kontroli prowadzi do wykonania kontroli."+msgid "Applies when strict backflush is on."+msgstr "Obowiązuje gdy włączone jest ścisłe pobranie wsteczne."+msgid "Apply"msgstr "Zastosuj"@@ -3832,8 +3849,8 @@ msgstr "Powrót do identyfikowalności"msgid "Backflush"msgstr "Pobranie wsteczne"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Pobieranie wsteczne każdego materiału wyłącznie z jednostki magazynowej na jego pozycji materiału oraz zatrzymanie operacji lub zlecenia produkcyjnego, gdy ta jednostka magazynowa nie ma wystarczającego zapasu."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Pobierz wstecznie każdy materiał wyłącznie z jednostki magazynowej przypisanej do jego pozycji, nigdy z innej jednostki magazynowej."msgid "Background"msgstr "Tło"@@ -13264,6 +13281,12 @@ msgstr "Materiały są uwzględnione"msgid "Materials are not included"msgstr "Materiały nie są uwzględnione"+msgid "Materials missing a Pull From"+msgstr "Materiały bez Pull From"++msgid "Materials with no storage unit"+msgstr "Materiały bez jednostki magazynowej"+msgid "Matrix"msgstr "Macierz"@@ -15539,6 +15562,9 @@ msgstr "Otwarte zlecenia produkcyjne"msgid "Open Jobs"msgstr "Otwarte Zlecenia produkcyjne"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Otwarte zlecenia produkcyjne bez jednostki magazynowej"+msgid "Open menu"msgstr "Otwórz menu"@@ -16826,6 +16852,9 @@ msgstr "Naciśnij '/' aby wyświetlić polecenia"msgid "Prev"msgstr "Poprz"+msgid "Prevent negative stock"+msgstr "Zapobiegaj ujemnym zapasom"+msgid "Preventive action"msgstr "Działanie zapobiegawcze"@@ -20255,6 +20284,9 @@ msgstr "Sesja zablokowana"msgid "Set a customer on this return to add from a shipment."msgstr "Ustaw klienta na tym zwrocie, aby dodać z wysyłki."+msgid "Set a Pull From on each one through a new version."+msgstr "Ustaw Pull From dla każdego poprzez nową wersję."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "ustaw jednostkę magazynową do poboru dla {0}"@@ -23182,6 +23214,9 @@ msgstr "Godziny pracy i kalendarze, które napędzają planowanie"msgid "Their dates and splits are planned again from the lines."msgstr "Ich daty i podziały są planowane ponownie na podstawie pozycji."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Następne pobranie wsteczne będzie odrzucone, dopóki każdy materiał nie będzie miał jednostki magazynowej."+msgid "Theme"msgstr "Motyw"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 85b1ed4308..ea6a31c35e 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -60,10 +60,6 @@ msgstr "(mapeado para mais de uma conta Carbon)"msgid "(not an Equity posting account)"msgstr "(não é uma conta de contabilização de Patrimônio líquido)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# método ativo possui materiais sem unidade de armazenamento de origem} other {# métodos ativos possuem materiais sem unidade de armazenamento de origem}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# registro bloqueador} other {# registros bloqueadores}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} mais: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} inseridos, {updated} atualizados, {0} precisam de correção, {1} ignorados."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# ordem de produção aberta tem materiais sem unidade de armazenamento} other {# ordens de produção abertas têm materiais sem unidade de armazenamento}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} é utilizado por documentos, diários ou contas padrão, portanto não pode ser excluído."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB limit"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# etapa} other {# etapas}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# método ativo tem materiais sem origem} other {# métodos ativos têm materiais sem origem}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} meses com totais não correspondentes"@@ -725,6 +727,9 @@ msgstr "↩ {0} redirecionado de {1} obsoleto"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} mais"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Adicionar um item de fornecedor</0> para este item para definir um fornecedor preferencial."@@ -1438,6 +1443,9 @@ msgstr "O número de rastreamento de uma remessa muda"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Uma unidade de armazenamento com estoque insuficiente volta para outra unidade de armazenamento com estoque."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Uma unidade de armazenamento fica com saldo negativo e a operação ou ordem de produção ainda é concluída."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Um ativo de curto prazo não pode estender-se além de 12 meses a partir do início. Termine-o e insira a extensão como um novo arrendamento."@@ -1815,6 +1823,9 @@ msgstr "Ativo"msgid "Active Jobs"msgstr "Ordens de produção ativas"+msgid "Active Methods Missing a Pull From"+msgstr "Métodos ativos sem origem"+msgid "Active Statuses"msgstr "Status Ativos"@@ -2617,6 +2628,9 @@ msgstr "Uma operação realizada por um fornecedor externo em vez de um centro dmsgid "An operation on this job runs in this batch"msgstr "Uma operação deste trabalho é executada neste lote"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Uma operação ou ordem de produção que levaria sua unidade de armazenamento a ter saldo negativo é interrompida até que o estoque esteja disponível."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "A posição de uma operação na fila de seu centro de trabalho — a ordem em que o chão pega o trabalho. O mecanismo a numera de acordo com a ordem de colocação (início projetado mais cedo primeiro); reorganizar cartões no painel de Centros de Trabalho sobrescreve sem alterar as datas."@@ -2790,6 +2804,9 @@ msgstr "Aplica-se a todos os centros de trabalho"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Aplica-se às características sem sua própria regra e ao lote quando este plano conduz uma inspeção."+msgid "Applies when strict backflush is on."+msgstr "Aplicado quando a baixa automática rigorosa está ativada."+msgid "Apply"msgstr "Aplicar"@@ -3832,8 +3849,8 @@ msgstr "Voltar para rastreabilidade"msgid "Backflush"msgstr "Baixa automática"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Realizar a baixa automática de cada material apenas da unidade de armazenamento na sua linha de material, e parar a operação ou ordem de produção quando essa unidade de armazenamento não tiver estoque suficiente."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Realize a baixa automática de cada material apenas da unidade de armazenamento em sua linha de material, nunca de outra unidade de armazenamento."msgid "Background"msgstr "Fundo"@@ -13264,6 +13281,12 @@ msgstr "Materiais estão incluídos"msgid "Materials are not included"msgstr "Materiais não estão incluídos"+msgid "Materials missing a Pull From"+msgstr "Materiais sem origem"++msgid "Materials with no storage unit"+msgstr "Materiais sem unidade de armazenamento"+msgid "Matrix"msgstr "Matriz"@@ -15539,6 +15562,9 @@ msgstr "Ordens de produção abertas"msgid "Open Jobs"msgstr "Ordens de Produção Abertas"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Ordens de produção abertas sem unidade de armazenamento"+msgid "Open menu"msgstr "Abrir menu"@@ -16826,6 +16852,9 @@ msgstr "Pressione '/' para comandos"msgid "Prev"msgstr "Anterior"+msgid "Prevent negative stock"+msgstr "Impedir estoque negativo"+msgid "Preventive action"msgstr "Ação preventiva"@@ -20255,6 +20284,9 @@ msgstr "Sessão bloqueada"msgid "Set a customer on this return to add from a shipment."msgstr "Defina um cliente nesta devolução para adicionar de uma remessa."+msgid "Set a Pull From on each one through a new version."+msgstr "Defina uma origem em cada um através de uma nova versão."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "definir uma unidade de armazenamento de origem em {0}"@@ -23182,6 +23214,9 @@ msgstr "Os horários de trabalho e calendários que orientam o agendamento"msgid "Their dates and splits are planned again from the lines."msgstr "Suas datas e divisões são planejadas novamente a partir das linhas."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "A próxima baixa automática será recusada até que cada material tenha uma unidade de armazenamento."+msgid "Theme"msgstr "Tema"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 246fa7dac1..bbf75d2431 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -60,10 +60,6 @@ msgstr "(сопоставлено с несколькими счетами Carbomsgid "(not an Equity posting account)"msgstr "(не счет проведения собственного капитала)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# активный метод имеет материалы без места отпуска} other {# активные методы имеют материалы без места отпуска}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# блокирующая запись} other {# блокирующие записи}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} еще: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} вставлено, {updated} обновлено, {0} требуют исправления, {1} пропущено."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# открытый производственный заказ имеет материалы без единицы хранения} other {# открытых производственных заказов имеют материалы без единиц хранения}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} используется документами, операциями или учетными записями по умолчанию, поэтому не может быть удалена."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}МБ максимум"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# шаг} other {# шагов}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# активный метод имеет материалы без источника} other {# активных методов имеют материалы без источников}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} месяцев с несовпадающими итогами"@@ -725,6 +727,9 @@ msgstr "↩ {0} перенаправлено из снятых с произвоmsgid "+{0}h"msgstr "+{0}ч"+msgid "+{more} more"+msgstr "+{more} еще"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Добавить поставщика деталей</0> для этой номенклатуры, чтобы установить основного поставщика."@@ -1438,6 +1443,9 @@ msgstr "Номер отслеживания отгрузки изменился"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Единица хранения с недостаточным запасом переходит на другую единицу хранения с наличием."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Единица хранения опускается ниже нуля, и Операция или Производственный заказ все еще завершается."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Краткосрочный актив не может длиться более 12 месяцев с момента начала. Завершите его и введите продление как новую аренду."@@ -1815,6 +1823,9 @@ msgstr "Активно"msgid "Active Jobs"msgstr "Активные производственные заказы"+msgid "Active Methods Missing a Pull From"+msgstr "Активные методы без источника"+msgid "Active Statuses"msgstr "Активные статусы"@@ -2617,6 +2628,9 @@ msgstr "Операция, выполняемая внешним поставщиmsgid "An operation on this job runs in this batch"msgstr "Операция этого задания входит в эту партию"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Операция или Производственный заказ, которые привели бы Единицу хранения ниже нуля, блокируются до появления необходимого Запаса."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Позиция операции в очереди ее рабочего центра — порядок, в котором цех берет работу. Двигатель нумерует ее по порядку размещения (самое раннее предполагаемое начало в первую очередь); переупорядочение карт на доске Рабочих центров переопределяет его без изменения дат."@@ -2790,6 +2804,9 @@ msgstr "Применяется ко всем рабочим центрам"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Применяется к характеристикам без собственного правила и к партии, когда этот план контроля проводит контроль."+msgid "Applies when strict backflush is on."+msgstr "Применяется при включении строгого Ретроградного списания."+msgid "Apply"msgstr "Применить"@@ -3832,8 +3849,8 @@ msgstr "Вернуться к прослеживаемости"msgid "Backflush"msgstr "Ретроградное списание"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Ретроградное списание выполняется только из единицы хранения, указанной в строке материала, с остановкой операции или производственного заказа при недостаточном запасе."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Производить Ретроградное списание Материала только из Единицы хранения в строке Материала, но не из других Единиц хранения."msgid "Background"msgstr "Фон"@@ -13264,6 +13281,12 @@ msgstr "Материалы включены"msgid "Materials are not included"msgstr "Материалы не включены"+msgid "Materials missing a Pull From"+msgstr "Материалы без источника"++msgid "Materials with no storage unit"+msgstr "Материалы без единицы хранения"+msgid "Matrix"msgstr "Матрица"@@ -15539,6 +15562,9 @@ msgstr "Открытые производственные заказы"msgid "Open Jobs"msgstr "Открытые производственные заказы"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Открытые производственные заказы без единицы хранения"+msgid "Open menu"msgstr "Открыть меню"@@ -16826,6 +16852,9 @@ msgstr "Нажмите '/' для команд"msgid "Prev"msgstr "Пред"+msgid "Prevent negative stock"+msgstr "Предотвращение отрицательного Запаса"+msgid "Preventive action"msgstr "Предупреждающее действие"@@ -20255,6 +20284,9 @@ msgstr "Сеанс заблокирован"msgid "Set a customer on this return to add from a shipment."msgstr "Укажите покупателя для этого возврата, чтобы добавить из отгрузки."+msgid "Set a Pull From on each one through a new version."+msgstr "Установите источник для каждого из них через новую версию."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "установить единицу хранения для получения на {0}"@@ -23182,6 +23214,9 @@ msgstr "Рабочие часы и календари, которые управmsgid "Their dates and splits are planned again from the lines."msgstr "Их даты и разделения снова планируются на основе строк."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Следующее ретроградное списание будет отклонено, пока каждый материал не будет иметь единицу хранения."+msgid "Theme"msgstr "Тема"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex cf1d92414f..7db76b58a2 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -60,10 +60,6 @@ msgstr "(birden fazla Carbon hesabına eşleştirildi)"msgid "(not an Equity posting account)"msgstr "(Özkaynak muhasebeleştirme hesabı değildir)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {# aktif yöntemde Çekilecek Depo olmayan malzeme vardır} other {# aktif yöntemde Çekilecek Depo olmayan malzemeler vardır}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# engelleme kaydı} other {# engelleme kaydı}}"@@ -528,6 +524,9 @@ msgstr "{hiddenCount} daha: {hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "{inserted} eklendi, {updated} güncellendi, {0} düzeltme gerekli, {1} atlandı."+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# açık iş emirinin depolama birimi olmayan malzemeleri var} other {# açık iş emirlerinin depolama birimi olmayan malzemeleri var}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} belgeler, muhasebe fişleri veya varsayılan hesaplar tarafından kullanıldığından silinemez."@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB sınırı"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# adım} other {# adım}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# aktif yöntemin çekme kaynağı olmayan malzemeleri var} other {# aktif yöntemlerin çekme kaynağı olmayan malzemeleri var}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} ay tutarları uyuşmazlığı"@@ -725,6 +727,9 @@ msgstr "↩ {0} eski hale getirilen {1} kaynağından yönlendirildi"msgid "+{0}h"msgstr "+{0}s"+msgid "+{more} more"+msgstr "+{more} daha"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Bu ürün için bir tedarikçi parçası ekleyin</0> tercih edilen tedarikçi ayarlamak için."@@ -1438,6 +1443,9 @@ msgstr "Bir sevkiyatın takip numarası değişti"msgid "A short storage unit falls back to another storage unit with stock."msgstr "Yetersiz stoklu bir depolama birimi stok içeren başka bir depolama birimine geri döner."+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "Bir Depolama birimi sıfırın altına gidiyor ve Operasyon veya İş emri yine de tamamlanıyor."+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "Kısa vadeli kıymet başlangıcından 12 aydan sonra devam edemez. Bunu bitirin ve uzantıyı yeni bir kiralama olarak girin."@@ -1815,6 +1823,9 @@ msgstr "Aktif"msgid "Active Jobs"msgstr "Aktif İş emirleri"+msgid "Active Methods Missing a Pull From"+msgstr "Çekme Kaynağı Olmayan Aktif Yöntemler"+msgid "Active Statuses"msgstr "Aktif Durumlar"@@ -2617,6 +2628,9 @@ msgstr "Dış tedarikçi tarafından yapılan operasyon, bir taşeronluk satınmsgid "An operation on this job runs in this batch"msgstr "Bu işin bir operasyonu bu partide çalışıyor"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "Depolama birimini sıfırın altına alacak olan bir Operasyon veya İş emri, Stok gelene kadar durdurulur."+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Bir operasyon'un iş merkezi'nin kuyruğundaki konumu — atölyenin işleri aldığı sıra. Motor, yerleştirme sırasından numaralandırır (en erken öngörülen başlangıç ilk); İş merkezleri panosundaki kartları yeniden sıralamak, tarihleri değiştirmeden bunu geçersiz kılar."@@ -2790,6 +2804,9 @@ msgstr "Tüm iş merkezlerine uygulanır"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "Kendi kuralı olmayan özelliklere ve bu kontrol planı bir muayene başlattığında lota uygulanır."+msgid "Applies when strict backflush is on."+msgstr "Katı Geriye dönük tüketim açık olduğunda geçerlidir."+msgid "Apply"msgstr "Uygula"@@ -3832,8 +3849,8 @@ msgstr "İzlenebilirliğe geri dön"msgid "Backflush"msgstr "Geriye dönük tüketim"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "Her malzemeyi yalnızca malzeme satırındaki depolama biriminden geriye dönük tüket, ve bu depolama birimi yeterli stoka sahip olmadığında operasyonu veya iş emrini durdur."+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "Her Malzemeyi yalnızca kendi Malzeme satırındaki Depolama biriminden Geriye dönük tüketin, asla başka bir Depolama biriminden değil."msgid "Background"msgstr "Arka plan"@@ -13264,6 +13281,12 @@ msgstr "Malzemeler dahil"msgid "Materials are not included"msgstr "Malzemeler dahil değil"+msgid "Materials missing a Pull From"+msgstr "Çekme kaynağı olmayan malzemeler"++msgid "Materials with no storage unit"+msgstr "Depolama birimi olmayan malzemeler"+msgid "Matrix"msgstr "Matris"@@ -15539,6 +15562,9 @@ msgstr "Açık İş emirleri"msgid "Open Jobs"msgstr "Açık İş Emirleri"+msgid "Open Jobs Missing a Storage Unit"+msgstr "Depolama Birimi Olmayan Açık İş Emirleri"+msgid "Open menu"msgstr "Menüyü aç"@@ -16826,6 +16852,9 @@ msgstr "Komutlar için '/' tuşuna basın"msgid "Prev"msgstr "Önceki"+msgid "Prevent negative stock"+msgstr "Negatif Stoku Engelle"+msgid "Preventive action"msgstr "Önleyici eylem"@@ -20255,6 +20284,9 @@ msgstr "Oturum Kilitli"msgid "Set a customer on this return to add from a shipment."msgstr "Sevkiyattan eklemek için bu iade işlemine bir müşteri belirleyin."+msgid "Set a Pull From on each one through a new version."+msgstr "Her biri için yeni bir sürüm üzerinden çekme kaynağı belirleyin."+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "{0} için çekilecek bir depolama birimi ayarla"@@ -23182,6 +23214,9 @@ msgstr "Çalışma saatleri ve planlama yöneten takvimler"msgid "Their dates and splits are planned again from the lines."msgstr "Tarihleri ve bölünüşleri satırlardan yeniden planlanır."+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "Her malzeme bir depolama birimine sahip olana kadar sonraki geriye dönük tüketim reddedilecektir."+msgid "Theme"msgstr "Tema"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 7467dc1d09..02a693ba44 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -60,10 +60,6 @@ msgstr "(映射到多个 Carbon 账户)"msgid "(not an Equity posting account)"msgstr "(非所有者权益过账账户)"-#. placeholder {0}: methodsMissingPullFrom.count-msgid "{0, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"-msgstr "{0, plural, one {#个启用的方法包含没有取货存储单元的物料} other {#个启用的方法包含没有取货存储单元的物料}}"-#. placeholder {0}: check.countmsgid "{0, plural, one {# blocking record} other {# blocking records}}"msgstr "{0, plural, one {# 条阻止记录} other {# 条阻止记录}}"@@ -528,6 +524,9 @@ msgstr "还有{hiddenCount}个:{hiddenNames}"msgid "{inserted} inserted, {updated} updated, {0} need fixing, {1} skipped."msgstr "已插入{inserted}条,已更新{updated}条,需修复{0}条,已跳过{1}条。"+msgid "{jobsMissingStorageUnit, plural, one {# open job has materials with no storage unit} other {# open jobs have materials with no storage unit}}"+msgstr "{jobsMissingStorageUnit, plural, one {# 个未结工单的物料没有存储单元} other {# 个未结工单的物料没有存储单元}}"+msgid "{label} is used by documents, journals or default accounts, so it cannot be deleted."msgstr "{label} 被文档、凭证或默认账户使用,因此无法删除。"@@ -555,6 +554,9 @@ msgstr "{maxSizeMB}MB 限制"msgid "{memberCount, plural, one {# step} other {# steps}}"msgstr "{memberCount, plural, one {# 步骤} other {# 步骤}}"+msgid "{methodsMissingPullFrom, plural, one {# active method has materials with no Pull From} other {# active methods have materials with no Pull From}}"+msgstr "{methodsMissingPullFrom, plural, one {# 个启用的方法有物料没有拉取来源} other {# 个启用的方法有物料没有拉取来源}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount}个月的总计不匹配"@@ -725,6 +727,9 @@ msgstr "↩ {0} 从已淘汰的 {1} 重定向"msgid "+{0}h"msgstr "+{0}h"+msgid "+{more} more"+msgstr "+{more} 更多"+msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>为此项目添加供应商零件</0>以设置首选供应商。"@@ -1438,6 +1443,9 @@ msgstr "发货的跟踪号变更"msgid "A short storage unit falls back to another storage unit with stock."msgstr "当存储单元库存不足时,将使用另一个有库存的存储单元。"+msgid "A short storage unit goes below zero, and the operation or job still completes."+msgstr "存储单元降至零以下,工序或工单仍可完成。"+msgid "A short-term asset cannot run past 12 months from the commencement. End it and enter the extension as a new lease."msgstr "短期资产不能超过开始日期后的 12 个月。结束它并将延期作为新租赁输入。"@@ -1815,6 +1823,9 @@ msgstr "启用"msgid "Active Jobs"msgstr "启用的工单"+msgid "Active Methods Missing a Pull From"+msgstr "启用的方法缺少拉取来源"+msgid "Active Statuses"msgstr "启用的状态"@@ -2617,6 +2628,9 @@ msgstr "一项由外部供应商而非内部工作中心执行的工序,由分msgid "An operation on this job runs in this batch"msgstr "此工作的一道工序在此批次中运行"+msgid "An operation or job that would take its storage unit below zero is stopped until the stock is there."+msgstr "若工序或工单会使存储单元降至零以下,将被停止,直到库存充足。"+msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "工序在所在工作中心队列中的位置——车间人员拿工作的顺序。引擎按安排顺序编号(最早预计开始时间优先);在工作中心看板上重新排列卡片会覆盖它,不会改变日期。"@@ -2790,6 +2804,9 @@ msgstr "适用于所有工作中心"msgid "Applies to characteristics without their own rule, and to the lot when this plan drives an inspection."msgstr "适用于没有自己规则的特性,以及当该计划驱动检验时适用于批次。"+msgid "Applies when strict backflush is on."+msgstr "当启用严格倒冲时适用。"+msgid "Apply"msgstr "应用"@@ -3832,8 +3849,8 @@ msgstr "返回可追溯性"msgid "Backflush"msgstr "倒冲"-msgid "Backflush each material only from the storage unit on its material line, and stop the operation or job when that storage unit does not have enough stock."-msgstr "仅从物料行指定的存储单元倒冲每个物料,当该存储单元库存不足时,停止该工序或工单。"+msgid "Backflush each material only from the storage unit on its material line, never from another storage unit."+msgstr "仅从每项物料行所在的存储单元倒冲,不从其他存储单元倒冲。"msgid "Background"msgstr "背景"@@ -13264,6 +13281,12 @@ msgstr "已包含原材料"msgid "Materials are not included"msgstr "未包含原材料"+msgid "Materials missing a Pull From"+msgstr "缺少拉取来源的物料"++msgid "Materials with no storage unit"+msgstr "没有存储单元的物料"+msgid "Matrix"msgstr "矩阵"@@ -15539,6 +15562,9 @@ msgstr "未结工单"msgid "Open Jobs"msgstr "未结工单"+msgid "Open Jobs Missing a Storage Unit"+msgstr "未结工单缺少存储单元"+msgid "Open menu"msgstr "打开菜单"@@ -16826,6 +16852,9 @@ msgstr "按 '/' 查看命令"msgid "Prev"msgstr "上一页"+msgid "Prevent negative stock"+msgstr "防止库存为负"+msgid "Preventive action"msgstr "预防性行动"@@ -20255,6 +20284,9 @@ msgstr "会话已锁定"msgid "Set a customer on this return to add from a shipment."msgstr "在此退货上设置客户以从发货中添加。"+msgid "Set a Pull From on each one through a new version."+msgstr "通过新版本为每个物料设置拉取来源。"+#. placeholder {0}: summarizeList( job.materialsWithoutStorageUnit.map( (m) => m.description ) )msgid "set a Pull From storage unit on {0}"msgstr "为 {0} 设置取货存储单元"@@ -23182,6 +23214,9 @@ msgstr "驱动日程安排的工作时间和日历"msgid "Their dates and splits are planned again from the lines."msgstr "其日期和拆分从行中重新计划。"+msgid "Their next backflush will be refused until each material has a storage unit."+msgstr "下一次倒冲将被拒绝,直到每个物料都有存储单元。"+msgid "Theme"msgstr "主题"diff --git a/packages/server-functions/src/issue/index.ts b/packages/server-functions/src/issue/index.tsindex cf5ef28a10..f1897eaef3 100644--- a/packages/server-functions/src/issue/index.ts+++ b/packages/server-functions/src/issue/index.ts@@ -76,6 +76,7 @@ import {import {assertBinCovers,binCoverProblem,+ getStrictBackflushSettings,isStrictBackflush,strictBackflushRefusal} from "../lib/strict-backflush";@@ -231,7 +232,10 @@ async function issueJobOperationMaterials(jobOperationId,companyId});- const strict = await isStrictBackflush(trx, companyId);+ const { strict, preventNegative } = await getStrictBackflushSettings(+ trx,+ companyId+ );// Strict backflush: every material the bins cannot cover, refused together.const strictProblems: string[] = [];const takenShared: SharedTakes = new Map();@@ -296,7 +300,8 @@ async function issueJobOperationMaterials(locationId: job.locationId,storageUnitId: material.storageUnitId,quantity: remaining,- plannedRows: itemLedgerInserts+ plannedRows: itemLedgerInserts,+ preventNegative});if (problem) strictProblems.push(problem);itemLedgerInserts.push({@@ -3078,11 +3083,11 @@ const issue = defineServerFn({// Strict backflush: a consuming issue takes what no pick// covered from the material's own storage unit only. A return// keeps the bin chosen above.- if (- adjustmentType !== "Positive Adjmt." &&- remaining > 0 &&- (await isStrictBackflush(trx, companyId))- ) {+ const strictSettings =+ adjustmentType !== "Positive Adjmt." && remaining > 0+ ? await getStrictBackflushSettings(trx, companyId)+ : null;+ if (strictSettings?.strict) {storageUnitId = material.storageUnitId;await assertBinCovers(trx, {companyId,@@ -3090,7 +3095,8 @@ const issue = defineServerFn({locationId: job?.locationId!,storageUnitId,quantity: remaining,- plannedRows: itemLedgerInserts+ plannedRows: itemLedgerInserts,+ preventNegative: strictSettings.preventNegative});}itemLedgerInserts.push({diff --git a/packages/server-functions/src/lib/strict-backflush.ts b/packages/server-functions/src/lib/strict-backflush.tsindex c881a39b3e..0d34b9bd9d 100644--- a/packages/server-functions/src/lib/strict-backflush.ts+++ b/packages/server-functions/src/lib/strict-backflush.ts@@ -4,9 +4,10 @@// Strict backflush (companySettings.requireBackflushStorageUnit,// .ai/specs/2026-10-14-strict-backflush.md): a stocked material is consumed-// only from its own storage unit, and a missing or short bin refuses the-// backflush instead of falling back to another bin. The SQL job-completion-// backflush (`backflush_job_materials`) enforces the same rule.+// only from its own storage unit, never another bin. A missing bin refuses the+// backflush; a short bin refuses it only while preventNegativeBackflush is on —+// with it off the bin is drawn below zero. The SQL job-completion backflush+// (`backflush_job_materials`) enforces the same rules.import type { Database } from "@carbon/database";import type { KyselyDatabase as DB } from "@carbon/database/client";@@ -27,16 +28,33 @@ const logger = getLogger("server-functions", "strict-backflush");type LedgerInsert = Database["public"]["Tables"]["itemLedger"]["Insert"];-export async function isStrictBackflush(+export type StrictBackflushSettings = {+ strict: boolean;+ /** Only meaningful while `strict`: refuse a short bin instead of letting it+ * go negative. */+ preventNegative: boolean;+};++export async function getStrictBackflushSettings(db: Kysely<DB>,companyId: string-): Promise<boolean> {+): Promise<StrictBackflushSettings> {const row = await db.selectFrom("companySettings").where("id", "=", companyId)- .select("requireBackflushStorageUnit")+ .select(["requireBackflushStorageUnit", "preventNegativeBackflush"]).executeTakeFirst();- return row?.requireBackflushStorageUnit === true;+ return {+ strict: row?.requireBackflushStorageUnit === true,+ preventNegative: row?.preventNegativeBackflush !== false+ };+}++export async function isStrictBackflush(+ db: Kysely<DB>,+ companyId: string+): Promise<boolean> {+ return (await getStrictBackflushSettings(db, companyId)).strict;}type BinCoverArgs = {@@ -46,6 +64,8 @@ type BinCoverArgs = {storageUnitId: string | null | undefined;quantity: number;plannedRows: LedgerInsert[];+ /** Refuse a short bin (true) or let it go negative (false). */+ preventNegative: boolean;};/**@@ -76,8 +96,9 @@ export function strictBackflushRefusal(problems: string[]): ServerFnError {}/**- * Why `storageUnitId` cannot cover `quantity` — a missing bin or a short one —- * or null when it can. Takes the bin's lock either way (see below).+ * Why `storageUnitId` cannot cover `quantity` — a missing bin, or a short one+ * while `preventNegative` — or null when it can. Takes the bin's lock whenever+ * it checks the quantity (see below).*/export async function binCoverProblem(db: Kysely<DB>,@@ -90,6 +111,10 @@ export async function binCoverProblem(return `${item} has no Pull From storage unit on this job`;}+ // Negative stock allowed: the material is drawn from its own bin whatever+ // that bin holds, so there is nothing to check or serialize.+ if (!args.preventNegative) return null;+// Serialize strict draws on this bin and item until the caller's transaction// ends, so two completions cannot both pass the check and overdraw it. SQL// `backflush_job_materials` takes the same key.diff --git a/packages/server-functions/src/strict-backflush.test.ts b/packages/server-functions/src/strict-backflush.test.tsindex 773f221f3b..02f1df576f 100644--- a/packages/server-functions/src/strict-backflush.test.ts+++ b/packages/server-functions/src/strict-backflush.test.ts@@ -150,6 +150,62 @@ databaseTest(});+databaseTest(+ "with negative stock allowed, strict backflush draws its own bin below zero",+ async () => {+ const f = await alwaysPostFixture();+ try {+ const shelfA = await storageUnit(f, "Shelf A");+ const shelfB = await storageUnit(f, "Shelf B");+ await stockBin(f, shelfA, 1);+ await stockBin(f, shelfB, 10);+ const job = await jobFixture(f);+ await setMaterialBin(f, job.materialId, shelfA);+ await setStrict(f, true);+ await f.db+ .updateTable("companySettings")+ .set({ preventNegativeBackflush: false })+ .where("id", "=", f.companyId)+ .execute();++ // Operation completion: all 2 from Shelf A (1 on hand → -1), none from B.+ unwrap(+ await issue(f.ctx, {+ type: "jobOperation",+ id: job.operationId,+ quantity: 1+ })+ );+ expect(await consumption(f, job.jobId)).toEqual([+ { storageUnitId: shelfA, quantity: -2 }+ ]);++ // A missing bin is still refused: strict bins stay strict.+ const second = await jobFixture(f, "2");+ const missing = await issue(f.ctx, {+ type: "jobOperation",+ id: second.operationId,+ quantity: 1+ });+ expect(missing.error?.message).toBe(+ `${f.prefix}-PART has no Pull From storage unit on this job`+ );++ // Job completion (SQL) draws its own bin below zero too.+ const third = await jobFixture(f, "3");+ await setMaterialBin(f, third.materialId, shelfA);+ await sql`SELECT backflush_job_materials(${third.jobId}, 1, ${f.companyId}, ${USER})`.execute(+ f.db+ );+ expect(await consumption(f, third.jobId)).toEqual([+ { storageUnitId: shelfA, quantity: -2 }+ ]);+ } finally {+ await f.cleanup();+ }+ }+);+databaseTest("with strict backflush off, a short bin still falls back to the fullest one",async () => {