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.

- final changes

Gaurav Bhattf064f65d226e
diff --git a/apps/erp/app/components/AttachmentsList.tsx b/apps/erp/app/components/AttachmentsList.tsx
index 883eb1578f..baf2dcb7f0 100644
--- a/apps/erp/app/components/AttachmentsList.tsx
+++ b/apps/erp/app/components/AttachmentsList.tsx
@@ -7,7 +7,11 @@ import {
toast,
VStack
} from "@carbon/react";
-import { convertKbToString } from "@carbon/utils";
+import {
+ convertKbToString,
+ PO_EMAIL_ATTACHMENT_LIMIT_MB,
+ PO_EMAIL_ATTACHMENT_WARN_MB
+} from "@carbon/utils";
import { Trans, useLingui } from "@lingui/react/macro";
import { useCallback, useMemo, useState } from "react";
import { useDropzone } from "react-dropzone";
@@ -17,30 +21,27 @@ import { useUser } from "~/hooks";
import { stripSpecialCharacters } from "~/utils/string";
export type ResolvedAttachmentItem = {
- source: "po" | "company" | "supplier" | "item";
- sourceLabel: string;
+ source: "company" | "supplier" | "item" | "po";
name: string;
size: number | null;
- /** Full storage path under the `private` bucket. Used as a stable key. */
path: string;
};
+const sourceLabel: Record<ResolvedAttachmentItem["source"], string> = {
+ company: "From Company",
+ supplier: "From Supplier",
+ item: "From Item",
+ po: "Ad-hoc"
+};
+
type AttachmentsListProps = {
- /**
- * Supplier interaction id — used as the upload destination for ad-hoc files
- * dropped at finalize time. Files go to
- * `{companyId}/supplier-interaction/{supplierInteractionId}/` and are
- * auto-attached by the existing supplier-quote/RFQ flow conventions.
- */
supplierInteractionId: string | null;
- /** Pinned, non-removable. Always sent. Used for the PO PDF preview row. */
pinned?: Array<{ name: string; sizeKb?: number; label?: string }>;
- /** Resolved attachments (Company + Supplier + Item + PO ad-hoc). */
attachments: ResolvedAttachmentItem[];
};
-const WARN_KB = 20 * 1024;
-const LIMIT_KB = 25 * 1024;
+const WARN_KB = PO_EMAIL_ATTACHMENT_WARN_MB * 1024;
+const LIMIT_KB = PO_EMAIL_ATTACHMENT_LIMIT_MB * 1024;
const sourceBadgeVariant: Record<
ResolvedAttachmentItem["source"],
@@ -52,11 +53,6 @@ const sourceBadgeVariant: Record<
company: "purple"
};
-/**
- * Read-only preview of every file that's about to ride along on a PO send,
- * plus a drag-drop zone for ad-hoc uploads. No selection UI — everything in
- * the four scope folders auto-attaches, matching the supplier-quote/RFQ flows.
- */
export default function AttachmentsList({
supplierInteractionId,
pinned = [],
@@ -173,7 +169,7 @@ export default function AttachmentsList({
variant={sourceBadgeVariant[a.source]}
className="flex-shrink-0"
>
- {a.sourceLabel}
+ {sourceLabel[a.source]}
</Badge>
</HStack>
<HStack className="gap-2 flex-shrink-0 ml-2">
@@ -194,8 +190,6 @@ export default function AttachmentsList({
))}
</VStack>
- {/* Drag-and-drop — uploads to the supplier-interaction folder, which the
- send action automatically picks up. */}
<div
{...getRootProps()}
className={`mt-2 w-full border-2 border-dashed rounded-md p-4 text-center cursor-pointer transition-colors ${
@@ -230,13 +224,14 @@ export default function AttachmentsList({
{overLimit && (
<span className="ml-2">
<Trans>
- Exceeds 25 MB total — remove some attachments to send.
+ Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some
+ attachments to send.
</Trans>
</span>
)}
{warning && (
<span className="ml-2">
- <Trans>Approaching 25 MB cap.</Trans>
+ <Trans>Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap.</Trans>
</span>
)}
</div>
diff --git a/apps/erp/app/components/DefaultAttachmentsPanel.tsx b/apps/erp/app/components/DefaultAttachmentsPanel.tsx
index 711718c4d6..5646e7aa3a 100644
--- a/apps/erp/app/components/DefaultAttachmentsPanel.tsx
+++ b/apps/erp/app/components/DefaultAttachmentsPanel.tsx
@@ -12,7 +12,6 @@ import {
DropdownMenuTrigger,
HStack,
IconButton,
- Spinner,
Table,
Tbody,
Td,
@@ -25,25 +24,16 @@ import { convertKbToString } from "@carbon/utils";
import { Trans, useLingui } from "@lingui/react/macro";
import type { ReactNode } from "react";
import { useCallback, useState } from "react";
-import { useDropzone } from "react-dropzone";
-import {
- LuCloudUpload,
- LuDownload,
- LuEllipsisVertical,
- LuTrash
-} from "react-icons/lu";
+import { LuDownload, LuEllipsisVertical, LuTrash } from "react-icons/lu";
import { useRevalidator } from "react-router";
import DocumentIcon from "~/components/DocumentIcon";
import DocumentPreview from "~/components/DocumentPreview";
+import FileDropzone from "~/components/FileDropzone";
import { useDateFormatter, useUser } from "~/hooks";
import { getDocumentType } from "~/modules/shared";
import { path } from "~/utils/path";
import { stripSpecialCharacters } from "~/utils/string";
-/**
- * Shape returned by Supabase `storage.from("private").list(...)`.
- * Trimmed to the bits this component actually uses.
- */
export type StorageFile = {
name: string;
created_at?: string | null;
@@ -52,13 +42,6 @@ export type StorageFile = {
type Props = {
files: StorageFile[];
- /**
- * Storage path under the `private` bucket where files live (and uploads
- * go). Should NOT include the leading `{companyId}/` prefix — that's added
- * automatically from the current user's company.
- *
- * Example: "default-attachments/company", "default-attachments/supplier/sup_123"
- */
storagePathPrefix: string;
title: ReactNode;
description: ReactNode;
@@ -66,11 +49,6 @@ type Props = {
const PREVIEWABLE = new Set(["PDF", "Image"]);
-/**
- * Generic management UI for default attachments at any scope
- * (company / supplier / item). Drag-and-drop upload, list, download, delete —
- * all directly against Supabase storage. Same pattern as Documents.tsx.
- */
export default function DefaultAttachmentsPanel({
files,
storagePathPrefix,
@@ -82,7 +60,6 @@ export default function DefaultAttachmentsPanel({
const { carbon } = useCarbon();
const { company } = useUser();
const revalidator = useRevalidator();
- const [uploading, setUploading] = useState(false);
const [deletingPath, setDeletingPath] = useState<string | null>(null);
const fullPath = (name: string) =>
@@ -94,37 +71,22 @@ export default function DefaultAttachmentsPanel({
toast.error(t`Storage client not available`);
return;
}
- setUploading(true);
- try {
- for (const file of acceptedFiles) {
- const safeName = stripSpecialCharacters(file.name);
- const storagePath = fullPath(safeName);
-
- const upload = await carbon.storage
- .from("private")
- .upload(storagePath, file, {
- cacheControl: `${12 * 60 * 60}`,
- upsert: true
- });
-
- if (upload.error) {
- toast.error(t`Failed to upload ${file.name}`);
- }
- }
- revalidator.revalidate();
- } finally {
- setUploading(false);
+ for (const file of acceptedFiles) {
+ const safeName = stripSpecialCharacters(file.name);
+ const upload = await carbon.storage
+ .from("private")
+ .upload(fullPath(safeName), file, {
+ cacheControl: `${12 * 60 * 60}`,
+ upsert: true
+ });
+ if (upload.error) toast.error(t`Failed to upload ${file.name}`);
}
+ revalidator.revalidate();
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[carbon, company.id, storagePathPrefix, revalidator, t]
);
- const { getRootProps, getInputProps, isDragActive } = useDropzone({
- onDrop,
- multiple: true
- });
-
const onDownload = useCallback(
async (name: string) => {
const url = path.to.file.previewFile(`private/${fullPath(name)}`);
@@ -293,26 +255,7 @@ export default function DefaultAttachmentsPanel({
</Tbody>
</Table>
- <div
- {...getRootProps()}
- className={`mt-4 w-full border-2 border-dashed rounded-md p-4 text-center cursor-pointer transition-colors ${
- isDragActive
- ? "border-primary bg-primary/10"
- : "border-muted hover:border-primary/50"
- }`}
- >
- <input {...getInputProps()} />
- {uploading ? (
- <div className="flex items-center justify-center gap-2 text-sm text-muted-foreground">
- <Spinner /> <Trans>Uploading…</Trans>
- </div>
- ) : (
- <div className="flex flex-col items-center gap-1 text-sm text-muted-foreground">
- <LuCloudUpload className="h-6 w-6" />
- <Trans>Drag &amp; drop files, or click to browse</Trans>
- </div>
- )}
- </div>
+ <FileDropzone onDrop={onDrop} />
</CardContent>
</Card>
);
diff --git a/apps/erp/app/modules/purchasing/purchasing.service.ts b/apps/erp/app/modules/purchasing/purchasing.service.ts
index 5cadfd813b..069465a91e 100644
--- a/apps/erp/app/modules/purchasing/purchasing.service.ts
+++ b/apps/erp/app/modules/purchasing/purchasing.service.ts
@@ -2219,148 +2219,55 @@ export async function getPurchasingRFQSuppliersWithLinks(
.eq("purchasingRfqId", purchasingRfqId);
}
-// ===========================================================================
-// PO attachments (storage-list pattern)
-//
-// Matches the convention used by Supplier Quote / Purchasing RFQ flows
-// (see getSupplierInteractionDocuments / getSupplierInteractionLineDocuments).
-// Files are stored under predictable storage paths and listed at send time.
-// No DB tables, no per-file metadata, no picker.
-// ===========================================================================
-
-export type ResolvedAttachment = {
- source: "po" | "company" | "supplier" | "item";
- sourceLabel: string;
+export type PoDefaultAttachment = {
+ source: "company" | "supplier" | "item";
name: string;
size: number | null;
- /** Full storage path under the `private` bucket — pass to createSignedUrl. */
path: string;
};
-const listAtPath = async (
- client: SupabaseClient<Database>,
- path: string
-): Promise<{ name: string; size: number | null }[]> => {
- const result = await client.storage.from("private").list(path);
- return (result.data ?? []).map((f) => ({
- name: f.name,
- size:
- (f.metadata as { size?: number } | null | undefined)?.size != null
- ? Math.round(((f.metadata as { size?: number }).size as number) / 1024)
- : null
- }));
-};
-
-/**
- * Resolve every attachment that should ride along on a PO finalize email,
- * by listing the four canonical storage folders:
- * - Company defaults: {companyId}/default-attachments/company/*
- * - Supplier defaults: {companyId}/default-attachments/supplier/{supplierId}/*
- * - Item defaults: {companyId}/default-attachments/item/{itemId}/*
- * - PO ad-hoc: {companyId}/supplier-interaction/{interactionId}/* (sans the PO PDF itself)
- *
- * Deduped by absolute storage path. Same-named files in different scopes count
- * as separate attachments (different folders).
- */
-export async function getResolvedPoAttachments(
+export async function getDefaultAttachmentsForPO(
client: SupabaseClient<Database>,
args: {
companyId: string;
supplierId: string | null;
- supplierInteractionId: string | null;
itemIds: string[];
}
-): Promise<ResolvedAttachment[]> {
- const { companyId, supplierId, supplierInteractionId, itemIds } = args;
-
- const companyPrefix = `${companyId}/default-attachments/company`;
- const supplierPrefix = supplierId
- ? `${companyId}/default-attachments/supplier/${supplierId}`
- : null;
- const itemPrefixes = (itemIds ?? []).map(
- (id) => `${companyId}/default-attachments/item/${id}`
- );
- const poPrefix = supplierInteractionId
- ? `${companyId}/supplier-interaction/${supplierInteractionId}`
- : null;
+): Promise<PoDefaultAttachment[]> {
+ const { companyId, supplierId, itemIds } = args;
- const [companyFiles, supplierFiles, itemFilesByItem, poFiles] =
- await Promise.all([
- listAtPath(client, companyPrefix),
- supplierPrefix ? listAtPath(client, supplierPrefix) : Promise.resolve([]),
- Promise.all(itemPrefixes.map((p) => listAtPath(client, p))),
- poPrefix ? listAtPath(client, poPrefix) : Promise.resolve([])
- ]);
-
- const byPath = new Map<string, ResolvedAttachment>();
-
- for (const f of companyFiles) {
- const path = `${companyPrefix}/${f.name}`;
- if (!byPath.has(path))
- byPath.set(path, {
- source: "company",
- sourceLabel: "From Company",
- name: f.name,
- size: f.size,
- path
- });
+ const prefixes: { source: PoDefaultAttachment["source"]; path: string }[] = [
+ { source: "company", path: `${companyId}/default-attachments/company` }
+ ];
+ if (supplierId) {
+ prefixes.push({
+ source: "supplier",
+ path: `${companyId}/default-attachments/supplier/${supplierId}`
+ });
}
-
- if (supplierPrefix) {
- for (const f of supplierFiles) {
- const path = `${supplierPrefix}/${f.name}`;
- if (!byPath.has(path))
- byPath.set(path, {
- source: "supplier",
- sourceLabel: "From Supplier",
- name: f.name,
- size: f.size,
- path
- });
- }
+ for (const id of itemIds ?? []) {
+ prefixes.push({
+ source: "item",
+ path: `${companyId}/default-attachments/item/${id}`
+ });
}
- itemPrefixes.forEach((prefix, idx) => {
- for (const f of itemFilesByItem[idx] ?? []) {
- const path = `${prefix}/${f.name}`;
- if (!byPath.has(path))
- byPath.set(path, {
- source: "item",
- sourceLabel: "From Item",
- name: f.name,
- size: f.size,
- path
- });
- }
- });
-
- if (poPrefix) {
- for (const f of poFiles) {
- const path = `${poPrefix}/${f.name}`;
- if (!byPath.has(path))
- byPath.set(path, {
- source: "po",
- sourceLabel: "Ad-hoc",
- name: f.name,
- size: f.size,
- path
- });
- }
- }
+ const results = await Promise.all(
+ prefixes.map(({ path }) => client.storage.from("private").list(path))
+ );
- return Array.from(byPath.values()).sort((a, b) => {
- const rank: Record<ResolvedAttachment["source"], number> = {
- company: 0,
- supplier: 1,
- item: 2,
- po: 3
- };
- if (a.source !== b.source) return rank[a.source] - rank[b.source];
- return a.name.localeCompare(b.name);
+ return results.flatMap((result, idx) => {
+ const { source, path: prefix } = prefixes[idx];
+ return (result.data ?? []).map((f) => ({
+ source,
+ name: f.name,
+ size:
+ (f.metadata as { size?: number } | null | undefined)?.size != null
+ ? Math.round(
+ ((f.metadata as { size?: number }).size as number) / 1024
+ )
+ : null,
+ path: `${prefix}/${f.name}`
+ }));
});
}
-
-// Hard upper bound for total outbound attachments. Most SMTP providers cap
-// around 25 MB; we warn at 20 in the UI and reject at 25 in the action.
-export const PO_ATTACHMENT_TOTAL_LIMIT_KB = 25 * 1024;
-export const PO_ATTACHMENT_TOTAL_WARN_KB = 20 * 1024;
diff --git a/apps/erp/app/modules/settings/settings.service.ts b/apps/erp/app/modules/settings/settings.service.ts
index dcd324a3b6..1ae85f661d 100644
--- a/apps/erp/app/modules/settings/settings.service.ts
+++ b/apps/erp/app/modules/settings/settings.service.ts
@@ -50,7 +50,8 @@ export async function updateAccountsPayableBillingAddress(
) {
return client
.from("companyAccountsPayableBillingAddress")
- .upsert(sanitize({ id: companyId, ...data, updatedBy }));
+ .update(sanitize({ ...data, updatedBy }))
+ .eq("id", companyId);
}
export async function updateAccountsReceivableBillingAddress(
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index f9d0caf0c9..7ff3c5f53b 100644
--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
@@ -1,5 +1,5 @@
{
- "generated": "2026-05-25T08:26:21.811Z",
+ "generated": "2026-05-27T04:01:58.484Z",
"totalTools": 1075,
"modules": 15,
"tools": [
diff --git a/apps/erp/app/routes/x+/part+/$itemId.details.tsx b/apps/erp/app/routes/x+/part+/$itemId.details.tsx
index e0be92304a..2a7e69372f 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.details.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.details.tsx
@@ -60,7 +60,14 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
const url = new URL(request.url);
const requestedMethodId = url.searchParams.get("methodId");
- const makeMethods = await getMakeMethods(client, itemId, companyId);
+ const [makeMethods, defaultAttachmentsResult] = await Promise.all([
+ getMakeMethods(client, itemId, companyId),
+ client.storage
+ .from("private")
+ .list(`${companyId}/default-attachments/item/${itemId}`)
+ ]);
+ const defaultAttachments = defaultAttachmentsResult.data ?? [];
+
const makeMethod = requestedMethodId
? (makeMethods.data?.find((m) => m.id === requestedMethodId) ??
makeMethods.data?.find((m) => m.status === "Active") ??
@@ -68,43 +75,22 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
: (makeMethods.data?.find((m) => m.status === "Active") ??
makeMethods.data?.[0]);
- const listDefaultAttachments = () =>
- client.storage
- .from("private")
- .list(`${companyId}/default-attachments/item/${itemId}`);
-
if (!makeMethod) {
- const fallback = await listDefaultAttachments();
- return {
- methodData: null,
- tags: [],
- defaultAttachments: fallback.data ?? []
- };
+ return { methodData: null, tags: [], defaultAttachments };
}
const fullMethod = await getMakeMethodById(client, makeMethod.id, companyId);
if (fullMethod.error || !fullMethod.data) {
- const fallback = await listDefaultAttachments();
- return {
- methodData: null,
- tags: [],
- defaultAttachments: fallback.data ?? []
- };
+ return { methodData: null, tags: [], defaultAttachments };
}
- const [
- methodMaterials,
- methodOperations,
- tags,
- partManufacturing,
- defaultAttachmentsResult
- ] = await Promise.all([
- getMethodMaterialsByMakeMethod(client, fullMethod.data.id),
- getMethodOperationsByMakeMethodId(client, fullMethod.data.id),
- getTagsList(client, companyId, "operation"),
- getItemManufacturing(client, itemId, companyId),
- listDefaultAttachments()
- ]);
+ const [methodMaterials, methodOperations, tags, partManufacturing] =
+ await Promise.all([
+ getMethodMaterialsByMakeMethod(client, fullMethod.data.id),
+ getMethodOperationsByMakeMethodId(client, fullMethod.data.id),
+ getTagsList(client, companyId, "operation"),
+ getItemManufacturing(client, itemId, companyId)
+ ]);
const configData = partManufacturing.data?.requiresConfiguration
? {
@@ -146,7 +132,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
...configData
},
tags: tags.data ?? [],
- defaultAttachments: defaultAttachmentsResult.data ?? []
+ defaultAttachments
};
}
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx
index 6431755db7..e04e54f694 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx
@@ -6,6 +6,7 @@ import { PurchaseOrderEmail } from "@carbon/documents/email";
import { validationError, validator } from "@carbon/form";
import { trigger } from "@carbon/jobs";
import { NotificationEvent } from "@carbon/notifications";
+import { PO_EMAIL_ATTACHMENT_LIMIT_MB } from "@carbon/utils";
import { renderAsync } from "@react-email/components";
import { parseAcceptLanguage } from "intl-parse-accept-language";
import type { ActionFunctionArgs } from "react-router";
@@ -14,13 +15,13 @@ import { getPaymentTermsList } from "~/modules/accounting";
import { upsertDocument } from "~/modules/documents";
import {
finalizePurchaseOrder,
+ getDefaultAttachmentsForPO,
getPurchaseOrder,
getPurchaseOrderLines,
getPurchaseOrderLocations,
- getResolvedPoAttachments,
getSupplier,
getSupplierContact,
- PO_ATTACHMENT_TOTAL_LIMIT_KB,
+ getSupplierInteractionDocuments,
purchaseOrderFinalizeValidator,
updatePurchaseOrderStatus
} from "~/modules/purchasing";
@@ -275,14 +276,8 @@ export async function action(args: ActionFunctionArgs) {
const { notification, supplierContact, cc: ccSelections } = validation.data;
- const logPrefix = `[finalize PO ${orderId}]`;
-
switch (notification) {
case "Email":
- console.log(`${logPrefix} email branch entered`, {
- supplierContact,
- ccCount: ccSelections?.length ?? 0
- });
try {
if (!supplierContact) throw new Error("Supplier contact is required");
@@ -304,13 +299,8 @@ export async function action(args: ActionFunctionArgs) {
getUser(serviceRole, userId)
]);
- if (!supplier?.data?.contact) {
- console.error(`${logPrefix} supplier contact lookup failed`, {
- supplierContactId: supplierContact,
- supplierResult: supplier
- });
+ if (!supplier?.data?.contact)
throw new Error("Failed to get supplier contact");
- }
if (!company.data) throw new Error("Failed to get company");
if (!buyer.data) throw new Error("Failed to get user");
if (!purchaseOrder.data)
@@ -318,153 +308,100 @@ export async function action(args: ActionFunctionArgs) {
if (!purchaseOrderLocations.data)
throw new Error("Failed to get purchase order locations");
if (!paymentTerms.data) throw new Error("Failed to get payment terms");
+ if (!supplier.data.contact.email) break;
+
+ const emailTemplate = PurchaseOrderEmail({
+ // @ts-expect-error TS2739 - TODO: fix type
+ company: company.data,
+ locale: locales?.[0] ?? "en-US",
+ purchaseOrder: purchaseOrder.data,
+ purchaseOrderLines: purchaseOrderLines.data ?? [],
+ purchaseOrderLocations: purchaseOrderLocations.data,
+ recipient: {
+ email: supplier.data.contact.email,
+ firstName: supplier.data.contact.firstName ?? undefined,
+ lastName: supplier.data.contact.lastName ?? undefined
+ },
+ sender: {
+ email: buyer.data.email,
+ firstName: buyer.data.firstName,
+ lastName: buyer.data.lastName
+ },
+ paymentTerms: paymentTerms.data
+ });
- if (!supplier.data.contact.email) {
- console.warn(
- `${logPrefix} supplier contact has no email — skipping send`,
- { supplierContactId: supplierContact }
- );
- }
- if (supplier.data.contact.email) {
- const emailTemplate = PurchaseOrderEmail({
- // @ts-expect-error TS2739 - TODO: fix type
- company: company.data,
- locale: locales?.[0] ?? "en-US",
- purchaseOrder: purchaseOrder.data,
- purchaseOrderLines: purchaseOrderLines.data ?? [],
- purchaseOrderLocations: purchaseOrderLocations.data,
- recipient: {
- email: supplier.data.contact.email,
- firstName: supplier.data.contact.firstName ?? undefined,
- lastName: supplier.data.contact.lastName ?? undefined
- },
- sender: {
- email: buyer.data.email,
- firstName: buyer.data.firstName,
- lastName: buyer.data.lastName
- },
- paymentTerms: paymentTerms.data
- });
+ const html = await renderAsync(emailTemplate);
+ const text = await renderAsync(emailTemplate, { plainText: true });
- const html = await renderAsync(emailTemplate);
- const text = await renderAsync(emailTemplate, { plainText: true });
-
- // Resolve cascaded attachments (Company + Supplier + Item + PO ad-hoc).
- // The freshly-uploaded PO PDF is in supplier-interaction/ and rides
- // along naturally as a `po`-source file in the cascade.
- const itemIds = Array.from(
- new Set(
- (purchaseOrderLines.data ?? [])
- .map((l) => l.itemId)
- .filter((id): id is string => !!id)
- )
- );
- const resolved = await getResolvedPoAttachments(serviceRole, {
- companyId,
- supplierId: purchaseOrder.data.supplierId ?? null,
- supplierInteractionId:
- purchaseOrder.data.supplierInteractionId ?? null,
- itemIds
- });
- console.log(`${logPrefix} resolved cascaded attachments`, {
- total: resolved.length,
- bySource: resolved.reduce<Record<string, number>>((acc, r) => {
- acc[r.source] = (acc[r.source] ?? 0) + 1;
- return acc;
- }, {})
- });
+ const attachments: Array<{ filename: string; path: string }> = [];
- // Enforce 25 MB total cap (PO PDF + cascaded attachments).
- const poPdfSizeKb = Math.round(file.byteLength / 1024);
- const cascadedSizeKb = resolved.reduce(
- (sum, r) => sum + (r.size ?? 0),
- 0
+ const interactionId = purchaseOrder.data.supplierInteractionId;
+ if (interactionId) {
+ const docs = await getSupplierInteractionDocuments(
+ serviceRole,
+ companyId,
+ interactionId
);
- console.log(`${logPrefix} size budget`, {
- poPdfSizeKb,
- cascadedSizeKb,
- totalKb: poPdfSizeKb + cascadedSizeKb,
- limitKb: PO_ATTACHMENT_TOTAL_LIMIT_KB
- });
- if (poPdfSizeKb + cascadedSizeKb > PO_ATTACHMENT_TOTAL_LIMIT_KB) {
- throw new Error(
- `Total attachments exceed ${PO_ATTACHMENT_TOTAL_LIMIT_KB / 1024} MB limit`
- );
+ for (const doc of docs) {
+ const storagePath = `${companyId}/supplier-interaction/${interactionId}/${doc.name}`;
+ const { data: signedUrlData } = await serviceRole.storage
+ .from("private")
+ .createSignedUrl(storagePath, 3600);
+ if (signedUrlData?.signedUrl) {
+ attachments.push({
+ filename: doc.name,
+ path: signedUrlData.signedUrl
+ });
+ }
}
+ }
- // Sign every cascaded attachment for the email job.
- const cascadedAttachments = (
- await Promise.all(
- resolved.map(async (r) => {
- const { data, error: signErr } = await serviceRole.storage
- .from("private")
- .createSignedUrl(r.path, 3600);
- if (signErr || !data?.signedUrl) {
- console.error(
- `${logPrefix} failed to sign cascaded attachment`,
- {
- source: r.source,
- name: r.name,
- path: r.path,
- error: signErr
- }
- );
- return null;
- }
- return { path: data.signedUrl, filename: r.name };
- })
- )
- ).filter((a): a is { path: string; filename: string } => a !== null);
- console.log(`${logPrefix} signed cascaded attachments`, {
- requested: resolved.length,
- successful: cascadedAttachments.length
- });
-
- const allAttachments = cascadedAttachments;
-
- const triggerPayload = {
- to: [buyer.data.email, supplier.data.contact.email],
- cc: ccSelections?.length ? ccSelections : undefined,
- from: buyer.data.email,
- subject: `Purchase Order ${purchaseOrder.data.purchaseOrderId} from ${company.data.name}`,
- html,
- text,
- attachments: allAttachments.length ? allAttachments : undefined,
- companyId
- };
-
- console.log(`${logPrefix} dispatching send-email`, {
- to: triggerPayload.to,
- cc: triggerPayload.cc,
- from: triggerPayload.from,
- subject: triggerPayload.subject,
- attachmentCount: allAttachments.length,
- attachmentNames: allAttachments.map((a) => a.filename),
- htmlLength: html.length,
- textLength: text.length
- });
+ const itemIds = Array.from(
+ new Set(
+ (purchaseOrderLines.data ?? [])
+ .map((l) => l.itemId)
+ .filter((id): id is string => !!id)
+ )
+ );
+ const defaults = await getDefaultAttachmentsForPO(serviceRole, {
+ companyId,
+ supplierId: purchaseOrder.data.supplierId ?? null,
+ itemIds
+ });
- try {
- const triggerResult = await trigger("send-email", triggerPayload);
- console.log(`${logPrefix} send-email dispatched`, {
- result: triggerResult
+ for (const r of defaults) {
+ const { data: signedUrlData } = await serviceRole.storage
+ .from("private")
+ .createSignedUrl(r.path, 3600);
+ if (signedUrlData?.signedUrl) {
+ attachments.push({
+ filename: r.name,
+ path: signedUrlData.signedUrl
});
- } catch (triggerErr) {
- console.error(`${logPrefix} trigger("send-email") threw`, {
- name: (triggerErr as Error)?.name,
- message: (triggerErr as Error)?.message,
- stack: (triggerErr as Error)?.stack
- });
- throw triggerErr;
}
}
- } catch (err) {
- console.error(`${logPrefix} email send failed`, {
- name: (err as Error)?.name,
- message: (err as Error)?.message,
- stack: (err as Error)?.stack,
- raw: err
+
+ const totalKb = attachments.length
+ ? Math.round(file.byteLength / 1024) +
+ defaults.reduce((sum, r) => sum + (r.size ?? 0), 0)
+ : 0;
+ if (totalKb > PO_EMAIL_ATTACHMENT_LIMIT_MB * 1024) {
+ throw new Error(
+ `Total attachments exceed ${PO_EMAIL_ATTACHMENT_LIMIT_MB} MB limit`
+ );
+ }
+
+ await trigger("send-email", {
+ to: [buyer.data.email, supplier.data.contact.email],
+ cc: ccSelections?.length ? ccSelections : undefined,
+ from: buyer.data.email,
+ subject: `Purchase Order ${purchaseOrder.data.purchaseOrderId} from ${company.data.name}`,
+ html,
+ text,
+ attachments: attachments.length ? attachments : undefined,
+ companyId
});
+ } catch (err) {
throw redirect(
path.to.purchaseOrder(orderId),
await flash(request, error(err, "Failed to send email"))
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx
index 2f5366006e..1c6176837c 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx
@@ -16,11 +16,11 @@ import { PanelProvider, ResizablePanels } from "~/components/Layout/Panels";
import { getPaymentTermsList } from "~/modules/accounting";
import { upsertDocument } from "~/modules/documents";
import {
+ getDefaultAttachmentsForPO,
getPurchaseOrder,
getPurchaseOrderDelivery,
getPurchaseOrderLines,
getPurchaseOrderLocations,
- getResolvedPoAttachments,
getSupplier,
getSupplierContact,
getSupplierInteraction,
@@ -432,12 +432,31 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
(lines.data ?? []).map((l) => l.itemId).filter((id): id is string => !!id)
)
);
- const resolvedAttachments = await getResolvedPoAttachments(serviceRole, {
- companyId,
- supplierId: purchaseOrder.data?.supplierId ?? null,
- supplierInteractionId: purchaseOrder.data?.supplierInteractionId ?? null,
- itemIds
- });
+ const supplierInteractionId = purchaseOrder.data?.supplierInteractionId;
+ const [defaultAttachments, adHocDocs] = await Promise.all([
+ getDefaultAttachmentsForPO(serviceRole, {
+ companyId,
+ supplierId: purchaseOrder.data?.supplierId ?? null,
+ itemIds
+ }),
+ supplierInteractionId
+ ? getSupplierInteractionDocuments(
+ serviceRole,
+ companyId,
+ supplierInteractionId
+ )
+ : Promise.resolve([])
+ ]);
+ const adHocAttachments = adHocDocs.map((d) => ({
+ source: "po" as const,
+ name: d.name,
+ size:
+ (d.metadata as { size?: number } | null | undefined)?.size != null
+ ? Math.round(((d.metadata as { size?: number }).size as number) / 1024)
+ : null,
+ path: `${companyId}/supplier-interaction/${supplierInteractionId}/${d.name}`
+ }));
+ const resolvedAttachments = [...defaultAttachments, ...adHocAttachments];
return {
purchaseOrder: purchaseOrder.data,
diff --git a/packages/database/supabase/migrations/20260525000100_location-state-optional.sql b/packages/database/supabase/migrations/20260525000100_location-state-optional.sql
deleted file mode 100644
index e9efc85f1d..0000000000
--- a/packages/database/supabase/migrations/20260525000100_location-state-optional.sql
+++ /dev/null
@@ -1,6 +0,0 @@
--- Make stateProvince optional on `location` to match the validator change.
--- Many countries (UK, IE, JP, most EU, SG) have no state concept, so this
--- column must accept NULL. The `company` and `address` tables already allow
--- NULL — only `location` had the NOT NULL constraint.
-
-ALTER TABLE "location" ALTER COLUMN "stateProvince" DROP NOT NULL;
diff --git a/packages/database/supabase/migrations/20260525000000_purchase-orders-view-buyer.sql b/packages/database/supabase/migrations/20260525120000_po-pdf-buyer-and-optional-state.sql
similarity index 81%
rename from packages/database/supabase/migrations/20260525000000_purchase-orders-view-buyer.sql
rename to packages/database/supabase/migrations/20260525120000_po-pdf-buyer-and-optional-state.sql
index d792859f51..ba176e2f5d 100644
--- a/packages/database/supabase/migrations/20260525000000_purchase-orders-view-buyer.sql
+++ b/packages/database/supabase/migrations/20260525120000_po-pdf-buyer-and-optional-state.sql
@@ -1,6 +1,11 @@
--- Expose the assignee and supplier-account-manager user details on the
--- purchaseOrders view so the PO PDF can pick a buyer contact in priority order:
--- assignee → supplier.accountManager → createdBy.
+-- Expose assignee + supplier.accountManager user details on the purchaseOrders
+-- view so the PO PDF can pick a buyer contact in priority order:
+-- assignee → supplier.accountManager → createdBy.
+-- And drop the NOT NULL on location.stateProvince — many countries (UK, IE,
+-- JP, most EU, SG) have no state concept. The `company` and `address` tables
+-- already allow NULL.
+
+ALTER TABLE "location" ALTER COLUMN "stateProvince" DROP NOT NULL;
DROP VIEW IF EXISTS "purchaseOrders";
CREATE OR REPLACE VIEW "purchaseOrders" WITH(SECURITY_INVOKER=true) AS
diff --git a/packages/documents/src/pdf/QuotePDF.tsx b/packages/documents/src/pdf/QuotePDF.tsx
index e73daba76d..a473c186d2 100644
--- a/packages/documents/src/pdf/QuotePDF.tsx
+++ b/packages/documents/src/pdf/QuotePDF.tsx
@@ -139,13 +139,6 @@ const QuotePDF = ({
const colWidth =
columnCount === 3 ? "w-1/3" : columnCount === 4 ? "w-1/4" : "w-1/5";
- // Summary row widths: amount sits under the Total column.
- // Total column = last colWidth (1/colCount) of the right 2/3 of the table.
- const summaryAmountPct =
- columnCount === 3 ? 2 / 9 : columnCount === 4 ? 1 / 6 : 2 / 15;
- const summaryAmountW = `w-[${(summaryAmountPct * 100).toFixed(2)}%]`;
- const summaryLabelW = `w-[${(100 - summaryAmountPct * 100).toFixed(2)}%]`;
-
const getMaxLeadTime = () => {
let maxLeadTime = 0;
for (const prices of Object.values(pricesByLine)) {
@@ -637,12 +630,10 @@ const QuotePDF = ({
{ backgroundColor: "rgba(249, 250, 251, 0.6)" }
]}
>
- <Text
- style={tw(`${summaryLabelW} text-right pr-3 text-gray-600`)}
- >
+ <Text style={tw(`w-5/6 text-right pr-3 text-gray-600`)}>
Subtotal ({currencyCode})
</Text>
- <Text style={tw(`${summaryAmountW} text-center text-gray-800`)}>
+ <Text style={tw(`w-1/6 text-center text-gray-800`)}>
{numberFormatter.format(getTotalSubtotal())}
</Text>
</View>
@@ -652,12 +643,10 @@ const QuotePDF = ({
{ backgroundColor: "rgba(249, 250, 251, 0.6)" }
]}
>
- <Text
- style={tw(`${summaryLabelW} text-right pr-3 text-gray-600`)}
- >
+ <Text style={tw(`w-5/6 text-right pr-3 text-gray-600`)}>
Shipping ({currencyCode})
</Text>
- <Text style={tw(`${summaryAmountW} text-center text-gray-800`)}>
+ <Text style={tw(`w-1/6 text-center text-gray-800`)}>
{numberFormatter.format(getTotalShipping())}
</Text>
</View>
@@ -668,12 +657,10 @@ const QuotePDF = ({
{ backgroundColor: "rgba(249, 250, 251, 0.6)" }
]}
>
- <Text
- style={tw(`${summaryLabelW} text-right pr-3 text-gray-600`)}
- >
+ <Text style={tw(`w-5/6 text-right pr-3 text-gray-600`)}>
Fees ({currencyCode})
</Text>
- <Text style={tw(`${summaryAmountW} text-center text-gray-800`)}>
+ <Text style={tw(`w-1/6 text-center text-gray-800`)}>
{numberFormatter.format(getTotalFees())}
</Text>
</View>
@@ -684,29 +671,19 @@ const QuotePDF = ({
{ backgroundColor: "rgba(249, 250, 251, 0.6)" }
]}
>
- <Text
- style={tw(`${summaryLabelW} text-right pr-3 text-gray-600`)}
- >
+ <Text style={tw(`w-5/6 text-right pr-3 text-gray-600`)}>
Taxes ({currencyCode})
</Text>
- <Text style={tw(`${summaryAmountW} text-center text-gray-800`)}>
+ <Text style={tw(`w-1/6 text-center text-gray-800`)}>
{numberFormatter.format(getTotalTaxes())}
</Text>
</View>
<View style={tw("h-[1px] bg-gray-200")} />
<View style={tw("flex flex-row py-2 px-3 text-[9px]")}>
- <Text
- style={tw(
- `${summaryLabelW} text-right pr-3 text-gray-800 font-bold`
- )}
- >
+ <Text style={tw(`w-5/6 text-right pr-3 text-gray-800 font-bold`)}>
Total ({currencyCode})
</Text>
- <Text
- style={tw(
- `${summaryAmountW} text-center text-gray-800 font-bold`
- )}
- >
+ <Text style={tw(`w-1/6 text-center text-gray-800 font-bold`)}>
{numberFormatter.format(getTotal())}
</Text>
</View>
diff --git a/packages/jobs/src/inngest/functions/notifications/send-email.ts b/packages/jobs/src/inngest/functions/notifications/send-email.ts
index 59b4e63143..e507602257 100644
--- a/packages/jobs/src/inngest/functions/notifications/send-email.ts
+++ b/packages/jobs/src/inngest/functions/notifications/send-email.ts
@@ -13,30 +13,9 @@ export const sendEmailFunction = inngest.createFunction(
async ({ event, step }) => {
const payload = event.data;
const serviceRole = getCarbonServiceRole();
- const jobLog = `[send-email job ${event.id ?? "?"}]`;
-
- console.log(`${jobLog} payload received`, {
- companyId: payload.companyId,
- from: payload.from,
- to: payload.to,
- cc: payload.cc,
- subject: payload.subject,
- attachmentCount: Array.isArray(payload.attachments)
- ? payload.attachments.length
- : 0,
- attachmentSpec: Array.isArray(payload.attachments)
- ? payload.attachments.map((a: any) => ({
- filename: a?.filename,
- hasPath: !!a?.path,
- hasContent: !!a?.content,
- pathPreview:
- typeof a?.path === "string" ? a.path.slice(0, 80) : undefined
- }))
- : undefined,
- htmlLength: typeof payload.html === "string" ? payload.html.length : 0,
- textLength: typeof payload.text === "string" ? payload.text.length : 0
- });
+ // Resend rejects the request if `to` or `cc` contain null/undefined
+ // entries, so strip falsy values regardless of what callers pass.
const sanitizeRecipients = (
value: string | string[] | undefined
): string | string[] | undefined => {
@@ -54,7 +33,6 @@ export const sendEmailFunction = inngest.createFunction(
const ccRecipients = sanitizeRecipients(payload.cc);
if (!toRecipients) {
- console.error(`${jobLog} aborting — no valid 'to' recipients`);
throw new NonRetriableError(
"send-email called without any valid `to` recipients"
);
@@ -95,24 +73,7 @@ export const sendEmailFunction = inngest.createFunction(
const parsedMetadata = EmailConfig.schema.safeParse(metadataWithProvider);
- console.log(`${jobLog} integration status`, {
- companyName,
- integrationActive,
- metadataParsed: parsedMetadata.success,
- provider:
- parsedMetadata.success && "provider" in parsedMetadata.data
- ? parsedMetadata.data.provider
- : null,
- validationIssues: parsedMetadata.success
- ? undefined
- : parsedMetadata.error.issues
- });
-
if (!parsedMetadata.success || !integrationActive) {
- console.error(`${jobLog} integration invalid or inactive — aborting`, {
- integrationActive,
- parseSuccess: parsedMetadata.success
- });
return { success: false, message: "Invalid or inactive integration" };
}
@@ -178,27 +139,10 @@ export const sendEmailFunction = inngest.createFunction(
attachments: payload.attachments
};
- console.log(`${jobLog} calling Resend`, {
- from: email.from,
- to: email.to,
- cc: email.cc,
- replyTo: email.reply_to,
- subject: email.subject,
- attachmentCount: Array.isArray(email.attachments)
- ? email.attachments.length
- : 0,
- apiKeyPresent: !!data.apiKey,
- apiKeyPrefix: data.apiKey ? `${data.apiKey.slice(0, 6)}...` : null
- });
-
+ console.info(`Resend Email Job`);
const response = await resend.emails.send(email);
if (response.error) {
- console.error(`${jobLog} Resend returned error`, {
- name: response.error.name,
- message: response.error.message,
- fullError: serializeError(response.error)
- });
if (response.error.name === "validation_error") {
throw new NonRetriableError(
`Resend validation error: ${serializeError(response.error)}`
@@ -207,7 +151,6 @@ export const sendEmailFunction = inngest.createFunction(
throw new Error(`Resend error: ${serializeError(response.error)}`);
}
- console.log(`${jobLog} Resend accepted`, { id: response.data?.id });
return response.data;
});
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index f7ccddcacc..1fc4e9ab56 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -506,7 +506,7 @@ msgstr "Preisregeln anwenden"
msgid "Apply To"
msgstr "Anwenden auf"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "Jede Bedingung muss erfüllt sein"
msgid "Everything from Starter"
msgstr "Alles aus dem Starter-Plan"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index e431a56e31..bb08d4acc7 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -203,9 +203,6 @@ msgstr "Accumulation Period (Weeks)"
msgid "Accumulation Period:"
msgstr "Accumulation Period:"
-msgid "Acknowledge & continue"
-msgstr "Acknowledge & continue"
-
msgid "Action Items"
msgstr "Action Items"
@@ -491,14 +488,26 @@ msgstr "API keys for programmatic access to your Carbon data."
msgid "Applies to"
msgstr "Applies to"
+msgid "Applies to all"
+msgstr "Applies to all"
+
+msgid "Applies to all items"
+msgstr "Applies to all items"
+
+msgid "Applies to all storage units"
+msgstr "Applies to all storage units"
+
+msgid "Applies to all work centers"
+msgstr "Applies to all work centers"
+
msgid "Apply pricing rules"
msgstr "Apply pricing rules"
msgid "Apply To"
msgstr "Apply To"
-msgid "Approaching 25 MB cap."
-msgstr "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
+msgstr "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgid "Approval Date"
msgstr "Approval Date"
@@ -886,6 +895,15 @@ msgstr "Ask anything"
msgid "Assembly:"
msgstr "Assembly:"
+msgid "Asset"
+msgstr "Asset"
+
+msgid "Asset Classes"
+msgstr "Asset Classes"
+
+msgid "Assets"
+msgstr "Assets"
+
msgid "Assign To"
msgstr "Assign To"
@@ -1190,6 +1208,9 @@ msgstr "Carbon Logo"
msgid "Carbon Value"
msgstr "Carbon Value"
+msgid "Cards"
+msgstr "Cards"
+
msgid "Carrier"
msgstr "Carrier"
@@ -1422,9 +1443,6 @@ msgstr "Configure how preventative maintenance dispatches are automatically gene
msgid "Configure Item"
msgstr "Configure Item"
-msgid "Configure Materials"
-msgstr "Configure Materials"
-
msgid "Configure notifications for when gauges go out of calibration."
msgstr "Configure notifications for when gauges go out of calibration."
@@ -1931,6 +1949,9 @@ msgstr "Custom Field"
msgid "Custom Fields"
msgstr "Custom Fields"
+msgid "Custom Rules"
+msgstr "Custom Rules"
+
msgid "Customer"
msgstr "Customer"
@@ -2415,6 +2436,9 @@ msgstr "Department Name"
msgid "Departments"
msgstr "Departments"
+msgid "Depreciation"
+msgstr "Depreciation"
+
msgid "Description"
msgstr "Description"
@@ -2794,6 +2818,9 @@ msgstr "Edit supplier process"
msgid "Edit Supplier Type"
msgstr "Edit Supplier Type"
+msgid "Edit the rule to remove the \"Applies to all\" flag"
+msgstr "Edit the rule to remove the \"Applies to all\" flag"
+
msgid "Edit Timecard"
msgstr "Edit Timecard"
@@ -2851,6 +2878,9 @@ msgstr "Employee Types"
msgid "Employees"
msgstr "Employees"
+msgid "Empty work centers"
+msgstr "Empty work centers"
+
msgid "Enable audit logging in settings to start tracking changes to your data."
msgstr "Enable audit logging in settings to start tracking changes to your data."
@@ -2881,6 +2911,9 @@ msgstr "Enable to allow shared workstation mode."
msgid "Enable to automatically post transactions to the general ledger."
msgstr "Enable to automatically post transactions to the general ledger."
+msgid "Enable to configure tax-specific depreciation methods on asset classes (e.g., MACRS, accelerated)."
+msgstr "Enable to configure tax-specific depreciation methods on asset classes (e.g., MACRS, accelerated)."
+
msgid "Enable to generate IDs and descriptions for raw materials."
msgstr "Enable to generate IDs and descriptions for raw materials."
@@ -2911,12 +2944,6 @@ msgstr "End Date"
msgid "End Time"
msgstr "End Time"
-msgid "Enforce constraints on receipts, shipments, transfers and job operations for this item."
-msgstr "Enforce constraints on receipts, shipments, transfers and job operations for this item."
-
-msgid "Enforce per-item validation across receipts, shipments, transfers and adjustments."
-msgstr "Enforce per-item validation across receipts, shipments, transfers and adjustments."
-
msgid "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
msgstr "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
@@ -3016,9 +3043,6 @@ msgstr "Error removing model from sales order line"
msgid "Error validating serial number"
msgstr "Error validating serial number"
-msgid "Errors"
-msgstr "Errors"
-
msgid "Escalation"
msgstr "Escalation"
@@ -3055,8 +3079,8 @@ msgstr "Every condition must match"
msgid "Everything from Starter"
msgstr "Everything from Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
-msgstr "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
+msgstr "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgid "Exchange Rate"
msgstr "Exchange Rate"
@@ -3457,6 +3481,9 @@ msgstr "Fetch"
msgid "Field"
msgstr "Field"
+msgid "Field info"
+msgstr "Field info"
+
msgid "Field Mapping"
msgstr "Field Mapping"
@@ -3537,6 +3564,12 @@ msgstr "Fiscal Years"
msgid "Fixed"
msgstr "Fixed"
+msgid "Fixed Asset"
+msgstr "Fixed Asset"
+
+msgid "Fixed Assets"
+msgstr "Fixed Assets"
+
msgid "Fixed Reorder"
msgstr "Fixed Reorder"
@@ -3792,6 +3825,9 @@ msgstr "Infrastructure"
msgid "Inherit From Materials"
msgstr "Inherit From Materials"
+msgid "Inherited from"
+msgstr "Inherited from"
+
msgid "Insert rows"
msgstr "Insert rows"
@@ -3993,9 +4029,6 @@ msgstr "Item ID"
msgid "Item Master"
msgstr "Item Master"
-msgid "Item Rules"
-msgstr "Item Rules"
-
msgid "Item Scope"
msgstr "Item Scope"
@@ -4229,6 +4262,9 @@ msgstr "Loading item details..."
msgid "Loading..."
msgstr "Loading..."
+msgid "Loading…"
+msgstr "Loading…"
+
msgid "Location"
msgstr "Location"
@@ -4355,6 +4391,9 @@ msgstr "Manage how shelf life is tracked, computed, and enforced across inventor
msgid "Manage Ownership"
msgstr "Manage Ownership"
+msgid "Manage rules"
+msgstr "Manage rules"
+
msgid "Manage Subscription"
msgstr "Manage Subscription"
@@ -4448,6 +4487,9 @@ msgstr "Material ID"
msgid "Material IDs"
msgstr "Material IDs"
+msgid "Material Properties"
+msgstr "Material Properties"
+
msgid "Material Shape"
msgstr "Material Shape"
@@ -5028,6 +5070,9 @@ msgstr "No files uploaded"
msgid "No Gauge Selected"
msgstr "No Gauge Selected"
+msgid "No grouped notifications"
+msgstr "No grouped notifications"
+
msgid "No groups assigned"
msgstr "No groups assigned"
@@ -5529,9 +5574,6 @@ msgstr "Pick a customer or customer type to view their pricing."
msgid "Pick a date or leave blank to clear it."
msgstr "Pick a date or leave blank to clear it."
-msgid "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
-msgstr "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
-
msgid "Pick List"
msgstr "Pick List"
@@ -6378,9 +6420,6 @@ msgstr "Rule applies to every item."
msgid "Rule Type"
msgstr "Rule Type"
-msgid "Rule Violation"
-msgstr "Rule Violation"
-
msgid "Rules"
msgstr "Rules"
@@ -6543,6 +6582,9 @@ msgstr "Scrap Reasons"
msgid "Search"
msgstr "Search"
+msgid "Search accounts..."
+msgstr "Search accounts..."
+
msgid "Search across your workspace..."
msgstr "Search across your workspace..."
@@ -6967,6 +7009,9 @@ msgstr "Sign in with Google"
msgid "Sign in with Outlook"
msgstr "Sign in with Outlook"
+msgid "Sign in with Passkey"
+msgstr "Sign in with Passkey"
+
msgid "Sign Out"
msgstr "Sign Out"
@@ -7168,6 +7213,9 @@ msgstr "Storage Types"
msgid "Storage Unit"
msgstr "Storage Unit"
+msgid "Storage unit rules"
+msgstr "Storage unit rules"
+
msgid "Storage Units"
msgstr "Storage Units"
@@ -7418,6 +7466,9 @@ msgstr "Tax"
msgid "Tax & Additional Costs"
msgstr "Tax & Additional Costs"
+msgid "Tax & Shipping"
+msgstr "Tax & Shipping"
+
msgid "Tax Amount"
msgstr "Tax Amount"
@@ -7572,6 +7623,11 @@ msgstr "This will overwrite the existing quote method"
msgid "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
msgstr "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
+#. placeholder {0}: routeData?.job?.jobId
+#. placeholder {1}: routeData?.job?.salesOrderReadableId
+msgid "This will remove {0}'s link to {1}. The job will no longer appear under the sales order and shipments won't find it."
+msgstr "This will remove {0}'s link to {1}. The job will no longer appear under the sales order and shipments won't find it."
+
msgid "This will replace all method materials of other revisions with this revision."
msgstr "This will replace all method materials of other revisions with this revision."
@@ -7713,6 +7769,12 @@ msgstr "Track every change to your orders, invoices, customers, and more."
msgid "Track every change to your orders, invoices, customers, suppliers, and more."
msgstr "Track every change to your orders, invoices, customers, suppliers, and more."
+msgid "Track tax depreciation separately"
+msgstr "Track tax depreciation separately"
+
+msgid "Track tax depreciation separately from book depreciation and automatically post deferred tax liability entries."
+msgstr "Track tax depreciation separately from book depreciation and automatically post deferred tax liability entries."
+
msgid "Track when batches or serials of this item expire."
msgstr "Track when batches or serials of this item expire."
@@ -7791,6 +7853,9 @@ msgstr "Trash"
msgid "Trial Balance"
msgstr "Trial Balance"
+msgid "Triggers"
+msgstr "Triggers"
+
msgid "Tuesday"
msgstr "Tuesday"
@@ -7821,6 +7886,9 @@ msgstr "Un-sampled entities will remain On Hold so you can keep inspecting and d
msgid "Unapproved Supplier"
msgstr "Unapproved Supplier"
+msgid "Unassign from parent unit to remove"
+msgstr "Unassign from parent unit to remove"
+
msgid "Unassign rule"
msgstr "Unassign rule"
@@ -7866,6 +7934,9 @@ msgstr "Unlimited Functional Support"
msgid "Unlink"
msgstr "Unlink"
+msgid "Unlink job from sales order?"
+msgstr "Unlink job from sales order?"
+
msgid "Unsupported source document type: {sourceDocument}"
msgstr "Unsupported source document type: {sourceDocument}"
@@ -7938,12 +8009,13 @@ msgstr "Upgrade"
msgid "Upgrade to Business"
msgstr "Upgrade to Business"
+#. placeholder {0}: targetCopy.noun
+msgid "Upgrade to unlock {0} rules"
+msgstr "Upgrade to unlock {0} rules"
+
msgid "Upgrade to unlock audit history"
msgstr "Upgrade to unlock audit history"
-msgid "Upgrade to unlock item rules"
-msgstr "Upgrade to unlock item rules"
-
msgid "Upload"
msgstr "Upload"
@@ -8045,6 +8117,9 @@ msgstr "Validating job..."
msgid "Value"
msgstr "Value"
+msgid "Value source by surface"
+msgstr "Value source by surface"
+
msgid "VAT Number"
msgstr "VAT Number"
@@ -8234,9 +8309,6 @@ msgstr "Warn when the person inspecting an inbound item is the same person who r
msgid "Warning"
msgstr "Warning"
-msgid "Warnings"
-msgstr "Warnings"
-
msgid "Watch full video"
msgstr "Watch full video"
@@ -8297,6 +8369,9 @@ msgstr "When a finished product's shelf life is set to Calculated, pick which co
msgid "When expired stock is used"
msgstr "When expired stock is used"
+msgid "When on, this rule fires for every target of its type. Assignment rows are ignored but preserved."
+msgstr "When on, this rule fires for every target of its type. Assignment rows are ignored but preserved."
+
msgid "Who Can Approve"
msgstr "Who Can Approve"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index d16c81032d..278c48442c 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -203,9 +203,6 @@ msgstr "Período de Acumulación (Semanas)"
msgid "Accumulation Period:"
msgstr "Período de Acumulación:"
-msgid "Acknowledge & continue"
-msgstr "Reconocer y continuar"
-
msgid "Action Items"
msgstr "Elementos de Acción"
@@ -491,13 +488,25 @@ msgstr "Claves API para acceso programático a tus datos de Carbon."
msgid "Applies to"
msgstr "Se aplica a"
+msgid "Applies to all"
+msgstr ""
+
+msgid "Applies to all items"
+msgstr ""
+
+msgid "Applies to all storage units"
+msgstr ""
+
+msgid "Applies to all work centers"
+msgstr ""
+
msgid "Apply pricing rules"
msgstr "Aplicar reglas de precios"
msgid "Apply To"
msgstr "Aplicar a"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -886,6 +895,15 @@ msgstr "Pregunta cualquier cosa"
msgid "Assembly:"
msgstr "Ensamblaje:"
+msgid "Asset"
+msgstr ""
+
+msgid "Asset Classes"
+msgstr ""
+
+msgid "Assets"
+msgstr ""
+
msgid "Assign To"
msgstr "Asignar a"
@@ -1190,6 +1208,9 @@ msgstr "Logo de Carbon"
msgid "Carbon Value"
msgstr "Valor de Carbon"
+msgid "Cards"
+msgstr ""
+
msgid "Carrier"
msgstr "Transportista"
@@ -1422,9 +1443,6 @@ msgstr "Configura cómo se generan automáticame
msgid "Configure Item"
msgstr "Configurar Artículo"
-msgid "Configure Materials"
-msgstr "Configurar Materiales"
-
msgid "Configure notifications for when gauges go out of calibration."
msgstr "Configura notificaciones para cuando los calibres se descalibren."
@@ -1931,6 +1949,9 @@ msgstr "Campo Personalizado"
msgid "Custom Fields"
msgstr "Campos Personalizados"
+msgid "Custom Rules"
+msgstr ""
+
msgid "Customer"
msgstr "Cliente"
@@ -2415,6 +2436,9 @@ msgstr "Nombre del Departamento"
msgid "Departments"
msgstr "Departamentos"
+msgid "Depreciation"
+msgstr ""
+
msgid "Description"
msgstr "Descripción"
@@ -2794,6 +2818,9 @@ msgstr "Editar proceso del proveedor"
msgid "Edit Supplier Type"
msgstr "Editar Tipo de Proveedor"
+msgid "Edit the rule to remove the \"Applies to all\" flag"
+msgstr ""
+
msgid "Edit Timecard"
msgstr "Editar Tarjeta de Tiempo"
@@ -2851,6 +2878,9 @@ msgstr "Tipos de Empleados"
msgid "Employees"
msgstr "Empleados"
+msgid "Empty work centers"
+msgstr ""
+
msgid "Enable audit logging in settings to start tracking changes to your data."
msgstr "Habilita el registro de auditoría en la configuración para comenzar a rastrear cambios en tus datos."
@@ -2881,6 +2911,9 @@ msgstr "Habilitar para permitir el modo de estación de trabajo
msgid "Enable to automatically post transactions to the general ledger."
msgstr "Habilitar para publicar automáticamente transacciones en el libro mayor."
+msgid "Enable to configure tax-specific depreciation methods on asset classes (e.g., MACRS, accelerated)."
+msgstr ""
+
msgid "Enable to generate IDs and descriptions for raw materials."
msgstr "Habilitar para generar IDs y descripciones para materias primas."
@@ -2911,12 +2944,6 @@ msgstr "Fecha de Fin"
msgid "End Time"
msgstr "Hora de Finalización"
-msgid "Enforce constraints on receipts, shipments, transfers and job operations for this item."
-msgstr "Aplicar restricciones en recibos, envíos, transferencias y operaciones de trabajo para este artículo."
-
-msgid "Enforce per-item validation across receipts, shipments, transfers and adjustments."
-msgstr "Aplicar validación por artículo en recibos, envíos, transferencias y ajustes."
-
msgid "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
msgstr "Aplicar validación y directrices por artículo en recibos, envíos, transferencias y ajustes."
@@ -3016,9 +3043,6 @@ msgstr "Error al eliminar el modelo de la línea de orden de ven
msgid "Error validating serial number"
msgstr "Error validando número de serie"
-msgid "Errors"
-msgstr "Errores"
-
msgid "Escalation"
msgstr "Escalada"
@@ -3055,7 +3079,7 @@ msgstr "Todas las condiciones deben coincidir"
msgid "Everything from Starter"
msgstr "Todo de Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
@@ -3457,6 +3481,9 @@ msgstr "Obtener"
msgid "Field"
msgstr "Campo"
+msgid "Field info"
+msgstr ""
+
msgid "Field Mapping"
msgstr "Mapeo de campos"
@@ -3537,6 +3564,12 @@ msgstr "Años Fiscales"
msgid "Fixed"
msgstr "Fijo"
+msgid "Fixed Asset"
+msgstr ""
+
+msgid "Fixed Assets"
+msgstr ""
+
msgid "Fixed Reorder"
msgstr "Reorden Fijo"
@@ -3792,6 +3825,9 @@ msgstr "Infraestructura"
msgid "Inherit From Materials"
msgstr "Heredar de Materiales"
+msgid "Inherited from"
+msgstr ""
+
msgid "Insert rows"
msgstr "Insertar filas"
@@ -3993,9 +4029,6 @@ msgstr "ID de Artículo"
msgid "Item Master"
msgstr "Maestro de Artículos"
-msgid "Item Rules"
-msgstr "Reglas de Artículos"
-
msgid "Item Scope"
msgstr "Alcance de Artículos"
@@ -4229,6 +4262,9 @@ msgstr "Cargando detalles del artículo..."
msgid "Loading..."
msgstr "Cargando..."
+msgid "Loading…"
+msgstr ""
+
msgid "Location"
msgstr "Ubicación"
@@ -4355,6 +4391,9 @@ msgstr "Administra cómo se rastrea, calcula y aplica la vida Ã
msgid "Manage Ownership"
msgstr "Gestionar Propiedad"
+msgid "Manage rules"
+msgstr ""
+
msgid "Manage Subscription"
msgstr "Administrar Suscripción"
@@ -4448,6 +4487,9 @@ msgstr "ID de Material"
msgid "Material IDs"
msgstr "IDs de Material"
+msgid "Material Properties"
+msgstr ""
+
msgid "Material Shape"
msgstr "Forma de Material"
@@ -5028,6 +5070,9 @@ msgstr "No hay archivos cargados"
msgid "No Gauge Selected"
msgstr "Sin calibrador seleccionado"
+msgid "No grouped notifications"
+msgstr ""
+
msgid "No groups assigned"
msgstr "No hay grupos asignados"
@@ -5529,9 +5574,6 @@ msgstr "Selecciona un cliente o tipo de cliente para ver sus precios."
msgid "Pick a date or leave blank to clear it."
msgstr "Elige una fecha o déjala en blanco para borrarla."
-msgid "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
-msgstr "Elige una regla existente de la biblioteca o crea una nueva para comenzar a aplicar restricciones en este artículo."
-
msgid "Pick List"
msgstr "Lista de Picking"
@@ -6378,9 +6420,6 @@ msgstr "La regla se aplica a todos los artículos."
msgid "Rule Type"
msgstr "Tipo de Regla"
-msgid "Rule Violation"
-msgstr "Violación de regla"
-
msgid "Rules"
msgstr "Reglas"
@@ -6543,6 +6582,9 @@ msgstr "Razones de Rechazo"
msgid "Search"
msgstr "Buscar"
+msgid "Search accounts..."
+msgstr ""
+
msgid "Search across your workspace..."
msgstr "Buscar en tu espacio de trabajo..."
@@ -6967,6 +7009,9 @@ msgstr "Iniciar sesión con Google"
msgid "Sign in with Outlook"
msgstr "Iniciar sesión con Outlook"
+msgid "Sign in with Passkey"
+msgstr ""
+
msgid "Sign Out"
msgstr "Cerrar sesión"
@@ -7168,6 +7213,9 @@ msgstr "Tipos de Almacenamiento"
msgid "Storage Unit"
msgstr "Unidad de Almacenamiento"
+msgid "Storage unit rules"
+msgstr ""
+
msgid "Storage Units"
msgstr "Unidades de Almacenamiento"
@@ -7418,6 +7466,9 @@ msgstr "Impuesto"
msgid "Tax & Additional Costs"
msgstr "Impuestos y Costos Adicionales"
+msgid "Tax & Shipping"
+msgstr ""
+
msgid "Tax Amount"
msgstr "Monto de Impuesto"
@@ -7572,6 +7623,11 @@ msgstr "Esto sobrescribirá el método de cotiza
msgid "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
msgstr "Esto recalculará el costo unitario del método de fabricación activo basándose en la lista de materiales y procesos utilizando el tamaño de lote. El costo actual será sobrescrito. ¿Deseas continuar?"
+#. placeholder {0}: routeData?.job?.jobId
+#. placeholder {1}: routeData?.job?.salesOrderReadableId
+msgid "This will remove {0}'s link to {1}. The job will no longer appear under the sales order and shipments won't find it."
+msgstr ""
+
msgid "This will replace all method materials of other revisions with this revision."
msgstr "Esto reemplazará todos los materiales de método de otras revisiones con esta revisión."
@@ -7713,6 +7769,12 @@ msgstr "Realiza un seguimiento de cada cambio en tus pedidos, facturas, clientes
msgid "Track every change to your orders, invoices, customers, suppliers, and more."
msgstr "Realiza un seguimiento de cada cambio en tus pedidos, facturas, clientes, proveedores y más."
+msgid "Track tax depreciation separately"
+msgstr ""
+
+msgid "Track tax depreciation separately from book depreciation and automatically post deferred tax liability entries."
+msgstr ""
+
msgid "Track when batches or serials of this item expire."
msgstr "Realiza un seguimiento de cuándo vencen los lotes o números de serie de este artículo."
@@ -7791,6 +7853,9 @@ msgstr "Papelera"
msgid "Trial Balance"
msgstr "Balance de Comprobación"
+msgid "Triggers"
+msgstr ""
+
msgid "Tuesday"
msgstr "Martes"
@@ -7821,6 +7886,9 @@ msgstr "Las entidades no muestreadas permanecerán En Espera par
msgid "Unapproved Supplier"
msgstr "Proveedor No Aprobado"
+msgid "Unassign from parent unit to remove"
+msgstr ""
+
msgid "Unassign rule"
msgstr "Desasignar regla"
@@ -7866,6 +7934,9 @@ msgstr "Soporte Funcional Ilimitado"
msgid "Unlink"
msgstr "Desenlazar"
+msgid "Unlink job from sales order?"
+msgstr ""
+
msgid "Unsupported source document type: {sourceDocument}"
msgstr "Tipo de documento de origen no compatible: {sourceDocument}"
@@ -7938,12 +8009,13 @@ msgstr "Actualizar"
msgid "Upgrade to Business"
msgstr "Actualizar a Business"
+#. placeholder {0}: targetCopy.noun
+msgid "Upgrade to unlock {0} rules"
+msgstr ""
+
msgid "Upgrade to unlock audit history"
msgstr "Actualizar para desbloquear el historial de auditoría"
-msgid "Upgrade to unlock item rules"
-msgstr "Actualizar para desbloquear reglas de artículos"
-
msgid "Upload"
msgstr "Cargar"
@@ -8045,6 +8117,9 @@ msgstr "Validando trabajo..."
msgid "Value"
msgstr "Valor"
+msgid "Value source by surface"
+msgstr ""
+
msgid "VAT Number"
msgstr "Número de IVA"
@@ -8234,9 +8309,6 @@ msgstr "Advertir cuando la persona que inspecciona un artículo
msgid "Warning"
msgstr "Advertencia"
-msgid "Warnings"
-msgstr "Advertencias"
-
msgid "Watch full video"
msgstr "Ver video completo"
@@ -8297,6 +8369,9 @@ msgstr "Cuando la vida útil de un producto terminado se estable
msgid "When expired stock is used"
msgstr "Cuando se utiliza stock vencido"
+msgid "When on, this rule fires for every target of its type. Assignment rows are ignored but preserved."
+msgstr ""
+
msgid "Who Can Approve"
msgstr "Quién Puede Aprobar"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index a81fce52ff..018da3e95d 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -203,9 +203,6 @@ msgstr "Période d'accumulation (semaines)"
msgid "Accumulation Period:"
msgstr "Période d'accumulation :"
-msgid "Acknowledge & continue"
-msgstr "Reconnaître et continuer"
-
msgid "Action Items"
msgstr "Éléments d'action"
@@ -491,13 +488,25 @@ msgstr "Clés API pour un accès programmatique à vos données Carbon."
msgid "Applies to"
msgstr "S'applique à"
+msgid "Applies to all"
+msgstr ""
+
+msgid "Applies to all items"
+msgstr ""
+
+msgid "Applies to all storage units"
+msgstr ""
+
+msgid "Applies to all work centers"
+msgstr ""
+
msgid "Apply pricing rules"
msgstr "Appliquer les règles de tarification"
msgid "Apply To"
msgstr "Appliquer à"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -886,6 +895,15 @@ msgstr "Demandez n'importe quoi"
msgid "Assembly:"
msgstr "Assemblage :"
+msgid "Asset"
+msgstr ""
+
+msgid "Asset Classes"
+msgstr ""
+
+msgid "Assets"
+msgstr ""
+
msgid "Assign To"
msgstr "Assigner à"
@@ -1190,6 +1208,9 @@ msgstr "Logo Carbon"
msgid "Carbon Value"
msgstr "Valeur Carbon"
+msgid "Cards"
+msgstr ""
+
msgid "Carrier"
msgstr "Transporteur"
@@ -1422,9 +1443,6 @@ msgstr "Configurez la façon dont les ordres de travail de maint
msgid "Configure Item"
msgstr "Configurer l'article"
-msgid "Configure Materials"
-msgstr "Configurer les matériaux"
-
msgid "Configure notifications for when gauges go out of calibration."
msgstr "Configurez les notifications pour quand les jauges sortent de l'étalonnage."
@@ -1931,6 +1949,9 @@ msgstr "Champ personnalisé"
msgid "Custom Fields"
msgstr "Champs personnalisés"
+msgid "Custom Rules"
+msgstr ""
+
msgid "Customer"
msgstr "Client"
@@ -2415,6 +2436,9 @@ msgstr "Nom du département"
msgid "Departments"
msgstr "Départements"
+msgid "Depreciation"
+msgstr ""
+
msgid "Description"
msgstr "Description"
@@ -2794,6 +2818,9 @@ msgstr "Modifier le processus du fournisseur"
msgid "Edit Supplier Type"
msgstr "Modifier le type de fournisseur"
+msgid "Edit the rule to remove the \"Applies to all\" flag"
+msgstr ""
+
msgid "Edit Timecard"
msgstr "Modifier la feuille de temps"
@@ -2851,6 +2878,9 @@ msgstr "Types d'employés"
msgid "Employees"
msgstr "Employés"
+msgid "Empty work centers"
+msgstr ""
+
msgid "Enable audit logging in settings to start tracking changes to your data."
msgstr "Activez la journalisation d'audit dans les paramètres pour commencer à suivre les modifications apportées à vos données."
@@ -2881,6 +2911,9 @@ msgstr "Activez pour autoriser le mode poste de travail partagé
msgid "Enable to automatically post transactions to the general ledger."
msgstr "Activez pour publier automatiquement les transactions dans le grand livre."
+msgid "Enable to configure tax-specific depreciation methods on asset classes (e.g., MACRS, accelerated)."
+msgstr ""
+
msgid "Enable to generate IDs and descriptions for raw materials."
msgstr "Activez pour générer des identifiants et des descriptions pour les matières premières."
@@ -2911,12 +2944,6 @@ msgstr "Date de fin"
msgid "End Time"
msgstr "Heure de fin"
-msgid "Enforce constraints on receipts, shipments, transfers and job operations for this item."
-msgstr "Appliquer des contraintes sur les reçus, les expéditions, les transferts et les opérations de travail pour cet article."
-
-msgid "Enforce per-item validation across receipts, shipments, transfers and adjustments."
-msgstr "Appliquer la validation par article sur les reçus, les expéditions, les transferts et les ajustements."
-
msgid "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
msgstr "Appliquer la validation et les directives par article dans les reçus, les expéditions, les transferts et les ajustements."
@@ -3016,9 +3043,6 @@ msgstr "Erreur lors de la suppression du modèle de la ligne de
msgid "Error validating serial number"
msgstr "Erreur lors de la validation du numéro de série"
-msgid "Errors"
-msgstr "Erreurs"
-
msgid "Escalation"
msgstr "Escalade"
@@ -3055,7 +3079,7 @@ msgstr "Chaque condition doit correspondre"
msgid "Everything from Starter"
msgstr "Tout de Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
@@ -3457,6 +3481,9 @@ msgstr "Récupérer"
msgid "Field"
msgstr "Champ"
+msgid "Field info"
+msgstr ""
+
msgid "Field Mapping"
msgstr "Mappage des champs"
@@ -3537,6 +3564,12 @@ msgstr "Exercices fiscaux"
msgid "Fixed"
msgstr "Fixe"
+msgid "Fixed Asset"
+msgstr ""
+
+msgid "Fixed Assets"
+msgstr ""
+
msgid "Fixed Reorder"
msgstr "Réapprovisionnement Fixe"
@@ -3792,6 +3825,9 @@ msgstr "Infrastructure"
msgid "Inherit From Materials"
msgstr "Hériter des matériaux"
+msgid "Inherited from"
+msgstr ""
+
msgid "Insert rows"
msgstr "Insérer des lignes"
@@ -3993,9 +4029,6 @@ msgstr "ID Article"
msgid "Item Master"
msgstr "Maître d'article"
-msgid "Item Rules"
-msgstr "Règles d'articles"
-
msgid "Item Scope"
msgstr "Portée des articles"
@@ -4229,6 +4262,9 @@ msgstr "Chargement des détails de l'article..."
msgid "Loading..."
msgstr "Chargement..."
+msgid "Loading…"
+msgstr ""
+
msgid "Location"
msgstr "Emplacement"
@@ -4355,6 +4391,9 @@ msgstr "Gérez le suivi, le calcul et l'application de la durÃ
msgid "Manage Ownership"
msgstr "Gérer la propriété"
+msgid "Manage rules"
+msgstr ""
+
msgid "Manage Subscription"
msgstr "Gérer l'abonnement"
@@ -4448,6 +4487,9 @@ msgstr "ID Matériau"
msgid "Material IDs"
msgstr "IDs de matériau"
+msgid "Material Properties"
+msgstr ""
+
msgid "Material Shape"
msgstr "Forme de matériau"
@@ -5028,6 +5070,9 @@ msgstr "Aucun fichier téléchargÃÂ
msgid "No Gauge Selected"
msgstr "Aucune jauge sélectionnée"
+msgid "No grouped notifications"
+msgstr ""
+
msgid "No groups assigned"
msgstr "Aucun groupe assigné"
@@ -5529,9 +5574,6 @@ msgstr "Sélectionnez un client ou un type de client pour affich
msgid "Pick a date or leave blank to clear it."
msgstr "Choisissez une date ou laissez vide pour l'effacer."
-msgid "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
-msgstr "Choisissez une règle existante dans la bibliothèque ou créez-en une nouvelle pour commencer à appliquer des contraintes sur cet article."
-
msgid "Pick List"
msgstr "Liste de prélèvement"
@@ -6378,9 +6420,6 @@ msgstr "La règle s'applique à chaque article."
msgid "Rule Type"
msgstr "Type de règle"
-msgid "Rule Violation"
-msgstr "Violation de règle"
-
msgid "Rules"
msgstr "Règles"
@@ -6543,6 +6582,9 @@ msgstr "Raisons de rebut"
msgid "Search"
msgstr "Rechercher"
+msgid "Search accounts..."
+msgstr ""
+
msgid "Search across your workspace..."
msgstr "Rechercher dans votre espace de travail..."
@@ -6967,6 +7009,9 @@ msgstr "Se connecter avec Google"
msgid "Sign in with Outlook"
msgstr "Se connecter avec Outlook"
+msgid "Sign in with Passkey"
+msgstr ""
+
msgid "Sign Out"
msgstr "Se déconnecter"
@@ -7168,6 +7213,9 @@ msgstr "Types de stockage"
msgid "Storage Unit"
msgstr "Unité de stockage"
+msgid "Storage unit rules"
+msgstr ""
+
msgid "Storage Units"
msgstr "Unités de stockage"
@@ -7418,6 +7466,9 @@ msgstr "Taxe"
msgid "Tax & Additional Costs"
msgstr "Taxe et frais supplémentaires"
+msgid "Tax & Shipping"
+msgstr ""
+
msgid "Tax Amount"
msgstr "Montant de la taxe"
@@ -7572,6 +7623,11 @@ msgstr "Cela remplacera la méthode de devis existante"
msgid "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
msgstr "Cela recalculera le coût unitaire à partir de la nomenclature et des processus de la méthode de fabrication active en utilisant la taille du lot. Le coût actuel sera remplacé. Voulez-vous continuer ?"
+#. placeholder {0}: routeData?.job?.jobId
+#. placeholder {1}: routeData?.job?.salesOrderReadableId
+msgid "This will remove {0}'s link to {1}. The job will no longer appear under the sales order and shipments won't find it."
+msgstr ""
+
msgid "This will replace all method materials of other revisions with this revision."
msgstr "Cela remplacera tous les matériaux de méthode des autres révisions par cette révision."
@@ -7713,6 +7769,12 @@ msgstr "Suivez chaque modification de vos commandes, factures, clients et bien p
msgid "Track every change to your orders, invoices, customers, suppliers, and more."
msgstr "Suivez chaque modification apportée à vos commandes, factures, clients, fournisseurs et bien d'autres."
+msgid "Track tax depreciation separately"
+msgstr ""
+
+msgid "Track tax depreciation separately from book depreciation and automatically post deferred tax liability entries."
+msgstr ""
+
msgid "Track when batches or serials of this item expire."
msgstr "Suivez l'expiration des lots ou numéros de série de cet article."
@@ -7791,6 +7853,9 @@ msgstr "Corbeille"
msgid "Trial Balance"
msgstr "Balance de vérification"
+msgid "Triggers"
+msgstr ""
+
msgid "Tuesday"
msgstr "Mardi"
@@ -7821,6 +7886,9 @@ msgstr "Les entités non échantillonnÃ
msgid "Unapproved Supplier"
msgstr "Fournisseur non approuvé"
+msgid "Unassign from parent unit to remove"
+msgstr ""
+
msgid "Unassign rule"
msgstr "Retirer la règle"
@@ -7866,6 +7934,9 @@ msgstr "Support fonctionnel illimité"
msgid "Unlink"
msgstr "Dissocier"
+msgid "Unlink job from sales order?"
+msgstr ""
+
msgid "Unsupported source document type: {sourceDocument}"
msgstr "Type de document source non pris en charge : {sourceDocument}"
@@ -7938,12 +8009,13 @@ msgstr "Mettre à niveau"
msgid "Upgrade to Business"
msgstr "Passer à Business"
+#. placeholder {0}: targetCopy.noun
+msgid "Upgrade to unlock {0} rules"
+msgstr ""
+
msgid "Upgrade to unlock audit history"
msgstr "Passez à la version supérieure pour déverrouiller l'historique d'audit"
-msgid "Upgrade to unlock item rules"
-msgstr "Passer à la version supérieure pour déverrouiller les règles d'article"
-
msgid "Upload"
msgstr "Télécharger"
@@ -8045,6 +8117,9 @@ msgstr "Validation du travail en cours..."
msgid "Value"
msgstr "Valeur"
+msgid "Value source by surface"
+msgstr ""
+
msgid "VAT Number"
msgstr "Numéro de TVA"
@@ -8234,9 +8309,6 @@ msgstr "Avertir lorsque la personne inspectant un article entrant est la mÃÆ
msgid "Warning"
msgstr "Avertissement"
-msgid "Warnings"
-msgstr "Avertissements"
-
msgid "Watch full video"
msgstr "Regarder la vidéo complète"
@@ -8297,6 +8369,9 @@ msgstr "Lorsque la durée de vie d'un produit fini est dÃÆ
msgid "When expired stock is used"
msgstr "Lorsque du stock expiré est utilisé"
+msgid "When on, this rule fires for every target of its type. Assignment rows are ignored but preserved."
+msgstr ""
+
msgid "Who Can Approve"
msgstr "Qui peut approuver"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index 87329c1f80..3bf19a71c0 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -506,7 +506,7 @@ msgstr "मूल्य निर्धारण नियम लागू क
msgid "Apply To"
msgstr "लागू करें"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "हर शर्त मेल खानी चाहिए"
msgid "Everything from Starter"
msgstr "स्टार्टर से सब कुछ"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index ce2556e1f5..be8bc008ed 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -203,9 +203,6 @@ msgstr "Periodo di Accumulo (Settimane)"
msgid "Accumulation Period:"
msgstr "Periodo di Accumulo:"
-msgid "Acknowledge & continue"
-msgstr "Riconosci e continua"
-
msgid "Action Items"
msgstr "Elementi di azione"
@@ -491,13 +488,25 @@ msgstr "Chiavi API per l'accesso programmatico ai tuoi dati Carbon."
msgid "Applies to"
msgstr "Si applica a"
+msgid "Applies to all"
+msgstr ""
+
+msgid "Applies to all items"
+msgstr ""
+
+msgid "Applies to all storage units"
+msgstr ""
+
+msgid "Applies to all work centers"
+msgstr ""
+
msgid "Apply pricing rules"
msgstr "Applica regole di prezzo"
msgid "Apply To"
msgstr "Applica a"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -886,6 +895,15 @@ msgstr "Chiedi qualsiasi cosa"
msgid "Assembly:"
msgstr "Assieme:"
+msgid "Asset"
+msgstr ""
+
+msgid "Asset Classes"
+msgstr ""
+
+msgid "Assets"
+msgstr ""
+
msgid "Assign To"
msgstr "Assegna a"
@@ -1190,6 +1208,9 @@ msgstr "Logo Carbon"
msgid "Carbon Value"
msgstr "Valore Carbon"
+msgid "Cards"
+msgstr ""
+
msgid "Carrier"
msgstr "Vettore"
@@ -1422,9 +1443,6 @@ msgstr "Configura come i dispatches di manutenzione preventiva vengono generati
msgid "Configure Item"
msgstr "Configura Articolo"
-msgid "Configure Materials"
-msgstr "Configura Materiali"
-
msgid "Configure notifications for when gauges go out of calibration."
msgstr "Configura le notifiche per quando i calibri escono dalla calibrazione."
@@ -1931,6 +1949,9 @@ msgstr "Campo Personalizzato"
msgid "Custom Fields"
msgstr "Campi Personalizzati"
+msgid "Custom Rules"
+msgstr ""
+
msgid "Customer"
msgstr "Cliente"
@@ -2415,6 +2436,9 @@ msgstr "Nome Dipartimento"
msgid "Departments"
msgstr "Reparti"
+msgid "Depreciation"
+msgstr ""
+
msgid "Description"
msgstr "Descrizione"
@@ -2794,6 +2818,9 @@ msgstr "Modifica processo fornitore"
msgid "Edit Supplier Type"
msgstr "Modifica Tipo Fornitore"
+msgid "Edit the rule to remove the \"Applies to all\" flag"
+msgstr ""
+
msgid "Edit Timecard"
msgstr "Modifica Scheda Orario"
@@ -2851,6 +2878,9 @@ msgstr "Tipi di Dipendenti"
msgid "Employees"
msgstr "Dipendenti"
+msgid "Empty work centers"
+msgstr ""
+
msgid "Enable audit logging in settings to start tracking changes to your data."
msgstr "Abilita la registrazione di audit nelle impostazioni per iniziare a tracciare le modifiche ai tuoi dati."
@@ -2881,6 +2911,9 @@ msgstr "Abilita per consentire la modalità workstation condivis
msgid "Enable to automatically post transactions to the general ledger."
msgstr "Abilita per registrare automaticamente le transazioni nella contabilità generale."
+msgid "Enable to configure tax-specific depreciation methods on asset classes (e.g., MACRS, accelerated)."
+msgstr ""
+
msgid "Enable to generate IDs and descriptions for raw materials."
msgstr "Abilita per generare ID e descrizioni per le materie prime."
@@ -2911,12 +2944,6 @@ msgstr "Data di fine"
msgid "End Time"
msgstr "Ora di fine"
-msgid "Enforce constraints on receipts, shipments, transfers and job operations for this item."
-msgstr "Applica vincoli su ricevute, spedizioni, trasferimenti e operazioni di lavoro per questo articolo."
-
-msgid "Enforce per-item validation across receipts, shipments, transfers and adjustments."
-msgstr "Applica la convalida per articolo su ricevute, spedizioni, trasferimenti e rettifiche."
-
msgid "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
msgstr "Applica la convalida per articolo e le linee guida su ricevute, spedizioni, trasferimenti e rettifiche."
@@ -3016,9 +3043,6 @@ msgstr "Errore nella rimozione del modello dalla riga dell'ordine di vendita"
msgid "Error validating serial number"
msgstr "Errore durante la convalida del numero di serie"
-msgid "Errors"
-msgstr "Errori"
-
msgid "Escalation"
msgstr "Escalation"
@@ -3055,7 +3079,7 @@ msgstr "Ogni condizione deve corrispondere"
msgid "Everything from Starter"
msgstr "Tutto da Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
@@ -3457,6 +3481,9 @@ msgstr "Recupera"
msgid "Field"
msgstr "Campo"
+msgid "Field info"
+msgstr ""
+
msgid "Field Mapping"
msgstr "Mappatura campi"
@@ -3537,6 +3564,12 @@ msgstr "Anni Fiscali"
msgid "Fixed"
msgstr "Fisso"
+msgid "Fixed Asset"
+msgstr ""
+
+msgid "Fixed Assets"
+msgstr ""
+
msgid "Fixed Reorder"
msgstr "Riordino Fisso"
@@ -3792,6 +3825,9 @@ msgstr "Infrastruttura"
msgid "Inherit From Materials"
msgstr "Eredita dai Materiali"
+msgid "Inherited from"
+msgstr ""
+
msgid "Insert rows"
msgstr "Inserisci righe"
@@ -3993,9 +4029,6 @@ msgstr "ID Articolo"
msgid "Item Master"
msgstr "Anagrafica Articolo"
-msgid "Item Rules"
-msgstr "Regole Articolo"
-
msgid "Item Scope"
msgstr "Ambito Articolo"
@@ -4229,6 +4262,9 @@ msgstr "Caricamento dettagli articolo..."
msgid "Loading..."
msgstr "Caricamento..."
+msgid "Loading…"
+msgstr ""
+
msgid "Location"
msgstr "Ubicazione"
@@ -4355,6 +4391,9 @@ msgstr "Gestisci come la durata di conservazione viene tracciata, calcolata e ap
msgid "Manage Ownership"
msgstr "Gestisci Proprietà"
+msgid "Manage rules"
+msgstr ""
+
msgid "Manage Subscription"
msgstr "Gestisci Abbonamento"
@@ -4448,6 +4487,9 @@ msgstr "ID Materiale"
msgid "Material IDs"
msgstr "ID Materiali"
+msgid "Material Properties"
+msgstr ""
+
msgid "Material Shape"
msgstr "Forma Materiale"
@@ -5028,6 +5070,9 @@ msgstr "Nessun file caricato"
msgid "No Gauge Selected"
msgstr "Nessun Calibro Selezionato"
+msgid "No grouped notifications"
+msgstr ""
+
msgid "No groups assigned"
msgstr "Nessun gruppo assegnato"
@@ -5529,9 +5574,6 @@ msgstr "Seleziona un cliente o un tipo di cliente per visualizzare i loro prezzi
msgid "Pick a date or leave blank to clear it."
msgstr "Scegli una data o lascia vuoto per cancellarla."
-msgid "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
-msgstr "Seleziona una regola esistente dalla libreria o creane una nuova per iniziare a applicare vincoli su questo articolo."
-
msgid "Pick List"
msgstr "Elenco di prelievo"
@@ -6378,9 +6420,6 @@ msgstr "La regola si applica a ogni articolo."
msgid "Rule Type"
msgstr "Tipo di Regola"
-msgid "Rule Violation"
-msgstr "Violazione della regola"
-
msgid "Rules"
msgstr "Regole"
@@ -6543,6 +6582,9 @@ msgstr "Motivi di Scarto"
msgid "Search"
msgstr "Cerca"
+msgid "Search accounts..."
+msgstr ""
+
msgid "Search across your workspace..."
msgstr "Cerca nel tuo workspace..."
@@ -6967,6 +7009,9 @@ msgstr "Accedi con Google"
msgid "Sign in with Outlook"
msgstr "Accedi con Outlook"
+msgid "Sign in with Passkey"
+msgstr ""
+
msgid "Sign Out"
msgstr "Esci"
@@ -7168,6 +7213,9 @@ msgstr "Tipi di Archiviazione"
msgid "Storage Unit"
msgstr "Unità di Stoccaggio"
+msgid "Storage unit rules"
+msgstr ""
+
msgid "Storage Units"
msgstr "Unità di Stoccaggio"
@@ -7418,6 +7466,9 @@ msgstr "Imposta"
msgid "Tax & Additional Costs"
msgstr "Tasse e costi aggiuntivi"
+msgid "Tax & Shipping"
+msgstr ""
+
msgid "Tax Amount"
msgstr "Importo Imposta"
@@ -7572,6 +7623,11 @@ msgstr "Questo sovrascriverà il metodo di preventivo esistente"
msgid "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
msgstr "Questo ricalcolerà il costo unitario dal distinta base e dai processi del metodo di produzione attivo utilizzando la dimensione del lotto. Il costo attuale verrà sovrascritto. Vuoi continuare?"
+#. placeholder {0}: routeData?.job?.jobId
+#. placeholder {1}: routeData?.job?.salesOrderReadableId
+msgid "This will remove {0}'s link to {1}. The job will no longer appear under the sales order and shipments won't find it."
+msgstr ""
+
msgid "This will replace all method materials of other revisions with this revision."
msgstr "Questo sostituirà tutti i materiali del metodo di altre revisioni con questa revisione."
@@ -7713,6 +7769,12 @@ msgstr "Traccia ogni modifica ai tuoi ordini, fatture, clienti e altro ancora."
msgid "Track every change to your orders, invoices, customers, suppliers, and more."
msgstr "Traccia ogni modifica ai tuoi ordini, fatture, clienti, fornitori e altro ancora."
+msgid "Track tax depreciation separately"
+msgstr ""
+
+msgid "Track tax depreciation separately from book depreciation and automatically post deferred tax liability entries."
+msgstr ""
+
msgid "Track when batches or serials of this item expire."
msgstr "Traccia quando i lotti o i numeri seriali di questo articolo scadono."
@@ -7791,6 +7853,9 @@ msgstr "Cestino"
msgid "Trial Balance"
msgstr "Bilancia di Verifica"
+msgid "Triggers"
+msgstr ""
+
msgid "Tuesday"
msgstr "Martedì"
@@ -7821,6 +7886,9 @@ msgstr "Le entità non campionate rimarranno In Sospeso in modo
msgid "Unapproved Supplier"
msgstr "Fornitore non approvato"
+msgid "Unassign from parent unit to remove"
+msgstr ""
+
msgid "Unassign rule"
msgstr "Annulla assegnazione regola"
@@ -7866,6 +7934,9 @@ msgstr "Supporto Funzionale Illimitato"
msgid "Unlink"
msgstr "Scollega"
+msgid "Unlink job from sales order?"
+msgstr ""
+
msgid "Unsupported source document type: {sourceDocument}"
msgstr "Tipo di documento di origine non supportato: {sourceDocument}"
@@ -7938,12 +8009,13 @@ msgstr "Aggiorna"
msgid "Upgrade to Business"
msgstr "Passa a Business"
+#. placeholder {0}: targetCopy.noun
+msgid "Upgrade to unlock {0} rules"
+msgstr ""
+
msgid "Upgrade to unlock audit history"
msgstr "Aggiorna per sbloccare la cronologia di audit"
-msgid "Upgrade to unlock item rules"
-msgstr "Esegui l'upgrade per sbloccare le regole degli articoli"
-
msgid "Upload"
msgstr "Carica"
@@ -8045,6 +8117,9 @@ msgstr "Convalida processo..."
msgid "Value"
msgstr "Valore"
+msgid "Value source by surface"
+msgstr ""
+
msgid "VAT Number"
msgstr "Numero IVA"
@@ -8234,9 +8309,6 @@ msgstr "Avvisa quando la persona che ispeziona un articolo in entrata Ã
msgid "Warning"
msgstr "Avvertenza"
-msgid "Warnings"
-msgstr "Avvisi"
-
msgid "Watch full video"
msgstr "Guarda il video completo"
@@ -8297,6 +8369,9 @@ msgstr "Quando la durata di conservazione di un prodotto finito ÃÂÂ
msgid "When expired stock is used"
msgstr "Quando viene utilizzato stock scaduto"
+msgid "When on, this rule fires for every target of its type. Assignment rows are ignored but preserved."
+msgstr ""
+
msgid "Who Can Approve"
msgstr "Chi Può Approvare"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index eaa0e35222..866347bb32 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -506,7 +506,7 @@ msgstr "価格設定ルールを適用"
msgid "Apply To"
msgstr "適用対象"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "すべての条件が一致する必要があります"
msgid "Everything from Starter"
msgstr "スターターのすべての機能"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 7f491b4762..80b9335466 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -506,7 +506,7 @@ msgstr "Zastosuj reguły cenowe"
msgid "Apply To"
msgstr "Zastosuj do"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "Każdy warunek musi się zgadzać"
msgid "Everything from Starter"
msgstr "Wszystko z pakietu Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index b4af163f87..f92e22eb2f 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -506,7 +506,7 @@ msgstr "Aplicar regras de preços"
msgid "Apply To"
msgstr "Aplicar a"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "Todas as condições devem corresponder"
msgid "Everything from Starter"
msgstr "Tudo do Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 9eb0308895..8a7967dd29 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -506,7 +506,7 @@ msgstr "Применять правила ценообразования"
msgid "Apply To"
msgstr "Применить к"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "Каждое условие должно совпадать"
msgid "Everything from Starter"
msgstr "Всё из Starter"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index f695794f1d..dd9f0c2605 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -506,7 +506,7 @@ msgstr "应用定价规则"
msgid "Apply To"
msgstr "应用于"
-msgid "Approaching 25 MB cap."
+msgid "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."
msgstr ""
msgid "Approval Date"
@@ -3079,7 +3079,7 @@ msgstr "每个条件都必须匹配"
msgid "Everything from Starter"
msgstr "Starter 中的所有功能"
-msgid "Exceeds 25 MB total — remove some attachments to send."
+msgid "Exceeds {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB total — remove some attachments to send."
msgstr ""
msgid "Exchange Rate"
diff --git a/packages/utils/src/const.ts b/packages/utils/src/const.ts
index 6011cd8751..229f22e6a5 100644
--- a/packages/utils/src/const.ts
+++ b/packages/utils/src/const.ts
@@ -5,6 +5,9 @@ export const FILE_SIZE_LIMIT_MB = {
DOCUMENT_UPLOAD: 50
} as const;
+export const PO_EMAIL_ATTACHMENT_LIMIT_MB = 25;
+export const PO_EMAIL_ATTACHMENT_WARN_MB = 20;
+
export const getFileSizeLimit = (type: keyof typeof FILE_SIZE_LIMIT_MB) => {
const valueMegaBytes = FILE_SIZE_LIMIT_MB[type];
const valueBytes = valueMegaBytes * 1024 * 1024;