Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat(settings): allow non-internal users to use backups locally
Sidwebworks0cfd7d973f7a
diff --git a/.claude/rules/company-backup-restore.md b/.claude/rules/company-backup-restore.mdindex 4da5b66dda..c06dd14d6e 100644--- a/.claude/rules/company-backup-restore.md+++ b/.claude/rules/company-backup-restore.md@@ -30,11 +30,16 @@ User-facing rules of the feature: backups require `settings` update permissionroute and the `export-company` edge function), exclude secrets, and a restore isreversible via an auto-snapshot.-**Currently internal-only** (`isInternalEmail`, `@carbon/utils`) while the-multi-tenant caveats below are unhardened: the nav entry is in `internalOnlyRoutes`-(`useSettingsSubmodules.tsx`), and `requireInternal` (route loader/action) plus both-`api+/settings.backup-*` loaders 404/redirect non-internal users. Internal =-`@carbon.ms` / `@carbon.us.org`. Drop the gates to ship publicly.+**Internal-only in real deployments, open to everyone on a local dev stack**,+while the multi-tenant caveats below are unhardened. One gate:+`canAccessBackups(email)` (`apps/erp/app/utils/backups.ts`) = `IS_LOCAL_DEV ||+isInternalEmail(email)`. `IS_LOCAL_DEV` (`packages/env`) is true only when neither+`NODE_ENV` nor `VERCEL_ENV` is `production`/`preview` — so prod, preview, and+self-hosted (all `NODE_ENV=production`) stay internal-only. Used by+`requireBackupAccess` (route loader/action), every `api+/settings.backup-*`+loader/action (404), and the nav (`localOrInternalRoutes` in+`useSettingsSubmodules.tsx`, via `useFlags().isLocalDev`). Internal =+`@carbon.ms` / `@carbon.us.org`. Drop `canAccessBackups` entirely to ship publicly.## Shared engine — `company-backup.ts`@@ -211,7 +216,7 @@ snapshotPath, foreign, includeGroup }`. `revert` reads the marker and reloads`finalizeCompanyRestore`, `revertCompanyRestore`) plus`dismissCompanyExportFailure` (service-role delete of the failed exportmarker) — kept off the client to avoid `Buffer`-in-client.-- `routes/x+/settings+/backups.tsx` — **internal-gated** (`requireInternal`)+- `routes/x+/settings+/backups.tsx` — **access-gated** (`requireBackupAccess`)loader/action (export / restore / keep / dismiss / revert / delete /dismissExportFailure intents). `filePath` is forced under `exports/`. Export is**non-blocking, row-first** (Supabase-style): clicking "Create backup" does NOTdiff --git a/apps/erp/app/hooks/useFlags.tsx b/apps/erp/app/hooks/useFlags.tsxindex ef5ff79b44..f1126fcf18 100644--- a/apps/erp/app/hooks/useFlags.tsx+++ b/apps/erp/app/hooks/useFlags.tsx@@ -1,4 +1,4 @@-import { CONTROLLED_ENVIRONMENT } from "@carbon/auth";+import { CONTROLLED_ENVIRONMENT, IS_LOCAL_DEV } from "@carbon/auth";import { useEdition } from "@carbon/react";import { Edition, isInternalEmail } from "@carbon/utils";import { useUser } from "./useUser";@@ -13,6 +13,7 @@ export function useFlags() {isCloud: edition === Edition.Cloud,isCommunity: edition === Edition.Community,isEnterprise: edition === Edition.Enterprise,- isControlledEnvironment: CONTROLLED_ENVIRONMENT+ isControlledEnvironment: CONTROLLED_ENVIRONMENT,+ isLocalDev: IS_LOCAL_DEV};}diff --git a/apps/erp/app/modules/agent/kb/docs/reference/company-settings.md b/apps/erp/app/modules/agent/kb/docs/reference/company-settings.mdindex 5f672455bb..9ce3ef71c6 100644--- a/apps/erp/app/modules/agent/kb/docs/reference/company-settings.md+++ b/apps/erp/app/modules/agent/kb/docs/reference/company-settings.md@@ -32,7 +32,7 @@ company membership is per-user, so one login can hold several companies and switCompanies can also nest. A company with a `parentCompanyId` is a **subsidiary** (`subsidiaryValidator`, `settings.models.ts:279`); an `isEliminationEntity` company exists only to net intercompany transactions out of consolidated reports.-The **Companies** management screen and **Backups** are gated to internal operators (`internalOnlyRoutes` in `useSettingsSubmodules.tsx`). Most tenants create and switch companies through onboarding and the company picker, not this screen.+The **Companies** management screen is gated to internal operators (`internalOnlyRoutes` in `useSettingsSubmodules.tsx`); **Backups** is gated to internal operators on any real deployment but is open to every user on a local dev stack (`canAccessBackups`). Most tenants create and switch companies through onboarding and the company picker, not this screen.For consolidated reporting and the elimination flow, see `docs/reference/intercompany`.@@ -102,7 +102,7 @@ Which company-wide features are available at all also depends on your plan and eMostly "why can't I see or change setting X" — the answers are preconditions, not error strings.### I can't find the Companies or Backups settings page-Both are internal-operator-only, gated by `internalOnlyRoutes` in `useSettingsSubmodules.tsx`. Regular tenants don't get these screens — create and switch companies through onboarding and the company picker instead.+Companies is internal-operator-only (`internalOnlyRoutes` in `useSettingsSubmodules.tsx`). Backups is internal-operator-only on hosted and self-hosted deployments, but visible to any user running a local dev stack (`canAccessBackups`). Regular tenants don't get these screens — create and switch companies through onboarding and the company picker instead.### I can't see the Billing settings pageBilling needs **company ownership** *and* a Cloud environment — it's gated on both (`useSettingsSubmodules.tsx`). Self-hosted/community editions and non-owner users won't see it.diff --git a/apps/erp/app/modules/settings/ui/useSettingsSubmodules.tsx b/apps/erp/app/modules/settings/ui/useSettingsSubmodules.tsxindex e871e503d2..7645a7ae6a 100644--- a/apps/erp/app/modules/settings/ui/useSettingsSubmodules.tsx+++ b/apps/erp/app/modules/settings/ui/useSettingsSubmodules.tsx@@ -30,15 +30,16 @@ import { useFlags } from "~/hooks/useFlags";import type { AuthenticatedRouteGroup, Role } from "~/types";import { path } from "~/utils/path";-const internalOnlyRoutes = new Set<string>([- path.to.companies,- path.to.backups-]);+const internalOnlyRoutes = new Set<string>([path.to.companies]);++// Internal-only in real deployments, but usable by anyone on a local dev stack —+// mirrors `canAccessBackups`, which gates the route and the backup APIs.+const localOrInternalRoutes = new Set<string>([path.to.backups]);export default function useSettingsSubmodules() {const { t } = useLingui();const permissions = usePermissions();- const { isCloud, isInternal } = useFlags();+ const { isCloud, isInternal, isLocalDev } = useFlags();const settingsRoutes: AuthenticatedRouteGroup<{requiresOwnership?: boolean;@@ -220,6 +221,8 @@ export default function useSettingsSubmodules() {if (route.requiresOwnership && !permissions.isOwner()) return false;if (route.requiresCloudEnvironment && !isCloud) return false;if (!isInternal && internalOnlyRoutes.has(route.to)) return false;+ if (!isInternal && !isLocalDev && localOrInternalRoutes.has(route.to))+ return false;return true;};diff --git a/apps/erp/app/routes/api+/settings.backup-archive.$file.ts b/apps/erp/app/routes/api+/settings.backup-archive.$file.tsindex 0f01b3a167..a12cd9cf54 100644--- a/apps/erp/app/routes/api+/settings.backup-archive.$file.ts+++ b/apps/erp/app/routes/api+/settings.backup-archive.$file.ts@@ -1,9 +1,9 @@import { createGzip } from "node:zlib";import { requirePermissions } from "@carbon/auth/auth.server";-import { isInternalEmail } from "@carbon/utils";import type { SupabaseClient } from "@supabase/supabase-js";import type { LoaderFunctionArgs } from "react-router";import { pack as tarPack } from "tar-stream";+import { canAccessBackups } from "~/utils/backups";/** List every object under a storage prefix, returning paths relative to it. */async function listRelative(@@ -44,7 +44,8 @@ export async function loader({ request, params }: LoaderFunctionArgs) {const { client, companyId, email } = await requirePermissions(request, {view: "settings"});- if (!isInternalEmail(email)) throw new Response("Not found", { status: 404 });+ if (!canAccessBackups(email))+ throw new Response("Not found", { status: 404 });const name = params.file ?? "";if (!name || name.includes("/")) {diff --git a/apps/erp/app/routes/api+/settings.backup-export-status.ts b/apps/erp/app/routes/api+/settings.backup-export-status.tsindex a40eef863d..045fcfd949 100644--- a/apps/erp/app/routes/api+/settings.backup-export-status.ts+++ b/apps/erp/app/routes/api+/settings.backup-export-status.ts@@ -1,7 +1,7 @@import { requirePermissions } from "@carbon/auth/auth.server";-import { isInternalEmail } from "@carbon/utils";import type { LoaderFunctionArgs } from "react-router";import { getCompanyExportRun } from "~/modules/settings";+import { canAccessBackups } from "~/utils/backups";// Polled by the export progress modal (and the in-progress list row) for live// phase/done/total. One marker per company: the export job writes it while@@ -12,7 +12,8 @@ export async function loader({ request }: LoaderFunctionArgs) {const { client, companyId, email } = await requirePermissions(request, {update: "settings"});- if (!isInternalEmail(email)) throw new Response("Not found", { status: 404 });+ if (!canAccessBackups(email))+ throw new Response("Not found", { status: 404 });const run = await getCompanyExportRun(client, companyId);return {diff --git a/apps/erp/app/routes/api+/settings.backup-restore-status.$restoreRunId.ts b/apps/erp/app/routes/api+/settings.backup-restore-status.$restoreRunId.tsindex d3cb06a938..6dc7706f26 100644--- a/apps/erp/app/routes/api+/settings.backup-restore-status.$restoreRunId.ts+++ b/apps/erp/app/routes/api+/settings.backup-restore-status.$restoreRunId.ts@@ -1,7 +1,7 @@import { requirePermissions } from "@carbon/auth/auth.server";-import { isInternalEmail } from "@carbon/utils";import type { LoaderFunctionArgs } from "react-router";import { getCompanyRestoreRuns } from "~/modules/settings";+import { canAccessBackups } from "~/utils/backups";// Polled by the restore progress modal. A restore run is "running" until its// marker row appears (the job writes it once the wipe+load commits), then@@ -11,7 +11,8 @@ export async function loader({ request, params }: LoaderFunctionArgs) {const { client, companyId, email } = await requirePermissions(request, {update: "settings"});- if (!isInternalEmail(email)) throw new Response("Not found", { status: 404 });+ if (!canAccessBackups(email))+ throw new Response("Not found", { status: 404 });const restoreRunId = params.restoreRunId;const runs = await getCompanyRestoreRuns(client, companyId);diff --git a/apps/erp/app/routes/api+/settings.backup-summary.ts b/apps/erp/app/routes/api+/settings.backup-summary.tsindex 96908ca1a0..1357b2dab5 100644--- a/apps/erp/app/routes/api+/settings.backup-summary.ts+++ b/apps/erp/app/routes/api+/settings.backup-summary.ts@@ -1,7 +1,7 @@import { requirePermissions } from "@carbon/auth/auth.server";-import { isInternalEmail } from "@carbon/utils";import type { SupabaseClient } from "@supabase/supabase-js";import type { LoaderFunctionArgs } from "react-router";+import { canAccessBackups } from "~/utils/backups";// Recognizable entities a backup carries, grouped for the "what's in a backup"// popover. Not exhaustive (the export covers every scoped table) — just the@@ -93,7 +93,8 @@ export async function loader({ request }: LoaderFunctionArgs) {request,{ view: "settings" });- if (!isInternalEmail(email)) throw new Response("Not found", { status: 404 });+ if (!canAccessBackups(email))+ throw new Response("Not found", { status: 404 });const groups = await Promise.all(GROUPS.map(async (group) => {diff --git a/apps/erp/app/routes/api+/settings.backup-upload.ts b/apps/erp/app/routes/api+/settings.backup-upload.tsindex 343aebf534..fbf0d380cb 100644--- a/apps/erp/app/routes/api+/settings.backup-upload.ts+++ b/apps/erp/app/routes/api+/settings.backup-upload.ts@@ -1,8 +1,8 @@import { Readable } from "node:stream";import { requirePermissions } from "@carbon/auth/auth.server";-import { isInternalEmail } from "@carbon/utils";import type { ActionFunctionArgs } from "react-router";import { unpackBackupArchive } from "~/modules/settings/backups-archive.server";+import { canAccessBackups } from "~/utils/backups";/*** Unpack an uploaded `.carbon.tar.gz` (a whole backup folder) into a fresh@@ -17,7 +17,8 @@ export async function action({ request }: ActionFunctionArgs) {const { client, companyId, email } = await requirePermissions(request, {update: "settings"});- if (!isInternalEmail(email)) throw new Response("Not found", { status: 404 });+ if (!canAccessBackups(email))+ throw new Response("Not found", { status: 404 });if (request.method !== "POST" || !request.body) {throw new Response("Expected a tar.gz body", { status: 400 });}diff --git a/apps/erp/app/routes/x+/settings+/backups.tsx b/apps/erp/app/routes/x+/settings+/backups.tsxindex af2f5da1dd..e06dad69cc 100644--- a/apps/erp/app/routes/x+/settings+/backups.tsx+++ b/apps/erp/app/routes/x+/settings+/backups.tsx@@ -25,7 +25,7 @@ import {useDisclosure,VStack} from "@carbon/react";-import { convertKbToString, isInternalEmail } from "@carbon/utils";+import { convertKbToString } from "@carbon/utils";import { msg } from "@lingui/core/macro";import { Trans, useLingui } from "@lingui/react/macro";import { useCallback, useEffect, useRef, useState } from "react";@@ -66,6 +66,7 @@ import {RestoreReviewRow,RestoreSubmit} from "~/modules/settings/ui/Backups";+import { canAccessBackups } from "~/utils/backups";import { getEdgeFunctionErrorMessage } from "~/utils/error";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -90,9 +91,10 @@ const restoreValidator = z.object({includeStorage: z.enum(["none", "all"])});-function requireInternal(email: string | null) {- // Internal-only while multi-tenant hardening is pending.- if (!isInternalEmail(email)) {+function requireBackupAccess(email: string | null) {+ // Internal-only in real deployments while multi-tenant hardening is pending;+ // open to everyone on a local dev stack.+ if (!canAccessBackups(email)) {throw redirect(path.to.settings);}}@@ -101,7 +103,7 @@ export async function loader({ request }: LoaderFunctionArgs) {const { client, companyId, email } = await requirePermissions(request, {update: "settings"});- requireInternal(email);+ requireBackupAccess(email);const [backupsList, restoreRuns, exportRun] = await Promise.all([listCompanyBackups(client, companyId),@@ -125,7 +127,7 @@ export async function action({ request }: ActionFunctionArgs) {update: "settings"});- requireInternal(email);+ requireBackupAccess(email);const formData = await request.formData();const intent = formData.get("intent");diff --git a/apps/erp/app/utils/backups.ts b/apps/erp/app/utils/backups.tsnew file mode 100644index 0000000000..45779dbef4--- /dev/null+++ b/apps/erp/app/utils/backups.ts@@ -0,0 +1,12 @@+import { IS_LOCAL_DEV } from "@carbon/auth";+import { isInternalEmail } from "@carbon/utils";++/**+ * Backups/restores stay internal-only in real deployments while the+ * multi-tenant caveats are unhardened, but any user can exercise them on a+ * local dev stack. Shared by the route gates, the backup API loaders, and the+ * settings nav so they can never diverge.+ */+export function canAccessBackups(email: string | null | undefined): boolean {+ return IS_LOCAL_DEV || isInternalEmail(email);+}diff --git a/packages/env/src/index.ts b/packages/env/src/index.tsindex ef558a4010..3a845fccc1 100644--- a/packages/env/src/index.ts+++ b/packages/env/src/index.ts@@ -397,6 +397,16 @@ export const VERCEL_ENV =isSecret: false}) ?? NODE_ENV;+// True only on a developer's local stack — never in prod, preview, or a+// self-hosted deployment (those all run NODE_ENV=production). Gates features+// that stay internal-only in real deployments but should be exercisable by+// anyone locally. Derived from vars already in `getBrowserEnv()`, so it is+// correct client-side too.+export const IS_LOCAL_DEV =+ NODE_ENV !== "production" &&+ VERCEL_ENV !== "production" &&+ VERCEL_ENV !== "preview";+export const POSTHOG_API_HOST = getEnv("POSTHOG_API_HOST", {isSecret: false});diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex b53c36051f..35a7785421 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -3051,6 +3051,9 @@ msgstr "Region konnte nicht analysiert werden: {0}"msgid "Could not build PDF. Try again."msgstr "PDF konnte nicht erstellt werden. Versuchen Sie es erneut."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Konnte Regionsbild nicht für die Analyse vorbereiten"@@ -5344,12 +5347,19 @@ msgstr "Verfallsdatum-Nachverfolgung"msgid "Export"msgstr "Exportieren"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "CSV exportieren"msgid "Export Lines to CSV"msgstr "Zeilen als CSV exportieren"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Erweiterte Preis"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Toleranz (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Werkzeug"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex e7aac4d8ac..74c843f7f1 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -3051,6 +3051,9 @@ msgstr "Could not analyze region: {0}"msgid "Could not build PDF. Try again."msgstr "Could not build PDF. Try again."+msgid "Could not export all rows. Downloading this page instead."+msgstr "Could not export all rows. Downloading this page instead."+msgid "Could not prepare region image for analysis"msgstr "Could not prepare region image for analysis"@@ -5344,12 +5347,19 @@ msgstr "Expiry trace"msgid "Export"msgstr "Export"+msgid "Export all ({count})"+msgstr "Export all ({count})"+msgid "Export CSV"msgstr "Export CSV"msgid "Export Lines to CSV"msgstr "Export Lines to CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr "Export this page ({0})"+msgid "Extended Price"msgstr "Extended Price"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolerance (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgid "tool"msgstr "tool"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 97ccd06278..ab8d6f60f2 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -3051,6 +3051,9 @@ msgstr "No se pudo analizar la región: {0}"msgid "Could not build PDF. Try again."msgstr "No se pudo crear el PDF. Intenta de nuevo."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "No se pudo preparar la imagen de la región para el análisis"@@ -5344,12 +5347,19 @@ msgstr "Rastreo de vencimiento"msgid "Export"msgstr "Exportar"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Exportar CSV"msgid "Export Lines to CSV"msgstr "Exportar Líneas a CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Precio Extendido"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolerancia (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Herramienta"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 10ede00a0b..de38aea344 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -3051,6 +3051,9 @@ msgstr "Impossible d'analyser la région : {0}"msgid "Could not build PDF. Try again."msgstr "Impossible de créer le PDF. Réessayez."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Impossible de préparer l'image de la région pour l'analyse"@@ -5344,12 +5347,19 @@ msgstr "Traçabilité d'expiration"msgid "Export"msgstr "Exporter"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Exporter CSV"msgid "Export Lines to CSV"msgstr "Exporter les lignes en CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Prix étendu"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolérance (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Outil"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex c31fcc43ab..0217904238 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -3051,6 +3051,9 @@ msgstr "क्षेत्र का विश्लेषण नहीं कmsgid "Could not build PDF. Try again."msgstr "PDF नहीं बना सके। फिर से कोशिश करें।"+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "विश्लेषण के लिए क्षेत्र छवि तैयार नहीं की जा सकी"@@ -5344,12 +5347,19 @@ msgstr "समाप्ति ट्रेस"msgid "Export"msgstr "निर्यात करें"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "CSV निर्यात करें"msgid "Export Lines to CSV"msgstr "CSV में लाइनें निर्यात करें"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "विस्तारित मूल्य"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "सहनशीलता (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "उपकरण"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 0ecea10587..f02f35aeaa 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -3051,6 +3051,9 @@ msgstr "Impossibile analizzare la regione: {0}"msgid "Could not build PDF. Try again."msgstr "Impossibile creare il PDF. Riprova."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Impossibile preparare l'immagine della regione per l'analisi"@@ -5344,12 +5347,19 @@ msgstr "Traccia scadenza"msgid "Export"msgstr "Esporta"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Esporta CSV"msgid "Export Lines to CSV"msgstr "Esporta Righe in CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Prezzo Esteso"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolleranza (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Strumento"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 976604a08c..2e48ce4c3f 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -3051,6 +3051,9 @@ msgstr "領域を分析できませんでした: {0}"msgid "Could not build PDF. Try again."msgstr "PDFを作成できませんでした。もう一度お試しください。"+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "分析用の領域画像を準備できませんでした"@@ -5344,12 +5347,19 @@ msgstr "有効期限トレース"msgid "Export"msgstr "エクスポート"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "CSVをエクスポート"msgid "Export Lines to CSV"msgstr "CSVにラインをエクスポート"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "拡張価格"@@ -13604,6 +13614,9 @@ msgstr "許容差+"msgid "Tolerance (+/-)"msgstr "許容範囲 (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "ツール"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex ce558c2993..271342bec1 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -3051,6 +3051,9 @@ msgstr "영역을 분석할 수 없습니다: {0}"msgid "Could not build PDF. Try again."msgstr "PDF를 생성할 수 없습니다. 다시 시도하세요."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "분석을 위한 영역 이미지를 준비할 수 없습니다"@@ -5344,12 +5347,19 @@ msgstr "만료 추적"msgid "Export"msgstr "내보내기"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "CSV 내보내기"msgid "Export Lines to CSV"msgstr "라인을 CSV로 내보내기"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "확장 가격"@@ -13604,6 +13614,9 @@ msgstr "공차+"msgid "Tolerance (+/-)"msgstr "공차(+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "공구"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 0b907f2158..6da8218fa3 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -3051,6 +3051,9 @@ msgstr "Nie można analizować regionu: {0}"msgid "Could not build PDF. Try again."msgstr "Nie można było zbudować pliku PDF. Spróbuj ponownie."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Nie można przygotować obrazu regionu do analizy"@@ -5344,12 +5347,19 @@ msgstr "Ślad wygaśnięcia"msgid "Export"msgstr "Eksportuj"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Eksportuj CSV"msgid "Export Lines to CSV"msgstr "Eksportuj linie do CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Cena rozszerzona"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolerancja (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Narzędzie"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 2dc921e55d..d4b473cfed 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -3051,6 +3051,9 @@ msgstr "Não foi possível analisar a região: {0}"msgid "Could not build PDF. Try again."msgstr "Não foi possível criar o PDF. Tente novamente."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Não foi possível preparar a imagem da região para análise"@@ -5344,12 +5347,19 @@ msgstr "Rastreamento de validade"msgid "Export"msgstr "Exportar"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Exportar CSV"msgid "Export Lines to CSV"msgstr "Exportar Linhas para CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Preço Estendido"@@ -13604,6 +13614,9 @@ msgstr "Tol+"msgid "Tolerance (+/-)"msgstr "Tolerância (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Ferramenta"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 7ed746c2b3..946fb02ca7 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -3051,6 +3051,9 @@ msgstr "Не удалось проанализировать регион: {0}"msgid "Could not build PDF. Try again."msgstr "Не удалось создать PDF. Попробуйте еще раз."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Не удалось подготовить изображение региона для анализа"@@ -5344,12 +5347,19 @@ msgstr "Трассировка срока годности"msgid "Export"msgstr "Экспорт"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "Экспортировать CSV"msgid "Export Lines to CSV"msgstr "Экспортировать строки в CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Расширенная цена"@@ -13604,6 +13614,9 @@ msgstr "Допуск+"msgid "Tolerance (+/-)"msgstr "Допуск (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Инструмент"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 14ca347d8e..1121194c16 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -3051,6 +3051,9 @@ msgstr "Bölge analiz edilemedi: {0}"msgid "Could not build PDF. Try again."msgstr "PDF oluşturulamadı. Lütfen tekrar deneyin."+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "Bölge görüntüsü analiz için hazırlanamadı"@@ -5344,12 +5347,19 @@ msgstr "Son kullanma tarihi izi"msgid "Export"msgstr "Dışa Aktar"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "CSV'ye Aktar"msgid "Export Lines to CSV"msgstr "Satırları CSV'ye Dışa Aktar"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "Genelletilmiş Fiyat"@@ -13604,6 +13614,9 @@ msgstr "Tolerans+"msgid "Tolerance (+/-)"msgstr "Tolerans (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "Araç"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 30fb71b1fd..1d44471ce2 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -3051,6 +3051,9 @@ msgstr "无法分析区域:{0}"msgid "Could not build PDF. Try again."msgstr "无法生成 PDF。请重试。"+msgid "Could not export all rows. Downloading this page instead."+msgstr ""+msgid "Could not prepare region image for analysis"msgstr "无法准备区域图像以进行分析"@@ -5344,12 +5347,19 @@ msgstr "过期追踪"msgid "Export"msgstr "导出"+msgid "Export all ({count})"+msgstr ""+msgid "Export CSV"msgstr "导出 CSV"msgid "Export Lines to CSV"msgstr "导出行到 CSV"+#. placeholder {0}: data.length+msgid "Export this page ({0})"+msgstr ""+msgid "Extended Price"msgstr "扩展价格"@@ -13604,6 +13614,9 @@ msgstr "公差+"msgid "Tolerance (+/-)"msgstr "容差 (+/-)"+msgid "Too many rows to export ({count}) — filter to {MAX_EXPORT_ALL_ROWS} or fewer"+msgstr ""+msgid "tool"msgstr "工具"