Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat(resources): delete a work center or process that nothing uses (#2058)

Brad Barbincb1b77eb5523
diff --git a/apps/erp/app/modules/resources/AGENTS.md b/apps/erp/app/modules/resources/AGENTS.md
index b3d051b075..5764377f67 100644
--- a/apps/erp/app/modules/resources/AGENTS.md
+++ b/apps/erp/app/modules/resources/AGENTS.md
@@ -5,8 +5,8 @@ Locations, work centers, processes, abilities (skills), partners, contractors, e
## Key Domain Concepts
- **Location** — physical site/facility. Every inventory record, job, and employee is scoped to a location. Has address, timezone, and GPS coordinates. Company-scoped. `requiresStaffing` (BOOLEAN, default false; `20260820151847_location-requires-staffing.sql`) is a per-location scheduling policy edited on the Production settings page (Settings → Production → Scheduling): when true the finite scheduler only places work where an operator is manned (lights-out work centers exempt) — see `.claude/rules/scheduling-data-structures.md`.
-- **Work Center** — production station within a location. Operations schedule onto work centers. Have rates and active/inactive status. MUST soft-delete via `active: false`. Scheduling is always finite (one operation at a time), and a work center now has **operating hours**: assign it one or more of the location's shifts via `workCenterShift` (empty = all shifts at the location), or set `alwaysOn` for genuine lights-out 24×7. The scheduler resolves hours through a ladder — `alwaysOn` → explicit `workCenterShift` rows → the location's `shift` rows → a stock Mon–Fri 8h week — so even a zero-config shop is bounded by real hours (it is no longer "always open 24×7"). An open maintenance dispatch flagged `takesWorkCenterOffline` subtracts its window(s) from the schedule until closed. The work center form edits both (an "Operating shifts" multiselect + a "Runs 24×7 (lights-out)" toggle), and work-center create/edit/deactivate/reactivate emit the `work-center` schedule input event.
-- **Process** — type of work (e.g., "CNC Milling", "Welding"). Operations reference a process. Linked to work centers via `workCenterProcess`. MUST soft-delete via `active: false`. `process.requiresAbility` gates scheduling and the MES: toggling it ON auto-creates an ability linked 1:1 to the process (`ability.processId`) via `ensureProcessAbility`. `process.abilityPolicy` (enum `processAbilityPolicy`, `Warn` default / `Block`, edited under the toggle on the process form and read only while it is on) decides what the MES does for an operator without the ability: `Warn` shows a banner, `Block` refuses production work on the operation (MES `abilityBlockRefusal`). The ability stores no name of its own — its name IS the process's name. The `batchable` flag marks a process where multiple jobs can run at once (laser table, furnace, plating) — job operations derive batchability from it (see the production module's Operation Batch concept). `process.batchRules` (JSONB, nullable) holds per-BOM-dimension batch compatibility levels (`{ item?, substance?, grade?, dimension?, form?, finish?: "must"|"guide"|"ignore" }`), edited on the batchable process form (a "Compatibility rules" card, visible only when Batchable is on). It is SPARSE — keys equal to their resolved default are omitted, and an all-default config writes NULL. NULL reproduces the pre-rules behavior exactly (`resolveBatchRules(null)` → substance/grade/dimension = guide, form/finish/item = ignore). "Must" is the only level that BLOCKS (server-enforced in the `batch-operations` posting); "guide" warns and splits the builder's suggestion groups; "ignore" is invisible to batching. Resolution/compaction/enforcement all go through the shared pure module `@carbon/utils` `batch-compatibility` (`resolveBatchRules`, `compactBatchRules`, `mustViolations`). `insertProcess` / `updateProcess` fold the six `batchRule*` form fields into `batchRules` (and `batchRuleInitialValues` back); `updateProcess` writes the process and replaces its `workCenterProcess` rows in one Kysely transaction, linking only the company's own work centers.
+- **Work Center** — production station within a location. Operations schedule onto work centers. Have rates and active/inactive status. Deactivated via `active: false`; hard-deleted only by `deleteWorkCenter`, which refuses while anything references it (see Safety). Scheduling is always finite (one operation at a time), and a work center now has **operating hours**: assign it one or more of the location's shifts via `workCenterShift` (empty = all shifts at the location), or set `alwaysOn` for genuine lights-out 24×7. The scheduler resolves hours through a ladder — `alwaysOn` → explicit `workCenterShift` rows → the location's `shift` rows → a stock Mon–Fri 8h week — so even a zero-config shop is bounded by real hours (it is no longer "always open 24×7"). An open maintenance dispatch flagged `takesWorkCenterOffline` subtracts its window(s) from the schedule until closed. The work center form edits both (an "Operating shifts" multiselect + a "Runs 24×7 (lights-out)" toggle), and work-center create/edit/deactivate/reactivate emit the `work-center` schedule input event.
+- **Process** — type of work (e.g., "CNC Milling", "Welding"). Operations reference a process. Linked to work centers via `workCenterProcess`. Deactivated via `active: false`; hard-deleted only by `deleteProcess`, which refuses while anything references it (see Safety). `process.requiresAbility` gates scheduling and the MES: toggling it ON auto-creates an ability linked 1:1 to the process (`ability.processId`) via `ensureProcessAbility`. `process.abilityPolicy` (enum `processAbilityPolicy`, `Warn` default / `Block`, edited under the toggle on the process form and read only while it is on) decides what the MES does for an operator without the ability: `Warn` shows a banner, `Block` refuses production work on the operation (MES `abilityBlockRefusal`). The ability stores no name of its own — its name IS the process's name. The `batchable` flag marks a process where multiple jobs can run at once (laser table, furnace, plating) — job operations derive batchability from it (see the production module's Operation Batch concept). `process.batchRules` (JSONB, nullable) holds per-BOM-dimension batch compatibility levels (`{ item?, substance?, grade?, dimension?, form?, finish?: "must"|"guide"|"ignore" }`), edited on the batchable process form (a "Compatibility rules" card, visible only when Batchable is on). It is SPARSE — keys equal to their resolved default are omitted, and an all-default config writes NULL. NULL reproduces the pre-rules behavior exactly (`resolveBatchRules(null)` → substance/grade/dimension = guide, form/finish/item = ignore). "Must" is the only level that BLOCKS (server-enforced in the `batch-operations` posting); "guide" warns and splits the builder's suggestion groups; "ignore" is invisible to batching. Resolution/compaction/enforcement all go through the shared pure module `@carbon/utils` `batch-compatibility` (`resolveBatchRules`, `compactBatchRules`, `mustViolations`). `insertProcess` / `updateProcess` fold the six `batchRule*` form fields into `batchRules` (and `batchRuleInitialValues` back); `updateProcess` writes the process and replaces its `workCenterProcess` rows in one Kysely transaction, linking only the company's own work centers.
- **Ability** — an employee qualification, **always** linked 1:1 to a process (`ability.processId`, NOT NULL, `ON DELETE CASCADE`). An ability stores **no name of its own** — the name derives from the linked process (renaming the process renames the ability), read through the `abilities` view (`ability` INNER JOIN `process`). Abilities are created **only from a process**: the New Ability modal (`x/resources/abilities` → new) is a picker of processes that don't already have an ability (`getProcessesWithoutAbility`); creating one turns that process's `requiresAbility` on and calls `ensureProcessAbility` (idempotent, so no duplicates). Legacy free-form abilities (no `processId`) were **deleted** by `20260917161742_abilities-from-process.sql` (cascading their `employeeAbility`/`contractorAbility` rows, nulling `training.grantsAbilityId`, and first detaching `workCenter.requiredAbilityId` / removing `partner` rows that referenced them). `employeeAbility` is effectively a map of the processes each person can do. Qualification is **presence-based**: an `employeeAbility` row means the person is qualified, subject only to expiry — `qualified = row exists ∧ (expiresAt IS NULL OR expiresAt > today)` — the expiry day itself counts as expired, in the scheduler, MES, the People board and the abilities table; the scheduler also stops booking the person from the start of that day (`clipToQualification`) where `expiresAt` derives from `ability.recertifyEveryDays`. There is no `active` / `trainingCompleted` gate (dropped `20260812153418_simplify-employee-ability.sql`); "Remove Employee" is a **hard delete**. Admin UI at `x/resources/abilities`; each ability's detail page carries the roster of its qualified employees, and the person page's abilities panel is editable. Training is one path to a row: `training.grantsAbilityId` + the `grant_ability_on_training_completion` trigger upsert `employeeAbility` (sets `lastTrainingDate`, `expiresAt` from `recertifyEveryDays`) on completion — but manually adding the employee qualifies them just as well. **Every path that changes qualification notifies the scheduler** (`notifyScheduleInputsChanged(companyId, "ability", …, abilityId)`): `addEmployeeAbility` / `updateEmployeeAbility` / `removeEmployeeAbility`, `deactivateAbility` (deactivating an ability un-gates its process), and every training completion (`recordTrainingCompletion`, which both `completeTrainingAssignment` and `share/training.$id` call — scoped to `grantsAbilityId` when the training grants one).
- **Partner** — external supplier location with ability mappings for outsourced work.
- **Contractor** — supplier contact working as contract labor, with hours-per-week and ability assignments via `contractorAbility`. Both are for reference: the scheduler does not book contractors on operations. `upsertContractor` replaces the abilities only when the caller sends `abilities`; the edit drawer has no abilities field and sends none, so a save keeps them. `abilities` is optional on the `createContractor` / `updateContractor` operations for the same reason.
@@ -18,8 +18,8 @@ Locations, work centers, processes, abilities (skills), partners, contractors, e
## Safety
### Always
-- MUST soft-delete work centers via `deleteWorkCenter` (`active: false`) — they are referenced by job operations and schedules.
-- MUST soft-delete processes via `processDeactivate` (`active: false`) — referenced by operations and procedures.
+- MUST hard-delete a work center or process only through the `deleteWorkCenter` / `deleteProcess` operations. They lock the row, count every table in `workCenterReferenceChecks` / `processReferenceChecks` (`resources.service.ts`, one statement) and refuse with `conflict` while any has a row — several FKs CASCADE (procedures, trainings, abilities and through them qualified employees and `workCenter.requiredAbilityId`, maintenance history, machine data), so the FK alone would delete them silently. Only link rows (work center processes, shifts, people and rule assignments, load history) go with the record. A new table that references either belongs in its list. The delete routes show the same list (`useResourceReferenceLabels`) and disable Delete while it is not empty.
+- Otherwise deactivate: `deactivateWorkCenter` / `processDeactivate` (`active: false`).
- MUST scope all queries by `companyId` — locations, work centers, and all sub-entities are company-scoped.
- MUST write dispatches, their timecards and their parts through the dispatch, `*MaintenanceEvent` and `issueMaintenancePart` / `unissueMaintenancePart` / `*MaintenanceDispatchItem` operations (`resources.server.ts`) — they refuse a Completed or Cancelled dispatch, move the stock and post the labor.
@@ -29,7 +29,7 @@ Locations, work centers, processes, abilities (skills), partners, contractors, e
- Modifying process definitions referenced by active methods or procedures.
### Never
-- Hard-delete work centers or processes — always soft-delete via `active: false`.
+- Hard-delete a work center or process with a bare `.delete()` — go through `deleteWorkCenter` / `deleteProcess`.
- Delete locations that have inventory or active jobs — referential integrity will break.
- Remove abilities that have `employeeAbility` training records.
@@ -70,7 +70,8 @@ Each operation is one `defineServiceFn` const in `resources.server.ts`. A route
| `addEmployeeAbility` / `updateEmployeeAbility` / `removeEmployeeAbility` | `ability.$id.employee.new.tsx`, `person.$personId.ability.new.tsx`, `ability.$id.employee.$employeeAbilityId.tsx`, `ability.$id.employee.delete.$employeeAbilityId.tsx` | The ability must be the company's; a blank expiry comes from the recertification period; the scheduler is told |
| `createLocation` / `updateLocation` | `locations.new.tsx`, `locations.$locationId.tsx` | An update needs `resources` create and update (the old route's gate and the row's policy) and drops the cached timezone |
| `createProcess` / `updateProcess` | `processes.new.tsx`, `processes.$processId.tsx` | `resources` create; an update needs create, update and delete (it replaces the work centers on the system connection); `requiresAbility` creates the ability, and is rolled back when that fails; a change of it tells the scheduler |
-| `createWorkCenter` / `updateWorkCenter` / `reactivateWorkCenter` / `deactivateWorkCenter` | `work-centers.new.tsx`, `work-centers.$id.tsx`, `work-centers.activate.$id.tsx`, `work-centers.delete.$id.tsx` | A create needs `resources` create and update; deactivate is a soft delete; each tells the scheduler |
+| `createWorkCenter` / `updateWorkCenter` / `reactivateWorkCenter` / `deactivateWorkCenter` / `deleteWorkCenter` | `work-centers.new.tsx`, `work-centers.$id.tsx`, `work-centers.activate.$id.tsx`, `work-centers.deactivate.$id.tsx`, `work-centers.delete.$id.tsx` | A create needs `resources` create and update; deactivate is a soft delete; delete refuses while anything references it (`getWorkCenterReferences` lists it for the modal); each tells the scheduler |
+| `deleteProcess` / `getProcessReferences` | `processes.delete.$processId.tsx` | Refuses while anything references the process, including through its ability |
| `createMaintenanceSchedule` / `updateMaintenanceSchedule` | `scheduled-maintenance.new.tsx`, `scheduled-maintenance.$scheduleId.tsx` | Generates the schedule's dispatches now (`generate-maintenance`) |
| `createMaintenanceDispatch` / `updateMaintenanceDispatchField` / `setMaintenanceDispatchStatus` | `x+/maintenance+/new.tsx`, `update.tsx`, `$dispatchId.status.tsx` | `updateMaintenanceDispatchField` refuses a locked dispatch, takes a time as an ISO 8601 instant with an offset, and tells the scheduler about an offline dispatch's downtime; Completed posts the labor (`warning` when it fails); `setMaintenanceDispatchStatus` also reopens |
| `createMaintenanceEvent` / `updateMaintenanceEvent` / `deleteMaintenanceEvent` / `startMaintenanceEvent` / `stopMaintenanceEvent` | `$dispatchId.event.new.tsx`, `$dispatchId.event.$eventId.tsx`, `$dispatchId.event.$eventId.delete.tsx`, `$dispatchId.events.tsx` | Refused on a Completed or Cancelled dispatch; the timecard must be the dispatch's, its employee an active employee and its work center the company's (both are tagged on the labor journal); the labor is posted again (`warning` when it fails) |
@@ -79,13 +80,13 @@ Each operation is one `defineServiceFn` const in `resources.server.ts`. A route
| `updateTrainingField` | `x+/training+/update.tsx` | `content` needs `resources` update (the training table's policy, under which the editor wrote it); every other field `people` update as well, as the route was. `guidePath` and `videoUrl` only while Draft, each clearing the other; a write that reaches no row of the company is refused. The content editor saves with a plain `fetch`, so its autosave does not reload the page |
| `createTrainingAssignment` / `updateTrainingAssignment` / `completeTrainingAssignment` / `uncompleteTrainingAssignment` | `assignments.new.tsx`, `assignments.assignment.$assignmentId.tsx`, `assignments.complete.tsx`, `assignments.uncomplete.tsx` | One assignment per training, which must be the company's; only a member of the groups completes it; `completeTrainingAssignment` takes a file and is not published |
-The building blocks they call are in `resources.service.ts` and are never tools: `activateWorkCenter`, `deleteAbility`, `deleteWorkCenter`, `deleteTrainingCompletion`, `ensureProcessAbility`, `resolveEmployeeAbilityExpiresAt`, `upsertEmployeeAbilityCell`, `upsertLocation`, `insertMaintenanceDispatch`, `upsertMaintenanceDispatchEvent`, `upsertMaintenanceSchedule`, `insertProcess`, `updateProcess`, `upsertTrainingAssignment`, `upsertWorkCenter`.
+The building blocks they call are in `resources.service.ts` and are never tools: `activateWorkCenter`, `deactivateWorkCenter`, `deleteAbility`, `deleteWorkCenter`, `deleteProcess`, `getWorkCenterReferences`, `getProcessReferences`, `deleteTrainingCompletion`, `ensureProcessAbility`, `resolveEmployeeAbilityExpiresAt`, `upsertEmployeeAbilityCell`, `upsertLocation`, `insertMaintenanceDispatch`, `upsertMaintenanceDispatchEvent`, `upsertMaintenanceSchedule`, `insertProcess`, `updateProcess`, `upsertTrainingAssignment`, `upsertWorkCenter`.
## Key Service Functions
- `getLocations` / `getLocationsList` / `upsertLocation` — site management
-- `getWorkCenters` / `getWorkCentersByLocation` / `activateWorkCenter` / `deleteWorkCenter` (soft) — work center management
-- `getProcesses` / `getProcessesList` / `activateProcess` / `processDeactivate` — process management
+- `getWorkCenters` / `getWorkCentersByLocation` / `activateWorkCenter` / `deactivateWorkCenter` (soft) / `deleteWorkCenter` (hard, refused while referenced) — work center management
+- `getProcesses` / `getProcessesList` / `activateProcess` / `processDeactivate` / `deleteProcess` (hard, refused while referenced) — process management
- `getAbilities` / `getAbility` (both read the `abilities` view for the process-derived name, stitching `employeeAbility` in one `.in()` query) / `getAbilitiesList` / `getEmployeeAbilities` / `getProcessesWithoutAbility` (feeds the New Ability picker) — skill tracking
- `getEmployeeAbility` / `upsertEmployeeAbilityCell` / `resolveEmployeeAbilityExpiresAt` — per-employee qualification reads/writes under `addEmployeeAbility` / `updateEmployeeAbility` / `removeEmployeeAbility` (ability roster + person panel drawers)
- `ensureProcessAbility` — find-or-create the ability linked 1:1 to a process (called when `requiresAbility` is toggled on, and from the New Ability modal). Takes no name (the process is the name); accepts an optional `recertifyEveryDays`.
diff --git a/apps/erp/app/modules/resources/resources.server.ts b/apps/erp/app/modules/resources/resources.server.ts
index 12abe57432..88cc951a0e 100644
--- a/apps/erp/app/modules/resources/resources.server.ts
+++ b/apps/erp/app/modules/resources/resources.server.ts
@@ -572,7 +572,7 @@ export const deactivateWorkCenter = defineServiceFn({
permission: { delete: "resources" },
async run(ctx, { id }) {
- const deactivated = await service.deleteWorkCenter(
+ const deactivated = await service.deactivateWorkCenter(
ctx.asCaller.supabase,
id
);
@@ -594,6 +594,63 @@ export const deactivateWorkCenter = defineServiceFn({
}
});
+/**
+ * Delete a work center.
+ *
+ * @remarks
+ * Refused while anything references it: operations on a method, quote or
+ * job, production events, maintenance, lineside storage units, fixed assets
+ * or machine devices. Deactivate it instead. Its process links, shifts and
+ * rule assignments go with it, and the scheduler is told.
+ *
+ * @mcp destructive
+ */
+export const deleteWorkCenter = defineServiceFn({
+ input: z.object({ id: z.string() }),
+ permission: { delete: "resources" },
+
+ async run(ctx, { id }) {
+ const result = await ctx.transaction(async (tx) => {
+ const deleted = await service.deleteWorkCenter(tx.asSystem.pg, {
+ id,
+ companyId: ctx.company.id
+ });
+ if (!deleted.found) return ctx.error("notFound", "Work center not found");
+ if (!deleted.deleted) {
+ return ctx.error(
+ "conflict",
+ service.referencedRefusal("work center", deleted.references)
+ );
+ }
+ return { id };
+ });
+ if (result.error) return result.error;
+
+ await notifyScheduleInputsChanged(
+ ctx.company.id,
+ "work-center",
+ "Work center deleted",
+ id
+ );
+ return { id };
+ }
+});
+
+/**
+ * What references a work center: the rows that block deleting it.
+ */
+export const getWorkCenterReferences = defineServiceFn({
+ input: z.object({ id: z.string() }),
+ permission: { view: "resources" },
+
+ async run(ctx, { id }) {
+ return service.getWorkCenterReferences(ctx.asSystem.pg, {
+ id,
+ companyId: ctx.company.id
+ });
+ }
+});
+
// ---------------------------------------------------------------------------
// Maintenance schedules
// ---------------------------------------------------------------------------
@@ -1875,19 +1932,48 @@ export const processDeactivate = defineServiceFn({
/**
* Delete process
*
+ * @remarks
+ * Refused while anything references it: operations on a method, quote or
+ * job, procedures, trainings, issue actions, supplier processes, shelf life
+ * rules, or employees, contractors, partners and work centers holding its
+ * ability. Deactivate it instead. Its work center links go with it.
+ *
* @mcp destructive
*/
export const deleteProcess = defineServiceFn({
- input: z.looseObject({ processId: z.string() }),
+ input: z.object({ processId: z.string() }),
permission: { delete: "resources" },
- async run(ctx, input) {
- return unwrap(
- ctx,
- await service.deleteProcess(
- ctx.asCaller.supabase,
- input.processId as never
- )
- );
+ async run(ctx, { processId }) {
+ const result = await ctx.transaction(async (tx) => {
+ const deleted = await service.deleteProcess(tx.asSystem.pg, {
+ id: processId,
+ companyId: ctx.company.id
+ });
+ if (!deleted.found) return ctx.error("notFound", "Process not found");
+ if (!deleted.deleted) {
+ return ctx.error(
+ "conflict",
+ service.referencedRefusal("process", deleted.references)
+ );
+ }
+ return { processId };
+ });
+ if (result.error) return result.error;
+ return { processId };
+ }
+});
+
+/**
+ * What references a process: the rows that block deleting it.
+ */
+export const getProcessReferences = defineServiceFn({
+ input: z.object({ processId: z.string() }),
+ permission: { view: "resources" },
+ async run(ctx, { processId }) {
+ return service.getProcessReferences(ctx.asSystem.pg, {
+ id: processId,
+ companyId: ctx.company.id
+ });
}
});
diff --git a/apps/erp/app/modules/resources/resources.service.ts b/apps/erp/app/modules/resources/resources.service.ts
index e50d64e2ee..739f0fee7f 100644
--- a/apps/erp/app/modules/resources/resources.service.ts
+++ b/apps/erp/app/modules/resources/resources.service.ts
@@ -31,6 +31,7 @@ import {
searchFilter
} from "@carbon/utils";
import type { SupabaseClient } from "@supabase/supabase-js";
+import { sql } from "kysely";
import { nanoid } from "nanoid";
import type { z } from "zod";
import { notifyScheduleInputsChanged } from "~/modules/production/production.service";
@@ -149,11 +150,320 @@ export async function processDeactivate(
return client.from("process").update({ active: false }).eq("id", processId);
}
+/**
+ * A table whose rows point at a work center or process. Deleting the record
+ * would block on some of these (RESTRICT) and silently take others with it
+ * (CASCADE: procedures, trainings, maintenance history), so a delete is
+ * refused while any of them has a row. Link rows that only describe the
+ * record itself — work center processes, shifts, people assignments, rule
+ * assignments, load history — are not listed and go with it.
+ */
+type ReferenceCheck = {
+ key: string;
+ /** English, for the API and MCP refusal; the ERP translates by `key`. */
+ label: string;
+ table: keyof KyselyDatabase;
+ column: string;
+ /** Match through the process's ability instead of the process itself. */
+ viaAbility?: boolean;
+};
+
+export const workCenterReferenceChecks = [
+ {
+ key: "methodOperation",
+ label: "method operations",
+ table: "methodOperation",
+ column: "workCenterId"
+ },
+ {
+ key: "quoteOperation",
+ label: "quote operations",
+ table: "quoteOperation",
+ column: "workCenterId"
+ },
+ {
+ key: "jobOperation",
+ label: "job operations",
+ table: "jobOperation",
+ column: "workCenterId"
+ },
+ {
+ key: "jobOperationBatch",
+ label: "operation batches",
+ table: "jobOperationBatch",
+ column: "workCenterId"
+ },
+ {
+ key: "productionEvent",
+ label: "production events",
+ table: "productionEvent",
+ column: "workCenterId"
+ },
+ {
+ key: "maintenanceSchedule",
+ label: "maintenance schedules",
+ table: "maintenanceSchedule",
+ column: "workCenterId"
+ },
+ {
+ key: "maintenanceDispatch",
+ label: "maintenance dispatches",
+ table: "maintenanceDispatch",
+ column: "workCenterId"
+ },
+ {
+ key: "maintenanceDispatchWorkCenter",
+ label: "maintenance dispatch work centers",
+ table: "maintenanceDispatchWorkCenter",
+ column: "workCenterId"
+ },
+ {
+ key: "maintenanceDispatchEvent",
+ label: "maintenance events",
+ table: "maintenanceDispatchEvent",
+ column: "workCenterId"
+ },
+ {
+ key: "workCenterReplacementPart",
+ label: "replacement parts",
+ table: "workCenterReplacementPart",
+ column: "workCenterId"
+ },
+ {
+ key: "storageUnit",
+ label: "storage units",
+ table: "storageUnit",
+ column: "workCenterId"
+ },
+ {
+ key: "fixedAsset",
+ label: "fixed assets",
+ table: "fixedAsset",
+ column: "workCenterId"
+ },
+ {
+ key: "workCenterDevice",
+ label: "machine devices",
+ table: "workCenterDevice",
+ column: "workCenterId"
+ },
+ {
+ key: "machineStateChange",
+ label: "machine state changes",
+ table: "machineStateChange",
+ column: "workCenterId"
+ },
+ {
+ key: "unattributedMachineTime",
+ label: "unattributed machine time entries",
+ table: "unattributedMachineTime",
+ column: "workCenterId"
+ }
+] as const satisfies readonly ReferenceCheck[];
+
+export const processReferenceChecks = [
+ {
+ key: "methodOperation",
+ label: "method operations",
+ table: "methodOperation",
+ column: "processId"
+ },
+ {
+ key: "quoteOperation",
+ label: "quote operations",
+ table: "quoteOperation",
+ column: "processId"
+ },
+ {
+ key: "jobOperation",
+ label: "job operations",
+ table: "jobOperation",
+ column: "processId"
+ },
+ {
+ key: "jobOperationBatch",
+ label: "operation batches",
+ table: "jobOperationBatch",
+ column: "processId"
+ },
+ {
+ key: "procedure",
+ label: "procedures",
+ table: "procedure",
+ column: "processId"
+ },
+ {
+ key: "training",
+ label: "trainings",
+ table: "training",
+ column: "processId"
+ },
+ {
+ key: "nonConformanceActionProcess",
+ label: "issue actions",
+ table: "nonConformanceActionProcess",
+ column: "processId"
+ },
+ {
+ key: "supplierProcess",
+ label: "supplier processes",
+ table: "supplierProcess",
+ column: "processId"
+ },
+ {
+ key: "itemShelfLife",
+ label: "item shelf life rules",
+ table: "itemShelfLife",
+ column: "triggerProcessId"
+ },
+ {
+ key: "employeeAbility",
+ label: "qualified employees",
+ table: "employeeAbility",
+ column: "abilityId",
+ viaAbility: true
+ },
+ {
+ key: "contractorAbility",
+ label: "contractors",
+ table: "contractorAbility",
+ column: "abilityId",
+ viaAbility: true
+ },
+ {
+ key: "partner",
+ label: "partners",
+ table: "partner",
+ column: "abilityId",
+ viaAbility: true
+ },
+ {
+ key: "requiredAbility",
+ label: "work centers requiring its ability",
+ table: "workCenter",
+ column: "requiredAbilityId",
+ viaAbility: true
+ }
+] as const satisfies readonly ReferenceCheck[];
+
+export type WorkCenterReferenceKey =
+ (typeof workCenterReferenceChecks)[number]["key"];
+export type ProcessReferenceKey =
+ (typeof processReferenceChecks)[number]["key"];
+export type ResourceReference<K extends string = string> = {
+ key: K;
+ label: string;
+ count: number;
+};
+
+/** The refusal a delete answers while `references` is not empty. */
+export function referencedRefusal(
+ record: string,
+ references: ResourceReference[]
+) {
+ const usages = references
+ .map((reference) => `${reference.label} (${reference.count})`)
+ .join(", ");
+ return `This ${record} is used by ${usages}. Deactivate it instead.`;
+}
+
+/** Every check in one statement; only the tables with rows come back. */
+async function countReferences<C extends ReferenceCheck>(
+ db: Kysely<KyselyDatabase>,
+ checks: readonly C[],
+ { id, companyId }: { id: string; companyId: string }
+): Promise<ResourceReference<C["key"]>[]> {
+ const result = await sql<Record<string, number>>`SELECT ${sql.join(
+ checks.map(
+ (check) =>
+ sql`(SELECT count(*)::int FROM ${sql.table(check.table)} WHERE ${sql.ref(
+ check.column
+ )} ${
+ check.viaAbility
+ ? sql`IN (SELECT "id" FROM "ability" WHERE "processId" = ${id} AND "companyId" = ${companyId})`
+ : sql`= ${id}`
+ } AND "companyId" = ${companyId}) AS ${sql.ref(check.key)}`
+ )
+ )}`.execute(db);
+ const row = result.rows[0] ?? {};
+ return checks
+ .map((check) => ({
+ key: check.key as C["key"],
+ label: check.label,
+ count: Number(row[check.key] ?? 0)
+ }))
+ .filter((reference) => reference.count > 0);
+}
+
+export async function getWorkCenterReferences(
+ db: Kysely<KyselyDatabase>,
+ args: { id: string; companyId: string }
+) {
+ return countReferences(db, workCenterReferenceChecks, args);
+}
+
+export async function getProcessReferences(
+ db: Kysely<KyselyDatabase>,
+ args: { id: string; companyId: string }
+) {
+ return countReferences(db, processReferenceChecks, args);
+}
+
+/**
+ * Lock the row, then delete it only when nothing references it. The lock
+ * conflicts with the key-share lock every referencing insert takes, so no
+ * reference can land between the count and the delete. A process's ability
+ * rows are locked too: a qualification, contractor, partner or required
+ * ability locks the ability, not the process, and deleting the process
+ * cascades through it. Run it inside a transaction.
+ */
+async function deleteIfUnreferenced<C extends ReferenceCheck>(
+ db: Kysely<KyselyDatabase>,
+ table: "workCenter" | "process",
+ checks: readonly C[],
+ args: { id: string; companyId: string }
+): Promise<
+ | { found: false }
+ | { found: true; deleted: boolean; references: ResourceReference<C["key"]>[] }
+> {
+ const locked = await db
+ .selectFrom(table)
+ .select("id")
+ .where("id", "=", args.id)
+ .where("companyId", "=", args.companyId)
+ .forUpdate()
+ .executeTakeFirst();
+ if (!locked) return { found: false };
+
+ if (table === "process") {
+ await db
+ .selectFrom("ability")
+ .select("id")
+ .where("processId", "=", args.id)
+ .where("companyId", "=", args.companyId)
+ .forUpdate()
+ .execute();
+ }
+
+ const references = await countReferences(db, checks, args);
+ if (references.length > 0) {
+ return { found: true, deleted: false, references };
+ }
+
+ await db
+ .deleteFrom(table)
+ .where("id", "=", args.id)
+ .where("companyId", "=", args.companyId)
+ .execute();
+ return { found: true, deleted: true, references };
+}
+
+/** The bare delete under `resources.deleteProcess`. */
export async function deleteProcess(
- client: SupabaseClient<Database>,
- processId: string
+ db: Kysely<KyselyDatabase>,
+ args: { id: string; companyId: string }
) {
- return client.from("process").delete().eq("id", processId);
+ return deleteIfUnreferenced(db, "process", processReferenceChecks, args);
}
export async function deleteShift(
@@ -198,13 +508,26 @@ export async function deleteTrainingQuestion(
}
/** The bare write under `deactivateWorkCenter`, which also tells the scheduler. */
-export async function deleteWorkCenter(
+export async function deactivateWorkCenter(
client: SupabaseClient<Database>,
id: string
) {
return client.from("workCenter").update({ active: false }).eq("id", id);
}
+/** The bare delete under `resources.deleteWorkCenter`. */
+export async function deleteWorkCenter(
+ db: Kysely<KyselyDatabase>,
+ args: { id: string; companyId: string }
+) {
+ return deleteIfUnreferenced(
+ db,
+ "workCenter",
+ workCenterReferenceChecks,
+ args
+ );
+}
+
export const ABILITIES_PAGING: Paging = {
defaultSorts: [{ column: "name", ascending: true }]
};
diff --git a/apps/erp/app/modules/resources/types.ts b/apps/erp/app/modules/resources/types.ts
index 94a75f578c..6e82a74af0 100644
--- a/apps/erp/app/modules/resources/types.ts
+++ b/apps/erp/app/modules/resources/types.ts
@@ -33,7 +33,10 @@ import type {
getTrainingAssignment,
getTrainingQuestions,
getTrainings,
- getWorkCenters
+ getWorkCenters,
+ ProcessReferenceKey,
+ ResourceReference,
+ WorkCenterReferenceKey
} from "./resources.service";
export type Ability = NonNullable<
@@ -189,3 +192,7 @@ export type MaintenanceDispatchByLocation = NonNullable<
export type MaintenanceScheduleByLocation = NonNullable<
Awaited<ReturnType<typeof getMaintenanceSchedulesByLocation>>["data"]
>[number];
+
+/** A table whose rows block deleting a work center or process. */
+export type ResourceReferenceKey = WorkCenterReferenceKey | ProcessReferenceKey;
+export type { ResourceReference };
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
index 5072717a95..4151594d7b 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
@@ -37,6 +37,7 @@ import {
LuDollarSign,
LuLocateFixed,
LuPencil,
+ LuPower,
LuRedoDot,
LuTrash,
LuTriangleAlert,
@@ -93,7 +94,7 @@ const WorkCentersTable = memo(
const [people] = usePeople();
const permissions = usePermissions();
- const deleteModal = useDisclosure();
+ const deactivateModal = useDisclosure();
const activateModal = useDisclosure();
const [selectedWorkCenter, setSelectedWorkCenter] =
useState<WorkCenter | null>(null);
@@ -106,14 +107,14 @@ const WorkCentersTable = memo(
activateModal.onOpen();
};
- const onDelete = (data: WorkCenter) => {
+ const onDeactivate = (data: WorkCenter) => {
setSelectedWorkCenter(data);
- deleteModal.onOpen();
+ deactivateModal.onOpen();
};
const onCancel = () => {
setSelectedWorkCenter(null);
- deleteModal.onClose();
+ deactivateModal.onClose();
activateModal.onClose();
};
@@ -330,11 +331,10 @@ const WorkCentersTable = memo(
</MenuItem>
{row.active ? (
<MenuItem
- destructive
disabled={!permissions.can("delete", "resources")}
- onClick={() => onDelete(row)}
+ onClick={() => onDeactivate(row)}
>
- <MenuIcon icon={<LuTrash />} />
+ <MenuIcon icon={<LuPower />} />
<Trans>Deactivate Work Center</Trans>
</MenuItem>
) : (
@@ -346,6 +346,19 @@ const WorkCentersTable = memo(
<Trans>Activate Work Center</Trans>
</MenuItem>
)}
+ <MenuItem
+ shortcut={MENU_ITEM_SHORTCUTS.delete}
+ destructive
+ disabled={!permissions.can("delete", "resources")}
+ onClick={() => {
+ navigate(
+ `${path.to.deleteWorkCenter(row.id!)}?${params?.toString()}`
+ );
+ }}
+ >
+ <MenuIcon icon={<LuTrash />} />
+ <Trans>Delete Work Center</Trans>
+ </MenuItem>
</>
),
@@ -378,9 +391,9 @@ const WorkCentersTable = memo(
/>
{selectedWorkCenter && selectedWorkCenter.id && (
- <DeleteWorkCenterModal
+ <DeactivateWorkCenterModal
workCenter={selectedWorkCenter}
- isOpen={deleteModal.isOpen}
+ isOpen={deactivateModal.isOpen}
onCancel={onCancel}
onSubmit={onCancel}
/>
@@ -405,7 +418,7 @@ const WorkCentersTable = memo(
WorkCentersTable.displayName = "WorkCentersTable";
export default WorkCentersTable;
-function DeleteWorkCenterModal({
+function DeactivateWorkCenterModal({
workCenter,
isOpen,
onCancel,
@@ -520,7 +533,7 @@ function DeleteWorkCenterModal({
</Button>
<fetcher.Form
method="post"
- action={path.to.deleteWorkCenter(workCenter.id!)}
+ action={path.to.workCenterDeactivate(workCenter.id!)}
onSubmit={() => (submitted.current = true)}
>
<Button
diff --git a/apps/erp/app/modules/resources/ui/useResourceReferenceLabels.ts b/apps/erp/app/modules/resources/ui/useResourceReferenceLabels.ts
new file mode 100644
index 0000000000..5e6e699258
--- /dev/null
+++ b/apps/erp/app/modules/resources/ui/useResourceReferenceLabels.ts
@@ -0,0 +1,50 @@
+// 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 { useLingui } from "@lingui/react/macro";
+import type {
+ ResourceReference,
+ ResourceReferenceKey
+} from "~/modules/resources/types";
+
+/**
+ * What blocks deleting a work center or process, as one line ("job
+ * operations (3), procedures (1)"), or null when nothing does.
+ */
+export function useResourceReferenceLabels(
+ references: ResourceReference<ResourceReferenceKey>[]
+) {
+ const { t } = useLingui();
+ const labels: Record<ResourceReferenceKey, string> = {
+ methodOperation: t`method operations`,
+ quoteOperation: t`quote operations`,
+ jobOperation: t`job operations`,
+ jobOperationBatch: t`operation batches`,
+ productionEvent: t`production events`,
+ maintenanceSchedule: t`maintenance schedules`,
+ maintenanceDispatch: t`maintenance dispatches`,
+ maintenanceDispatchWorkCenter: t`maintenance dispatch work centers`,
+ maintenanceDispatchEvent: t`maintenance events`,
+ workCenterReplacementPart: t`replacement parts`,
+ storageUnit: t`storage units`,
+ fixedAsset: t`fixed assets`,
+ workCenterDevice: t`machine devices`,
+ machineStateChange: t`machine state changes`,
+ unattributedMachineTime: t`unattributed machine time entries`,
+ procedure: t`procedures`,
+ training: t`trainings`,
+ nonConformanceActionProcess: t`issue actions`,
+ supplierProcess: t`supplier processes`,
+ itemShelfLife: t`item shelf life rules`,
+ employeeAbility: t`qualified employees`,
+ contractorAbility: t`contractors`,
+ partner: t`partners`,
+ requiredAbility: t`work centers requiring its ability`
+ };
+
+ if (references.length === 0) return null;
+ return references
+ .map((reference) => `${labels[reference.key]} (${reference.count})`)
+ .join(", ");
+}
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.json
index b39119aba0..f884e18b70 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": 1618,
+ "totalTools": 1619,
"modules": 14,
"tools": [
{"name":"accounting_closePeriod","classification":"WRITE","schema":"7e5905ac5974","response":"7e5905ac5974","permission":"accounting:update","paginates":false},
@@ -1181,12 +1181,13 @@
{"name":"resources_deleteMaintenanceEvent","classification":"DESTRUCTIVE","schema":"a5eeac694397","response":"8e58a21e4c94","permission":"resources:delete","paginates":false},
{"name":"resources_deleteMaintenanceSchedule","classification":"DESTRUCTIVE","schema":"093d449cdac0","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
{"name":"resources_deletePartner","classification":"DESTRUCTIVE","schema":"48d3fd6edb53","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
- {"name":"resources_deleteProcess","classification":"DESTRUCTIVE","schema":"5631e53ea64f","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
+ {"name":"resources_deleteProcess","classification":"DESTRUCTIVE","schema":"01edb53077b2","response":"01edb53077b2","permission":"resources:delete","paginates":false},
{"name":"resources_deleteShift","classification":"DESTRUCTIVE","schema":"7830c71fa7a3","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
{"name":"resources_deleteSuggestion","classification":"DESTRUCTIVE","schema":"7e2e609c39b4","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
{"name":"resources_deleteTraining","classification":"DESTRUCTIVE","schema":"ad4ee6c278a0","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
{"name":"resources_deleteTrainingAssignment","classification":"DESTRUCTIVE","schema":"9ee4c244585a","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
{"name":"resources_deleteTrainingQuestion","classification":"DESTRUCTIVE","schema":"3a46a4c5c924","response":"bcde375ebd4c","permission":"resources:delete","paginates":false},
+ {"name":"resources_deleteWorkCenter","classification":"DESTRUCTIVE","schema":"3797626bd17e","response":"3797626bd17e","permission":"resources:delete","paginates":false},
{"name":"resources_getAbilities","classification":"READ","schema":"cd40ae40fad5","response":"b306c2cb1888","permission":"resources:view","paginates":true},
{"name":"resources_getAbilitiesList","classification":"READ","schema":"31b84d65b2ac","response":"fc7a0345fc53","permission":"resources:view","paginates":false},
{"name":"resources_getAbility","classification":"READ","schema":"18c5e48c0ea4","response":"d98eac986c97","permission":"resources:view","paginates":false},
diff --git a/apps/erp/app/routes/x+/resources+/processes.delete.$processId.tsx b/apps/erp/app/routes/x+/resources+/processes.delete.$processId.tsx
index c542fbceb9..407b6a7d7a 100644
--- a/apps/erp/app/routes/x+/resources+/processes.delete.$processId.tsx
+++ b/apps/erp/app/routes/x+/resources+/processes.delete.$processId.tsx
@@ -2,18 +2,18 @@
// 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 { error, notFound, success } from "@carbon/auth";
+import { carbon, respond } from "@carbon/api/carbon.server";
+import { error, notFound } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
+import { validator } from "@carbon/form";
import { redirect } from "@carbon/utils";
import { useLingui } from "@lingui/react/macro";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";
import { useLoaderData, useNavigate, useParams } from "react-router";
-import { Confirm } from "~/components/Modals";
-import {
- deleteProcess,
- getProcess
-} from "~/modules/resources/resources.service";
+import { ConfirmDelete } from "~/components/Modals";
+import { getProcess } from "~/modules/resources/resources.service";
+import { useResourceReferenceLabels } from "~/modules/resources/ui/useResourceReferenceLabels";
import { path } from "~/utils/path";
export async function loader({ request, params }: LoaderFunctionArgs) {
@@ -25,69 +25,63 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
const { processId } = params;
if (!processId) throw notFound("processId not found");
- const process = await getProcess(client, processId);
- if (process.error) {
+ const api = await carbon(request);
+ const [process, references] = await Promise.all([
+ getProcess(client, processId),
+ api.resources.getProcessReferences({ processId })
+ ]);
+ if (process.error || references.error) {
throw redirect(
path.to.processes,
- await flash(request, error(process.error, "Failed to get process"))
+ await flash(
+ request,
+ error(process.error ?? references.error, "Failed to get process")
+ )
);
}
return {
- process: process.data
+ process: process.data,
+ references: references.data
};
}
-export async function action({ request, params }: ActionFunctionArgs) {
- const { client } = await requirePermissions(request, {
- delete: "resources"
+export async function action(args: ActionFunctionArgs) {
+ const input = await validator().request(args, { params: ["processId"] });
+ if ("invalid" in input) return input.invalid;
+ const api = await carbon(args.request);
+ const result = await api.resources.deleteProcess({
+ processId: input.params.processId
+ });
+ return respond(args.request, result).redirect(path.to.processes, {
+ message: "Successfully deleted process"
});
-
- const { processId } = params;
- if (!processId) {
- throw redirect(
- path.to.processes,
- await flash(request, error(params, "Failed to get process id"))
- );
- }
-
- const { error: deleteProcessError } = await deleteProcess(client, processId);
- if (deleteProcessError) {
- throw redirect(
- path.to.processes,
- await flash(
- request,
- error(deleteProcessError, deleteProcessError.details)
- )
- );
- }
-
- throw redirect(
- path.to.processes,
- await flash(request, success("Successfully deactivated process"))
- );
}
export default function DeleteProcessRoute() {
const { processId } = useParams();
- const { process } = useLoaderData<typeof loader>();
+ const { process, references } = useLoaderData<typeof loader>();
const navigate = useNavigate();
const { t } = useLingui();
+ const usages = useResourceReferenceLabels(references);
if (!process) return null;
if (!processId) throw new Error("processId is not found");
const onCancel = () => navigate(path.to.processes);
- const name = process.name;
+ const name = process.name ?? "";
+
return (
- <Confirm
+ <ConfirmDelete
action={path.to.deleteProcess(processId)}
- title={t`Deactivate ${name}`}
- text={t`Are you sure you want to deactivate the process: ${name}? It will no longer appear in dropdowns.`}
- confirmText={t`Deactivate`}
- isOpen={true}
+ name={name}
+ text={
+ usages
+ ? t`${name} can't be deleted because it is used by ${usages}. Deactivate it instead.`
+ : t`Are you sure you want to permanently delete the process: ${name}? This cannot be undone.`
+ }
+ isDisabled={!!usages}
onCancel={onCancel}
- onSubmit={onCancel}
/>
);
}
diff --git a/apps/erp/app/routes/x+/resources+/work-centers.deactivate.$id.tsx b/apps/erp/app/routes/x+/resources+/work-centers.deactivate.$id.tsx
new file mode 100644
index 0000000000..99125173dd
--- /dev/null
+++ b/apps/erp/app/routes/x+/resources+/work-centers.deactivate.$id.tsx
@@ -0,0 +1,20 @@
+// 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 { carbon, respond } from "@carbon/api/carbon.server";
+import { validator } from "@carbon/form";
+import type { ActionFunctionArgs } from "react-router";
+import { path } from "~/utils/path";
+
+export async function action(args: ActionFunctionArgs) {
+ const input = await validator().request(args, { params: ["id"] });
+ if ("invalid" in input) return input.invalid;
+ const api = await carbon(args.request);
+ const result = await api.resources.deactivateWorkCenter({
+ id: input.params.id
+ });
+ return respond(args.request, result).redirect(path.to.workCenters, {
+ message: "Successfully deactivated work center"
+ });
+}
diff --git a/apps/erp/app/routes/x+/resources+/work-centers.delete.$id.tsx b/apps/erp/app/routes/x+/resources+/work-centers.delete.$id.tsx
index 99125173dd..b4ebee35b2 100644
--- a/apps/erp/app/routes/x+/resources+/work-centers.delete.$id.tsx
+++ b/apps/erp/app/routes/x+/resources+/work-centers.delete.$id.tsx
@@ -3,18 +3,89 @@
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import { carbon, respond } from "@carbon/api/carbon.server";
+import { error, notFound } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
-import type { ActionFunctionArgs } from "react-router";
+import { redirect } from "@carbon/utils";
+import { useLingui } from "@lingui/react/macro";
+import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";
+import { useLoaderData, useNavigate, useParams } from "react-router";
+import { ConfirmDelete } from "~/components/Modals";
+import { useResourceReferenceLabels } from "~/modules/resources/ui/useResourceReferenceLabels";
import { path } from "~/utils/path";
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client, companyId } = await requirePermissions(request, {
+ view: "resources"
+ });
+
+ const { id } = params;
+ if (!id) throw notFound("Invalid work center id");
+
+ const api = await carbon(request);
+ // Read the table, not getWorkCenter: an inactive work center can be deleted too.
+ const [workCenter, references] = await Promise.all([
+ client
+ .from("workCenter")
+ .select("id, name")
+ .eq("id", id)
+ .eq("companyId", companyId)
+ .single(),
+ api.resources.getWorkCenterReferences({ id })
+ ]);
+ if (workCenter.error || references.error) {
+ throw redirect(
+ path.to.workCenters,
+ await flash(
+ request,
+ error(workCenter.error ?? references.error, "Failed to get work center")
+ )
+ );
+ }
+
+ return {
+ workCenter: workCenter.data,
+ references: references.data
+ };
+}
+
export async function action(args: ActionFunctionArgs) {
const input = await validator().request(args, { params: ["id"] });
if ("invalid" in input) return input.invalid;
const api = await carbon(args.request);
- const result = await api.resources.deactivateWorkCenter({
+ const result = await api.resources.deleteWorkCenter({
id: input.params.id
});
return respond(args.request, result).redirect(path.to.workCenters, {
- message: "Successfully deactivated work center"
+ message: "Successfully deleted work center"
});
}
+
+export default function DeleteWorkCenterRoute() {
+ const { id } = useParams();
+ const { workCenter, references } = useLoaderData<typeof loader>();
+ const navigate = useNavigate();
+ const { t } = useLingui();
+ const usages = useResourceReferenceLabels(references);
+
+ if (!workCenter) return null;
+ if (!id) throw new Error("id is not found");
+
+ const onCancel = () => navigate(path.to.workCenters);
+ const name = workCenter.name;
+
+ return (
+ <ConfirmDelete
+ action={path.to.deleteWorkCenter(id)}
+ name={name}
+ text={
+ usages
+ ? t`${name} can't be deleted because it is used by ${usages}. Deactivate it instead.`
+ : t`Are you sure you want to permanently delete the work center: ${name}? This cannot be undone.`
+ }
+ isDisabled={!!usages}
+ onCancel={onCancel}
+ />
+ );
+}
diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.ts
index dc1e1f8f10..919ae00432 100644
--- a/apps/erp/app/utils/path.ts
+++ b/apps/erp/app/utils/path.ts
@@ -2644,6 +2644,8 @@ export const path = {
generatePath(`${x}/resources/work-centers/${id}`),
workCenterActivate: (id: string) =>
generatePath(`${x}/resources/work-centers/activate/${id}`),
+ workCenterDeactivate: (id: string) =>
+ generatePath(`${x}/resources/work-centers/deactivate/${id}`),
workCenters: `${x}/resources/work-centers`,
workflow: (id: string) => generatePath(`${x}/workflow/${id}`),
workflowCanvas: (id: string) => generatePath(`${x}/workflow/${id}/canvas`),
diff --git a/apps/erp/test/database/resources-delete.test.ts b/apps/erp/test/database/resources-delete.test.ts
new file mode 100644
index 0000000000..991c18f3af
--- /dev/null
+++ b/apps/erp/test/database/resources-delete.test.ts
@@ -0,0 +1,199 @@
+// 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.
+
+// Runs against the local stack; skipped without one. A process's FKs cascade
+// (procedures, its ability and through it the work centers requiring it), so
+// deleteProcess must refuse while anything uses it, including a reference that
+// lands while the delete runs.
+
+import { createServiceContext } from "@carbon/api/service-fn.server";
+import { sql } from "kysely";
+import { Client } from "pg";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+import * as resources from "../../app/modules/resources/resources.server";
+import {
+ connectLocalTestDatabase,
+ hasLocalDatabase
+} from "./fixtures/local-database";
+import { localServiceRoleClient } from "./fixtures/local-supabase";
+
+const client = hasLocalDatabase ? localServiceRoleClient() : null;
+const describeLocal = describe.skipIf(!client);
+
+const prefix = `resdel-${crypto.randomUUID().replaceAll("-", "").slice(0, 12)}`;
+const companyId = `${prefix}-company`;
+const groupId = `${prefix}-group`;
+const createdBy = "system";
+
+type Db = Awaited<ReturnType<typeof connectLocalTestDatabase>>;
+let db: Db;
+
+const ctx = () =>
+ createServiceContext({
+ actor: { type: "system", onBehalfOf: "system" },
+ company: { id: companyId, groupId },
+ caller: client!,
+ system: () => client!,
+ pg: () => db,
+ kv: () => {
+ throw new Error("No operation here reads the cache");
+ }
+ });
+
+/** A process with an ability, as `requiresAbility` creates it. */
+async function processWithAbility(name: string) {
+ const processId = `${prefix}-${name}`;
+ await db.transaction().execute(async (trx) => {
+ await sql`SET LOCAL "app.sync_in_progress" = 'true'`.execute(trx);
+ await trx
+ .insertInto("process")
+ .values({
+ id: processId,
+ name: `${prefix} ${name}`,
+ defaultStandardFactor: "Minutes/Piece",
+ requiresAbility: true,
+ companyId,
+ createdBy
+ })
+ .execute();
+ await trx
+ .insertInto("ability")
+ .values({ id: `${processId}-ability`, processId, companyId, createdBy })
+ .execute();
+ });
+ return { processId, abilityId: `${processId}-ability` };
+}
+
+const exists = async (table: "process" | "workCenter" | "procedure", id: string) => {
+ const row = await sql<{ n: number }>`
+ SELECT count(*)::int AS n FROM ${sql.id(table)} WHERE "id" = ${id}`.execute(db);
+ return row.rows[0]?.n === 1;
+};
+
+beforeAll(async () => {
+ if (!client) return;
+ db = await connectLocalTestDatabase();
+ await db.transaction().execute(async (trx) => {
+ await sql`SET LOCAL "app.sync_in_progress" = 'true'`.execute(trx);
+ await trx
+ .insertInto("companyGroup")
+ .values({ id: groupId, name: prefix, createdBy })
+ .execute();
+ await trx
+ .insertInto("company")
+ .values({
+ id: companyId,
+ name: prefix,
+ companyGroupId: groupId,
+ baseCurrencyCode: "USD",
+ timezone: "America/New_York"
+ })
+ .execute();
+ });
+}, 60_000);
+
+afterAll(async () => {
+ if (!client) return;
+ await db.transaction().execute(async (trx) => {
+ await sql`SET LOCAL "app.sync_in_progress" = 'true'`.execute(trx);
+ await trx.deleteFrom("company").where("id", "=", companyId).execute();
+ await trx.deleteFrom("companyGroup").where("id", "=", groupId).execute();
+ await sql`DROP TABLE IF EXISTS ${sql.id(`searchIndex_${companyId}`)}`.execute(
+ trx
+ );
+ await sql`DROP TABLE IF EXISTS ${sql.id(`auditLog_${companyId}`)}`.execute(
+ trx
+ );
+ });
+ await db.destroy();
+});
+
+describeLocal("deleteProcess", () => {
+ it("refuses a process a procedure uses and keeps the procedure", async () => {
+ const { processId } = await processWithAbility("procedure");
+ const procedureId = `${prefix}-procedure`;
+ await db
+ .insertInto("procedure")
+ .values({
+ id: procedureId,
+ name: `${prefix} procedure`,
+ processId,
+ companyId,
+ createdBy
+ })
+ .execute();
+
+ const result = await resources.deleteProcess(ctx(), { processId });
+
+ expect(result.error?.category).toBe("conflict");
+ expect(await exists("process", processId)).toBe(true);
+ expect(await exists("procedure", procedureId)).toBe(true);
+ });
+
+ it("deletes a process nothing uses, with its work center links", async () => {
+ const { processId } = await processWithAbility("unused");
+ const workCenterId = `${prefix}-wc-linked`;
+ await db
+ .insertInto("workCenter")
+ .values({ id: workCenterId, name: workCenterId, companyId, createdBy })
+ .execute();
+ await db
+ .insertInto("workCenterProcess")
+ .values({ workCenterId, processId, companyId, createdBy })
+ .execute();
+
+ const result = await resources.deleteProcess(ctx(), { processId });
+
+ expect(result.error).toBeNull();
+ expect(await exists("process", processId)).toBe(false);
+ expect(await exists("workCenter", workCenterId)).toBe(true);
+ });
+
+ it("refuses when a work center requiring its ability commits during the delete", async () => {
+ const { processId, abilityId } = await processWithAbility("race");
+ const workCenterId = `${prefix}-wc-race`;
+
+ // A second session inserts the work center and holds its transaction open:
+ // the insert key-share locks the ability row, not the process row.
+ const other = new Client({ connectionString: process.env.SUPABASE_DB_URL });
+ await other.connect();
+ try {
+ await other.query("BEGIN");
+ await other.query(`SET LOCAL "app.sync_in_progress" = 'true'`);
+ await other.query(
+ `INSERT INTO "workCenter" ("id", "name", "requiredAbilityId", "companyId", "createdBy")
+ VALUES ($1, $1, $2, $3, $4)`,
+ [workCenterId, abilityId, companyId, createdBy]
+ );
+
+ const pending = resources.deleteProcess(ctx(), { processId });
+ await waitForBlockedBackend(other);
+ await other.query("COMMIT");
+
+ const result = await pending;
+ expect(result.error?.category).toBe("conflict");
+ expect(await exists("process", processId)).toBe(true);
+ expect(await exists("workCenter", workCenterId)).toBe(true);
+ } finally {
+ await other.end();
+ }
+ });
+});
+
+/** Wait until some backend is queued on a lock this session holds. */
+async function waitForBlockedBackend(holder: Client) {
+ const { rows } = await holder.query<{ pid: number }>(
+ "SELECT pg_backend_pid() AS pid"
+ );
+ const pid = rows[0]!.pid;
+ for (let attempt = 0; attempt < 100; attempt++) {
+ const blocked = await holder.query(
+ "SELECT 1 FROM pg_stat_activity WHERE $1 = ANY (pg_blocking_pids(pid))",
+ [pid]
+ );
+ if (blocked.rowCount) return;
+ await new Promise((resolve) => setTimeout(resolve, 50));
+ }
+ throw new Error("The delete never waited on the open transaction");
+}
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index 12d38afb91..c9f455cd52 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} fehlende Buchungssätze beim Anbieter"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} fehlende Buchungssätze und {mismatchCount} nicht übereinstimmende Monate"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} gelöscht"
@@ -3510,9 +3513,15 @@ msgstr "Sind Sie sicher, dass Sie diesen Checkpoint passieren möchten? Die Phas
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Sind Sie sicher, dass Sie {0} dauerhaft löschen möchten?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Sind Sie sicher, dass Sie das Lieferantenverfahren dauerhaft löschen möchten?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Möchten Sie dieses Bankkonto wirklich dauerhaft löschen?"
@@ -5831,6 +5840,9 @@ msgstr "Vertragsminderung"
msgid "Contractor"
msgstr "Externer Mitarbeiter"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Externe Mitarbeiter"
@@ -7792,6 +7804,9 @@ msgstr "Lagertransfer löschen"
msgid "Delete Webhook"
msgstr "Webhook löschen"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Workflow löschen"
@@ -10516,6 +10531,9 @@ msgstr "Anlagenklasse"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Anlagevermögen"
@@ -12202,6 +12220,9 @@ msgstr "Problem"
msgid "Issue (material)"
msgstr "Ausgabe (Material)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Gutschrift ausstellen"
@@ -12337,6 +12358,9 @@ msgstr "Artikel-Seiten"
msgid "Item Scope"
msgstr "Artikelbereich"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Artikeltyp"
@@ -12418,6 +12442,9 @@ msgstr "Auftragsvorgang"
msgid "Job operation batch"
msgstr "Auftragsvorgang Los"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Auftragsvorgang­änge"
@@ -13249,6 +13276,9 @@ msgstr "Maschine"
msgid "Machine Costs"
msgstr "Maschinenkosten"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Maschinenstunden"
@@ -13264,6 +13294,9 @@ msgstr "Maschinenrate"
msgid "Machine Rate (Hourly)"
msgstr "Maschinenrate (stündlich)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Maschinenzeit"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Instandhaltungsauftrag-Benachrichtigungen"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Instandhaltungsaufträge"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Instandhaltung-Aufwand"
@@ -13327,6 +13369,9 @@ msgstr "Instandhaltung-Aufwand (Standard)"
msgid "Maintenance parts"
msgstr "Instandhaltungsteile"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Instandhaltungspläne"
@@ -13832,6 +13877,9 @@ msgstr "Methoden-ID"
msgid "Method Materials"
msgstr "Methodenmaterialien"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Methoden-Arbeitsgänge"
@@ -16201,6 +16249,9 @@ msgstr "Betrieb"
msgid "Operation batch"
msgstr "Arbeitsgang-Los"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Teilweise erfasst"
msgid "Partner"
msgstr "Partner"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Partner"
@@ -17642,6 +17696,9 @@ msgstr "Produktionsereignis"
msgid "Production Event"
msgstr "Produktionsereignis"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Produktionsereignisse"
@@ -18093,6 +18150,9 @@ msgstr "Die Qualifikation verfällt diese Tage nach der Schulung; leer = nie"
msgid "Qualified"
msgstr "Qualifiziert"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Qualifizierte Mitarbeiter"
@@ -18266,6 +18326,9 @@ msgstr "Angebot nicht gefunden"
msgid "Quote Number"
msgstr "Angebotsnummer"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "Angebot bis Zahlung"
@@ -19208,6 +19271,9 @@ msgstr "Ersetzen durch"
msgid "Replacement Order"
msgstr "Ersatzbestellung"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Das Ersetzen der PDF entfernt alle Anmerkungsplatzierungen. Merkmalzeilen und ihre Werte bleiben erhalten. Sie können Anmerkungen auf der neuen Zeichnung erneut platzieren."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Schulung Ihres Teams über die Academy und In-App-Leitfäden"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Schulungen"
@@ -25200,6 +25269,9 @@ msgstr "Regel entfernen"
msgid "Unassigned"
msgstr "Nicht zugewiesen"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Nicht zugeordnete Zeit"
@@ -26890,6 +26962,9 @@ msgstr "Arbeitsplätze"
msgid "Work Centers"
msgstr "Arbeitsplätze"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Halbfabrikate (WIP)"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index a8c6e1ff72..299516886c 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} journals missing in the provider"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} missing journals and {mismatchCount} mismatched months"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+
msgid "{name} deleted"
msgstr "{name} deleted"
@@ -3510,9 +3513,15 @@ msgstr "Are you sure you want to pass this checkpoint? The {0} phase still has u
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Are you sure you want to permanently delete {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Are you sure you want to permanently delete the supplier process?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Are you sure you want to permanently delete this bank account?"
@@ -5831,6 +5840,9 @@ msgstr "Contraction"
msgid "Contractor"
msgstr "Contractor"
+msgid "contractors"
+msgstr "contractors"
+
msgid "Contractors"
msgstr "Contractors"
@@ -7792,6 +7804,9 @@ msgstr "Delete Warehouse Transfer"
msgid "Delete Webhook"
msgstr "Delete Webhook"
+msgid "Delete Work Center"
+msgstr "Delete Work Center"
+
msgid "Delete Workflow"
msgstr "Delete Workflow"
@@ -10516,6 +10531,9 @@ msgstr "Fixed Asset Class"
msgid "Fixed asset settings updated"
msgstr "Fixed asset settings updated"
+msgid "fixed assets"
+msgstr "fixed assets"
+
msgid "Fixed Assets"
msgstr "Fixed Assets"
@@ -12202,6 +12220,9 @@ msgstr "Issue"
msgid "Issue (material)"
msgstr "Issue (material)"
+msgid "issue actions"
+msgstr "issue actions"
+
msgid "Issue Credit"
msgstr "Issue Credit"
@@ -12337,6 +12358,9 @@ msgstr "Item pages"
msgid "Item Scope"
msgstr "Item Scope"
+msgid "item shelf life rules"
+msgstr "item shelf life rules"
+
msgid "Item Type"
msgstr "Item Type"
@@ -12418,6 +12442,9 @@ msgstr "Job Operation"
msgid "Job operation batch"
msgstr "Job operation batch"
+msgid "job operations"
+msgstr "job operations"
+
msgid "Job Operations"
msgstr "Job Operations"
@@ -13249,6 +13276,9 @@ msgstr "Machine"
msgid "Machine Costs"
msgstr "Machine Costs"
+msgid "machine devices"
+msgstr "machine devices"
+
msgid "Machine Hours"
msgstr "Machine Hours"
@@ -13264,6 +13294,9 @@ msgstr "Machine Rate"
msgid "Machine Rate (Hourly)"
msgstr "Machine Rate (Hourly)"
+msgid "machine state changes"
+msgstr "machine state changes"
+
msgid "Machine time"
msgstr "Machine time"
@@ -13315,9 +13348,18 @@ msgstr "Maintenance dispatch notification settings updated"
msgid "Maintenance Dispatch Notifications"
msgstr "Maintenance Dispatch Notifications"
+msgid "maintenance dispatch work centers"
+msgstr "maintenance dispatch work centers"
+
+msgid "maintenance dispatches"
+msgstr "maintenance dispatches"
+
msgid "Maintenance Dispatches"
msgstr "Maintenance Dispatches"
+msgid "maintenance events"
+msgstr "maintenance events"
+
msgid "Maintenance Expense"
msgstr "Maintenance Expense"
@@ -13327,6 +13369,9 @@ msgstr "Maintenance Expense (default)"
msgid "Maintenance parts"
msgstr "Maintenance parts"
+msgid "maintenance schedules"
+msgstr "maintenance schedules"
+
msgid "Maintenance Schedules"
msgstr "Maintenance Schedules"
@@ -13832,6 +13877,9 @@ msgstr "Method Id"
msgid "Method Materials"
msgstr "Method Materials"
+msgid "method operations"
+msgstr "method operations"
+
msgid "Method Operations"
msgstr "Method Operations"
@@ -16201,6 +16249,9 @@ msgstr "Operation"
msgid "Operation batch"
msgstr "Operation batch"
+msgid "operation batches"
+msgstr "operation batches"
+
msgid "Operation created"
msgstr "Operation created"
@@ -16699,6 +16750,9 @@ msgstr "Partly Recognized"
msgid "Partner"
msgstr "Partner"
+msgid "partners"
+msgstr "partners"
+
msgid "Partners"
msgstr "Partners"
@@ -17642,6 +17696,9 @@ msgstr "Production event"
msgid "Production Event"
msgstr "Production Event"
+msgid "production events"
+msgstr "production events"
+
msgid "Production events"
msgstr "Production events"
@@ -18093,6 +18150,9 @@ msgstr "Qualification expires this many days after training; blank = never"
msgid "Qualified"
msgstr "Qualified"
+msgid "qualified employees"
+msgstr "qualified employees"
+
msgid "Qualified Employees"
msgstr "Qualified Employees"
@@ -18266,6 +18326,9 @@ msgstr "Quote not found"
msgid "Quote Number"
msgstr "Quote Number"
+msgid "quote operations"
+msgstr "quote operations"
+
msgid "Quote to cash"
msgstr "Quote to cash"
@@ -19208,6 +19271,9 @@ msgstr "Replace with"
msgid "Replacement Order"
msgstr "Replacement Order"
+msgid "replacement parts"
+msgstr "replacement parts"
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
@@ -25007,6 +25073,9 @@ msgstr "Training video"
msgid "Training your team via the Academy and in-app guides"
msgstr "Training your team via the Academy and in-app guides"
+msgid "trainings"
+msgstr "trainings"
+
msgid "Trainings"
msgstr "Trainings"
@@ -25200,6 +25269,9 @@ msgstr "Unassign rule"
msgid "Unassigned"
msgstr "Unassigned"
+msgid "unattributed machine time entries"
+msgstr "unattributed machine time entries"
+
msgid "Unattributed Time"
msgstr "Unattributed Time"
@@ -26890,6 +26962,9 @@ msgstr "Work centers"
msgid "Work Centers"
msgstr "Work Centers"
+msgid "work centers requiring its ability"
+msgstr "work centers requiring its ability"
+
msgid "Work in process (WIP)"
msgstr "Work in process (WIP)"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 86042e1b24..49f5eec726 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} asientos faltantes en el proveedor"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} asientos faltantes y {mismatchCount} meses desajustados"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} eliminado"
@@ -3510,9 +3513,15 @@ msgstr "¿Estás seguro de que deseas pasar este checkpoint? La fase {0} aún ti
msgid "Are you sure you want to permanently delete {0}?"
msgstr "¿Estás seguro de que deseas eliminar permanentemente {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "¿Estás seguro de que deseas eliminar permanentemente el proceso del proveedor?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "¿Está seguro de que desea eliminar permanentemente esta cuenta bancaria?"
@@ -5831,6 +5840,9 @@ msgstr "Contracción"
msgid "Contractor"
msgstr "Contratista"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Contratistas"
@@ -7792,6 +7804,9 @@ msgstr "Eliminar Transferencia de Almacén"
msgid "Delete Webhook"
msgstr "Eliminar Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Eliminar flujo de trabajo"
@@ -10516,6 +10531,9 @@ msgstr "Clase de activo fijo"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Activos Fijos"
@@ -12202,6 +12220,9 @@ msgstr "Problema"
msgid "Issue (material)"
msgstr "Emisión (material)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Emitir crédito"
@@ -12337,6 +12358,9 @@ msgstr "Páginas de Artículos"
msgid "Item Scope"
msgstr "Alcance de Artículos"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Tipo de Artículo"
@@ -12418,6 +12442,9 @@ msgstr "Operación de la Orden"
msgid "Job operation batch"
msgstr "Lote de la operación de la orden"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Operaciones de la Orden"
@@ -13249,6 +13276,9 @@ msgstr "Máquina"
msgid "Machine Costs"
msgstr "Costos de máquina"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Horas de Máquina"
@@ -13264,6 +13294,9 @@ msgstr "Tarifa de Máquina"
msgid "Machine Rate (Hourly)"
msgstr "Tarifa de Máquina (Por Hora)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Tiempo de máquina"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Notificaciones de orden de mantenimiento"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Órdenes de mantenimiento"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Gasto de Mantenimiento"
@@ -13327,6 +13369,9 @@ msgstr "Gasto de Mantenimiento (predeterminado)"
msgid "Maintenance parts"
msgstr "Piezas de mantenimiento"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Calendarios de Mantenimiento"
@@ -13832,6 +13877,9 @@ msgstr "Id de Método"
msgid "Method Materials"
msgstr "Materiales del Método"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Operaciones de Método"
@@ -16201,6 +16249,9 @@ msgstr "Operación"
msgid "Operation batch"
msgstr "Operación de lote de producción"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Parcialmente reconocido"
msgid "Partner"
msgstr "Socio"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Socios"
@@ -17642,6 +17696,9 @@ msgstr "Evento de producción"
msgid "Production Event"
msgstr "Evento de Producción"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Eventos de producción"
@@ -18093,6 +18150,9 @@ msgstr "La calificación vence este número de días después de la capacitació
msgid "Qualified"
msgstr "Calificado"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Empleados calificados"
@@ -18266,6 +18326,9 @@ msgstr "Presupuesto no encontrado"
msgid "Quote Number"
msgstr "Número de Cotización"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "De cotización a efectivo"
@@ -19208,6 +19271,9 @@ msgstr "Reemplazar con"
msgid "Replacement Order"
msgstr "Orden de reemplazo"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Reemplazar el PDF elimina todas las ubicaciones de globos en este documento. Las filas de características y sus valores permanecen; puede colocar globos nuevamente en el nuevo dibujo."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Capacitar a tu equipo a través de la Academia y guías en la aplicación"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Capacitaciones"
@@ -25200,6 +25269,9 @@ msgstr "Desasignar regla"
msgid "Unassigned"
msgstr "Sin asignar"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Tiempo no atribuido"
@@ -26890,6 +26962,9 @@ msgstr "Centros de trabajo"
msgid "Work Centers"
msgstr "Centros de Trabajo"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Producto en proceso (WIP)"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 14e52784bb..88a8984f1d 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} écritures manquantes du fournisseur"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} écritures manquantes et {mismatchCount} mois non concordants"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} supprimé"
@@ -3510,9 +3513,15 @@ msgstr "Êtes-vous sûr de vouloir passer ce point de contrôle ? La phase {0} a
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Êtes-vous sûr de vouloir supprimer définitivement {0} ?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Êtes-vous sûr de vouloir supprimer définitivement le processus fournisseur ?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Êtes-vous sûr de vouloir supprimer définitivement ce compte bancaire ?"
@@ -5831,6 +5840,9 @@ msgstr "Contraction"
msgid "Contractor"
msgstr "Prestataire"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Prestataires"
@@ -7792,6 +7804,9 @@ msgstr "Supprimer le transfert d'entrepôt"
msgid "Delete Webhook"
msgstr "Supprimer le Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Supprimer le flux de travail"
@@ -10516,6 +10531,9 @@ msgstr "Catégorie d'immobilisation"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Immobilisations"
@@ -12202,6 +12220,9 @@ msgstr "Problème"
msgid "Issue (material)"
msgstr "Émission (matériel)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Émettre un crédit"
@@ -12337,6 +12358,9 @@ msgstr "Pages Articles"
msgid "Item Scope"
msgstr "Portée des articles"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Type d'article"
@@ -12418,6 +12442,9 @@ msgstr "Opération d'OF"
msgid "Job operation batch"
msgstr "Lot de production d'opération d'OF"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Opérations d'OF"
@@ -13249,6 +13276,9 @@ msgstr "Machine"
msgid "Machine Costs"
msgstr "Coûts Machine"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Heures de machine"
@@ -13264,6 +13294,9 @@ msgstr "Taux machine"
msgid "Machine Rate (Hourly)"
msgstr "Taux Machine (Horaire)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Temps machine"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Notifications d'intervention de maintenance"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Interventions de maintenance"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Charge de maintenance"
@@ -13327,6 +13369,9 @@ msgstr "Charge de maintenance (par défaut)"
msgid "Maintenance parts"
msgstr "Pièces de maintenance"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Calendriers de maintenance"
@@ -13832,6 +13877,9 @@ msgstr "ID Méthode"
msgid "Method Materials"
msgstr "Matériaux de méthode"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Opérations de méthode"
@@ -16201,6 +16249,9 @@ msgstr "Opération"
msgid "Operation batch"
msgstr "Lot de production d'opération"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Partiellement Reconnu"
msgid "Partner"
msgstr "Partenaire"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Partenaires"
@@ -17642,6 +17696,9 @@ msgstr "Événement de production"
msgid "Production Event"
msgstr "Événement de production"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Événements de production"
@@ -18093,6 +18150,9 @@ msgstr "La qualification expire ce nombre de jours après la formation ; vide =
msgid "Qualified"
msgstr "Qualifié"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Employés qualifiés"
@@ -18266,6 +18326,9 @@ msgstr "Devis introuvable"
msgid "Quote Number"
msgstr "Numéro de devis"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "Du devis à la trésorerie"
@@ -19208,6 +19271,9 @@ msgstr "Remplacer par"
msgid "Replacement Order"
msgstr "Commande de remplacement"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Le remplacement du PDF supprime tous les placements de bulles sur ce document. Les lignes de caractéristiques et leurs valeurs restent ; vous pouvez placer les bulles à nouveau sur le nouveau dessin."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Formation de votre équipe via l'Academy et les guides intégrés"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Formations"
@@ -25200,6 +25269,9 @@ msgstr "Retirer la règle"
msgid "Unassigned"
msgstr "Non assigné"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Temps non attribué"
@@ -26890,6 +26962,9 @@ msgstr "Postes de travail"
msgid "Work Centers"
msgstr "Postes de travail"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Travail en cours (En-cours)"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index a25259369c..473d8c80a6 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -642,6 +642,9 @@ msgstr "प्रदाता में {missingCount} जर्नल गाय
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} गायब जर्नल और {mismatchCount} असमान महीने"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} हटाया गया"
@@ -3510,9 +3513,15 @@ msgstr "क्या आप सुनिश्चित हैं कि आप
msgid "Are you sure you want to permanently delete {0}?"
msgstr "क्या आप {0} को स्थायी रूप से हटाना चाहते हैं?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "क्या आप आपूर्तिकर्ता प्रक्रिया को स्थायी रूप से हटाना चाहते हैं?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "क्या आप वाकई इस बैंक खाते को स्थायी रूप से हटाना चाहते हैं?"
@@ -5831,6 +5840,9 @@ msgstr "संकुचन"
msgid "Contractor"
msgstr "ठेकेदार"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "ठेकेदार"
@@ -7792,6 +7804,9 @@ msgstr "गोदाम स्थानांतरण हटाएं"
msgid "Delete Webhook"
msgstr "वेबहुक हटाएं"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "वर्कफ़्लो हटाएँ"
@@ -10516,6 +10531,9 @@ msgstr "अचल संपत्ति वर्ग"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "अचल संपत्तियाँ"
@@ -12202,6 +12220,9 @@ msgstr "समस्या"
msgid "Issue (material)"
msgstr "समस्या (सामग्री)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "क्रेडिट जारी करें"
@@ -12337,6 +12358,9 @@ msgstr "आइटम पृष्ठ"
msgid "Item Scope"
msgstr "आइटम स्कोप"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "आइटम प्रकार"
@@ -12418,6 +12442,9 @@ msgstr "जॉब ऑपरेशन"
msgid "Job operation batch"
msgstr "जॉब ऑपरेशन बैच"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "जॉब ऑपरेशन"
@@ -13249,6 +13276,9 @@ msgstr "मशीन"
msgid "Machine Costs"
msgstr "मशीन लागत"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "मशीन घंटे"
@@ -13264,6 +13294,9 @@ msgstr "मशीन दर"
msgid "Machine Rate (Hourly)"
msgstr "मशीन दर (प्रति घंटा)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "मशीन समय"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "रखरखाव कार्य सूचनाएँ"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "रखरखाव कार्य"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "रखरखाव व्यय"
@@ -13327,6 +13369,9 @@ msgstr "रखरखाव व्यय (डिफ़ॉल्ट)"
msgid "Maintenance parts"
msgstr "रखरखाव पार्ट्स"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "रखरखाव शेड्यूल"
@@ -13832,6 +13877,9 @@ msgstr "विधि आईडी"
msgid "Method Materials"
msgstr "विधि सामग्री"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "विधि ऑपरेशन"
@@ -16201,6 +16249,9 @@ msgstr "ऑपरेशन"
msgid "Operation batch"
msgstr "ऑपरेशन बैच"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "आंशिक रूप से मान्य"
msgid "Partner"
msgstr "साथी"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "भागीदार"
@@ -17642,6 +17696,9 @@ msgstr "उत्पादन इवेंट"
msgid "Production Event"
msgstr "उत्पादन इवेंट"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "उत्पादन इवेंट"
@@ -18093,6 +18150,9 @@ msgstr "योग्यता प्रशिक्षण के इतने
msgid "Qualified"
msgstr "योग्य"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "योग्य कर्मचारी"
@@ -18266,6 +18326,9 @@ msgstr "उद्धरण नहीं मिला"
msgid "Quote Number"
msgstr "उद्धरण संख्या"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "कोटेशन से नकद तक"
@@ -19208,6 +19271,9 @@ msgstr "के साथ बदलें"
msgid "Replacement Order"
msgstr "प्रतिस्थापन आदेश"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "PDF को बदलने से इस दस्तावेज़ पर सभी बैलून प्लेसमेंट हटा दिए जाते हैं। विशेषता पंक्तियां और उनके मान रहते हैं; आप नए चित्र पर फिर से बैलून रख सकते हैं।"
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Academy और इन-ऐप गाइड के माध्यम से अपनी टीम को प्रशिक्षण दें"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "प्रशिक्षण"
@@ -25200,6 +25269,9 @@ msgstr "नियम को अनअसाइन करें"
msgid "Unassigned"
msgstr "अनुत्तरित"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "अनिर्दिष्ट समय"
@@ -26890,6 +26962,9 @@ msgstr "वर्क सेंटर"
msgid "Work Centers"
msgstr "वर्क सेंटर"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "प्रक्रिया में कार्य (WIP)"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index 3e8589b98d..6b8d9cf9f9 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} prima nota mancanti nel provider"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} prima nota mancanti e {mismatchCount} mesi non corrispondenti"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} eliminato"
@@ -3510,9 +3513,15 @@ msgstr "Sei sicuro di voler superare questo checkpoint? La fase {0} ha ancora at
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Sei sicuro di voler eliminare permanentemente {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Sei sicuro di voler eliminare permanentemente il processo del fornitore?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Sei sicuro di voler eliminare definitivamente questo conto bancario?"
@@ -5831,6 +5840,9 @@ msgstr "Contrazione"
msgid "Contractor"
msgstr "Collaboratore esterno"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Collaboratori esterni"
@@ -7792,6 +7804,9 @@ msgstr "Elimina Trasferimento deposito"
msgid "Delete Webhook"
msgstr "Elimina Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Elimina flusso di lavoro"
@@ -10516,6 +10531,9 @@ msgstr "Classe di cespiti"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Cespiti"
@@ -12202,6 +12220,9 @@ msgstr "Problema"
msgid "Issue (material)"
msgstr "Uscita (materiale)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Emettere Accredito"
@@ -12337,6 +12358,9 @@ msgstr "Pagine degli Articoli"
msgid "Item Scope"
msgstr "Ambito Articolo"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Tipo di articolo"
@@ -12418,6 +12442,9 @@ msgstr "Operazione dell'ordine"
msgid "Job operation batch"
msgstr "Lotto di operazione dell'ordine"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Operazioni dell'ordine"
@@ -13249,6 +13276,9 @@ msgstr "Macchina"
msgid "Machine Costs"
msgstr "Costi macchina"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Ore di macchina"
@@ -13264,6 +13294,9 @@ msgstr "Tariffa Macchina"
msgid "Machine Rate (Hourly)"
msgstr "Tariffa Macchina (Oraria)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Tempo macchina"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Notifiche interventi di manutenzione"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Interventi di manutenzione"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Spese di Manutenzione"
@@ -13327,6 +13369,9 @@ msgstr "Spese di Manutenzione (predefinite)"
msgid "Maintenance parts"
msgstr "Componenti di manutenzione"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Programmi di Manutenzione"
@@ -13832,6 +13877,9 @@ msgstr "ID Metodo"
msgid "Method Materials"
msgstr "Materiali del Metodo"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Operazioni Metodo"
@@ -16201,6 +16249,9 @@ msgstr "Operazione"
msgid "Operation batch"
msgstr "Lotto di Operazioni"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Parzialmente riconosciuto"
msgid "Partner"
msgstr "Partner"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Partner"
@@ -17642,6 +17696,9 @@ msgstr "Evento di produzione"
msgid "Production Event"
msgstr "Evento di Produzione"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Eventi di produzione"
@@ -18093,6 +18150,9 @@ msgstr "La qualificazione scade dopo tanti giorni di formazione; vuoto = mai"
msgid "Qualified"
msgstr "Qualificato"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Dipendenti Qualificati"
@@ -18266,6 +18326,9 @@ msgstr "Preventivo non trovato"
msgid "Quote Number"
msgstr "Numero Preventivo"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "Dalla offerta al pagamento"
@@ -19208,6 +19271,9 @@ msgstr "Sostituisci con"
msgid "Replacement Order"
msgstr "Ordine di Sostituzione"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "La sostituzione del PDF rimuove tutti i posizionamenti dei palloni su questo documento. Le righe caratteristiche e i loro valori rimangono; puoi posizionare di nuovo i palloni sul nuovo disegno."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Formazione del tuo team tramite l'Academy e le guide in-app"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Corsi di formazione"
@@ -25200,6 +25269,9 @@ msgstr "Annulla assegnazione regola"
msgid "Unassigned"
msgstr "Non assegnato"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Tempo non attribuito"
@@ -26890,6 +26962,9 @@ msgstr "Centri di lavoro"
msgid "Work Centers"
msgstr "Centri di Lavoro"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Lavoro in corso (WIP)"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index 624afddc44..df7119bbc6 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -642,6 +642,9 @@ msgstr "プロバイダーに {missingCount} 件の仕訳が不足していま
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} 件の不足している仕訳と {mismatchCount} ヶ月のミスマッチ"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name}が削除されました"
@@ -3510,9 +3513,15 @@ msgstr "このチェックポイントをパスしてもよろしいですか?
msgid "Are you sure you want to permanently delete {0}?"
msgstr "{0}を完全に削除してもよろしいですか?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "仕入先工法を完全に削除してもよろしいですか?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "この銀行口座を完全に削除してもよろしいですか?"
@@ -5831,6 +5840,9 @@ msgstr "短縮"
msgid "Contractor"
msgstr "外部作業者"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "外部作業者"
@@ -7792,6 +7804,9 @@ msgstr "倉庫移動を削除"
msgid "Delete Webhook"
msgstr "Webhookを削除"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "ワークフローを削除"
@@ -10516,6 +10531,9 @@ msgstr "固定資産クラス"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "固定資産"
@@ -12202,6 +12220,9 @@ msgstr "問題"
msgid "Issue (material)"
msgstr "発行(材料)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "クレジット発行"
@@ -12337,6 +12358,9 @@ msgstr "品目ページ"
msgid "Item Scope"
msgstr "アイテムスコープ"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "品目タイプ"
@@ -12418,6 +12442,9 @@ msgstr "指図工程"
msgid "Job operation batch"
msgstr "指図工程バッチ"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "指図工程"
@@ -13249,6 +13276,9 @@ msgstr "機械"
msgid "Machine Costs"
msgstr "機械費"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "機械時間"
@@ -13264,6 +13294,9 @@ msgstr "機械レート"
msgid "Machine Rate (Hourly)"
msgstr "機械レート(時間単位)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "機械時間"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "保全指示通知"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "保全指示"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "保全費用"
@@ -13327,6 +13369,9 @@ msgstr "保全費用(デフォルト)"
msgid "Maintenance parts"
msgstr "保全部品"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "保全スケジュール"
@@ -13832,6 +13877,9 @@ msgstr "メソッドID"
msgid "Method Materials"
msgstr "方法材料"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "製法工程"
@@ -16201,6 +16249,9 @@ msgstr "操作"
msgid "Operation batch"
msgstr "工程バッチ"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "部分認識済"
msgid "Partner"
msgstr "パートナー"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "パートナー"
@@ -17642,6 +17696,9 @@ msgstr "生産イベント"
msgid "Production Event"
msgstr "生産イベント"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "生産イベント"
@@ -18093,6 +18150,9 @@ msgstr "資格は教育訓練後、この日数で失効します。空白=な
msgid "Qualified"
msgstr "適格"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "適格従業員"
@@ -18266,6 +18326,9 @@ msgstr "見積もりが見つかりません"
msgid "Quote Number"
msgstr "見積番号"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "見積から現金へ"
@@ -19208,6 +19271,9 @@ msgstr "で置き換える"
msgid "Replacement Order"
msgstr "交換注文"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "PDFを置き換えると、このドキュメント上のすべてのバルーン配置が削除されます。特性行とその値は保持されます。新しい図面でバルーンを再度配置できます。"
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "アカデミーとアプリ内ガイドを使用してチームを教育訓練します。"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "教育訓練"
@@ -25200,6 +25269,9 @@ msgstr "ルールの割り当てを解除"
msgid "Unassigned"
msgstr "未割り当て"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "未割り当て時間"
@@ -26890,6 +26962,9 @@ msgstr "作業区"
msgid "Work Centers"
msgstr "作業区"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "仕掛品(WIP)"
diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.po
index 7cfbd8d2c0..8d8b6fbe24 100644
--- a/packages/locale/locales/ko/erp.po
+++ b/packages/locale/locales/ko/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount}개의 전표가 공급자에서 누락됨"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount}개의 누락된 전표 및 {mismatchCount}개의 불일치 월"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} 삭제됨"
@@ -3510,9 +3513,15 @@ msgstr "이 체크포인트를 통과하시겠습니까? {0} 단계에 아직
msgid "Are you sure you want to permanently delete {0}?"
msgstr "{0}을(를) 영구적으로 삭제하시겠습니까?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "공급업체 공법을 영구적으로 삭제하시겠습니까?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "이 은행 계좌를 영구 삭제하시겠습니까?"
@@ -5831,6 +5840,9 @@ msgstr "축소"
msgid "Contractor"
msgstr "외주 인력"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "외주 인력"
@@ -7792,6 +7804,9 @@ msgstr "창고 이동 삭제"
msgid "Delete Webhook"
msgstr "웹훅 삭제"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "워크플로우 삭제"
@@ -10516,6 +10531,9 @@ msgstr "고정자산 클래스"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "고정자산"
@@ -12202,6 +12220,9 @@ msgstr "이슈"
msgid "Issue (material)"
msgstr "출고(자재)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "신용권 발행"
@@ -12337,6 +12358,9 @@ msgstr "품목 페이지"
msgid "Item Scope"
msgstr "품목 범위"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "품목 유형"
@@ -12418,6 +12442,9 @@ msgstr "작업 지시 공정"
msgid "Job operation batch"
msgstr "작업 지시 공정 배치"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "작업 지시 공정"
@@ -13249,6 +13276,9 @@ msgstr "기계"
msgid "Machine Costs"
msgstr "기계 비용"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "기계 시간"
@@ -13264,6 +13294,9 @@ msgstr "기계 단가"
msgid "Machine Rate (Hourly)"
msgstr "기계 단가(시간당)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "기계 시간"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "유지보수 지시 알림"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "유지보수 지시"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "유지보수 비용"
@@ -13327,6 +13369,9 @@ msgstr "유지보수 비용(기본값)"
msgid "Maintenance parts"
msgstr "유지보수 부품"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "유지보수 일정"
@@ -13832,6 +13877,9 @@ msgstr "제조방법 ID"
msgid "Method Materials"
msgstr "제조방법 자재"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "제조방법 공정작업"
@@ -16201,6 +16249,9 @@ msgstr "공정작업"
msgid "Operation batch"
msgstr "공정 배치"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "부분 인식됨"
msgid "Partner"
msgstr "파트너"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "파트너"
@@ -17642,6 +17696,9 @@ msgstr "생산 이벤트"
msgid "Production Event"
msgstr "생산 이벤트"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "생산 이벤트"
@@ -18093,6 +18150,9 @@ msgstr "자격은 교육 후 이 많은 일 후에 만료됩니다. 공백 = 절
msgid "Qualified"
msgstr "자격 있음"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "자격 있는 직원"
@@ -18266,6 +18326,9 @@ msgstr "견적을 찾을 수 없습니다"
msgid "Quote Number"
msgstr "견적 번호"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "견적서에서 수금까지"
@@ -19208,6 +19271,9 @@ msgstr "다음으로 교체"
msgid "Replacement Order"
msgstr "대체 주문"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "PDF를 교체하면 이 문서의 모든 풍선 배치가 제거됩니다. 특성 행과 해당 값은 유지되며, 새 도면에서 풍선을 다시 배치할 수 있습니다."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "아카데미와 인앱 가이드를 통한 팀 교육"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "교육"
@@ -25200,6 +25269,9 @@ msgstr "규칙 할당 해제"
msgid "Unassigned"
msgstr "미배정"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "미귀속 시간"
@@ -26890,6 +26962,9 @@ msgstr "작업장"
msgid "Work Centers"
msgstr "작업장"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "재공품(WIP)"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 66769687b7..34c834b2c7 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -642,6 +642,9 @@ msgstr "Brakuje {missingCount} dowodów księgowych u dostawcy"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} brakujących dowodów księgowych i {mismatchCount} niedopasowanych miesięcy"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} usunięty"
@@ -3510,9 +3513,15 @@ msgstr "Czy na pewno chcesz przejść ten punkt kontrolny? Faza {0} wciąż ma n
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Czy na pewno chcesz trwale usunąć {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Czy na pewno chcesz trwale usunąć proces dostawcy?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Czy na pewno chcesz na stałe usunąć to konto bankowe?"
@@ -5831,6 +5840,9 @@ msgstr "Skrócenie"
msgid "Contractor"
msgstr "Pracownik zewnętrzny"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Pracownicy zewnętrzni"
@@ -7792,6 +7804,9 @@ msgstr "Usuń transfer magazynowy"
msgid "Delete Webhook"
msgstr "Usuń Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Usuń przepływ pracy"
@@ -10516,6 +10531,9 @@ msgstr "Klasa środków trwałych"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Środki trwałe"
@@ -12202,6 +12220,9 @@ msgstr "Problem"
msgid "Issue (material)"
msgstr "Wydanie (materiał)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Wydaj Kredyt"
@@ -12337,6 +12358,9 @@ msgstr "Strony Artykułów"
msgid "Item Scope"
msgstr "Zakres Pozycji"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Typ artykułu"
@@ -12418,6 +12442,9 @@ msgstr "Operacja zlecenia"
msgid "Job operation batch"
msgstr "Partia produkcyjna operacji zlecenia"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Operacje zlecenia"
@@ -13249,6 +13276,9 @@ msgstr "Maszyna"
msgid "Machine Costs"
msgstr "Koszty maszyny"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Godziny Maszyn"
@@ -13264,6 +13294,9 @@ msgstr "Stawka maszyny"
msgid "Machine Rate (Hourly)"
msgstr "Stawka maszyny (godzinowo)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Czas maszyny"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Powiadomienia dotyczące zleceń utrzymania ruchu"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Zlecenia utrzymania ruchu"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Wydatek utrzymania ruchu"
@@ -13327,6 +13369,9 @@ msgstr "Wydatek utrzymania ruchu (domyślny)"
msgid "Maintenance parts"
msgstr "Części do utrzymania ruchu"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Harmonogramy utrzymania ruchu"
@@ -13832,6 +13877,9 @@ msgstr "Identyfikator metody"
msgid "Method Materials"
msgstr "Materiały metody"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Operacje metody"
@@ -16201,6 +16249,9 @@ msgstr "Operacja"
msgid "Operation batch"
msgstr "Partia operacji"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Częściowo rozpoznane"
msgid "Partner"
msgstr "Partner"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Partnerzy"
@@ -17642,6 +17696,9 @@ msgstr "Zdarzenie produkcyjne"
msgid "Production Event"
msgstr "Zdarzenie produkcyjne"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Zdarzenia produkcji"
@@ -18093,6 +18150,9 @@ msgstr "Kwalifikacja wygasa tyle dni po szkoleniu; puste = nigdy"
msgid "Qualified"
msgstr "Wykwalifikowany"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Wykwalifikowani Pracownicy"
@@ -18266,6 +18326,9 @@ msgstr "Oferta nie znaleziona"
msgid "Quote Number"
msgstr "Numer oferty"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "Od oferty do gotówki"
@@ -19208,6 +19271,9 @@ msgstr "Zastąp na"
msgid "Replacement Order"
msgstr "Zamówienie zastępcze"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Zastąpienie PDF-a usuwa wszystkie umieszczenia balonów na tym dokumencie. Wiersze charakterystyk i ich wartości zostają; możesz ponownie umieścić balony na nowym rysunku."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Szkolenie zespołu za pośrednictwem Academy i przewodników w aplikacji"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Szkolenia"
@@ -25200,6 +25269,9 @@ msgstr "Usuń przypisanie reguły"
msgid "Unassigned"
msgstr "Nieprzydzielone"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Czas nieprzypisany"
@@ -26890,6 +26962,9 @@ msgstr "Stanowiska robocze"
msgid "Work Centers"
msgstr "Stanowiska robocze"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Produkcja w toku"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index f6b4defe44..e59fadf07f 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} diários faltando no fornecedor"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} diários faltando e {mismatchCount} meses incompatíveis"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} eliminado"
@@ -3510,9 +3513,15 @@ msgstr "Tem a certeza de que deseja passar neste checkpoint? A fase {0} ainda te
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Tem certeza de que deseja excluir permanentemente {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Tem certeza de que deseja excluir permanentemente o processo do fornecedor?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Tem certeza de que deseja excluir permanentemente esta conta bancária?"
@@ -5831,6 +5840,9 @@ msgstr "Redução"
msgid "Contractor"
msgstr "Terceirizado"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Terceirizados"
@@ -7792,6 +7804,9 @@ msgstr "Excluir Transferência de armazém"
msgid "Delete Webhook"
msgstr "Excluir Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Excluir Fluxo de trabalho"
@@ -10516,6 +10531,9 @@ msgstr "Classe de Ativo Fixo"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Ativos Fixos"
@@ -12202,6 +12220,9 @@ msgstr "Problema"
msgid "Issue (material)"
msgstr "Emissão (material)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Emitir Crédito"
@@ -12337,6 +12358,9 @@ msgstr "Páginas de Item"
msgid "Item Scope"
msgstr "Escopo do Item"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Tipo de Item"
@@ -12418,6 +12442,9 @@ msgstr "Operação da ordem"
msgid "Job operation batch"
msgstr "Lote de produção da operação da ordem"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Operações da ordem"
@@ -13249,6 +13276,9 @@ msgstr "Máquina"
msgid "Machine Costs"
msgstr "Custos de máquina"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Horas de Máquina"
@@ -13264,6 +13294,9 @@ msgstr "Taxa de Máquina"
msgid "Machine Rate (Hourly)"
msgstr "Taxa de Máquina (Por Hora)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Tempo de máquina"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Notificações de Ordem de Manutenção"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Ordens de Manutenção"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Despesa de Manutenção"
@@ -13327,6 +13369,9 @@ msgstr "Despesa de Manutenção (padrão)"
msgid "Maintenance parts"
msgstr "Peças de manutenção"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Cronogramas de Manutenção"
@@ -13832,6 +13877,9 @@ msgstr "ID do Método"
msgid "Method Materials"
msgstr "Materiais do Método"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Operações de Método"
@@ -16201,6 +16249,9 @@ msgstr "Operação"
msgid "Operation batch"
msgstr "Lote de operação"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Parcialmente Reconhecido"
msgid "Partner"
msgstr "Parceiro"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Parceiros"
@@ -17642,6 +17696,9 @@ msgstr "Evento de produção"
msgid "Production Event"
msgstr "Evento de Produção"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Eventos de produção"
@@ -18093,6 +18150,9 @@ msgstr "A qualificação expira estes muitos dias após o treinamento; em branco
msgid "Qualified"
msgstr "Qualificado"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Funcionários Qualificados"
@@ -18266,6 +18326,9 @@ msgstr "Cotação não encontrada"
msgid "Quote Number"
msgstr "Número da Cotação"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "De orçamento até caixa"
@@ -19208,6 +19271,9 @@ msgstr "Substituir por"
msgid "Replacement Order"
msgstr "Pedido de Substituição"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Substituir o PDF remove todos os posicionamentos de balão neste documento. As linhas de características e seus valores permanecem; você pode colocar balões novamente no novo desenho."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Treinamento da sua equipe via Academy e guias integrados"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Treinamentos"
@@ -25200,6 +25269,9 @@ msgstr "Desatribuir regra"
msgid "Unassigned"
msgstr "Não atribuído"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Tempo não atribuído"
@@ -26890,6 +26962,9 @@ msgstr "Centros de trabalho"
msgid "Work Centers"
msgstr "Centros de Trabalho"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Trabalho em processo (Produto em processo)"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 024ab87d8c..84b571ca7a 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} операций не найдено в поставщи
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} не найдено операций и {mismatchCount} несовпадающих месяцев"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} удален"
@@ -3510,9 +3513,15 @@ msgstr "Вы уверены, что хотите пройти эту контр
msgid "Are you sure you want to permanently delete {0}?"
msgstr "Вы уверены, что хотите окончательно удалить {0}?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Вы уверены, что хотите окончательно удалить процесс поставщика?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Вы уверены, что хотите навсегда удалить этот банковский счёт?"
@@ -5831,6 +5840,9 @@ msgstr "Сокращение"
msgid "Contractor"
msgstr "Подрядчик"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Подрядчики"
@@ -7792,6 +7804,9 @@ msgstr "Удалить передачу между складами"
msgid "Delete Webhook"
msgstr "Удалить вебхук"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "Удалить рабочий процесс"
@@ -10516,6 +10531,9 @@ msgstr "Класс основных средств"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Основные средства"
@@ -12202,6 +12220,9 @@ msgstr "Проблема"
msgid "Issue (material)"
msgstr "Выпуск (материал)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Выдать кредит"
@@ -12337,6 +12358,9 @@ msgstr "Страницы номенклатуры"
msgid "Item Scope"
msgstr "Область применения товара"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Тип номенклатуры"
@@ -12418,6 +12442,9 @@ msgstr "Операция заказа"
msgid "Job operation batch"
msgstr "Серия операции заказа"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "Операции заказа"
@@ -13249,6 +13276,9 @@ msgstr "Станок"
msgid "Machine Costs"
msgstr "Стоимость станка"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Часы станка"
@@ -13264,6 +13294,9 @@ msgstr "Ставка станка"
msgid "Machine Rate (Hourly)"
msgstr "Ставка станка (почасовая)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Машинное время"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Уведомления о заявках на техобслуживание"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Заявки на техобслуживание"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Расходы на техобслуживание"
@@ -13327,6 +13369,9 @@ msgstr "Расходы на техобслуживание (по умолчан
msgid "Maintenance parts"
msgstr "Детали техобслуживания"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Графики техобслуживания"
@@ -13832,6 +13877,9 @@ msgstr "ID метода"
msgid "Method Materials"
msgstr "Материалы метода"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Операции метода"
@@ -16201,6 +16249,9 @@ msgstr "Операция"
msgid "Operation batch"
msgstr "Серия операций"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Частично признано"
msgid "Partner"
msgstr "Партнер"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Партнеры"
@@ -17642,6 +17696,9 @@ msgstr "Событие производства"
msgid "Production Event"
msgstr "Производственное событие"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "События производства"
@@ -18093,6 +18150,9 @@ msgstr "Квалификация истекает через столько дн
msgid "Qualified"
msgstr "Квалифицирован"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Квалифицированные сотрудники"
@@ -18266,6 +18326,9 @@ msgstr "Предложение не найдено"
msgid "Quote Number"
msgstr "Номер предложения"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "От коммерческого предложения к продаже"
@@ -19208,6 +19271,9 @@ msgstr "Заменить на"
msgid "Replacement Order"
msgstr "Заказ на замену"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "Замена PDF удаляет все размещения выносок на этом документе. Строки характеристик и их значения остаются; вы можете разместить выноски снова на новом чертеже."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Обучение вашей команды через Academy и встроенные руководства"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Обучение"
@@ -25200,6 +25269,9 @@ msgstr "Отменить назначение правила"
msgid "Unassigned"
msgstr "Не назначено"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Неучтённое время"
@@ -26890,6 +26962,9 @@ msgstr "Рабочие центры"
msgid "Work Centers"
msgstr "Рабочие центры"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Незавершенное производство (WIP)"
diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.po
index 13e1208c6c..83df4a5640 100644
--- a/packages/locale/locales/tr/erp.po
+++ b/packages/locale/locales/tr/erp.po
@@ -642,6 +642,9 @@ msgstr "{missingCount} muhasebe fişi sağlayıcıda eksik"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "{missingCount} eksik muhasebe fişi ve {mismatchCount} uyumsuz ay"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} silindi"
@@ -3510,9 +3513,15 @@ msgstr "Bu kontrol noktasını geçmek istediğinizden emin misiniz? {0} aşamas
msgid "Are you sure you want to permanently delete {0}?"
msgstr "{0} öğesini kalıcı olarak silmek istediğinizden emin misiniz?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "Tedarikçi prosesini kalıcı olarak silmek istediğinizden emin misiniz?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "Bu banka hesabını kalıcı olarak silmek istediğinizden emin misiniz?"
@@ -5831,6 +5840,9 @@ msgstr "Daralma"
msgid "Contractor"
msgstr "Taşeron"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "Taşeronlar"
@@ -7792,6 +7804,9 @@ msgstr "Depo Transferini Sil"
msgid "Delete Webhook"
msgstr "Webhook'u Sil"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "İş Akışını Sil"
@@ -10516,6 +10531,9 @@ msgstr "Sabit Kıymet Sınıfı"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "Sabit kıymetler"
@@ -12202,6 +12220,9 @@ msgstr "Sorun"
msgid "Issue (material)"
msgstr "Sorun (malzeme)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "Kredi Sorunu"
@@ -12337,6 +12358,9 @@ msgstr "Stok kartı sayfaları"
msgid "Item Scope"
msgstr "Ürün Kapsamı"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "Stok kartı türü"
@@ -12418,6 +12442,9 @@ msgstr "İş emri operasyonu"
msgid "Job operation batch"
msgstr "İş emri operasyonu partisi"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "İş emri operasyonları"
@@ -13249,6 +13276,9 @@ msgstr "Makine"
msgid "Machine Costs"
msgstr "Makine Maliyetleri"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "Makine Saatleri"
@@ -13264,6 +13294,9 @@ msgstr "Makine Birim Fiyatı"
msgid "Machine Rate (Hourly)"
msgstr "Makine Ücreti (Saatlik)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "Makine süresi"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "Bakım emri bildirimleri"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "Bakım emirleri"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "Bakım Gideri"
@@ -13327,6 +13369,9 @@ msgstr "Bakım Gideri (varsayılan)"
msgid "Maintenance parts"
msgstr "Bakım parçaları"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "Bakım Programları"
@@ -13832,6 +13877,9 @@ msgstr "Metot Kimliği"
msgid "Method Materials"
msgstr "Metot Malzemeleri"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "Yöntem operasyonları"
@@ -16201,6 +16249,9 @@ msgstr "Operasyon"
msgid "Operation batch"
msgstr "Operasyon partisi"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "Kısmen Tanındı"
msgid "Partner"
msgstr "İş Ortağı"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "Ortaklar"
@@ -17642,6 +17696,9 @@ msgstr "Üretim olayı"
msgid "Production Event"
msgstr "Üretim Olayı"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "Üretim olayları"
@@ -18093,6 +18150,9 @@ msgstr "Nitelik eğitimden sonra bu kadar gün sonra süresi dolar; boş = asla"
msgid "Qualified"
msgstr "Nitelikli"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "Nitelikli Çalışanlar"
@@ -18266,6 +18326,9 @@ msgstr "Teklif bulunamadı"
msgid "Quote Number"
msgstr "Teklif Numarası"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "Tekliften nakit"
@@ -19208,6 +19271,9 @@ msgstr "Şu ile değiştir"
msgid "Replacement Order"
msgstr "Değişim Siparişi"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "PDF'yi değiştirmek bu belgede tüm balon yerleştirmelerini kaldırır. Özellik satırları ve değerleri kalır; yeni çizimde tekrar balon yerleştirebilirsiniz."
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "Ekibinizi Academy ve uygulama içi kılavuzlar aracılığıyla eğitin"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "Eğitimler"
@@ -25200,6 +25269,9 @@ msgstr "Kuralı kaldır"
msgid "Unassigned"
msgstr "Atanmamış"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "Atanmamış Süre"
@@ -26890,6 +26962,9 @@ msgstr "İş merkezleri"
msgid "Work Centers"
msgstr "İş Merkezleri"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "Üretim'de çalışma (Yarı mamul)"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index d1fdac6841..827cc3f5f8 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -642,6 +642,9 @@ msgstr "提供商中缺少{missingCount}个凭证"
msgid "{missingCount} missing journals and {mismatchCount} mismatched months"
msgstr "缺少{missingCount}个凭证,{mismatchCount}个月的总计不匹配"
+msgid "{name} can't be deleted because it is used by {usages}. Deactivate it instead."
+msgstr ""
+
msgid "{name} deleted"
msgstr "{name} 已删除"
@@ -3510,9 +3513,15 @@ msgstr "您确定要通过此检查点吗?{0}阶段仍有未完成的任务。
msgid "Are you sure you want to permanently delete {0}?"
msgstr "您确定要永久删除 {0} 吗?"
+msgid "Are you sure you want to permanently delete the process: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete the supplier process?"
msgstr "确定要永久删除供应商工艺吗?"
+msgid "Are you sure you want to permanently delete the work center: {name}? This cannot be undone."
+msgstr ""
+
msgid "Are you sure you want to permanently delete this bank account?"
msgstr "您确定要永久删除此银行账户吗?"
@@ -5831,6 +5840,9 @@ msgstr "缩减"
msgid "Contractor"
msgstr "外协人员"
+msgid "contractors"
+msgstr ""
+
msgid "Contractors"
msgstr "外协人员"
@@ -7792,6 +7804,9 @@ msgstr "删除仓库转移"
msgid "Delete Webhook"
msgstr "删除 Webhook"
+msgid "Delete Work Center"
+msgstr ""
+
msgid "Delete Workflow"
msgstr "删除工作流"
@@ -10516,6 +10531,9 @@ msgstr "固定资产类别"
msgid "Fixed asset settings updated"
msgstr ""
+msgid "fixed assets"
+msgstr ""
+
msgid "Fixed Assets"
msgstr "固定资产"
@@ -12202,6 +12220,9 @@ msgstr "问题"
msgid "Issue (material)"
msgstr "领料(原材料)"
+msgid "issue actions"
+msgstr ""
+
msgid "Issue Credit"
msgstr "发放信用"
@@ -12337,6 +12358,9 @@ msgstr "物料页面"
msgid "Item Scope"
msgstr "物品范围"
+msgid "item shelf life rules"
+msgstr ""
+
msgid "Item Type"
msgstr "物料类型"
@@ -12418,6 +12442,9 @@ msgstr "工单工序"
msgid "Job operation batch"
msgstr "工单工序批次"
+msgid "job operations"
+msgstr ""
+
msgid "Job Operations"
msgstr "工单工序"
@@ -13249,6 +13276,9 @@ msgstr "机器"
msgid "Machine Costs"
msgstr "机器成本"
+msgid "machine devices"
+msgstr ""
+
msgid "Machine Hours"
msgstr "机器小时"
@@ -13264,6 +13294,9 @@ msgstr "机器费率"
msgid "Machine Rate (Hourly)"
msgstr "机器费率(每小时)"
+msgid "machine state changes"
+msgstr ""
+
msgid "Machine time"
msgstr "机器工时"
@@ -13315,9 +13348,18 @@ msgstr ""
msgid "Maintenance Dispatch Notifications"
msgstr "维护工单通知"
+msgid "maintenance dispatch work centers"
+msgstr ""
+
+msgid "maintenance dispatches"
+msgstr ""
+
msgid "Maintenance Dispatches"
msgstr "维护工单"
+msgid "maintenance events"
+msgstr ""
+
msgid "Maintenance Expense"
msgstr "维护费用"
@@ -13327,6 +13369,9 @@ msgstr "维护费用 (默认)"
msgid "Maintenance parts"
msgstr "维护零件"
+msgid "maintenance schedules"
+msgstr ""
+
msgid "Maintenance Schedules"
msgstr "维护排程"
@@ -13832,6 +13877,9 @@ msgstr "方法 ID"
msgid "Method Materials"
msgstr "方法原材料"
+msgid "method operations"
+msgstr ""
+
msgid "Method Operations"
msgstr "方法工序"
@@ -16201,6 +16249,9 @@ msgstr "操作"
msgid "Operation batch"
msgstr "工序生产批次"
+msgid "operation batches"
+msgstr ""
+
msgid "Operation created"
msgstr ""
@@ -16699,6 +16750,9 @@ msgstr "部分已确认"
msgid "Partner"
msgstr "合作伙伴"
+msgid "partners"
+msgstr ""
+
msgid "Partners"
msgstr "合作伙伴"
@@ -17642,6 +17696,9 @@ msgstr "生产事件"
msgid "Production Event"
msgstr "生产事件"
+msgid "production events"
+msgstr ""
+
msgid "Production events"
msgstr "生产事件"
@@ -18093,6 +18150,9 @@ msgstr "资格在培训后这么多天后过期;空白 = 永不"
msgid "Qualified"
msgstr "合格"
+msgid "qualified employees"
+msgstr ""
+
msgid "Qualified Employees"
msgstr "合格员工"
@@ -18266,6 +18326,9 @@ msgstr "报价未找到"
msgid "Quote Number"
msgstr "报价单号"
+msgid "quote operations"
+msgstr ""
+
msgid "Quote to cash"
msgstr "从报价单到现金"
@@ -19208,6 +19271,9 @@ msgstr "替换为"
msgid "Replacement Order"
msgstr "替换订单"
+msgid "replacement parts"
+msgstr ""
+
msgid "Replacing the PDF removes all balloon placements on this document. Characteristic rows and their values stay; you can place balloons again on the new drawing."
msgstr "替换PDF将移除此文件上的所有气泡位置。特性行及其值保持不变;您可以在新绘图上重新放置气泡。"
@@ -25007,6 +25073,9 @@ msgstr ""
msgid "Training your team via the Academy and in-app guides"
msgstr "通过 Academy 和应用内指南培训班组"
+msgid "trainings"
+msgstr ""
+
msgid "Trainings"
msgstr "培训"
@@ -25200,6 +25269,9 @@ msgstr "取消分配规则"
msgid "Unassigned"
msgstr "未分配"
+msgid "unattributed machine time entries"
+msgstr ""
+
msgid "Unattributed Time"
msgstr "未归属时间"
@@ -26890,6 +26962,9 @@ msgstr "工作中心"
msgid "Work Centers"
msgstr "工作中心"
+msgid "work centers requiring its ability"
+msgstr ""
+
msgid "Work in process (WIP)"
msgstr "在制品(WIP)"