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: implement sales order cancellation functionality
naveenkashca3a2f5f6a42
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsxindex 99b1ae6c47..b5ce4a277a 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx@@ -8,6 +8,9 @@ import {MenuIcon,MenuItem,ScrollArea,+ Tooltip,+ TooltipContent,+ TooltipTrigger,useMount,VStack} from "@carbon/react";@@ -286,7 +289,40 @@ const JobMaterialsTable = memo(<span className="text-red-500">{formatter.format(quantityOnHandInStorageUnit)}</span>- <LuFlag className="text-red-500" />+ <Tooltip>+ <TooltipTrigger asChild>+ <span>+ <LuFlag className="text-red-500" />+ </span>+ </TooltipTrigger>+ <TooltipContent>+ <div className="flex flex-col gap-1 text-xs">+ <div className="font-medium">+ Storage unit demand exceeds supply+ </div>+ <div>+ On hand at unit:{" "}+ {formatter.format(quantityOnHandInStorageUnit)}+ </div>+ <div>+ In transit to unit:{" "}+ {formatter.format(quantityInTransitToStorageUnit)}+ </div>+ <div>+ Required at unit:{" "}+ {formatter.format(quantityRequiredByStorageUnit)}+ </div>+ <div className="font-medium">+ Net:{" "}+ {formatter.format(+ quantityOnHandInStorageUnit ++ quantityInTransitToStorageUnit -+ quantityRequiredByStorageUnit+ )}+ </div>+ </div>+ </TooltipContent>+ </Tooltip></>) : (<span>{formatter.format(quantityOnHandInStorageUnit)}</span>@@ -331,7 +367,29 @@ const JobMaterialsTable = memo(<span className="text-red-500">{formatter.format(quantityOnHand)}</span>- <LuFlag className="text-red-500" />+ <Tooltip>+ <TooltipTrigger asChild>+ <span>+ <LuFlag className="text-red-500" />+ </span>+ </TooltipTrigger>+ <TooltipContent>+ <div className="flex flex-col gap-1 text-xs">+ <div className="font-medium">+ Future demand exceeds supply+ </div>+ <div>On hand: {formatter.format(quantityOnHand)}</div>+ <div>Incoming: {formatter.format(incoming)}</div>+ <div>Required: {formatter.format(required)}</div>+ <div className="font-medium">+ Net:{" "}+ {formatter.format(+ quantityOnHand + incoming - required+ )}+ </div>+ </div>+ </TooltipContent>+ </Tooltip></>) : (<span>{formatter.format(quantityOnHand)}</span>diff --git a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsxindex d0664eb9a4..a3848c2e01 100644--- a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx+++ b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx@@ -58,7 +58,7 @@ import { SupplierPartForm } from "~/modules/items/ui/Item";import { getLinkToItemPlanning } from "~/modules/items/ui/Item/ItemForm";import { ItemPlanningChart } from "~/modules/items/ui/Item/ItemPlanningChart";import { ItemReorderPolicy } from "~/modules/items/ui/Item/ItemReorderPolicy";-import type { action as bulkUpdateAction } from "~/routes/x+/production+/planning.update";+import type { action as bulkUpdateAction } from "~/routes/x+/purchasing+/planning.update";import { path } from "~/utils/path";import type { PlannedOrder } from "../../purchasing.models";import type { PurchasingPlanningItem } from "../../types";@@ -304,16 +304,48 @@ export const PurchasingPlanningOrderDrawer = memo(// biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migrationuseEffect(() => {+ if (fetcher.state !== "idle" || !fetcher.data) {+ return;+ }+if (fetcher.data?.success === false && fetcher?.data?.message) {toast.error(fetcher.data.message);}if (fetcher.data?.success === true) {- toast.success(t`Orders submitted`);+ const purchaseOrders =+ (+ fetcher.data as {+ purchaseOrders?: { id: string; readableId: string }[];+ }+ )?.purchaseOrders ?? [];++ if (purchaseOrders.length === 0) {+ toast.success(t`Orders submitted`);+ } else {+ toast.success(+ <div className="flex gap-1">+ <span>{t`Orders submitted`}</span>+ <span className="flex flex-wrap gap-2 text-xs">+ {purchaseOrders.map((po) => (+ <Link+ key={po.id}+ to={path.to.purchaseOrder(po.id)}+ className="underline underline-offset-2 hover:opacity-80"+ >+ {po.readableId}+ </Link>+ ))}+ </span>+ </div>,+ { duration: 8000 }+ );+ }+setOrders(selectedItem, []);onClose();}- }, [fetcher.data?.success]);+ }, [fetcher.state, fetcher.data]);const supplierDisclosure = useDisclosure();diff --git a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsxindex e845ddd2da..65d5067d51 100644--- a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx@@ -38,7 +38,7 @@ import {LuPackage,LuSquareChartGantt} from "react-icons/lu";-import { useFetcher } from "react-router";+import { Link, useFetcher } from "react-router";import {ItemThumbnail,MethodItemTypeIcon,@@ -59,7 +59,7 @@ import {ItemReorderPolicy} from "~/modules/items/ui/Item/ItemReorderPolicy";import type { action as mrpAction } from "~/routes/api+/mrp";-import type { action as bulkUpdateAction } from "~/routes/x+/production+/planning.update";+import type { action as bulkUpdateAction } from "~/routes/x+/purchasing+/planning.update";import { useItems } from "~/stores";import { useSuppliers } from "~/stores/suppliers";import { path } from "~/utils/path";@@ -92,6 +92,51 @@ const PlanningTable = memo(const mrpFetcher = useFetcher<typeof mrpAction>();const bulkUpdateFetcher = useFetcher<typeof bulkUpdateAction>();+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration+ useEffect(() => {+ if (bulkUpdateFetcher.state !== "idle" || !bulkUpdateFetcher.data) {+ return;+ }++ if (+ bulkUpdateFetcher.data?.success === false &&+ bulkUpdateFetcher.data?.message+ ) {+ toast.error(bulkUpdateFetcher.data.message);+ }++ if (bulkUpdateFetcher.data?.success === true) {+ const purchaseOrders =+ (+ bulkUpdateFetcher.data as {+ purchaseOrders?: { id: string; readableId: string }[];+ }+ )?.purchaseOrders ?? [];++ if (purchaseOrders.length === 0) {+ toast.success(t`Orders submitted`);+ } else {+ toast.success(+ <div className="flex gap-1">+ <span>{t`Orders submitted`}</span>+ <span className="flex flex-wrap gap-2 text-xs">+ {purchaseOrders.map((po) => (+ <Link+ key={po.id}+ to={path.to.purchaseOrder(po.id)}+ className="underline underline-offset-2 hover:opacity-80"+ >+ {po.readableId}+ </Link>+ ))}+ </span>+ </div>,+ { duration: 8000 }+ );+ }+ }+ }, [bulkUpdateFetcher.state, bulkUpdateFetcher.data]);+const [suppliersMap, setSuppliersMap] = useState<Record<string, string>>(() => {const initial: Record<string, string> = {};@@ -126,6 +171,12 @@ const PlanningTable = memo({});+ // Auto-computed planned orders for every row, used as the fallback when+ // bulk-submitting items the user never opened in the drawer.+ const [ordersByItemId, setOrdersByItemId] = useState<+ Map<string, PlannedOrder[]>+ >(new Map());+// Clear cache when MRP completesuseEffect(() => {if (mrpFetcher.state === "idle" && mrpFetcher.data) {@@ -166,32 +217,39 @@ const PlanningTable = memo(items: rowsWithSuppliers.filter((row) => row.id).map((row) => {- const ordersWithPeriods = (ordersMap[row.id!] || []).map(- (order) => {- if (- !order.dueDate ||- parseDate(order.dueDate) < parseDate(periods[0].startDate)- ) {- return {- ...order,- periodId: periods[0].id- };- }-- const period = periods.find((p) => {- const dueDate = parseDate(order.dueDate!);- const startDate = parseDate(p.startDate);- const endDate = parseDate(p.endDate);- return dueDate >= startDate && dueDate <= endDate;- });-+ // Prefer user-edited orders (from the drawer) when present,+ // otherwise fall back to the auto-computed planned orders so+ // bulk submit works for items the user never opened.+ const sourceOrders =+ ordersMap[row.id!] && ordersMap[row.id!]!.length > 0+ ? ordersMap[row.id!]!+ : (ordersByItemId.get(row.id!) ?? []);+ const ordersWithPeriods = sourceOrders.map((order) => {+ const supplierId = suppliersMap[row.id!] ?? order.supplierId;+ if (+ !order.dueDate ||+ parseDate(order.dueDate) < parseDate(periods[0].startDate)+ ) {return {...order,- supplierId: suppliersMap[row.id!],- periodId: period?.id ?? periods[periods.length - 1].id+ supplierId,+ periodId: periods[0].id};}- );++ const period = periods.find((p) => {+ const dueDate = parseDate(order.dueDate!);+ const startDate = parseDate(p.startDate);+ const endDate = parseDate(p.endDate);+ return dueDate >= startDate && dueDate <= endDate;+ });++ return {+ ...order,+ supplierId,+ periodId: period?.id ?? periods[periods.length - 1].id+ };+ });return {id: row.id,@@ -207,7 +265,7 @@ const PlanningTable = memo(});},- [bulkUpdateFetcher, locationId, ordersMap, suppliersMap]+ [bulkUpdateFetcher, locationId, ordersMap, ordersByItemId, suppliersMap]);const [selectedItem, setSelectedItem] =@@ -225,9 +283,6 @@ const PlanningTable = memo([]);- const [ordersByItemId, setOrdersByItemId] = useState<- Map<string, PlannedOrder[]>- >(new Map());const [isPending, startTransition] = useTransition();// biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migrationdiff --git a/apps/erp/app/modules/sales/sales.service.ts b/apps/erp/app/modules/sales/sales.service.tsindex e2fe545e0b..0abcc0dd15 100644--- a/apps/erp/app/modules/sales/sales.service.ts+++ b/apps/erp/app/modules/sales/sales.service.ts@@ -5143,6 +5143,100 @@ export async function updateSalesOrder(.single();}+export const LIVE_JOB_STATUSES: Database["public"]["Enums"]["jobStatus"][] = [+ "Draft",+ "Ready",+ "In Progress",+ "Paused"+];++export async function cancelSalesOrder(+ client: SupabaseClient<Database>,+ args: {+ id: string;+ userId: string;+ jobs?: string[];+ }+): Promise<{+ success: boolean;+ message: string;+ cancelledJobIds: string[];+}> {+ const orderUpdate = await updateSalesOrderStatus(client, {+ id: args.id,+ status: "Cancelled",+ assignee: undefined,+ updatedBy: args.userId+ });++ if (orderUpdate.error) {+ return {+ success: false,+ message: `Failed to cancel sales order: ${orderUpdate.error.message}`,+ cancelledJobIds: []+ };+ }++ // Resolve the set of job ids to cancel.+ let jobIdsToCancel: string[];+ if (args.jobs === undefined) {+ const liveJobs = await client+ .from("job")+ .select("id")+ .eq("salesOrderId", args.id)+ .in("status", LIVE_JOB_STATUSES);+ if (liveJobs.error) {+ return {+ success: false,+ message:+ "Sales order cancelled, but failed to look up associated jobs to cancel",+ cancelledJobIds: []+ };+ }+ jobIdsToCancel = (liveJobs.data ?? [])+ .map((j) => j.id)+ .filter((v): v is string => Boolean(v));+ } else {+ jobIdsToCancel = args.jobs.filter(Boolean);+ }++ if (jobIdsToCancel.length === 0) {+ return {+ success: true,+ message: "Sales order cancelled",+ cancelledJobIds: []+ };+ }++ const jobUpdate = await client+ .from("job")+ .update({ status: "Cancelled", updatedBy: args.userId })+ .in("id", jobIdsToCancel)+ .in("status", LIVE_JOB_STATUSES)+ .select("id");++ if (jobUpdate.error) {+ return {+ success: false,+ message: `Sales order cancelled, but failed to cancel some associated jobs: ${jobUpdate.error.message}`,+ cancelledJobIds: []+ };+ }++ const cancelledJobIds = (jobUpdate.data ?? [])+ .map((j) => j.id)+ .filter((v): v is string => Boolean(v));++ return {+ success: true,+ message:+ cancelledJobIds.length === 0+ ? "Sales order cancelled"+ : `Sales order cancelled and ${cancelledJobIds.length} job${cancelledJobIds.length === 1 ? "" : "s"} cancelled`,+ cancelledJobIds+ };+}+/** @deprecated Use insertSalesOrder for new orders, updateSalesOrder for existing orders */export async function upsertSalesOrder(client: SupabaseClient<Database>,diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/CancelSalesOrderModal.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/CancelSalesOrderModal.tsxnew file mode 100644index 0000000000..53ee5de5c9--- /dev/null+++ b/apps/erp/app/modules/sales/ui/SalesOrder/CancelSalesOrderModal.tsx@@ -0,0 +1,196 @@+import {+ Badge,+ Button,+ Checkbox,+ HStack,+ Modal,+ ModalBody,+ ModalContent,+ ModalDescription,+ ModalFooter,+ ModalHeader,+ ModalTitle,+ VStack+} from "@carbon/react";+import { Trans, useLingui } from "@lingui/react/macro";+import { useEffect, useMemo, useState } from "react";+import { useFetcher } from "react-router";+import type { loader as cancelPreviewLoader } from "~/routes/x+/sales-order+/$orderId.cancel-preview";+import { path } from "~/utils/path";++type CancelPreviewResponse =+ Awaited<ReturnType<typeof cancelPreviewLoader>> extends { jobs: infer J }+ ? { jobs: J }+ : never;++type Props = {+ orderId: string;+ isOpen: boolean;+ onClose: () => void;+ onSubmit: (formData: FormData) => void;+ isSubmitting: boolean;+};++export function CancelSalesOrderModal({+ orderId,+ isOpen,+ onClose,+ onSubmit,+ isSubmitting+}: Props) {+ const { t } = useLingui();+ const previewFetcher = useFetcher<CancelPreviewResponse>();++ const [selection, setSelection] = useState<Set<string> | null>(null);++ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration+ useEffect(() => {+ if (!isOpen) return;+ previewFetcher.load(path.to.salesOrderCancelPreview(orderId));+ }, [isOpen, orderId]);++ useEffect(() => {+ if (!isOpen) setSelection(null);+ }, [isOpen]);++ const jobs = previewFetcher.data?.jobs ?? [];+ const isLoading = previewFetcher.state !== "idle" && !previewFetcher.data;++ const selectedJobIds = useMemo(+ () => selection ?? new Set(jobs.map((j) => j.id)),+ [selection, jobs]+ );++ const allSelected = jobs.length > 0 && selectedJobIds.size === jobs.length;+ const someSelected = selectedJobIds.size > 0 && !allSelected;++ const toggleAll = () => {+ setSelection(allSelected ? new Set() : new Set(jobs.map((j) => j.id)));+ };++ const toggleOne = (id: string) => {+ const next = new Set(selectedJobIds);+ if (next.has(id)) next.delete(id);+ else next.add(id);+ setSelection(next);+ };++ const selectedIds = useMemo(+ () => Array.from(selectedJobIds),+ [selectedJobIds]+ );++ const submit = (includeJobs: boolean) => {+ const fd = new FormData();+ fd.set("status", "Cancelled");+ fd.set("cancelJobIds", includeJobs ? selectedIds.join(",") : "");+ onSubmit(fd);+ };++ return (+ <Modal+ open={isOpen}+ onOpenChange={(open) => {+ if (!open) onClose();+ }}+ >+ <ModalContent>+ <ModalHeader>+ <ModalTitle>+ <Trans>Cancel Sales Order</Trans>+ </ModalTitle>+ <ModalDescription>+ <Trans>+ This sales order has associated jobs. Choose what to do with them.+ </Trans>+ </ModalDescription>+ </ModalHeader>+ <ModalBody>+ {isLoading ? (+ <p className="text-sm text-muted-foreground">+ <Trans>Loading associated jobs...</Trans>+ </p>+ ) : jobs.length === 0 ? (+ <p className="text-sm text-muted-foreground">+ <Trans>+ No active jobs found for this sales order. The order will be+ cancelled directly.+ </Trans>+ </p>+ ) : (+ <VStack spacing={2}>+ <HStack className="px-1">+ <Checkbox+ isChecked={allSelected}+ isIndeterminate={someSelected}+ onCheckedChange={toggleAll}+ />+ <span className="text-xs uppercase text-muted-foreground">+ <Trans>Select all</Trans>+ </span>+ </HStack>+ <div className="max-h-[320px] w-full overflow-y-auto">+ {jobs.map((job) => (+ <label+ key={job.id}+ className="flex items-center gap-3 border-b last:border-b-0 px-3 py-2 cursor-pointer hover:bg-muted/40"+ >+ <Checkbox+ isChecked={selectedJobIds.has(job.id)}+ onCheckedChange={() => toggleOne(job.id)}+ />+ <HStack className="py-2">+ <div className="text-sm font-medium truncate">+ {job.jobReadableId}+ {job.itemReadableId && (+ <span className="ml-2 text-muted-foreground font-normal">+ {job.itemReadableId}+ </span>+ )}+ </div>+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Badge variant="outline">{job.status}</Badge>+ {job.dueDate && <span>Due {job.dueDate}</span>}+ </div>+ </HStack>+ </label>+ ))}+ </div>+ </VStack>+ )}+ </ModalBody>+ <ModalFooter>+ <HStack>+ <Button variant="ghost" onClick={onClose} isDisabled={isSubmitting}>+ <Trans>Back</Trans>+ </Button>+ {jobs.length > 0 && (+ <Button+ variant="secondary"+ onClick={() => submit(false)}+ isDisabled={isSubmitting}+ isLoading={isSubmitting}+ >+ <Trans>Cancel SO only</Trans>+ </Button>+ )}+ <Button+ variant="primary"+ onClick={() => submit(jobs.length > 0)}+ isDisabled={+ isSubmitting || (jobs.length > 0 && selectedJobIds.size === 0)+ }+ isLoading={isSubmitting}+ >+ {jobs.length === 0+ ? t`Cancel SO`+ : selectedJobIds.size === jobs.length+ ? t`Cancel SO + ${selectedIds.length} job${selectedIds.length === 1 ? "" : "s"}`+ : t`Cancel SO + ${selectedIds.length} selected`}+ </Button>+ </HStack>+ </ModalFooter>+ </ModalContent>+ </Modal>+ );+}diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsxindex 39dada2c19..869bfe702d 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx@@ -61,6 +61,7 @@ import { useCustomers } from "~/stores/customers";import { path } from "~/utils/path";import { isSalesOrderLocked, salesConfirmValidator } from "../../sales.models";import type { Opportunity, SalesOrder, SalesOrderLine } from "../../types";+import { CancelSalesOrderModal } from "./CancelSalesOrderModal";import SalesStatus from "./SalesStatus";import { useSalesOrder } from "./useSalesOrder";@@ -211,6 +212,7 @@ const SalesOrderHeader = () => {const salesOrderToJobsModal = useDisclosure();const confirmDisclosure = useDisclosure();const deleteSalesOrderModal = useDisclosure();+ const cancelDisclosure = useDisclosure();const [customers] = useCustomers();const { trigger: auditLogTrigger, drawer: auditLogDrawer } = useAuditLog({@@ -407,30 +409,24 @@ const SalesOrderHeader = () => {<Trans>Confirm</Trans></Button>- <statusFetcher.Form- method="post"- action={path.to.salesOrderStatus(orderId)}+ <Button+ variant="secondary"+ leftIcon={<LuCircleStop />}+ onClick={cancelDisclosure.onOpen}+ isDisabled={+ ["Cancelled", "Closed", "Completed", "Invoiced"].includes(+ routeData?.salesOrder?.status ?? ""+ ) ||+ statusFetcher.state !== "idle" ||+ !permissions.can("update", "sales")+ }+ isLoading={+ statusFetcher.state !== "idle" &&+ statusFetcher.formData?.get("status") === "Cancelled"+ }>- <input type="hidden" name="status" value="Cancelled" />- <Button- type="submit"- variant="secondary"- leftIcon={<LuCircleStop />}- isDisabled={- ["Cancelled", "Closed", "Completed", "Invoiced"].includes(- routeData?.salesOrder?.status ?? ""- ) ||- statusFetcher.state !== "idle" ||- !permissions.can("update", "sales")- }- isLoading={- statusFetcher.state !== "idle" &&- statusFetcher.formData?.get("status") === "Cancelled"- }- >- <Trans>Cancel</Trans>- </Button>- </statusFetcher.Form>+ <Trans>Cancel</Trans>+ </Button><Suspensefallback={@@ -628,6 +624,19 @@ const SalesOrderHeader = () => {defaultCc={routeData?.defaultCc ?? []}/>)}+ <CancelSalesOrderModal+ orderId={orderId}+ isOpen={cancelDisclosure.isOpen}+ onClose={cancelDisclosure.onClose}+ isSubmitting={statusFetcher.state !== "idle"}+ onSubmit={(formData) => {+ statusFetcher.submit(formData, {+ method: "post",+ action: path.to.salesOrderStatus(orderId)+ });+ cancelDisclosure.onClose();+ }}+ />{deleteSalesOrderModal.isOpen && (<ConfirmDeleteaction={path.to.deleteSalesOrder(orderId)}diff --git a/apps/erp/app/routes/api+/assign.ts b/apps/erp/app/routes/api+/assign.tsindex 72a0c365c5..795356f0a3 100644--- a/apps/erp/app/routes/api+/assign.ts+++ b/apps/erp/app/routes/api+/assign.ts@@ -117,6 +117,8 @@ function getNotificationEvent(table: string): NotificationEvent | null {return NotificationEvent.SupplierQuoteAssignment;case "stockTransfer":return NotificationEvent.StockTransferAssignment;+ case "training":+ return NotificationEvent.ResourceTrainingAssignment;case "trainingAssignment":return NotificationEvent.TrainingAssignment;default:diff --git a/apps/erp/app/routes/api+/link.ts b/apps/erp/app/routes/api+/link.tsindex 87f76d00de..841f0ba9a8 100644--- a/apps/erp/app/routes/api+/link.ts+++ b/apps/erp/app/routes/api+/link.ts@@ -1,18 +1,39 @@import { requirePermissions } from "@carbon/auth/auth.server";+import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { setCompanyId } from "@carbon/auth/company.server";+import { updateCompanySession } from "@carbon/auth/session.server";import type { Database } from "@carbon/database";import { NotificationEvent } from "@carbon/notifications";import type { LoaderFunctionArgs } from "react-router";import { redirect } from "react-router";+import { getCompanies } from "~/modules/settings";import { path } from "~/utils/path";type ApprovalDocumentType = Database["public"]["Enums"]["approvalDocumentType"];-function resolve(+async function resolve(+ serviceRole: ReturnType<typeof getCarbonServiceRole>,event: NotificationEvent,documentId: string,documentType?: ApprovalDocumentType-): string | null {+): Promise<string | null> {switch (event) {+ case NotificationEvent.TrainingAssignment: {+ // Group-based trainingAssignment row (/x/resources/assignments).+ // documentId is a `ta_*` id — look up the parent training so the+ // recipient lands on the training detail page.+ const assignment = await serviceRole+ .from("trainingAssignment")+ .select("trainingId")+ .eq("id", documentId)+ .maybeSingle();+ return assignment.data?.trainingId+ ? path.to.trainingAssignmentDetail(assignment.data.trainingId)+ : null;+ }+ case NotificationEvent.ResourceTrainingAssignment: {+ return path.to.training(documentId);+ }case NotificationEvent.JobAssignment:case NotificationEvent.JobCompleted:return path.to.job(documentId);@@ -53,8 +74,6 @@ function resolve(return path.to.risk(documentId);case NotificationEvent.ProcedureAssignment:return path.to.procedure(documentId);- case NotificationEvent.TrainingAssignment:- return path.to.training(documentId);case NotificationEvent.StockTransferAssignment:return path.to.stockTransfer(documentId);case NotificationEvent.SuggestionResponse:@@ -75,7 +94,11 @@ function resolve(}export async function loader({ request }: LoaderFunctionArgs) {- await requirePermissions(request, {});+ const {+ client,+ companyId: sessionCompanyId,+ userId+ } = await requirePermissions(request, {});const url = new URL(request.url);const event = url.searchParams.get("event") as NotificationEvent | null;@@ -84,10 +107,46 @@ export async function loader({ request }: LoaderFunctionArgs) {"documentType") as ApprovalDocumentType | null;+ const companyId = url.searchParams.get("companyId");+if (!event || !documentId) {throw redirect(path.to.authenticatedRoot);}- const link = resolve(event, documentId, documentType ?? undefined);- throw redirect(link ?? path.to.authenticatedRoot);+ const serviceRole = getCarbonServiceRole();++ const link = await resolve(+ serviceRole,+ event,+ documentId,+ documentType ?? undefined+ );+ const redirectTo = link ?? path.to.authenticatedRoot;++ // The notification points at a document in a specific company, but the+ // recipient may currently be viewing a different one. If the linked company+ // is one the user belongs to, switch them into it before redirecting — the+ // same flow the company switcher uses — so the document actually resolves.+ if (companyId && companyId !== sessionCompanyId) {+ const companies = await getCompanies(client, userId);+ const matchedCompany = companies.data?.find(+ (company) => company.id === companyId+ );+ if (matchedCompany) {+ const sessionCookie = await updateCompanySession(+ request,+ companyId,+ matchedCompany.companyGroupId ?? ""+ );+ const companyIdCookie = setCompanyId(companyId);+ throw redirect(redirectTo, {+ headers: [+ ["Set-Cookie", sessionCookie],+ ["Set-Cookie", companyIdCookie]+ ]+ });+ }+ }++ throw redirect(redirectTo);}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.jsonindex 0f0b38424d..cd9ab1039a 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json@@ -1,6 +1,6 @@{- "generated": "2026-06-07T18:36:42.934Z",- "totalTools": 1179,+ "generated": "2026-06-08T20:42:15.020Z",+ "totalTools": 1180,"modules": 15,"tools": [{@@ -31783,6 +31783,37 @@]}},+ {+ "name": "sales_cancelSalesOrder",+ "module": "sales",+ "classification": "WRITE",+ "description": "cancel sales order",+ "paramCount": 2,+ "serviceParams": [+ "client",+ "args"+ ],+ "injectAuth": [+ "companyId"+ ],+ "schema": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "jobs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "id"+ ]+ }+ },{"name": "sales_upsertSalesOrder","module": "sales",diff --git a/apps/erp/app/routes/x+/purchasing+/planning.update.tsx b/apps/erp/app/routes/x+/purchasing+/planning.update.tsxindex bcb05eff07..94c3cff047 100644--- a/apps/erp/app/routes/x+/purchasing+/planning.update.tsx+++ b/apps/erp/app/routes/x+/purchasing+/planning.update.tsx@@ -122,15 +122,18 @@ export async function action({ request }: ActionFunctionArgs) {};const existingLineUpdates: OrderEntry[] = [];const ordersBySupplierPeriod = new Map<string, OrderEntry[]>();+ const errors: string[] = [];for (const item of itemsToOrder) {itemIds.add(item.id);+ let itemHasUsableOrder = false;for (const order of item.orders) {if (order.supplierId) supplierIds.add(order.supplierId);if (order.periodId) periodIds.add(order.periodId);if (order.existingLineId) {existingLineUpdates.push({ itemId: item.id, order });+ itemHasUsableOrder = true;} else if (order.supplierId && order.periodId) {const key = `${order.supplierId}::${order.periodId}`;if (!ordersBySupplierPeriod.has(key)) {@@ -140,8 +143,14 @@ export async function action({ request }: ActionFunctionArgs) {itemId: item.id,order});+ itemHasUsableOrder = true;}}+ if (!itemHasUsableOrder) {+ errors.push(+ `Item ${item.id} skipped: no order had both a supplier and a period (check that the item has a preferred supplier)`+ );+ }}const [suppliers, supplierParts, periods, company] = await Promise.all([@@ -213,7 +222,6 @@ export async function action({ request }: ActionFunctionArgs) {const baseCurrencyCode = company.data?.baseCurrencyCode ?? "USD";let processedItems = 0;- let errors: string[] = [];// ── UPDATE existing draft/planned lines ──for (const { order } of existingLineUpdates) {@@ -234,8 +242,9 @@ export async function action({ request }: ActionFunctionArgs) {// ── CREATE new PO lines, one PO per supplier+period ──// Cache created POs so multiple items in the same supplier+period- // share one PO.- const poCache = new Map<string, string>(); // key → purchaseOrderId+ // share one PO. Track readable id too so the client can present a+ // clickable toast.+ const poCache = new Map<string, { id: string; readableId: string }>();for (const [key, ordersInGroup] of ordersBySupplierPeriod) {const [supplierId, periodId] = key.split("::");@@ -246,7 +255,8 @@ export async function action({ request }: ActionFunctionArgs) {}// Find or create a PO for this supplier+period- let purchaseOrderId = poCache.get(key);+ let purchaseOrderId = poCache.get(key)?.id;+ let purchaseOrderReadableId = poCache.get(key)?.readableId;if (!purchaseOrderId) {const period = periods.data?.find((p) => p.id === periodId);@@ -257,7 +267,7 @@ export async function action({ request }: ActionFunctionArgs) {const { data: matchingLines } = await client.from("purchaseOrderLine").select(- "purchaseOrderId, purchaseOrder!inner(supplierId, status)"+ "purchaseOrderId, purchaseOrder!inner(readableId:purchaseOrderId, supplierId, status)").gte("requiredDate", period.startDate).lte("requiredDate", period.endDate)@@ -267,6 +277,8 @@ export async function action({ request }: ActionFunctionArgs) {if (matchingLines?.[0]) {purchaseOrderId = matchingLines[0].purchaseOrderId;+ purchaseOrderReadableId =+ matchingLines[0].purchaseOrder?.readableId ?? undefined;}}}@@ -290,9 +302,13 @@ export async function action({ request }: ActionFunctionArgs) {}purchaseOrderId = createPO.data.id;+ purchaseOrderReadableId = createPO.data.purchaseOrderId;}- poCache.set(key, purchaseOrderId);+ poCache.set(key, {+ id: purchaseOrderId,+ readableId: purchaseOrderReadableId ?? purchaseOrderId+ });// Create one line per item in this supplier+period groupfor (const { itemId, order } of ordersInGroup) {@@ -443,11 +459,20 @@ export async function action({ request }: ActionFunctionArgs) {errors.length > 2 ? "..." : ""}`;+ // Dedupe by PO id — multiple supplier+period buckets can land on+ // the same PO when an existing Draft/Planned PO covers them.+ const purchaseOrders = Array.from(+ new Map(+ Array.from(poCache.values()).map((po) => [po.id, po])+ ).values()+ );+return {success: processedItems > 0,message,processedItems,totalItems: itemsToOrder.length,+ purchaseOrders,errors: errors.length > 0 ? errors : undefined};} catch (error) {diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.cancel-preview.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.cancel-preview.tsxnew file mode 100644index 0000000000..9d99419b9e--- /dev/null+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.cancel-preview.tsx@@ -0,0 +1,43 @@+import { requirePermissions } from "@carbon/auth/auth.server";+import type { LoaderFunctionArgs } from "react-router";+import { LIVE_JOB_STATUSES } from "~/modules/sales";++export type CancelPreviewJob = {+ id: string;+ jobReadableId: string;+ itemReadableId: string | null;+ status: string;+ dueDate: string | null;+};++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ update: "sales"+ });++ const { orderId } = params;+ if (!orderId) {+ return { jobs: [] as CancelPreviewJob[] };+ }++ // Every live job created from this sales order — by lot-split or by line,+ // each is a top-level `job` row keyed by `salesOrderId`. Cancelling one+ // wipes out everything nested inside (its make-method tree is part of+ // the same job row), so no recursion is needed.+ const jobsResult = await client+ .from("job")+ .select("id, jobId, status, dueDate, itemId, item(readableId)")+ .eq("salesOrderId", orderId)+ .in("status", LIVE_JOB_STATUSES);++ const jobs: CancelPreviewJob[] = (jobsResult.data ?? []).map((j) => ({+ id: j.id,+ jobReadableId: j.jobId ?? "",+ itemReadableId:+ (j.item as { readableId?: string | null } | null)?.readableId ?? null,+ status: j.status ?? "",+ dueDate: j.dueDate ?? null+ }));++ return { jobs };+}diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.status.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.status.tsxindex 02b06256ec..6cab4119f3 100644--- a/apps/erp/app/routes/x+/sales-order+/$orderId.status.tsx+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.status.tsx@@ -3,7 +3,11 @@ import { requirePermissions } from "@carbon/auth/auth.server";import { flash } from "@carbon/auth/session.server";import type { ActionFunctionArgs } from "react-router";import { redirect } from "react-router";-import { salesOrderStatusType, updateSalesOrderStatus } from "~/modules/sales";+import {+ cancelSalesOrder,+ salesOrderStatusType,+ updateSalesOrderStatus+} from "~/modules/sales";import { path, requestReferrer } from "~/utils/path";export async function action({ request, params }: ActionFunctionArgs) {@@ -27,6 +31,36 @@ export async function action({ request, params }: ActionFunctionArgs) {);}+ // Cancel flow routes through the dedicated service function so MCP /+ // scripts can call the same code path with the same semantics.+ if (status === "Cancelled") {+ // The modal sends "cancelJobIds" as a comma-separated string. The+ // presence of the field (even when empty) signals "user explicitly+ // chose which jobs". Absence signals "no preference — cancel all".+ const cancelJobIdsRaw = formData.get("cancelJobIds") as string | null;+ const jobs =+ cancelJobIdsRaw === null+ ? undefined+ : cancelJobIdsRaw+ .split(",")+ .map((s) => s.trim())+ .filter(Boolean);++ const result = await cancelSalesOrder(client, { id, userId, jobs });++ if (!result.success) {+ throw redirect(+ requestReferrer(request) ?? path.to.salesOrderDetails(id),+ await flash(request, error(null, result.message))+ );+ }++ throw redirect(+ requestReferrer(request) ?? path.to.quote(id),+ await flash(request, success(result.message))+ );+ }+const update = await updateSalesOrderStatus(client, {id,status,diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 670ce14716..419285c652 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -1552,6 +1552,8 @@ export const path = {generatePath(`${x}/sales-order/${id}/release`),salesOrderStatus: (id: string) =>generatePath(`${x}/sales-order/${id}/status`),+ salesOrderCancelPreview: (id: string) =>+ generatePath(`${x}/sales-order/${id}/cancel-preview`),salesOrders: `${x}/sales/orders`,salesPriceList: `${x}/sales/price-list`,deletePriceOverride: (id: string) =>diff --git a/packages/jobs/src/inngest/functions/notifications/notify.ts b/packages/jobs/src/inngest/functions/notifications/notify.tsindex ea94909efc..8de0332842 100644--- a/packages/jobs/src/inngest/functions/notifications/notify.ts+++ b/packages/jobs/src/inngest/functions/notifications/notify.ts@@ -24,9 +24,10 @@ type ApprovalDocumentType = Database["public"]["Enums"]["approvalDocumentType"];function buildNotificationLink(event: NotificationEvent,documentId: string,+ companyId: string,documentType?: ApprovalDocumentType): string {- const params = new URLSearchParams({ event, documentId });+ const params = new URLSearchParams({ event, documentId, companyId });if (documentType) params.set("documentType", documentType);return `${ERP_URL}/api/link?${params.toString()}`;}@@ -303,6 +304,21 @@ async function getDescription(return `Training "${trainingAssignment?.data?.training?.name}" assigned to you`;}+ case NotificationEvent.ResourceTrainingAssignment: {+ const training = await client+ .from("training")+ .select("name")+ .eq("id", documentId)+ .single();++ if (training.error) {+ console.error("Failed to get training", training.error);+ throw training.error;+ }++ return `Training "${training?.data?.name}" assigned to you`;+ }+case NotificationEvent.PurchaseOrderAssignment: {const purchaseOrder = await client.from("purchaseOrder")@@ -610,6 +626,10 @@ const defaultDestinations: Partial<[NotificationEvent.TrainingAssignment]: [NotificationDestination.Email,NotificationDestination.Slack+ ],+ [NotificationEvent.ResourceTrainingAssignment]: [+ NotificationDestination.Email,+ NotificationDestination.Slack]};@@ -781,6 +801,7 @@ export const notifyFunction = inngest.createFunction(const ctaUrl = buildNotificationLink(payload.event,payload.documentId,+ payload.companyId,payload.documentType);@@ -851,6 +872,7 @@ export const notifyFunction = inngest.createFunction(const ctaUrl = buildNotificationLink(payload.event,payload.documentId,+ payload.companyId,payload.documentType);const text = `${description}\n<${ctaUrl}|View in Carbon>`;diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 62cc39a705..082d1dfb89 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -17,7 +17,7 @@ msgstr "Ein Lieferant ist ein Unternehmen oder eine Person, die dir Teile oder D#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "„{0}\" ist auf der/den ausgewählten Oberfläche(n) nicht verfügbar. Wählen Sie ein anderes Feld."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "„${storageUnitName}\" hat ${childCount} direkt verschachtelte Speichereinheiten. Das Löschen führt auch zum Löschen dieser und aller darunter liegenden Einheiten. Dies kann nicht rückgängig gemacht werden."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Ein Element kann nicht zu sich selbst hinzugefügt werden."msgid "AND"-msgstr "UND"+msgstr ""msgid "and {remaining} more"msgstr "und {remaining} weitere"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Anmerkung aktualisiert"msgid "Any item group"-msgstr "Beliebige Artikelgruppe"+msgstr ""msgid "Any item type"-msgstr "Beliebiger Artikeltyp"+msgstr ""msgid "API and Webhooks"msgstr "API und Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Abbrechen"msgid "Cancel Job"msgstr "Auftrag abbrechen"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Abgebrochen"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Überprüfen Sie Ihre E-Mail"msgid "Choose a company"-msgstr "Wählen Sie ein Unternehmen"+msgstr ""msgid "Choose another file"msgstr "Wählen Sie eine andere Datei"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Spalten"msgid "Combine filters"-msgstr "Filter kombinieren"+msgstr ""msgid "Coming soon"msgstr "Demnächst verfügbar"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Mitarbeiter"msgid "Empty = match every item"-msgstr "Leer = alle Artikel abgleichen"+msgstr ""msgid "Empty work centers"msgstr "Leere Arbeitszentren"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Einladen"msgid "Invited"-msgstr "Eingeladen"+msgstr ""msgid "Invoice"msgstr "Rechnung"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "Artikel {scannedItem} ist nicht derselbe wie der Artikel {expectedItem}"msgid "Item filters"-msgstr "Artikelfilter"+msgstr ""msgid "Item Group"msgstr "Artikelgruppe"msgid "Item groups"-msgstr "Artikelgruppen"+msgstr ""msgid "Item Groups"msgstr "Artikelgruppen"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Artikelstamm"msgid "Item must match a selected type AND a selected group"-msgstr "Element muss einem ausgewählten Typ UND einer ausgewählten Gruppe entsprechen"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "Artikel muss einem ausgewählten Typ ODER einer ausgewählten Gruppe entsprechen"+msgstr ""msgid "Item Scope"msgstr "Artikelbereich"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Artikeltyp"msgid "Item types"-msgstr "Artikeltypen"+msgstr ""msgid "items"msgstr "Artikel"@@ -4396,6 +4414,9 @@ msgstr "Live-Neuladen"msgid "Load Templates"msgstr "Vorlagen laden"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Artikeldetails werden geladen..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Alle abgleichen"msgid "Match all (AND)"-msgstr "Alle abgleichen (UND)"+msgstr ""msgid "Match any"msgstr "Beliebige abgleichen"msgid "Match any (OR)"-msgstr "Beliebige abgleichen (ODER)"+msgstr ""msgid "Match none"msgstr "Keine Übereinstimmung"@@ -5137,6 +5158,9 @@ msgstr "Kein Zugriff"msgid "No action needed"msgstr "Keine Aktion erforderlich"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Kein aktiver Plan"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Noch nicht mit dem Training begonnen für"msgid "Not you?"-msgstr "Nicht du?"+msgstr ""msgid "Note"msgstr "Notiz"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Optionen"msgid "OR"-msgstr "ODER"+msgstr ""msgid "Order"msgstr "Bestellung"@@ -6859,6 +6883,9 @@ msgstr "Wählen Sie einen Grund aus, warum das Angebot nicht erstellt wurde."msgid "Select a team"msgstr "Wählen Sie ein Team"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Wählen Sie einen Verantwortlichen aus"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Speicherclient nicht verfügbar"msgid "Storage Rules"-msgstr "Lagerungsregeln"+msgstr ""msgid "Storage Type"msgstr "Lagertyp"@@ -7798,6 +7825,9 @@ msgstr "Dieser Auftrag wird im Bestand eingegangen. Er ist nicht mehr auf der Wemsgid "This job will no longer be available on the shop floor."msgstr "Dieser Auftrag ist auf der Werkstatt nicht mehr verfügbar."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Diese Bestellung hat Positionen, für die Aufträge erstellt werden müssen"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Ja, IDs aktualisieren"msgid "You belong to more than one company. Pick where to work."-msgstr "Du gehörst mehr als einem Unternehmen an. Wähle aus, wo du arbeiten möchtest."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Sie können den UI-Stil jederzeit über die Design-Einstellung ändern"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 7b13cd1468..b3a9ec36a9 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -1187,6 +1187,24 @@ msgstr "Cancel"msgid "Cancel Job"msgstr "Cancel Job"+msgid "Cancel Sales Order"+msgstr "Cancel Sales Order"++msgid "Cancel SO"+msgstr "Cancel SO"++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr "Cancel SO + {0} job{1}"++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr "Cancel SO + {0} selected"++msgid "Cancel SO only"+msgstr "Cancel SO only"+msgid "Canceled"msgstr "Canceled"@@ -4396,6 +4414,9 @@ msgstr "Live reloading"msgid "Load Templates"msgstr "Load Templates"+msgid "Loading associated jobs..."+msgstr "Loading associated jobs..."+msgid "Loading item details..."msgstr "Loading item details..."@@ -5137,6 +5158,9 @@ msgstr "No Access"msgid "No action needed"msgstr "No action needed"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr "No active jobs found for this sales order. The order will be cancelled directly."+msgid "No active plan"msgstr "No active plan"@@ -6859,6 +6883,9 @@ msgstr "Select a reason for why the quote was not created."msgid "Select a team"msgstr "Select a team"+msgid "Select all"+msgstr "Select all"+msgid "Select an assignee"msgstr "Select an assignee"@@ -7798,6 +7825,9 @@ msgstr "This job will be received to inventory. It will no longer be available omsgid "This job will no longer be available on the shop floor."msgstr "This job will no longer be available on the shop floor."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr "This sales order has associated jobs. Choose what to do with them."+msgid "This sales order has lines that require jobs to be created"msgstr "This sales order has lines that require jobs to be created"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 9f062f1574..c3ef5f3797 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -17,7 +17,7 @@ msgstr "Un proveedor es una empresa o persona que te vende piezas o servicios."#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" no está disponible en la(s) superficie(s) seleccionada(s). Elige otro campo."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "\"{storageUnitName}\" tiene {childCount} unidades de almacenamiento anidadas directas. Eliminarla también eliminará estas unidades y todo lo que hay debajo de ellas. Esto no se puede deshacer."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Un elemento no puede agregarse a sí mismo."msgid "AND"-msgstr "Y"+msgstr ""msgid "and {remaining} more"msgstr "y {remaining} más"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Anotación actualizada"msgid "Any item group"-msgstr "Cualquier grupo de artículos"+msgstr ""msgid "Any item type"-msgstr "Cualquier tipo de artículo"+msgstr ""msgid "API and Webhooks"msgstr "API y Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Cancelar"msgid "Cancel Job"msgstr "Cancelar Trabajo"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Cancelado"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Revisa tu correo electrónico"msgid "Choose a company"-msgstr "Elige una empresa"+msgstr ""msgid "Choose another file"msgstr "Elegir otro archivo"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Columnas"msgid "Combine filters"-msgstr "Combinar filtros"+msgstr ""msgid "Coming soon"msgstr "Próximamente"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Empleados"msgid "Empty = match every item"-msgstr "Vacío = coincide con todos los elementos"+msgstr ""msgid "Empty work centers"msgstr "Centros de trabajo vacíos"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Invitar"msgid "Invited"-msgstr "Invitado"+msgstr ""msgid "Invoice"msgstr "Factura"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "El artículo {scannedItem} no es el mismo que el artículo {expectedItem}"msgid "Item filters"-msgstr "Filtros de artículos"+msgstr ""msgid "Item Group"msgstr "Grupo de Artículos"msgid "Item groups"-msgstr "Grupos de artículos"+msgstr ""msgid "Item Groups"msgstr "Grupos de Artículos"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Maestro de Artículos"msgid "Item must match a selected type AND a selected group"-msgstr "El artículo debe coincidir con un tipo seleccionado Y un grupo seleccionado"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "El artículo debe coincidir con un tipo seleccionado O un grupo seleccionado"+msgstr ""msgid "Item Scope"msgstr "Alcance de Artículos"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Tipo de Artículo"msgid "Item types"-msgstr "Tipos de artículos"+msgstr ""msgid "items"msgstr "artículos"@@ -4396,6 +4414,9 @@ msgstr "Recarga en vivo"msgid "Load Templates"msgstr "Cargar Plantillas"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Cargando detalles del artículo..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Coincidir todos"msgid "Match all (AND)"-msgstr "Coincidir todos (AND)"+msgstr ""msgid "Match any"msgstr "Coincidir con cualquiera"msgid "Match any (OR)"-msgstr "Coincidir con cualquiera (O)"+msgstr ""msgid "Match none"msgstr "No coincide ninguno"@@ -5137,6 +5158,9 @@ msgstr "Sin acceso"msgid "No action needed"msgstr "Sin acción necesaria"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Sin plan activo"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Sin comenzar el entrenamiento para"msgid "Not you?"-msgstr "¿No eres tú?"+msgstr ""msgid "Note"msgstr "Nota"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Opciones"msgid "OR"-msgstr "O"+msgstr ""msgid "Order"msgstr "Pedido"@@ -6859,6 +6883,9 @@ msgstr "Selecciona una razón por la que la cotización no fue creada."msgid "Select a team"msgstr "Selecciona un equipo"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Seleccionar un asignado"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Cliente de almacenamiento no disponible"msgid "Storage Rules"-msgstr "Reglas de Almacenamiento"+msgstr ""msgid "Storage Type"msgstr "Tipo de Almacenamiento"@@ -7798,6 +7825,9 @@ msgstr "Este trabajo será recibido en el inventario. Ya no estará disponible emsgid "This job will no longer be available on the shop floor."msgstr "Este trabajo ya no estará disponible en el piso de producción."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Esta orden de venta tiene líneas que requieren que se creen trabajos"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Sí, Actualizar IDs"msgid "You belong to more than one company. Pick where to work."-msgstr "Perteneces a más de una empresa. Elige dónde trabajar."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Puedes cambiar el estilo de la interfaz en cualquier momento a través la configuración de tema"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex c6de1cbd17..9054633acc 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -17,7 +17,7 @@ msgstr "Un fournisseur est une entreprise ou une personne qui vous vend des piè#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "« {0} » n'est pas disponible sur la ou les surfaces sélectionnées. Choisissez un autre champ."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "« ${storageUnitName} » possède ${childCount} unités de stockage imbriquées directes. La supprimer supprimera également ces unités et tout ce qui se trouve en dessous. Cette action ne peut pas être annulée."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Un article ne peut pas être ajouté à lui-même."msgid "AND"-msgstr "ET"+msgstr ""msgid "and {remaining} more"msgstr "et {remaining} autres"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Annotation mise à jour"msgid "Any item group"-msgstr "Tout groupe d'articles"+msgstr ""msgid "Any item type"-msgstr "Tout type d'article"+msgstr ""msgid "API and Webhooks"msgstr "API et Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Annuler"msgid "Cancel Job"msgstr "Annuler le travail"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Annulé"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Vérifiez votre email"msgid "Choose a company"-msgstr "Choisir une entreprise"+msgstr ""msgid "Choose another file"msgstr "Choisir un autre fichier"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Colonnes"msgid "Combine filters"-msgstr "Combiner les filtres"+msgstr ""msgid "Coming soon"msgstr "Bientôt disponible"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Employés"msgid "Empty = match every item"-msgstr "Vide = correspond à tous les articles"+msgstr ""msgid "Empty work centers"msgstr "Centres de travail vides"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Inviter"msgid "Invited"-msgstr "Invité"+msgstr ""msgid "Invoice"msgstr "Facture"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "L'article {scannedItem} n'est pas le même que l'article {expectedItem}"msgid "Item filters"-msgstr "Filtres d'articles"+msgstr ""msgid "Item Group"msgstr "Groupe d'articles"msgid "Item groups"-msgstr "Groupes d'articles"+msgstr ""msgid "Item Groups"msgstr "Groupes d'articles"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Maître d'article"msgid "Item must match a selected type AND a selected group"-msgstr "L'article doit correspondre à un type sélectionné ET à un groupe sélectionné"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "L'article doit correspondre à un type sélectionné OU à un groupe sélectionné"+msgstr ""msgid "Item Scope"msgstr "Portée des articles"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Type d'article"msgid "Item types"-msgstr "Types d'articles"+msgstr ""msgid "items"msgstr "articles"@@ -4396,6 +4414,9 @@ msgstr "Rechargement en direct"msgid "Load Templates"msgstr "Charger les modèles"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Chargement des détails de l'article..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Correspondre à tous"msgid "Match all (AND)"-msgstr "Correspondre à tous (ET)"+msgstr ""msgid "Match any"msgstr "Correspondre à au moins un"msgid "Match any (OR)"-msgstr "Correspondre à l'un (OU)"+msgstr ""msgid "Match none"msgstr "Ne correspond à aucun"@@ -5137,6 +5158,9 @@ msgstr "Aucun accès"msgid "No action needed"msgstr "Aucune action requise"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Aucun plan actif"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Formation non commencée pour"msgid "Not you?"-msgstr "Ce n'est pas vous ?"+msgstr ""msgid "Note"msgstr "Remarque"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Options"msgid "OR"-msgstr "OU"+msgstr ""msgid "Order"msgstr "Commande"@@ -6859,6 +6883,9 @@ msgstr "Sélectionnez une raison pour laquelle le devis n'a pas été créé."msgid "Select a team"msgstr "Sélectionner une équipe"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Sélectionner un assigné"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Client de stockage non disponible"msgid "Storage Rules"-msgstr "Règles de stockage"+msgstr ""msgid "Storage Type"msgstr "Type de stockage"@@ -7798,6 +7825,9 @@ msgstr "Ce travail sera reçu en inventaire. Il ne sera plus disponible sur l'atmsgid "This job will no longer be available on the shop floor."msgstr "Ce travail ne sera plus disponible sur l'atelier."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Cette commande client contient des lignes qui nécessitent la création de tâches"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Oui, Mettre à jour les IDs"msgid "You belong to more than one company. Pick where to work."-msgstr "Vous appartenez à plus d'une entreprise. Choisissez où travailler."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Vous pouvez modifier le style de l'interface utilisateur à tout moment via les paramètres de thème"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 8d597171ee..1327b16c16 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -17,7 +17,7 @@ msgstr "एक आपूर्तिकर्ता एक व्यवसाय#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" चयनित सतह(सतहों) पर उपलब्ध नहीं है। कोई अन्य फ़ील्ड चुनें।"+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "\"{storageUnitName}\" के {childCount} सीधे नेस्टेड स्टोरेज यूनिट हैं। इसे हटाने से वे और उनके अंदर की सभी चीजें भी हट जाएंगी। यह पूर्ववत नहीं किया जा सकता।"@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "एक आइटम को स्वयं में नहीं जोड़ा जा सकता।"msgid "AND"-msgstr "और"+msgstr ""msgid "and {remaining} more"msgstr "और {remaining} अधिक"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "एनोटेशन अपडेट किया गया"msgid "Any item group"-msgstr "कोई भी आइटम समूह"+msgstr ""msgid "Any item type"-msgstr "किसी भी आइटम प्रकार"+msgstr ""msgid "API and Webhooks"msgstr "API और Webhooks"@@ -1187,6 +1187,24 @@ msgstr "रद्द करें"msgid "Cancel Job"msgstr "नौकरी रद्द करें"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "रद्द किया गया"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "अपना ईमेल जांचें"msgid "Choose a company"-msgstr "कंपनी चुनें"+msgstr ""msgid "Choose another file"msgstr "दूसरी फ़ाइल चुनें"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "कॉलम"msgid "Combine filters"-msgstr "फ़िल्टर को संयोजित करें"+msgstr ""msgid "Coming soon"msgstr "जल्द ही आ रहा है"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "कर्मचारी"msgid "Empty = match every item"-msgstr "खाली = हर आइटम से मेल खाएं"+msgstr ""msgid "Empty work centers"msgstr "खाली कार्य केंद्र"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "आमंत्रित करें"msgid "Invited"-msgstr "आमंत्रित"+msgstr ""msgid "Invoice"msgstr "चालान"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "आइटम {scannedItem} आइटम {expectedItem} के समान नहीं है"msgid "Item filters"-msgstr "आइटम फ़िल्टर"+msgstr ""msgid "Item Group"msgstr "आइटम समूह"msgid "Item groups"-msgstr "आइटम समूह"+msgstr ""msgid "Item Groups"msgstr "आइटम समूह"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "आइटम मास्टर"msgid "Item must match a selected type AND a selected group"-msgstr "आइटम को एक चयनित प्रकार और एक चयनित समूह से मेल खाना चाहिए"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "आइटम को एक चयनित प्रकार OR एक चयनित समूह से मेल खाना चाहिए"+msgstr ""msgid "Item Scope"msgstr "आइटम स्कोप"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "आइटम प्रकार"msgid "Item types"-msgstr "आइटम प्रकार"+msgstr ""msgid "items"msgstr "आइटम"@@ -4396,6 +4414,9 @@ msgstr "लाइव रीलोडिंग"msgid "Load Templates"msgstr "टेम्पलेट लोड करें"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "आइटम विवरण लोड हो रहे हैं..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "सभी से मेल खाएं"msgid "Match all (AND)"-msgstr "सभी से मेल खाएं (AND)"+msgstr ""msgid "Match any"msgstr "किसी भी को मिलाएं"msgid "Match any (OR)"-msgstr "किसी भी से मेल खाएं (OR)"+msgstr ""msgid "Match none"msgstr "कोई भी मेल न खाएं"@@ -5137,6 +5158,9 @@ msgstr "कोई एक्सेस नहीं"msgid "No action needed"msgstr "कोई कार्रवाई की आवश्यकता नहीं है"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "कोई सक्रिय योजना नहीं"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "प्रशिक्षण शुरू नहीं किया गया"msgid "Not you?"-msgstr "क्या आप नहीं हैं?"+msgstr ""msgid "Note"msgstr "नोट"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "विकल्प"msgid "OR"-msgstr "या"+msgstr ""msgid "Order"msgstr "आदेश"@@ -6859,6 +6883,9 @@ msgstr "उद्धरण क्यों नहीं बनाया गयmsgid "Select a team"msgstr "एक टीम चुनें"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "एक असाइनी चुनें"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "स्टोरेज क्लाइंट उपलब्ध नहीं है"msgid "Storage Rules"-msgstr "भंडारण नियम"+msgstr ""msgid "Storage Type"msgstr "स्टोरेज प्रकार"@@ -7798,6 +7825,9 @@ msgstr "यह जॉब इन्वेंटरी में प्रापmsgid "This job will no longer be available on the shop floor."msgstr "यह नौकरी अब शॉप फ्लोर पर उपलब्ध नहीं होगी।"+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "इस बिक्रय आदेश में ऐसी पंक्तियाँ हैं जिनके लिए नौकरियाँ बनाई जानी आवश्यक हैं"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "हाँ, आईडी अपडेट करें"msgid "You belong to more than one company. Pick where to work."-msgstr "आप एक से अधिक कंपनी से संबंधित हैं। चुनें कि कहां काम करना है।"+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "आप किसी भी समय थीम सेटिंग के माध्यम से UI शैली को बदल सकते हैं"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 431857bc5b..d1c88a4d12 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -17,7 +17,7 @@ msgstr "Un fornitore è un'azienda o una persona che ti vende parti o servizi."#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" non è disponibile sulla superficie selezionata. Scegli un altro campo."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "\"{storageUnitName}\" ha {childCount} unità di archiviazione nidificate dirette. L'eliminazione comporterà anche l'eliminazione di queste e di tutto ciò che si trova al di sotto. Questa azione non può essere annullata."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Un articolo non può essere aggiunto a se stesso."msgid "AND"-msgstr "E"+msgstr ""msgid "and {remaining} more"msgstr "e {remaining} altri"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Annotazione aggiornata"msgid "Any item group"-msgstr "Qualsiasi gruppo articoli"+msgstr ""msgid "Any item type"-msgstr "Qualsiasi tipo di articolo"+msgstr ""msgid "API and Webhooks"msgstr "API e Webhook"@@ -1187,6 +1187,24 @@ msgstr "Annulla"msgid "Cancel Job"msgstr "Annulla Lavoro"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Annullato"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Controlla la tua email"msgid "Choose a company"-msgstr "Scegli un'azienda"+msgstr ""msgid "Choose another file"msgstr "Scegli un altro file"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Colonne"msgid "Combine filters"-msgstr "Combina filtri"+msgstr ""msgid "Coming soon"msgstr "Disponibile presto"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Dipendenti"msgid "Empty = match every item"-msgstr "Vuoto = corrisponde a ogni articolo"+msgstr ""msgid "Empty work centers"msgstr "Centri di lavoro vuoti"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Invita"msgid "Invited"-msgstr "Invitato"+msgstr ""msgid "Invoice"msgstr "Fattura"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "L'articolo {scannedItem} non è lo stesso dell'articolo {expectedItem}"msgid "Item filters"-msgstr "Filtri articoli"+msgstr ""msgid "Item Group"msgstr "Gruppo Articoli"msgid "Item groups"-msgstr "Gruppi articoli"+msgstr ""msgid "Item Groups"msgstr "Gruppi di articoli"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Anagrafica Articolo"msgid "Item must match a selected type AND a selected group"-msgstr "L'articolo deve corrispondere a un tipo selezionato E a un gruppo selezionato"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "L'articolo deve corrispondere a un tipo selezionato O a un gruppo selezionato"+msgstr ""msgid "Item Scope"msgstr "Ambito Articolo"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Tipo di articolo"msgid "Item types"-msgstr "Tipi di articolo"+msgstr ""msgid "items"msgstr "articoli"@@ -4396,6 +4414,9 @@ msgstr "Ricaricamento in tempo reale"msgid "Load Templates"msgstr "Carica Modelli"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Caricamento dettagli articolo..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Corrisponde a tutti"msgid "Match all (AND)"-msgstr "Abbina tutto (AND)"+msgstr ""msgid "Match any"msgstr "Corrisponde a uno qualsiasi"msgid "Match any (OR)"-msgstr "Corrisponde a uno qualsiasi (OR)"+msgstr ""msgid "Match none"msgstr "Non corrispondere a nessuno"@@ -5137,6 +5158,9 @@ msgstr "Nessun accesso"msgid "No action needed"msgstr "Nessuna azione necessaria"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Nessun piano attivo"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Non ha iniziato l'addestramento per"msgid "Not you?"-msgstr "Non sei tu?"+msgstr ""msgid "Note"msgstr "Nota"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Opzioni"msgid "OR"-msgstr "O"+msgstr ""msgid "Order"msgstr "Ordine"@@ -6859,6 +6883,9 @@ msgstr "Seleziona un motivo per cui l'offerta non è stata creata."msgid "Select a team"msgstr "Seleziona un team"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Seleziona un assegnatario"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Client di archiviazione non disponibile"msgid "Storage Rules"-msgstr "Regole di Archiviazione"+msgstr ""msgid "Storage Type"msgstr "Tipo di Archiviazione"@@ -7798,6 +7825,9 @@ msgstr "Questo lavoro sarà ricevuto in inventario. Non sarà più disponibile smsgid "This job will no longer be available on the shop floor."msgstr "Questo lavoro non sarà più disponibile in officina."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Questo ordine di vendita ha righe che richiedono la creazione di lavori"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Sì, Aggiorna ID"msgid "You belong to more than one company. Pick where to work."-msgstr "Appartieni a più di un'azienda. Scegli dove lavorare."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Puoi cambiare lo stile dell'interfaccia in qualsiasi momento attraverso le impostazioni del tema"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex b175607c21..f86f725908 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -17,7 +17,7 @@ msgstr "サプライヤーは、あなたに部品またはサービスを販売#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "「{0}」は選択されたサーフェス上で利用できません。別のフィールドを選択してください。"+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "「{storageUnitName}」には{childCount}個の直下の階層化されたストレージユニットがあります。これを削除すると、それらとその下にあるすべてのものも削除されます。この操作は取り消せません。"@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "アイテムをそれ自体に追加することはできません。"msgid "AND"-msgstr "AND"+msgstr ""msgid "and {remaining} more"msgstr "そして{remaining}件以上"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "注釈が更新されました"msgid "Any item group"-msgstr "任意のアイテムグループ"+msgstr ""msgid "Any item type"-msgstr "任意のアイテムタイプ"+msgstr ""msgid "API and Webhooks"msgstr "APIとWebhooks"@@ -1187,6 +1187,24 @@ msgstr "キャンセル"msgid "Cancel Job"msgstr "ジョブをキャンセル"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "キャンセル済み"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "メールを確認してください"msgid "Choose a company"-msgstr "会社を選択"+msgstr ""msgid "Choose another file"msgstr "別のファイルを選択"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "列"msgid "Combine filters"-msgstr "フィルターを組み合わせる"+msgstr ""msgid "Coming soon"msgstr "近日公開予定"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "従業員"msgid "Empty = match every item"-msgstr "空 = すべてのアイテムに一致"+msgstr ""msgid "Empty work centers"msgstr "空の作業センター"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "招待"msgid "Invited"-msgstr "招待済み"+msgstr ""msgid "Invoice"msgstr "請求書"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "アイテム {scannedItem} は、アイテム {expectedItem} と同じではありません"msgid "Item filters"-msgstr "アイテムフィルター"+msgstr ""msgid "Item Group"msgstr "品目グループ"msgid "Item groups"-msgstr "アイテムグループ"+msgstr ""msgid "Item Groups"msgstr "アイテムグループ"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "アイテムマスター"msgid "Item must match a selected type AND a selected group"-msgstr "アイテムは選択されたタイプと選択されたグループの両方に一致する必要があります"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "アイテムは選択されたタイプまたは選択されたグループと一致する必要があります"+msgstr ""msgid "Item Scope"msgstr "アイテムスコープ"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "アイテムタイプ"msgid "Item types"-msgstr "アイテムタイプ"+msgstr ""msgid "items"msgstr "アイテム"@@ -4396,6 +4414,9 @@ msgstr "ライブリロード中"msgid "Load Templates"msgstr "テンプレートを読み込む"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "アイテムの詳細を読み込み中..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "すべてに一致"msgid "Match all (AND)"-msgstr "すべてに一致 (AND)"+msgstr ""msgid "Match any"msgstr "いずれかに一致"msgid "Match any (OR)"-msgstr "任意に一致 (OR)"+msgstr ""msgid "Match none"msgstr "いずれにも一致しない"@@ -5137,6 +5158,9 @@ msgstr "アクセスなし"msgid "No action needed"msgstr "対応は不要です"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "アクティブなプランなし"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "まだトレーニングを開始していません"msgid "Not you?"-msgstr "違いますか?"+msgstr ""msgid "Note"msgstr "メモ"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "オプション"msgid "OR"-msgstr "または"+msgstr ""msgid "Order"msgstr "注文"@@ -6859,6 +6883,9 @@ msgstr "見積が作成されなかった理由を選択してください。"msgid "Select a team"msgstr "チームを選択"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "担当者を選択"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "ストレージクライアントが利用できません"msgid "Storage Rules"-msgstr "保管ルール"+msgstr ""msgid "Storage Type"msgstr "ストレージタイプ"@@ -7798,6 +7825,9 @@ msgstr "このジョブはインベントリに受け取られます。ショッmsgid "This job will no longer be available on the shop floor."msgstr "このジョブはショップフロアで利用できなくなります。"+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "この販売注文には、ジョブを作成する必要があるラインがあります"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "はい、IDを更新"msgid "You belong to more than one company. Pick where to work."-msgstr "複数の企業に属しています。どこで働くかを選択してください。"+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "テーマ設定からいつでもUIスタイルを変更できます"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 27693b8264..cf03ef5ad0 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -17,7 +17,7 @@ msgstr "Dostawca to firma lub osoba, która sprzedaje Ci części lub usługi."#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" nie jest dostępne na wybranej powierzchni/powierzchniach. Wybierz inne pole."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "„{storageUnitName}\" ma {childCount} bezpośrednio zagnieżdżonych jednostek magazynowych. Usunięcie go spowoduje również usunięcie ich i wszystkiego pod nimi. Tej operacji nie można cofnąć."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Przedmiot nie może być dodany do siebie."msgid "AND"-msgstr "I"+msgstr ""msgid "and {remaining} more"msgstr "i {remaining} więcej"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Adnotacja zaktualizowana"msgid "Any item group"-msgstr "Dowolna grupa artykułów"+msgstr ""msgid "Any item type"-msgstr "Dowolny typ przedmiotu"+msgstr ""msgid "API and Webhooks"msgstr "API i Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Anuluj"msgid "Cancel Job"msgstr "Anuluj zadanie"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Anulowano"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Sprawdź swoją pocztę"msgid "Choose a company"-msgstr "Wybierz firmę"+msgstr ""msgid "Choose another file"msgstr "Wybierz inny plik"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Kolumny"msgid "Combine filters"-msgstr "Łącz filtry"+msgstr ""msgid "Coming soon"msgstr "Wkrótce"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Pracownicy"msgid "Empty = match every item"-msgstr "Puste = dopasuj każdy element"+msgstr ""msgid "Empty work centers"msgstr "Puste centra pracy"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Zaproś"msgid "Invited"-msgstr "Zaproszony"+msgstr ""msgid "Invoice"msgstr "Faktura"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "Pozycja {scannedItem} nie jest taka sama jak pozycja {expectedItem}"msgid "Item filters"-msgstr "Filtry elementów"+msgstr ""msgid "Item Group"msgstr "Grupa Pozycji"msgid "Item groups"-msgstr "Grupy artykułów"+msgstr ""msgid "Item Groups"msgstr "Grupy Pozycji"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Główny element"msgid "Item must match a selected type AND a selected group"-msgstr "Element musi pasować do wybranego typu I wybranej grupy"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "Element musi pasować do wybranego typu LUB wybranej grupy"+msgstr ""msgid "Item Scope"msgstr "Zakres Pozycji"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Typ przedmiotu"msgid "Item types"-msgstr "Typy przedmiotów"+msgstr ""msgid "items"msgstr "elementy"@@ -4396,6 +4414,9 @@ msgstr "Odświeżanie na żywo"msgid "Load Templates"msgstr "Załaduj szablony"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Ładowanie szczegółów przedmiotu..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Dopasuj wszystkie"msgid "Match all (AND)"-msgstr "Dopasuj wszystkie (AND)"+msgstr ""msgid "Match any"msgstr "Dopasuj dowolny"msgid "Match any (OR)"-msgstr "Dopasuj dowolny (LUB)"+msgstr ""msgid "Match none"msgstr "Nie dopasuj żaden"@@ -5137,6 +5158,9 @@ msgstr "Brak dostępu"msgid "No action needed"msgstr "Brak wymaganych działań"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Brak aktywnego planu"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Nie rozpoczęto szkolenia dla"msgid "Not you?"-msgstr "To nie ty?"+msgstr ""msgid "Note"msgstr "Notatka"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Opcje"msgid "OR"-msgstr "LUB"+msgstr ""msgid "Order"msgstr "Zamówienie"@@ -6859,6 +6883,9 @@ msgstr "Wybierz powód, dla którego oferta nie została utworzona."msgid "Select a team"msgstr "Wybierz zespół"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Wybierz osobę przydzieloną"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Klient magazynu niedostępny"msgid "Storage Rules"-msgstr "Reguły przechowywania"+msgstr ""msgid "Storage Type"msgstr "Typ magazynu"@@ -7798,6 +7825,9 @@ msgstr "To zadanie zostanie przyjęte do magazynu. Nie będzie już dostępne namsgid "This job will no longer be available on the shop floor."msgstr "Ta praca nie będzie już dostępna na hali produkcyjnej."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "To zamówienie sprzedaży zawiera linie, które wymagają utworzenia zadań"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Tak, Aktualizuj identyfikatory"msgid "You belong to more than one company. Pick where to work."-msgstr "Należysz do więcej niż jednej firmy. Wybierz, gdzie chcesz pracować."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Możesz zmienić styl interfejsu użytkownika w dowolnym momencie za pośrednictwem ustawień motywu"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 5fd9adf946..9ae6f2a96e 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -17,7 +17,7 @@ msgstr "Um fornecedor é uma empresa ou pessoa que vende peças ou serviços par#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" não está disponível na(s) superfície(s) selecionada(s). Escolha outro campo."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "\"{storageUnitName}\" tem {childCount} unidades de armazenamento aninhadas diretas. Deletá-la também excluirá essas unidades e tudo que está abaixo delas. Isso não pode ser desfeito."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Um item não pode ser adicionado a si mesmo."msgid "AND"-msgstr "E"+msgstr ""msgid "and {remaining} more"msgstr "e {remaining} mais"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Anotação atualizada"msgid "Any item group"-msgstr "Qualquer grupo de itens"+msgstr ""msgid "Any item type"-msgstr "Qualquer tipo de item"+msgstr ""msgid "API and Webhooks"msgstr "API e Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Cancelar"msgid "Cancel Job"msgstr "Cancelar Trabalho"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Cancelado"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Verifique seu email"msgid "Choose a company"-msgstr "Escolha uma empresa"+msgstr ""msgid "Choose another file"msgstr "Escolher outro arquivo"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Colunas"msgid "Combine filters"-msgstr "Combinar filtros"+msgstr ""msgid "Coming soon"msgstr "Em breve"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Funcionários"msgid "Empty = match every item"-msgstr "Vazio = corresponder a todos os itens"+msgstr ""msgid "Empty work centers"msgstr "Centros de trabalho vazios"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Convidar"msgid "Invited"-msgstr "Convidado"+msgstr ""msgid "Invoice"msgstr "Fatura"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "Item {scannedItem} não é o mesmo que o item {expectedItem}"msgid "Item filters"-msgstr "Filtros de itens"+msgstr ""msgid "Item Group"msgstr "Grupo de Itens"msgid "Item groups"-msgstr "Grupos de itens"+msgstr ""msgid "Item Groups"msgstr "Grupos de Itens"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Mestre de Item"msgid "Item must match a selected type AND a selected group"-msgstr "Item deve corresponder a um tipo selecionado E um grupo selecionado"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "Item deve corresponder a um tipo selecionado OU um grupo selecionado"+msgstr ""msgid "Item Scope"msgstr "Escopo do Item"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Tipo de Item"msgid "Item types"-msgstr "Tipos de item"+msgstr ""msgid "items"msgstr "itens"@@ -4396,6 +4414,9 @@ msgstr "Recarregamento ao vivo"msgid "Load Templates"msgstr "Carregar Modelos"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Carregando detalhes do item..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Corresponder a todos"msgid "Match all (AND)"-msgstr "Corresponder a todos (E)"+msgstr ""msgid "Match any"msgstr "Corresponder a qualquer"msgid "Match any (OR)"-msgstr "Corresponder a qualquer (OU)"+msgstr ""msgid "Match none"msgstr "Não corresponder a nenhum"@@ -5137,6 +5158,9 @@ msgstr "Sem Acesso"msgid "No action needed"msgstr "Nenhuma ação necessária"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Nenhum plano ativo"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Treinamento não iniciado para"msgid "Not you?"-msgstr "Não é você?"+msgstr ""msgid "Note"msgstr "Nota"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Opções"msgid "OR"-msgstr "OU"+msgstr ""msgid "Order"msgstr "Pedido"@@ -6859,6 +6883,9 @@ msgstr "Selecione um motivo pelo qual a cotação não foi criada."msgid "Select a team"msgstr "Selecione uma equipe"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Selecione um responsável"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Cliente de armazenamento não disponível"msgid "Storage Rules"-msgstr "Regras de Armazenamento"+msgstr ""msgid "Storage Type"msgstr "Tipo de Armazenamento"@@ -7798,6 +7825,9 @@ msgstr "Este trabalho será recebido no inventário. Não estará mais disponívmsgid "This job will no longer be available on the shop floor."msgstr "Este trabalho não estará mais disponível no chão de fábrica."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Esta ordem de venda tem linhas que requerem a criação de trabalhos"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Sim, Atualizar IDs"msgid "You belong to more than one company. Pick where to work."-msgstr "Você pertence a mais de uma empresa. Escolha onde trabalhar."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Você pode alterar o estilo da interface a qualquer momento através da configuração de tema"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 0ffbf4ea7e..f6e44ea604 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -17,7 +17,7 @@ msgstr "Поставщик — это компания или лицо, кото#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\" недоступно на выбранной поверхности (поверхностях). Выберите другое поле."+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "«{storageUnitName}» содержит {childCount} прямых вложенных единиц хранения. Удаление приведет к удалению этих единиц и всего, что находится под ними. Это действие невозможно отменить."@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "Элемент не может быть добавлен к самому себе."msgid "AND"-msgstr "И"+msgstr ""msgid "and {remaining} more"msgstr "и ещё {remaining}"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "Аннотация обновлена"msgid "Any item group"-msgstr "Любая группа товаров"+msgstr ""msgid "Any item type"-msgstr "Любой тип товара"+msgstr ""msgid "API and Webhooks"msgstr "API и Webhooks"@@ -1187,6 +1187,24 @@ msgstr "Отмена"msgid "Cancel Job"msgstr "Отменить задание"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "Отменено"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "Проверьте вашу почту"msgid "Choose a company"-msgstr "Выберите компанию"+msgstr ""msgid "Choose another file"msgstr "Выбрать другой файл"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "Столбцы"msgid "Combine filters"-msgstr "Объединить фильтры"+msgstr ""msgid "Coming soon"msgstr "Скоро"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "Сотрудники"msgid "Empty = match every item"-msgstr "Пусто = соответствует каждому товару"+msgstr ""msgid "Empty work centers"msgstr "Пустые рабочие центры"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "Пригласить"msgid "Invited"-msgstr "Приглашено"+msgstr ""msgid "Invoice"msgstr "Счет"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "Товар {scannedItem} не совпадает с товаром {expectedItem}"msgid "Item filters"-msgstr "Фильтры товаров"+msgstr ""msgid "Item Group"msgstr "Группа товаров"msgid "Item groups"-msgstr "Группы товаров"+msgstr ""msgid "Item Groups"msgstr "Группы товаров"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "Мастер элемента"msgid "Item must match a selected type AND a selected group"-msgstr "Товар должен соответствовать выбранному типу И выбранной группе"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "Товар должен соответствовать выбранному типу ИЛИ выбранной группе"+msgstr ""msgid "Item Scope"msgstr "Область применения товара"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "Тип товара"msgid "Item types"-msgstr "Типы товаров"+msgstr ""msgid "items"msgstr "элементы"@@ -4396,6 +4414,9 @@ msgstr "Живая перезагрузка"msgid "Load Templates"msgstr "Загрузить шаблоны"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "Загрузка деталей товара..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "Совпадают все"msgid "Match all (AND)"-msgstr "Совпадать со всеми (И)"+msgstr ""msgid "Match any"msgstr "Совпадает с любым"msgid "Match any (OR)"-msgstr "Совпадение с любым (ИЛИ)"+msgstr ""msgid "Match none"msgstr "Не совпадает ни одно"@@ -5137,6 +5158,9 @@ msgstr "Нет доступа"msgid "No action needed"msgstr "Никаких действий не требуется"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "Нет активного плана"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "Обучение не начато для"msgid "Not you?"-msgstr "Это не вы?"+msgstr ""msgid "Note"msgstr "Примечание"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "Параметры"msgid "OR"-msgstr "ИЛИ"+msgstr ""msgid "Order"msgstr "Заказ"@@ -6859,6 +6883,9 @@ msgstr "Выберите причину, по которой предложенmsgid "Select a team"msgstr "Выберите команду"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "Выберите исполнителя"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "Клиент хранилища недоступен"msgid "Storage Rules"-msgstr "Правила хранения"+msgstr ""msgid "Storage Type"msgstr "Тип хранилища"@@ -7798,6 +7825,9 @@ msgstr "Эта работа будет получена в инвентарь.msgid "This job will no longer be available on the shop floor."msgstr "Эта работа больше не будет доступна на производственном участке."+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "Этот заказ на продажу содержит строки, для которых необходимо создать задания"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "Да, обновить ID"msgid "You belong to more than one company. Pick where to work."-msgstr "Вы принадлежите более чем одной компании. Выберите, где работать."+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "Вы можете изменить стиль интерфейса в любое время через настройку темы"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex a5d43c4f82..19b3626165 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -17,7 +17,7 @@ msgstr "供应商是向您销售零件或服务的企业或个人。"#. placeholder {0}: fieldDef?.label ?? condition.fieldmsgid "\"{0}\" isn't available on the selected surface(s). Pick another field."-msgstr "\"{0}\"在选定的表面上不可用。请选择另一个字段。"+msgstr ""msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."msgstr "\"{storageUnitName}\"有{childCount}个直接嵌套的存储单元。删除它也会删除它们及其下面的所有内容。此操作无法撤销。"@@ -466,7 +466,7 @@ msgid "An item cannot be added to itself."msgstr "一个项目不能添加到自身。"msgid "AND"-msgstr "且"+msgstr ""msgid "and {remaining} more"msgstr "和 {remaining} 个更多"@@ -487,10 +487,10 @@ msgid "Annotation updated"msgstr "注释已更新"msgid "Any item group"-msgstr "任何项目组"+msgstr ""msgid "Any item type"-msgstr "任何物品类型"+msgstr ""msgid "API and Webhooks"msgstr "API 和 Webhooks"@@ -1187,6 +1187,24 @@ msgstr "取消"msgid "Cancel Job"msgstr "取消工作"+msgid "Cancel Sales Order"+msgstr ""++msgid "Cancel SO"+msgstr ""++#. placeholder {0}: selectedIds.length+#. placeholder {1}: selectedIds.length === 1 ? "" : "s"+msgid "Cancel SO + {0} job{1}"+msgstr ""++#. placeholder {0}: selectedIds.length+msgid "Cancel SO + {0} selected"+msgstr ""++msgid "Cancel SO only"+msgstr ""+msgid "Canceled"msgstr "已取消"@@ -1296,7 +1314,7 @@ msgid "Check your email"msgstr "检查您的电子邮件"msgid "Choose a company"-msgstr "选择公司"+msgstr ""msgid "Choose another file"msgstr "选择另一个文件"@@ -1393,7 +1411,7 @@ msgid "Columns"msgstr "列"msgid "Combine filters"-msgstr "合并筛选"+msgstr ""msgid "Coming soon"msgstr "即将推出"@@ -2967,7 +2985,7 @@ msgid "Employees"msgstr "员工"msgid "Empty = match every item"-msgstr "空 = 匹配每个项目"+msgstr ""msgid "Empty work centers"msgstr "空的工作中心"@@ -4035,7 +4053,7 @@ msgid "Invite"msgstr "邀请"msgid "Invited"-msgstr "已邀请"+msgstr ""msgid "Invoice"msgstr "发票"@@ -4140,13 +4158,13 @@ msgid "Item {scannedItem} is not the same as the item {expectedItem}"msgstr "项目 {scannedItem} 与项目 {expectedItem} 不相同"msgid "Item filters"-msgstr "物品筛选器"+msgstr ""msgid "Item Group"msgstr "物品组"msgid "Item groups"-msgstr "物品组"+msgstr ""msgid "Item Groups"msgstr "物品组"@@ -4158,10 +4176,10 @@ msgid "Item Master"msgstr "物料主数据"msgid "Item must match a selected type AND a selected group"-msgstr "项目必须匹配选定的类型和选定的组"+msgstr ""msgid "Item must match a selected type OR a selected group"-msgstr "项目必须匹配选定的类型或选定的组"+msgstr ""msgid "Item Scope"msgstr "物品范围"@@ -4170,7 +4188,7 @@ msgid "Item Type"msgstr "物品类型"msgid "Item types"-msgstr "物品类型"+msgstr ""msgid "items"msgstr "项目"@@ -4396,6 +4414,9 @@ msgstr "实时重新加载"msgid "Load Templates"msgstr "加载模板"+msgid "Loading associated jobs..."+msgstr ""+msgid "Loading item details..."msgstr "正在加载项目详情..."@@ -4583,13 +4604,13 @@ msgid "Match all"msgstr "全部匹配"msgid "Match all (AND)"-msgstr "全部匹配 (AND)"+msgstr ""msgid "Match any"msgstr "匹配任意"msgid "Match any (OR)"-msgstr "匹配任意项 (OR)"+msgstr ""msgid "Match none"msgstr "不匹配任何条件"@@ -5137,6 +5158,9 @@ msgstr "无权限"msgid "No action needed"msgstr "无需操作"+msgid "No active jobs found for this sales order. The order will be cancelled directly."+msgstr ""+msgid "No active plan"msgstr "没有活跃的计划"@@ -5355,7 +5379,7 @@ msgid "Not started training for"msgstr "未开始培训"msgid "Not you?"-msgstr "不是你?"+msgstr ""msgid "Note"msgstr "备注"@@ -5511,7 +5535,7 @@ msgid "Options"msgstr "选项"msgid "OR"-msgstr "或"+msgstr ""msgid "Order"msgstr "订单"@@ -6859,6 +6883,9 @@ msgstr "选择未创建报价的原因。"msgid "Select a team"msgstr "选择一个团队"+msgid "Select all"+msgstr ""+msgid "Select an assignee"msgstr "选择受理人"@@ -7405,7 +7432,7 @@ msgid "Storage client not available"msgstr "存储客户端不可用"msgid "Storage Rules"-msgstr "存储规则"+msgstr ""msgid "Storage Type"msgstr "存储类型"@@ -7798,6 +7825,9 @@ msgstr "此工作将被接收到库存中。它将不再在车间可用。"msgid "This job will no longer be available on the shop floor."msgstr "此工作将不再在车间可用。"+msgid "This sales order has associated jobs. Choose what to do with them."+msgstr ""+msgid "This sales order has lines that require jobs to be created"msgstr "此销售订单有需要创建工作的行项目"@@ -8681,7 +8711,7 @@ msgid "Yes, Update IDs"msgstr "是的,更新 ID"msgid "You belong to more than one company. Pick where to work."-msgstr "你属于多个公司。选择你要工作的地方。"+msgstr ""msgid "You can change the UI style any time through the theme setting"msgstr "您可以随时通过主题设置更改UI样式"diff --git a/packages/notifications/src/index.ts b/packages/notifications/src/index.tsindex e25b441f86..fe4c63e313 100644--- a/packages/notifications/src/index.ts+++ b/packages/notifications/src/index.ts@@ -31,6 +31,7 @@ export enum NotificationEvent {SupplierQuoteAssignment = "supplier-quote-assignment",SupplierQuoteResponse = "supplier-quote-response",TrainingAssignment = "training-assignment",+ ResourceTrainingAssignment = "resource-training-assignment",Digest = "digest"}@@ -91,6 +92,7 @@ export function getNotificationTopic(return NotificationTopic.Quality;case NotificationEvent.ProcedureAssignment:case NotificationEvent.TrainingAssignment:+ case NotificationEvent.ResourceTrainingAssignment:return NotificationTopic.Training;case NotificationEvent.StockTransferAssignment:return NotificationTopic.Inventory;@@ -153,6 +155,8 @@ export function getNotificationEmailHeading(event: NotificationEvent): string {return "Procedure assigned to you";case NotificationEvent.TrainingAssignment:return "Training assigned to you";+ case NotificationEvent.ResourceTrainingAssignment:+ return "New training available";case NotificationEvent.StockTransferAssignment:return "Stock transfer assigned to you";case NotificationEvent.SuggestionResponse: