Skip to content

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

Menu Customization

Brad Barbin51a27dd1c78e
diff --git a/.gitignore b/.gitignore
index 18cc169a52..090598cad7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,5 +56,6 @@ packages/database/supabase/seed.sql
# Worktree-isolated dev environment
.carbon-worktree
.superpowers
+docs/superpowers
llm/tasks
apps/*/portless.json
\ No newline at end of file
diff --git a/apps/erp/app/components/Layout/Navigation/HiddenModulesPopover.tsx b/apps/erp/app/components/Layout/Navigation/HiddenModulesPopover.tsx
new file mode 100644
index 0000000000..ae40840279
--- /dev/null
+++ b/apps/erp/app/components/Layout/Navigation/HiddenModulesPopover.tsx
@@ -0,0 +1,63 @@
+import { cn, Popover, PopoverContent, PopoverTrigger } from "@carbon/react";
+import { LuPlus } from "react-icons/lu";
+import type { DraftModule } from "./useNavigationEditMode";
+
+type HiddenModulesPopoverProps = {
+ hiddenModules: DraftModule[];
+ onToggleHidden: (key: string) => void;
+};
+
+export function HiddenModulesPopover({
+ hiddenModules,
+ onToggleHidden
+}: HiddenModulesPopoverProps) {
+ if (hiddenModules.length === 0) return null;
+
+ return (
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ className={cn(
+ "relative",
+ "h-10 w-10 group-data-[state=expanded]:w-full",
+ "flex items-center rounded-md",
+ "group-data-[state=collapsed]:justify-center",
+ "font-medium shrink-0 inline-flex select-none",
+ "text-muted-foreground",
+ "hover:bg-accent hover:text-accent-foreground",
+ "transition-[background-color,color,width] duration-100 ease-out"
+ )}
+ >
+ <LuPlus className="absolute left-3 top-3 flex items-center justify-center" />
+ <span
+ className={cn(
+ "min-w-[128px] text-sm",
+ "absolute left-7 group-data-[state=expanded]:left-12",
+ "opacity-0 group-data-[state=expanded]:opacity-100"
+ )}
+ >
+ Add module
+ </span>
+ </button>
+ </PopoverTrigger>
+ <PopoverContent side="right" align="end" className="w-48 p-1">
+ {hiddenModules.map((m) => (
+ <button
+ key={m.key}
+ type="button"
+ onClick={() => onToggleHidden(m.key)}
+ className={cn(
+ "flex items-center gap-2 w-full px-2 py-1.5 rounded-sm",
+ "text-sm text-left",
+ "hover:bg-accent hover:text-accent-foreground"
+ )}
+ >
+ <m.icon className="w-4 h-4" />
+ {m.name}
+ </button>
+ ))}
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/erp/app/components/Layout/Navigation/NavigationEditBar.tsx b/apps/erp/app/components/Layout/Navigation/NavigationEditBar.tsx
new file mode 100644
index 0000000000..3492a9bb2f
--- /dev/null
+++ b/apps/erp/app/components/Layout/Navigation/NavigationEditBar.tsx
@@ -0,0 +1,44 @@
+import { Button, cn } from "@carbon/react";
+
+type NavigationEditBarProps = {
+ isSaving: boolean;
+ isDirty: boolean;
+ onSave: () => void;
+ onCancel: () => void;
+};
+
+export function NavigationEditBar({
+ isSaving,
+ isDirty,
+ onSave,
+ onCancel
+}: NavigationEditBarProps) {
+ return (
+ <div
+ className={cn(
+ "flex gap-1 px-2",
+ "opacity-0 group-data-[state=expanded]:opacity-100",
+ "transition-opacity"
+ )}
+ >
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={onCancel}
+ disabled={isSaving}
+ className="flex-1 h-8 text-xs"
+ >
+ Cancel
+ </Button>
+ <Button
+ size="sm"
+ variant="primary"
+ onClick={onSave}
+ disabled={!isDirty || isSaving}
+ className="flex-1 h-8 text-xs"
+ >
+ {isSaving ? "Saving..." : "Save"}
+ </Button>
+ </div>
+ );
+}
diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
index 9c58f9d919..7a9d1d433a 100644
--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx
@@ -1,9 +1,26 @@
import { cn, useDisclosure, VStack } from "@carbon/react";
+import {
+ closestCenter,
+ DndContext,
+ KeyboardSensor,
+ PointerSensor,
+ useSensor,
+ useSensors
+} from "@dnd-kit/core";
+import {
+ SortableContext,
+ verticalListSortingStrategy
+} from "@dnd-kit/sortable";
import type { AnchorHTMLAttributes } from "react";
-import { forwardRef, memo } from "react";
+import { forwardRef, memo, useEffect } from "react";
+import { LuSettings2 } from "react-icons/lu";
import { Link, useMatches } from "react-router";
import { useModules, useOptimisticLocation } from "~/hooks";
import type { Authenticated, NavItem } from "~/types";
+import { HiddenModulesPopover } from "./HiddenModulesPopover";
+import { NavigationEditBar } from "./NavigationEditBar";
+import { SortableNavItem } from "./SortableNavItem";
+import { useNavigationEditMode } from "./useNavigationEditMode";
const PrimaryNavigation = () => {
const navigationPanel = useDisclosure();
@@ -20,41 +37,125 @@ const PrimaryNavigation = () => {
return acc;
}, new Set<string>());
+ const editMode = useNavigationEditMode();
+
+ const sensors = useSensors(
+ useSensor(PointerSensor, { activationConstraint: { distance: 8 } }),
+ useSensor(KeyboardSensor)
+ );
+
+ useEffect(() => {
+ if (!editMode.isEditing) return;
+ const onKeyDown = (e: KeyboardEvent) => {
+ if (e.key === "Escape") editMode.cancelEditMode();
+ };
+ document.addEventListener("keydown", onKeyDown);
+ return () => document.removeEventListener("keydown", onKeyDown);
+ }, [editMode.isEditing, editMode.cancelEditMode]);
+
+ const isOpen = navigationPanel.isOpen || editMode.isEditing;
+
return (
<div className="w-14 h-full flex-col z-50 hidden sm:flex">
<nav
- data-state={navigationPanel.isOpen ? "expanded" : "collapsed"}
+ data-state={isOpen ? "expanded" : "collapsed"}
className={cn(
"bg-background py-2 group z-10 h-full w-14 data-[state=expanded]:w-[13rem]",
"flex flex-col justify-between data-[state=expanded]:shadow-xl data-[state=expanded]:border-r data-[state=expanded]:border-border",
"transition-width duration-200",
"hide-scrollbar overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"
)}
- onMouseEnter={navigationPanel.onOpen}
- onMouseLeave={navigationPanel.onClose}
+ onMouseEnter={editMode.isEditing ? undefined : navigationPanel.onOpen}
+ onMouseLeave={editMode.isEditing ? undefined : navigationPanel.onClose}
>
<VStack
spacing={1}
className="flex flex-col justify-between h-full px-2"
>
<VStack spacing={1}>
- {links.map((link) => {
- const m = getModule(link.to);
-
- const moduleMatches = matchedModules.has(m);
-
- const isActive = currentModule === m || moduleMatches;
- return (
- <NavigationIconLink
- key={link.name}
- link={link}
- isActive={isActive}
- isOpen={navigationPanel.isOpen}
- onClick={navigationPanel.onClose}
- />
- );
- })}
+ {editMode.isEditing ? (
+ <DndContext
+ sensors={sensors}
+ collisionDetection={closestCenter}
+ onDragEnd={editMode.handleDragEnd}
+ >
+ <SortableContext
+ items={editMode.visibleDraft.map((m) => m.key)}
+ strategy={verticalListSortingStrategy}
+ >
+ {editMode.visibleDraft.map((module) => (
+ <SortableNavItem
+ key={module.key}
+ module={module}
+ isOpen={isOpen}
+ onToggleHidden={editMode.toggleHidden}
+ />
+ ))}
+ </SortableContext>
+ </DndContext>
+ ) : (
+ links.map((link) => {
+ const m = getModule(link.to);
+ const moduleMatches = matchedModules.has(m);
+ const isActive = currentModule === m || moduleMatches;
+ return (
+ <NavigationIconLink
+ key={link.name}
+ link={link}
+ isActive={isActive}
+ isOpen={isOpen}
+ onClick={navigationPanel.onClose}
+ />
+ );
+ })
+ )}
+
+ {editMode.isEditing && (
+ <HiddenModulesPopover
+ hiddenModules={editMode.hiddenDraft}
+ onToggleHidden={editMode.toggleHidden}
+ />
+ )}
</VStack>
+
+ {editMode.isEditing ? (
+ <NavigationEditBar
+ isSaving={editMode.isSaving}
+ isDirty={editMode.isDirty}
+ onSave={editMode.save}
+ onCancel={editMode.cancelEditMode}
+ />
+ ) : (
+ <button
+ type="button"
+ onClick={editMode.enterEditMode}
+ className={cn(
+ "relative",
+ "h-10 w-10 group-data-[state=expanded]:w-full",
+ "flex items-center rounded-md",
+ "group-data-[state=collapsed]:justify-center",
+ "group-data-[state=expanded]:-space-x-2",
+ "font-medium shrink-0 inline-flex select-none",
+ "text-muted-foreground",
+ "hover:bg-accent hover:text-accent-foreground",
+ "transition-[background-color,color,width] duration-100 ease-out",
+ "focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0",
+ "after:pointer-events-none after:absolute after:-inset-[3px] after:rounded-lg after:border after:border-blue-500 after:opacity-0 after:ring-2 after:ring-blue-500/20 after:transition-opacity focus-visible:after:opacity-100 active:after:opacity-0",
+ "group/item"
+ )}
+ >
+ <LuSettings2 className="absolute left-3 top-3 flex items-center justify-center" />
+ <span
+ className={cn(
+ "min-w-[128px] text-sm text-left",
+ "absolute left-7 group-data-[state=expanded]:left-12",
+ "opacity-0 group-data-[state=expanded]:opacity-100"
+ )}
+ >
+ Customize
+ </span>
+ </button>
+ )}
</VStack>
</nav>
</div>
@@ -73,27 +174,21 @@ const NavigationIconLink = forwardRef<
NavigationIconButtonProps
>(({ link, isActive = false, isOpen = false, onClick, ...props }, ref) => {
const iconClasses = [
- "absolute left-3 top-3 flex items-center items-center justify-center" // Layout
+ "absolute left-3 top-3 flex items-center items-center justify-center"
];
const classes = [
- // Layout
"relative",
"h-10 w-10 group-data-[state=expanded]:w-full",
"flex items-center rounded-md",
"group-data-[state=collapsed]:justify-center",
"group-data-[state=expanded]:-space-x-2",
- // Typography & base styles
"font-medium shrink-0 inline-flex items-center justify-center select-none",
"disabled:opacity-50",
- // Animation: snappy 100ms ease-out
"transition-[background-color,color,width] duration-100 ease-out",
- // Focus ring (after: pseudo-element)
"focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0",
"after:pointer-events-none after:absolute after:-inset-[3px] after:rounded-lg after:border after:border-blue-500 after:opacity-0 after:ring-2 after:ring-blue-500/20 after:transition-opacity focus-visible:after:opacity-100 active:after:opacity-0",
- // Hover state (non-active items)
!isActive && "hover:bg-accent hover:text-accent-foreground",
- // Active/selected state - solid background, no gradient overlay
isActive && "bg-active text-active-foreground dark:shadow-button-base",
"group/item"
];
diff --git a/apps/erp/app/components/Layout/Navigation/SortableNavItem.tsx b/apps/erp/app/components/Layout/Navigation/SortableNavItem.tsx
new file mode 100644
index 0000000000..e4b8e8b20d
--- /dev/null
+++ b/apps/erp/app/components/Layout/Navigation/SortableNavItem.tsx
@@ -0,0 +1,92 @@
+import { cn } from "@carbon/react";
+import { useSortable } from "@dnd-kit/sortable";
+import { CSS } from "@dnd-kit/utilities";
+import { LuEyeOff, LuGripVertical } from "react-icons/lu";
+import type { DraftModule } from "./useNavigationEditMode";
+
+type SortableNavItemProps = {
+ module: DraftModule;
+ isOpen: boolean;
+ onToggleHidden: (key: string) => void;
+};
+
+export function SortableNavItem({
+ module,
+ isOpen,
+ onToggleHidden
+}: SortableNavItemProps) {
+ const {
+ attributes,
+ listeners,
+ setNodeRef,
+ transform,
+ transition,
+ isDragging
+ } = useSortable({ id: module.key });
+
+ const style = {
+ transform: CSS.Translate.toString(transform),
+ transition
+ };
+
+ return (
+ <div
+ ref={setNodeRef}
+ style={style}
+ className={cn(
+ "relative",
+ "h-10 w-10 group-data-[state=expanded]:w-full",
+ "flex items-center rounded-md",
+ "group-data-[state=collapsed]:justify-center",
+ "group-data-[state=expanded]:-space-x-2",
+ "font-medium shrink-0 inline-flex select-none",
+ "transition-[background-color,color,width] duration-100 ease-out",
+ "hover:bg-accent hover:text-accent-foreground",
+ "border border-transparent",
+ isDragging && "opacity-50 border-primary",
+ "group/item"
+ )}
+ >
+ {/* Drag handle */}
+ <div
+ className={cn(
+ "absolute left-0 top-0 h-full flex items-center pl-1",
+ "opacity-0 group-data-[state=expanded]:opacity-100",
+ "cursor-grab active:cursor-grabbing"
+ )}
+ {...attributes}
+ {...listeners}
+ >
+ <LuGripVertical className="w-3 h-3 text-muted-foreground" />
+ </div>
+
+ {/* Module icon */}
+ <module.icon className="absolute left-8 top-3 flex items-center justify-center" />
+
+ {/* Module name */}
+ <span
+ className={cn(
+ "min-w-[128px] text-sm",
+ "absolute left-12 group-data-[state=expanded]:left-16",
+ "opacity-0 group-data-[state=expanded]:opacity-100"
+ )}
+ >
+ {module.name}
+ </span>
+
+ {/* Hide button */}
+ <button
+ type="button"
+ onClick={() => onToggleHidden(module.key)}
+ className={cn(
+ "absolute right-2 top-2.5 p-0.5 rounded",
+ "opacity-0 group-data-[state=expanded]:opacity-100",
+ "text-muted-foreground hover:text-foreground",
+ "transition-opacity"
+ )}
+ >
+ <LuEyeOff className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ );
+}
diff --git a/apps/erp/app/components/Layout/Navigation/useNavigationEditMode.tsx b/apps/erp/app/components/Layout/Navigation/useNavigationEditMode.tsx
new file mode 100644
index 0000000000..129a879ac5
--- /dev/null
+++ b/apps/erp/app/components/Layout/Navigation/useNavigationEditMode.tsx
@@ -0,0 +1,127 @@
+import type { DragEndEvent } from "@dnd-kit/core";
+import { arrayMove } from "@dnd-kit/sortable";
+import { useCallback, useMemo, useState } from "react";
+import { useRevalidator } from "react-router";
+import { useAllModules } from "~/hooks";
+import type { Authenticated, NavItem } from "~/types";
+
+export type DraftModule = Authenticated<NavItem> & {
+ key: string;
+ position: number;
+ hidden: boolean;
+};
+
+export function useNavigationEditMode() {
+ const allModules = useAllModules();
+ const revalidator = useRevalidator();
+
+ const [isEditing, setIsEditing] = useState(false);
+ const [draft, setDraft] = useState<DraftModule[]>([]);
+ const [isSaving, setIsSaving] = useState(false);
+
+ const originalRef = useMemo(() => {
+ return allModules.map((m, i) => ({
+ ...m,
+ position: m.position ?? i + 1,
+ hidden: m.hidden ?? false
+ }));
+ }, [allModules]);
+
+ const enterEditMode = useCallback(() => {
+ setDraft(originalRef.map((m) => ({ ...m })));
+ setIsEditing(true);
+ }, [originalRef]);
+
+ const cancelEditMode = useCallback(() => {
+ setDraft([]);
+ setIsEditing(false);
+ }, []);
+
+ const visibleDraft = useMemo(() => draft.filter((m) => !m.hidden), [draft]);
+
+ const hiddenDraft = useMemo(() => draft.filter((m) => m.hidden), [draft]);
+
+ const isDirty = useMemo(() => {
+ if (draft.length === 0) return false;
+ return draft.some((d) => {
+ const orig = originalRef.find((o) => o.key === d.key);
+ if (!orig) return true;
+ return d.position !== orig.position || d.hidden !== orig.hidden;
+ });
+ }, [draft, originalRef]);
+
+ const handleDragEnd = useCallback((event: DragEndEvent) => {
+ const { active, over } = event;
+ if (!over || active.id === over.id) return;
+
+ setDraft((prev) => {
+ const visible = prev.filter((m) => !m.hidden);
+ const hidden = prev.filter((m) => m.hidden);
+
+ const oldIndex = visible.findIndex((m) => m.key === active.id);
+ const newIndex = visible.findIndex((m) => m.key === over.id);
+
+ if (oldIndex === -1 || newIndex === -1) return prev;
+
+ const reordered = arrayMove(visible, oldIndex, newIndex);
+
+ const repositioned = reordered.map((m, i) => ({
+ ...m,
+ position: i + 1
+ }));
+
+ return [...repositioned, ...hidden];
+ });
+ }, []);
+
+ const toggleHidden = useCallback((key: string) => {
+ setDraft((prev) => {
+ const updated = prev.map((m) =>
+ m.key === key ? { ...m, hidden: !m.hidden } : m
+ );
+ const visible = updated.filter((m) => !m.hidden);
+ const hidden = updated.filter((m) => m.hidden);
+ return [...visible.map((m, i) => ({ ...m, position: i + 1 })), ...hidden];
+ });
+ }, []);
+
+ const save = useCallback(async () => {
+ setIsSaving(true);
+ try {
+ const response = await fetch("/api/module-preferences", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ preferences: draft.map((m) => ({
+ module: m.key,
+ position: m.position,
+ hidden: m.hidden
+ }))
+ })
+ });
+
+ if (!response.ok) {
+ throw new Error("Failed to save preferences");
+ }
+
+ setIsEditing(false);
+ setDraft([]);
+ revalidator.revalidate();
+ } finally {
+ setIsSaving(false);
+ }
+ }, [draft, revalidator]);
+
+ return {
+ isEditing,
+ isSaving,
+ isDirty,
+ visibleDraft,
+ hiddenDraft,
+ enterEditMode,
+ cancelEditMode,
+ handleDragEnd,
+ toggleHidden,
+ save
+ };
+}
diff --git a/apps/erp/app/hooks/index.ts b/apps/erp/app/hooks/index.ts
index 4240d8119d..97cbccc74b 100644
--- a/apps/erp/app/hooks/index.ts
+++ b/apps/erp/app/hooks/index.ts
@@ -9,7 +9,7 @@ import { useCurrencyFormatter } from "./useCurrencyFormatter";
import { useDateFormatter } from "./useDateFormatter";
import { useFlags } from "./useFlags";
import { useGooglePlaces } from "./useGooglePlaces";
-import { useModules } from "./useModules";
+import { useAllModules, useModules } from "./useModules";
import { useMovingCellRef } from "./useMovingCellRef";
import { useNextItemId } from "./useNextItemId";
import { useNotifications } from "./useNotifications";
@@ -29,6 +29,7 @@ export {
useDateFormatter,
useFlags,
useGooglePlaces,
+ useAllModules,
useModules,
useMovingCellRef,
useNanoStore,
diff --git a/apps/erp/app/hooks/useModules.tsx b/apps/erp/app/hooks/useModules.tsx
index f2521a5134..f8310c9169 100644
--- a/apps/erp/app/hooks/useModules.tsx
+++ b/apps/erp/app/hooks/useModules.tsx
@@ -1,3 +1,4 @@
+import { useRouteData } from "@carbon/react";
import { useLingui } from "@lingui/react/macro";
import {
LuBox,
@@ -18,98 +19,177 @@ import type { Authenticated, NavItem } from "~/types";
import { path } from "~/utils/path";
import { usePermissions } from "./usePermissions";
-export function useModules() {
- const permissions = usePermissions();
- const { t } = useLingui();
+type ModuleDefinition = Authenticated<NavItem> & { key: string };
+
+type ModulePreference = {
+ module: string;
+ position: number;
+ hidden: boolean;
+};
+
+function filterByPermissions(
+ modules: ModuleDefinition[],
+ permissions: ReturnType<typeof usePermissions>
+) {
+ return modules.filter((item) => {
+ if (item.permission) {
+ return permissions.can("view", item.permission);
+ } else if (item.role) {
+ return permissions.is(item.role);
+ } else {
+ return true;
+ }
+ });
+}
- const modules: Authenticated<NavItem>[] = [
+function useModuleDefinitions(): ModuleDefinition[] {
+ const { t } = useLingui();
+ return [
{
- name: t`Shop Floor`,
- to: path.to.external.mes,
- icon: LuTvMinimalPlay,
- role: "employee"
+ key: "accounting",
+ permission: "accounting",
+ name: t`Accounting`,
+ to: path.to.chartOfAccounts,
+ icon: LuLandmark
},
{
- permission: "sales",
- name: t`Sales`,
- to: path.to.sales,
- icon: LuCrown
+ key: "documents",
+ permission: "documents",
+ name: t`Documents`,
+ to: path.to.documents,
+ icon: LuFiles
},
{
- permission: "production",
- name: t`Production`,
- to: path.to.production,
- icon: LuFactory
+ key: "inventory",
+ permission: "inventory",
+ name: t`Inventory`,
+ to: path.to.inventory,
+ icon: LuBox
},
{
+ key: "parts",
permission: "parts",
name: t`Items`,
to: path.to.parts,
icon: LuSquareStack
},
{
- permission: "inventory",
- name: t`Inventory`,
- to: path.to.inventory,
- icon: LuBox
+ key: "people",
+ permission: "people",
+ name: t`People`,
+ to: path.to.people,
+ icon: LuUsers
+ },
+ {
+ key: "production",
+ permission: "production",
+ name: t`Production`,
+ to: path.to.production,
+ icon: LuFactory
},
{
+ key: "purchasing",
permission: "purchasing",
name: t`Purchasing`,
to: path.to.purchasing,
icon: LuShoppingCart
},
{
+ key: "quality",
permission: "quality",
name: t`Quality`,
to: path.to.quality,
icon: LuFolderCheck
},
{
- permission: "accounting",
- name: t`Accounting`,
- to: path.to.chartOfAccounts,
- icon: LuLandmark
- },
- {
- permission: "people",
- name: t`People`,
- to: path.to.people,
- icon: LuUsers
- },
- {
+ key: "resources",
permission: "resources",
name: t`Resources`,
to: path.to.resources,
icon: LuWrench
},
{
- permission: "documents",
- name: t`Documents`,
- to: path.to.documents,
- icon: LuFiles
- },
- {
- permission: "users",
- name: t`Users`,
- to: path.to.employeeAccounts,
- icon: LuShield
+ key: "sales",
+ permission: "sales",
+ name: t`Sales`,
+ to: path.to.sales,
+ icon: LuCrown
},
{
+ key: "settings",
permission: "settings",
name: t`Settings`,
to: path.to.company,
icon: LuSettings
+ },
+ {
+ key: "shopFloor",
+ name: t`Shop Floor`,
+ to: path.to.external.mes,
+ icon: LuTvMinimalPlay,
+ role: "employee"
+ },
+ {
+ key: "users",
+ permission: "users",
+ name: t`Users`,
+ to: path.to.employeeAccounts,
+ icon: LuShield
}
];
+}
- return modules.filter((item) => {
- if (item.permission) {
- return permissions.can("view", item.permission);
- } else if (item.role) {
- return permissions.is(item.role);
- } else {
- return true;
- }
+export function useModules() {
+ const permissions = usePermissions();
+ const modules = useModuleDefinitions();
+
+ const routeData = useRouteData<{
+ modulePreferences: ModulePreference[];
+ }>(path.to.authenticatedRoot);
+
+ const modulePreferences = routeData?.modulePreferences ?? [];
+ const permitted = filterByPermissions(modules, permissions);
+
+ const alphabetical = permitted.sort((a, b) => a.name.localeCompare(b.name));
+
+ if (modulePreferences.length === 0) {
+ return alphabetical;
+ }
+
+ const prefMap = new Map(modulePreferences.map((p) => [p.module, p]));
+
+ const visible = alphabetical.filter((m) => {
+ const pref = prefMap.get(m.key);
+ return !pref?.hidden;
+ });
+
+ return visible.sort((a, b) => {
+ const posA = prefMap.get(a.key)?.position ?? Infinity;
+ const posB = prefMap.get(b.key)?.position ?? Infinity;
+ return posA - posB;
});
}
+
+export function useAllModules() {
+ const permissions = usePermissions();
+ const modules = useModuleDefinitions();
+
+ const routeData = useRouteData<{
+ modulePreferences: ModulePreference[];
+ }>(path.to.authenticatedRoot);
+
+ const modulePreferences = routeData?.modulePreferences ?? [];
+ const permitted = filterByPermissions(modules, permissions).sort((a, b) =>
+ a.name.localeCompare(b.name)
+ );
+
+ const prefMap = new Map(modulePreferences.map((p) => [p.module, p]));
+
+ return permitted
+ .map((m, index) => ({
+ ...m,
+ position: prefMap.get(m.key)?.position ?? index + 1,
+ hidden: prefMap.get(m.key)?.hidden ?? false
+ }))
+ .sort((a, b) => a.position - b.position);
+}
diff --git a/apps/erp/app/modules/users/users.server.ts b/apps/erp/app/modules/users/users.server.ts
index e69fbe3a56..990fdfd71a 100644
--- a/apps/erp/app/modules/users/users.server.ts
+++ b/apps/erp/app/modules/users/users.server.ts
@@ -701,6 +701,38 @@ export async function getUserDefaults(
.maybeSingle();
}
+export async function getModulePreferences(
+ client: SupabaseClient<Database>,
+ userId: string,
+ companyId: string
+) {
+ return client
+ .from("userModulePreference")
+ .select("module, position, hidden")
+ .eq("userId", userId)
+ .eq("companyId", companyId)
+ .order("position");
+}
+
+export async function upsertModulePreferences(
+ client: SupabaseClient<Database>,
+ userId: string,
+ companyId: string,
+ preferences: { module: string; position: number; hidden: boolean }[]
+) {
+ return client.from("userModulePreference").upsert(
+ preferences.map((p) => ({
+ userId,
+ companyId,
+ module: p.module,
+ position: p.position,
+ hidden: p.hidden,
+ updatedAt: new Date().toISOString()
+ })),
+ { onConflict: "userId,companyId,module" }
+ );
+}
+
async function insertCustomerAccount(
client: SupabaseClient<Database>,
customerAccount: {
diff --git a/apps/erp/app/routes/api+/module-preferences.tsx b/apps/erp/app/routes/api+/module-preferences.tsx
new file mode 100644
index 0000000000..e0044e6a5b
--- /dev/null
+++ b/apps/erp/app/routes/api+/module-preferences.tsx
@@ -0,0 +1,31 @@
+import { assertIsPost } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import type { ActionFunctionArgs } from "react-router";
+import { data } from "react-router";
+import { upsertModulePreferences } from "~/modules/users/users.server";
+
+export async function action({ request }: ActionFunctionArgs) {
+ assertIsPost(request);
+ const { client, userId, companyId } = await requirePermissions(request, {});
+
+ const body = (await request.json()) as {
+ preferences: { module: string; position: number; hidden: boolean }[];
+ };
+
+ if (!Array.isArray(body.preferences)) {
+ return data({ error: "Invalid preferences format" }, { status: 400 });
+ }
+
+ const result = await upsertModulePreferences(
+ client,
+ userId,
+ companyId,
+ body.preferences
+ );
+
+ if (result.error) {
+ return data({ error: result.error.message }, { status: 500 });
+ }
+
+ return data({ success: true });
+}
diff --git a/apps/erp/app/routes/x+/_index.tsx b/apps/erp/app/routes/x+/_index.tsx
index e01d49afd6..2134eb2541 100644
--- a/apps/erp/app/routes/x+/_index.tsx
+++ b/apps/erp/app/routes/x+/_index.tsx
@@ -1,37 +1,14 @@
-import { Provider as ChatProvider } from "@ai-sdk-tools/store";
import { cn } from "@carbon/react";
import { getLocalTimeZone } from "@internationalized/date";
import { useLocale } from "@react-aria/i18n";
import type { ComponentProps } from "react";
import { useMemo } from "react";
import { Link } from "react-router";
-import { ChatInterface } from "~/components/Chat";
-// import { DevTools } from "~/components/Chat/DevTools.client";
-import { useChatInterface } from "~/components/Chat/hooks/useChatInterface";
import { Greeting } from "~/components/Greeting";
import { useModules } from "~/hooks";
-import { useFlags } from "~/hooks/useFlags";
import type { Authenticated, NavItem } from "~/types";
export default function AppIndexRoute() {
- const { isCommunity, isControlledEnvironment, isInternal } = useFlags();
- const hasChatPrototype =
- (isInternal && !isControlledEnvironment) || isCommunity;
- return hasChatPrototype ? <ChatPage /> : <AppsPage />;
-}
-
-const ChatPage = () => {
- const { chatId: currentChatId } = useChatInterface();
-
- return (
- <ChatProvider initialMessages={[]} key={currentChatId || "home"}>
- <ChatInterface />
- {/* {getAppUrl().includes("localhost") && <DevTools />} */}
- </ChatProvider>
- );
-};
-
-const AppsPage = () => {
const modules = useModules();
const { locale } = useLocale();
const date = new Date();
@@ -51,14 +28,14 @@ const AppsPage = () => {
<Hr />
<div className="grid grid-cols-[repeat(auto-fill,minmax(min(100%,300px),1fr))] gap-6 mb-8">
{modules
- .filter((mod) => mod.name !== "Settings")
+ .filter((mod) => mod.key !== "settings")
.map((module) => (
- <ModuleCard key={module.name} module={module} />
+ <ModuleCard key={module.key} module={module} />
))}
</div>
</div>
);
-};
+}
const Hr = () => (
<hr className="h-px my-8 bg-black/10 border-0 dark:bg-white/10" />
diff --git a/apps/erp/app/routes/x+/_layout.tsx b/apps/erp/app/routes/x+/_layout.tsx
index c40e84a6a6..36ef33442b 100644
--- a/apps/erp/app/routes/x+/_layout.tsx
+++ b/apps/erp/app/routes/x+/_layout.tsx
@@ -52,6 +52,7 @@ import {
isApprovalRequired
} from "~/modules/shared/shared.service";
import {
+ getModulePreferences,
getUser,
getUserClaims,
getUserDefaults,
@@ -109,7 +110,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
claims,
groups,
defaults,
- auditLogEnabled
+ auditLogEnabled,
+ modulePreferences
] = await Promise.all([
getCompanies(client, userId),
getStripeCustomerByCompanyId(companyId, userId),
@@ -121,7 +123,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
getUserClaims(userId, companyId),
getUserGroups(client, userId),
getUserDefaults(client, userId, companyId),
- isAuditLogEnabled(client, companyId)
+ isAuditLogEnabled(client, companyId),
+ getModulePreferences(client, userId, companyId)
]);
if (!claims || user.error || !user.data || !groups.data) {
@@ -170,6 +173,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
plan: stripeCustomer?.planId,
role: claims?.role,
user: user.data,
+ modulePreferences: modulePreferences.data ?? [],
savedViews: savedViews.data ?? [],
supplierApprovalRequired: isApprovalRequired(client, "supplier", companyId),
openClockEntry: companySettings.data?.timeCardEnabled
diff --git a/docs/superpowers/plans/2026-05-03-accrual-accounting.md b/docs/superpowers/plans/2026-05-03-accrual-accounting.md
deleted file mode 100644
index 160f920ce5..0000000000
--- a/docs/superpowers/plans/2026-05-03-accrual-accounting.md
+++ /dev/null
@@ -1,2346 +0,0 @@
-# Accrual Accounting Rewrite Implementation Plan
-
-> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-
-**Goal:** Fix COGS calculation, add journal entries at shipment, add dimensions to sales transactions, implement WIP accounting for manufacturing, and build a cost layer system on costLedger.
-
-**Architecture:** Shared COGS calculation engine consumed by `post-shipment` and `post-sales-invoice`. Cost layers tracked via `costLedger.remainingQuantity` for FIFO/LIFO. WIP journal entries at material issuance and job completion in the `issue` edge function. All journal entries gated by `isInternalUser` flag. Dimensions (ItemPostingGroup, Location, CustomerType, CostCenter) attached to all journal lines via `journalLineDimension` table.
-
-**Tech Stack:** Deno edge functions, Kysely query builder, Supabase (Postgres), Zod validation.
-
-**Spec:** `docs/superpowers/specs/2026-05-03-accrual-accounting-design.md`
-
----
-
-## File Structure
-
-| File | Responsibility |
-|------|---------------|
-| `packages/database/supabase/migrations/20260504000000_cost-layers.sql` | Add `remainingQuantity` to costLedger, add `laborAbsorptionAccount` to accountDefault |
-| `packages/database/supabase/migrations/20260504000001_cost-layers-backfill.sql` | Backfill `remainingQuantity` on existing costLedger entries |
-| `packages/database/supabase/functions/shared/calculate-cogs.ts` | COGS calculation engine: Standard, Average, FIFO, LIFO |
-| `packages/database/supabase/functions/update-purchased-prices/index.ts` | Set `remainingQuantity` on costLedger inserts |
-| `packages/database/supabase/functions/post-shipment/index.ts` | Add journal entries (COGS + Inventory), dimensions, costLedger consumption |
-| `packages/database/supabase/functions/post-sales-invoice/index.ts` | Remove COGS from SO-linked invoices, fix direct invoice COGS, add dimensions |
-| `packages/database/supabase/functions/issue/index.ts` | WIP journal entries on material issuance, costLedger + FG journal entries on job completion |
-| `packages/database/supabase/functions/lib/utils.ts` | Add `journalReference.to.job(id)` and `journalReference.to.materialIssue(id)` |
-
----
-
-### Task 1: Migration — Add `remainingQuantity` and `laborAbsorptionAccount`
-
-**Files:**
-- Create: `packages/database/supabase/migrations/20260504000000_cost-layers.sql`
-
-- [ ] **Step 1: Write the migration**
-
-```sql
--- Add remainingQuantity to costLedger for FIFO/LIFO cost layers
-ALTER TABLE "costLedger"
- ADD COLUMN IF NOT EXISTS "remainingQuantity" NUMERIC(12, 4) NOT NULL DEFAULT 0;
-
-CREATE INDEX "costLedger_itemId_remainingQuantity_idx"
- ON "costLedger" ("itemId", "remainingQuantity")
- WHERE "remainingQuantity" > 0;
-
--- Add laborAbsorptionAccount to accountDefault
-ALTER TABLE "accountDefault"
- ADD COLUMN IF NOT EXISTS "laborAbsorptionAccount" TEXT REFERENCES "account" ("id");
-```
-
-- [ ] **Step 2: Verify migration applies**
-
-Run: `grep -c "remainingQuantity" packages/database/supabase/migrations/20260504000000_cost-layers.sql`
-Expected: 3 (the column definition, the index, and the WHERE clause)
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/migrations/20260504000000_cost-layers.sql
-git commit -m "feat: add remainingQuantity to costLedger and laborAbsorptionAccount to accountDefault"
-```
-
----
-
-### Task 2: Migration — Backfill `remainingQuantity`
-
-**Files:**
-- Create: `packages/database/supabase/migrations/20260504000001_cost-layers-backfill.sql`
-
-- [ ] **Step 1: Write the backfill migration**
-
-This migration sets `remainingQuantity` on all existing costLedger entries. For Standard/Average items, set `remainingQuantity = quantity` on all inbound entries. For FIFO items, walk layers newest-to-oldest assigning remaining quantity until on-hand is accounted for. For LIFO items, walk oldest-to-newest.
-
-```sql
--- Backfill remainingQuantity on existing costLedger entries
--- Step 1: Set remainingQuantity = quantity on all inbound entries as baseline
-UPDATE "costLedger" cl
-SET "remainingQuantity" = cl."quantity"
-WHERE cl."itemLedgerType" IN ('Purchase', 'Positive Adjmt.', 'Output', 'Transfer')
- AND cl."quantity" > 0;
-
--- Step 2: For FIFO items, consume layers oldest-first based on current on-hand
--- This DO block walks each (itemId, companyId) pair and adjusts remainingQuantity
-DO $$
-DECLARE
- r RECORD;
- on_hand NUMERIC;
- remaining_to_assign NUMERIC;
- layer RECORD;
-BEGIN
- -- Process each item+company with FIFO costing
- FOR r IN
- SELECT ic."itemId", ic."companyId"
- FROM "itemCost" ic
- WHERE ic."costingMethod" = 'FIFO'
- LOOP
- -- Get current on-hand from itemLedger
- SELECT COALESCE(SUM(il."quantity"), 0) INTO on_hand
- FROM "itemLedger" il
- WHERE il."itemId" = r."itemId"
- AND il."companyId" = r."companyId";
-
- IF on_hand <= 0 THEN
- -- No inventory: zero out all layers
- UPDATE "costLedger"
- SET "remainingQuantity" = 0
- WHERE "itemId" = r."itemId"
- AND "companyId" = r."companyId";
- CONTINUE;
- END IF;
-
- -- Zero out all layers first
- UPDATE "costLedger"
- SET "remainingQuantity" = 0
- WHERE "itemId" = r."itemId"
- AND "companyId" = r."companyId";
-
- -- Walk newest-to-oldest (in FIFO, oldest are consumed first, so newest remain)
- remaining_to_assign := on_hand;
- FOR layer IN
- SELECT cl."id", cl."quantity"
- FROM "costLedger" cl
- WHERE cl."itemId" = r."itemId"
- AND cl."companyId" = r."companyId"
- AND cl."quantity" > 0
- AND cl."itemLedgerType" IN ('Purchase', 'Positive Adjmt.', 'Output', 'Transfer')
- ORDER BY cl."postingDate" DESC, cl."createdAt" DESC
- LOOP
- EXIT WHEN remaining_to_assign <= 0;
-
- IF layer."quantity" <= remaining_to_assign THEN
- UPDATE "costLedger" SET "remainingQuantity" = layer."quantity" WHERE "id" = layer."id";
- remaining_to_assign := remaining_to_assign - layer."quantity";
- ELSE
- UPDATE "costLedger" SET "remainingQuantity" = remaining_to_assign WHERE "id" = layer."id";
- remaining_to_assign := 0;
- END IF;
- END LOOP;
-
- -- Gap handling: if on_hand > costLedger total, create synthetic entry
- IF remaining_to_assign > 0 THEN
- INSERT INTO "costLedger" (
- "itemLedgerType", "costLedgerType", "adjustment", "documentType",
- "itemId", "quantity", "cost", "remainingQuantity", "companyId", "postingDate"
- )
- SELECT
- CASE
- WHEN i."replenishmentSystem" IN ('Make', 'Buy and Make') THEN 'Output'::"itemLedgerType"
- ELSE 'Purchase'::"itemLedgerType"
- END,
- 'Direct Cost'::"costLedgerType",
- false,
- CASE
- WHEN i."replenishmentSystem" IN ('Make', 'Buy and Make') THEN 'Job Receipt'::"itemLedgerDocumentType"
- ELSE 'Purchase Receipt'::"itemLedgerDocumentType"
- END,
- r."itemId",
- remaining_to_assign,
- remaining_to_assign * COALESCE(ic."unitCost", ic."standardCost", 0),
- remaining_to_assign,
- r."companyId",
- COALESCE(
- (SELECT MIN(il."postingDate") FROM "itemLedger" il WHERE il."itemId" = r."itemId" AND il."companyId" = r."companyId"),
- CURRENT_DATE
- )
- FROM "itemCost" ic
- JOIN "item" i ON i."id" = ic."itemId"
- WHERE ic."itemId" = r."itemId"
- AND ic."companyId" = r."companyId";
- END IF;
- END LOOP;
-
- -- Process LIFO items (walk oldest-to-newest, since newest are consumed first)
- FOR r IN
- SELECT ic."itemId", ic."companyId"
- FROM "itemCost" ic
- WHERE ic."costingMethod" = 'LIFO'
- LOOP
- SELECT COALESCE(SUM(il."quantity"), 0) INTO on_hand
- FROM "itemLedger" il
- WHERE il."itemId" = r."itemId"
- AND il."companyId" = r."companyId";
-
- IF on_hand <= 0 THEN
- UPDATE "costLedger"
- SET "remainingQuantity" = 0
- WHERE "itemId" = r."itemId"
- AND "companyId" = r."companyId";
- CONTINUE;
- END IF;
-
- UPDATE "costLedger"
- SET "remainingQuantity" = 0
- WHERE "itemId" = r."itemId"
- AND "companyId" = r."companyId";
-
- remaining_to_assign := on_hand;
- FOR layer IN
- SELECT cl."id", cl."quantity"
- FROM "costLedger" cl
- WHERE cl."itemId" = r."itemId"
- AND cl."companyId" = r."companyId"
- AND cl."quantity" > 0
- AND cl."itemLedgerType" IN ('Purchase', 'Positive Adjmt.', 'Output', 'Transfer')
- ORDER BY cl."postingDate" ASC, cl."createdAt" ASC
- LOOP
- EXIT WHEN remaining_to_assign <= 0;
-
- IF layer."quantity" <= remaining_to_assign THEN
- UPDATE "costLedger" SET "remainingQuantity" = layer."quantity" WHERE "id" = layer."id";
- remaining_to_assign := remaining_to_assign - layer."quantity";
- ELSE
- UPDATE "costLedger" SET "remainingQuantity" = remaining_to_assign WHERE "id" = layer."id";
- remaining_to_assign := 0;
- END IF;
- END LOOP;
-
- IF remaining_to_assign > 0 THEN
- INSERT INTO "costLedger" (
- "itemLedgerType", "costLedgerType", "adjustment", "documentType",
- "itemId", "quantity", "cost", "remainingQuantity", "companyId", "postingDate"
- )
- SELECT
- CASE
- WHEN i."replenishmentSystem" IN ('Make', 'Buy and Make') THEN 'Output'::"itemLedgerType"
- ELSE 'Purchase'::"itemLedgerType"
- END,
- 'Direct Cost'::"costLedgerType",
- false,
- CASE
- WHEN i."replenishmentSystem" IN ('Make', 'Buy and Make') THEN 'Job Receipt'::"itemLedgerDocumentType"
- ELSE 'Purchase Receipt'::"itemLedgerDocumentType"
- END,
- r."itemId",
- remaining_to_assign,
- remaining_to_assign * COALESCE(ic."unitCost", ic."standardCost", 0),
- remaining_to_assign,
- r."companyId",
- COALESCE(
- (SELECT MIN(il."postingDate") FROM "itemLedger" il WHERE il."itemId" = r."itemId" AND il."companyId" = r."companyId"),
- CURRENT_DATE
- )
- FROM "itemCost" ic
- JOIN "item" i ON i."id" = ic."itemId"
- WHERE ic."itemId" = r."itemId"
- AND ic."companyId" = r."companyId";
- END IF;
- END LOOP;
-END $$;
-```
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add packages/database/supabase/migrations/20260504000001_cost-layers-backfill.sql
-git commit -m "feat: backfill remainingQuantity on existing costLedger entries"
-```
-
----
-
-### Task 3: COGS Calculation Engine
-
-**Files:**
-- Create: `packages/database/supabase/functions/shared/calculate-cogs.ts`
-
-- [ ] **Step 1: Create the COGS calculation engine**
-
-This shared module is used by `post-shipment` (for SO shipments) and `post-sales-invoice` (for direct invoices). It supports all four costing methods and handles FIFO/LIFO layer consumption within a Kysely transaction.
-
-```typescript
-import { Transaction } from "kysely";
-import { DB } from "../lib/database.ts";
-
-export interface CostLayer {
- costLedgerId: string;
- quantityConsumed: number;
- unitCost: number;
-}
-
-export interface COGSResult {
- unitCost: number;
- totalCost: number;
- layersConsumed: CostLayer[];
-}
-
-export async function calculateCOGS(
- trx: Transaction<DB>,
- {
- itemId,
- quantity,
- companyId,
- }: {
- itemId: string;
- quantity: number;
- companyId: string;
- }
-): Promise<COGSResult> {
- const itemCost = await trx
- .selectFrom("itemCost")
- .selectAll()
- .where("itemId", "=", itemId)
- .where("companyId", "=", companyId)
- .executeTakeFirstOrThrow();
-
- const costingMethod = itemCost.costingMethod;
-
- switch (costingMethod) {
- case "Standard": {
- const standardCost = Number(itemCost.standardCost ?? 0);
- return {
- unitCost: standardCost,
- totalCost: standardCost * quantity,
- layersConsumed: [],
- };
- }
-
- case "Average": {
- const unitCost = Number(itemCost.unitCost ?? 0);
- return {
- unitCost,
- totalCost: unitCost * quantity,
- layersConsumed: [],
- };
- }
-
- case "FIFO":
- case "LIFO": {
- const orderDirection = costingMethod === "FIFO" ? "asc" : "desc";
-
- const layers = await trx
- .selectFrom("costLedger")
- .selectAll()
- .where("itemId", "=", itemId)
- .where("companyId", "=", companyId)
- .where("remainingQuantity", ">", 0)
- .orderBy("postingDate", orderDirection)
- .orderBy("createdAt", orderDirection)
- .execute();
-
- let remainingToConsume = quantity;
- let totalCost = 0;
- const layersConsumed: CostLayer[] = [];
-
- for (const layer of layers) {
- if (remainingToConsume <= 0) break;
-
- const layerRemaining = Number(layer.remainingQuantity);
- const layerUnitCost =
- Number(layer.quantity) > 0
- ? Number(layer.cost) / Number(layer.quantity)
- : 0;
-
- const quantityFromLayer = Math.min(remainingToConsume, layerRemaining);
- const costFromLayer = quantityFromLayer * layerUnitCost;
-
- totalCost += costFromLayer;
- remainingToConsume -= quantityFromLayer;
-
- layersConsumed.push({
- costLedgerId: layer.id,
- quantityConsumed: quantityFromLayer,
- unitCost: layerUnitCost,
- });
-
- await trx
- .updateTable("costLedger")
- .set({
- remainingQuantity: layerRemaining - quantityFromLayer,
- })
- .where("id", "=", layer.id)
- .execute();
- }
-
- // Fallback: insufficient layers (negative inventory scenario)
- if (remainingToConsume > 0) {
- const fallbackUnitCost = Number(itemCost.unitCost ?? 0);
- totalCost += remainingToConsume * fallbackUnitCost;
- }
-
- const effectiveUnitCost = quantity > 0 ? totalCost / quantity : 0;
-
- return {
- unitCost: effectiveUnitCost,
- totalCost,
- layersConsumed,
- };
- }
-
- default:
- throw new Error(`Unsupported costing method: ${costingMethod}`);
- }
-}
-```
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add packages/database/supabase/functions/shared/calculate-cogs.ts
-git commit -m "feat: add shared COGS calculation engine for Standard/Average/FIFO/LIFO"
-```
-
----
-
-### Task 4: Add Journal Reference Helpers
-
-**Files:**
-- Modify: `packages/database/supabase/functions/lib/utils.ts:85-92`
-
-- [ ] **Step 1: Add job and materialIssue references**
-
-In `packages/database/supabase/functions/lib/utils.ts`, add two new reference generators to the `journalReference.to` object:
-
-```typescript
-export const journalReference = {
- to: {
- purchaseInvoice: (id: string) => `purchase-invoice:${id}`,
- receipt: (id: string) => `receipt:${id}`,
- salesInvoice: (id: string) => `sales-invoice:${id}`,
- shipment: (id: string) => `shipment:${id}`,
- job: (id: string) => `job:${id}`,
- materialIssue: (id: string) => `material-issue:${id}`,
- },
-};
-```
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add packages/database/supabase/functions/lib/utils.ts
-git commit -m "feat: add job and materialIssue journal reference helpers"
-```
-
----
-
-### Task 5: Set `remainingQuantity` in `update-purchased-prices`
-
-**Files:**
-- Modify: `packages/database/supabase/functions/update-purchased-prices/index.ts:134-147`
-
-- [ ] **Step 1: Add `remainingQuantity` to costLedger inserts**
-
-In the `purchaseOrder` case of `update-purchased-prices/index.ts`, the costLedger inserts (around line 136) need `remainingQuantity` set to the line quantity:
-
-Change the `.map` callback at line 136 from:
-
-```typescript
-.map((line) => ({
- itemLedgerType: "Purchase" as const,
- costLedgerType: "Direct Cost" as const,
- adjustment: false,
- documentType: "Purchase Order" as const,
- documentId: purchaseOrderId,
- itemId: line.itemId!,
- quantity: line.quantity,
- cost: line.quantity * line.unitPrice,
- supplierId,
- companyId,
-}));
-```
-
-to:
-
-```typescript
-.map((line) => ({
- itemLedgerType: "Purchase" as const,
- costLedgerType: "Direct Cost" as const,
- adjustment: false,
- documentType: "Purchase Order" as const,
- documentId: purchaseOrderId,
- itemId: line.itemId!,
- quantity: line.quantity,
- cost: line.quantity * line.unitPrice,
- remainingQuantity: line.quantity,
- supplierId,
- companyId,
-}));
-```
-
-- [ ] **Step 2: Also update the `purchaseInvoice` case**
-
-Find the costLedger insert in the `purchaseInvoice` case (search for `costLedger` after the `purchaseInvoice` case around line 157). Add `remainingQuantity` there too.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/update-purchased-prices/index.ts
-git commit -m "feat: set remainingQuantity on costLedger entries in update-purchased-prices"
-```
-
----
-
-### Task 6: Add Journal Entries to `post-shipment` (Sales Order Case)
-
-**Files:**
-- Modify: `packages/database/supabase/functions/post-shipment/index.ts`
-
-This is the largest task. The Sales Order case currently only creates itemLedger entries (lines 142-813). We need to add: fetching accounting prerequisites, COGS calculation via the engine, journal line construction, dimension attachment, and costLedger entry creation.
-
-- [ ] **Step 1: Add imports**
-
-At the top of `post-shipment/index.ts`, add the new imports after the existing ones (line 8):
-
-```typescript
-import { isInternalUser } from "../lib/flags.ts";
-import { credit, debit, journalReference } from "../lib/utils.ts";
-import { getCurrentAccountingPeriod } from "../shared/get-accounting-period.ts";
-import { getNextSequence } from "../shared/get-next-sequence.ts";
-import { getDefaultPostingGroup } from "../shared/get-posting-group.ts";
-import { calculateCOGS } from "../shared/calculate-cogs.ts";
-import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
-```
-
-- [ ] **Step 2: Fetch accounting prerequisites**
-
-Inside the `case "Sales Order"` block, after the `customer` fetch (around line 141), add fetches for `isInternal`, `accountDefaults`, `companyGroupId`, and `dimensions`:
-
-```typescript
-const [companyRecord, isInternal] = await Promise.all([
- client
- .from("company")
- .select("companyGroupId")
- .eq("id", companyId)
- .single(),
- isInternalUser(client, userId),
-]);
-if (companyRecord.error) throw new Error("Failed to fetch company");
-const companyGroupId = companyRecord.data.companyGroupId;
-
-const accountDefaults = isInternal
- ? await getDefaultPostingGroup(client, companyId)
- : null;
-if (isInternal && (accountDefaults?.error || !accountDefaults?.data)) {
- throw new Error("Error getting account defaults");
-}
-
-const dimensions = isInternal
- ? await client
- .from("dimension")
- .select("id, entityType")
- .eq("companyGroupId", companyGroupId)
- .eq("active", true)
- .in("entityType", [
- "CustomerType",
- "ItemPostingGroup",
- "Location",
- "CostCenter",
- ])
- : null;
-
-const dimensionMap = new Map<string, string>();
-if (dimensions?.data) {
- for (const dim of dimensions.data) {
- if (dim.entityType) dimensionMap.set(dim.entityType, dim.id);
- }
-}
-```
-
-- [ ] **Step 3: Add journal line and dimension tracking arrays**
-
-After the existing `itemLedgerInserts` array declaration (line 142), add:
-
-```typescript
-const journalLineInserts: Omit<
- Database["public"]["Tables"]["journalLine"]["Insert"],
- "journalId"
->[] = [];
-
-const journalLineDimensionsMeta: {
- customerTypeId: string | null;
- itemPostingGroupId: string | null;
- locationId: string | null;
- costCenterId: string | null;
-}[] = [];
-```
-
-- [ ] **Step 4: Add COGS journal entries inside the shipment line loop**
-
-Inside the `for await (const shipmentLine of shipmentLines.data)` loop, after each itemLedger push block (the Inventory, Batch, and Serial tracking sections around lines 275-343), add COGS journal entry logic. Place this before the closing `}` of the loop body (before line 344):
-
-```typescript
-// COGS journal entries for this shipment line
-if (
- isInternal &&
- accountDefaults?.data &&
- shipmentLine.itemId &&
- shipmentLine.shippedQuantity > 0 &&
- itemTrackingType !== "Non-Inventory"
-) {
- const itemPostingGroupId =
- itemCosts.data.find(
- (cost) => cost.itemId === shipmentLine.itemId
- )?.itemPostingGroupId ?? null;
-
- const salesOrderLine = salesOrderLines.data.find(
- (sol) => sol.id === shipmentLine.lineId
- );
-
- const journalLineReference = nanoid();
-
- // DR COGS / CR Inventory — actual cost from COGS engine
- // (calculated later inside the transaction; placeholder amounts replaced)
- journalLineInserts.push({
- accountId: accountDefaults.data.costOfGoodsSoldAccount,
- description: "Cost of Goods Sold",
- amount: 0, // replaced in transaction
- quantity: shippedQuantity,
- documentType: "Shipment",
- documentId: shipment.data?.id,
- externalDocumentId: salesOrder.data?.customerReference ?? undefined,
- documentLineReference: journalReference.to.shipment(
- shipmentLine.id
- ),
- journalLineReference,
- companyId,
- });
-
- journalLineInserts.push({
- accountId: accountDefaults.data.inventoryAccount,
- description: "Inventory Account",
- amount: 0, // replaced in transaction
- quantity: shippedQuantity,
- documentType: "Shipment",
- documentId: shipment.data?.id,
- externalDocumentId: salesOrder.data?.customerReference ?? undefined,
- documentLineReference: journalReference.to.shipment(
- shipmentLine.id
- ),
- journalLineReference,
- companyId,
- });
-
- // Track dimension metadata for these two journal lines
- for (let i = 0; i < 2; i++) {
- journalLineDimensionsMeta.push({
- customerTypeId: customer.data.customerTypeId ?? null,
- itemPostingGroupId,
- locationId: shipmentLine.locationId ?? locationId ?? null,
- costCenterId: salesOrderLine?.costCenterId ?? null,
- });
- }
-}
-```
-
-- [ ] **Step 5: Calculate COGS and insert journal entries inside the transaction**
-
-Inside the `await db.transaction().execute(async (trx) => {` block (starts around line 480), after all the existing updates (salesOrderLine updates, salesOrder status update, shipment status update, tracked entity operations, itemLedger inserts, job updates — ending around line 812), add the COGS calculation and journal entry insertion:
-
-```typescript
-// Calculate COGS and create journal entries
-if (isInternal && journalLineInserts.length > 0) {
- // Group journal lines by itemId to batch COGS calculations
- const itemShipmentQuantities = new Map<
- string,
- { totalQuantity: number; lineIndices: number[] }
- >();
-
- for (let i = 0; i < journalLineInserts.length; i += 2) {
- const jl = journalLineInserts[i];
- // Find the shipment line that owns this journal line pair
- const ref = jl.documentLineReference;
- const shipmentLine = shipmentLines.data.find(
- (sl) => ref === journalReference.to.shipment(sl.id)
- );
- if (!shipmentLine?.itemId) continue;
-
- const existing = itemShipmentQuantities.get(shipmentLine.itemId);
- if (existing) {
- existing.totalQuantity += jl.quantity ?? 0;
- existing.lineIndices.push(i);
- } else {
- itemShipmentQuantities.set(shipmentLine.itemId, {
- totalQuantity: jl.quantity ?? 0,
- lineIndices: [i],
- });
- }
- }
-
- // Calculate COGS for each item and fill in amounts
- for (const [itemId, info] of itemShipmentQuantities) {
- const cogsResult = await calculateCOGS(trx, {
- itemId,
- quantity: info.totalQuantity,
- companyId,
- });
-
- // Distribute cost proportionally across lines for this item
- let costAssigned = 0;
- for (let idx = 0; idx < info.lineIndices.length; idx++) {
- const jlIdx = info.lineIndices[idx];
- const lineQty = journalLineInserts[jlIdx].quantity ?? 0;
- const lineCost =
- idx === info.lineIndices.length - 1
- ? cogsResult.totalCost - costAssigned // last line gets remainder to avoid rounding
- : (lineQty / info.totalQuantity) * cogsResult.totalCost;
-
- costAssigned += lineCost;
-
- // COGS debit line
- journalLineInserts[jlIdx].amount = debit("expense", lineCost);
- // Inventory credit line
- journalLineInserts[jlIdx + 1].amount = credit("asset", lineCost);
- }
-
- // Write costLedger entry for the sale
- await trx
- .insertInto("costLedger")
- .values({
- itemLedgerType: "Sale",
- costLedgerType: "Direct Cost",
- adjustment: false,
- documentType: "Sales Shipment",
- documentId: shipment.data?.id ?? "",
- itemId,
- quantity: -info.totalQuantity,
- cost: -cogsResult.totalCost,
- remainingQuantity: 0,
- companyId,
- })
- .execute();
- }
-
- // Create journal entry
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
- const journalEntryId = await getNextSequence(
- trx,
- "journalEntry",
- companyId
- );
-
- const journalResult = await trx
- .insertInto("journal")
- .values({
- journalEntryId,
- accountingPeriodId,
- description: `Sales Shipment ${shipment.data.shipmentId}`,
- postingDate: today,
- companyId,
- sourceType: "Sales Shipment",
- status: "Posted",
- postedAt: new Date().toISOString(),
- postedBy: userId,
- createdBy: userId,
- })
- .returning(["id"])
- .executeTakeFirstOrThrow();
-
- const journalLineResults = await trx
- .insertInto("journalLine")
- .values(
- journalLineInserts.map((line) => ({
- ...line,
- journalId: journalResult.id,
- }))
- )
- .returning(["id"])
- .execute();
-
- // Insert dimensions
- if (dimensionMap.size > 0) {
- const journalLineDimensionInserts: {
- journalLineId: string;
- dimensionId: string;
- valueId: string;
- companyId: string;
- }[] = [];
-
- journalLineResults.forEach((jl, index) => {
- const meta = journalLineDimensionsMeta[index];
- if (!meta) return;
-
- if (
- meta.customerTypeId &&
- dimensionMap.has("CustomerType")
- ) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("CustomerType")!,
- valueId: meta.customerTypeId,
- companyId,
- });
- }
- if (
- meta.itemPostingGroupId &&
- dimensionMap.has("ItemPostingGroup")
- ) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("ItemPostingGroup")!,
- valueId: meta.itemPostingGroupId,
- companyId,
- });
- }
- if (meta.locationId && dimensionMap.has("Location")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("Location")!,
- valueId: meta.locationId,
- companyId,
- });
- }
- if (meta.costCenterId && dimensionMap.has("CostCenter")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("CostCenter")!,
- valueId: meta.costCenterId,
- companyId,
- });
- }
- });
-
- if (journalLineDimensionInserts.length > 0) {
- await trx
- .insertInto("journalLineDimension")
- .values(journalLineDimensionInserts)
- .execute();
- }
- }
-}
-```
-
-- [ ] **Step 6: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-shipment/index.ts
-git commit -m "feat: add COGS journal entries, cost layer consumption, and dimensions to post-shipment"
-```
-
----
-
-### Task 7: Fix `post-sales-invoice` — Remove COGS When Shipment Exists, Fix Direct Invoice COGS, Add Dimensions
-
-**Files:**
-- Modify: `packages/database/supabase/functions/post-sales-invoice/index.ts`
-
-The current code has two problems:
-1. When `salesOrderLineId !== null` (SO-linked), it posts COGS using the selling price (lines 456-503). Since COGS is now posted at shipment, these entries must be removed.
-2. When `salesOrderLineId === null` (direct invoice), it also uses selling price (lines 334-365). These need to use the COGS calculation engine instead.
-3. No dimensions are attached to any journal lines.
-
-- [ ] **Step 1: Add imports**
-
-After the existing imports at the top, add:
-
-```typescript
-import { calculateCOGS } from "../shared/calculate-cogs.ts";
-```
-
-- [ ] **Step 2: Add itemCost costingMethod to the fetch**
-
-Change the `itemCosts` select at line 135 from:
-
-```typescript
-client
- .from("itemCost")
- .select("itemId, itemPostingGroupId")
- .in("itemId", itemIds),
-```
-
-to:
-
-```typescript
-client
- .from("itemCost")
- .select("itemId, itemPostingGroupId, costingMethod")
- .in("itemId", itemIds),
-```
-
-- [ ] **Step 3: Fetch dimensions**
-
-After the `accountDefaults` fetch (around line 237), add:
-
-```typescript
-const companyGroupIdForDimensions = companyGroupId;
-const dimensions = isInternal
- ? await client
- .from("dimension")
- .select("id, entityType")
- .eq("companyGroupId", companyGroupIdForDimensions)
- .eq("active", true)
- .in("entityType", [
- "CustomerType",
- "ItemPostingGroup",
- "Location",
- "CostCenter",
- ])
- : null;
-
-const dimensionMap = new Map<string, string>();
-if (dimensions?.data) {
- for (const dim of dimensions.data) {
- if (dim.entityType) dimensionMap.set(dim.entityType, dim.id);
- }
-}
-
-const journalLineDimensionsMeta: {
- customerTypeId: string | null;
- itemPostingGroupId: string | null;
- locationId: string | null;
- costCenterId: string | null;
-}[] = [];
-```
-
-- [ ] **Step 4: Remove COGS from SO-linked invoice lines**
-
-In the `else` block (SO-linked lines, starting around line 409), remove the COGS/Inventory journal entries (lines 456-503). Keep ONLY the AR debit and Sales Revenue credit entries.
-
-The `else` block should become:
-
-```typescript
-else {
- if (isInternal && accountDefaults?.data) {
- journalLineReference = nanoid();
-
- // Credit the sales account (Revenue)
- journalLineInserts.push({
- accountId: accountDefaults.data.salesAccount,
- description: "Sales Account",
- amount: credit(
- "revenue",
- totalLineCostWithWeightedShipping
- ),
- quantity: invoiceLineQuantityInInventoryUnit,
- documentType: "Invoice",
- documentId: salesInvoice.data?.id,
- externalDocumentId: salesInvoice.data?.customerReference,
- documentLineReference: invoiceLine.salesOrderLineId
- ? journalReference.to.salesInvoice(
- invoiceLine.salesOrderLineId
- )
- : null,
- journalLineReference,
- companyId,
- });
-
- // Debit accounts receivable
- journalLineInserts.push({
- accountId: receivablesAccountId,
- description: isIntercompany
- ? "IC Receivables"
- : "Accounts Receivable",
- amount: debit("asset", totalLineCostWithWeightedShipping),
- quantity: invoiceLineQuantityInInventoryUnit,
- documentType: "Invoice",
- documentId: salesInvoice.data?.id,
- externalDocumentId: salesInvoice.data?.customerReference,
- documentLineReference: invoiceLine.salesOrderLineId
- ? journalReference.to.salesInvoice(
- invoiceLine.salesOrderLineId
- )
- : null,
- journalLineReference,
- intercompanyPartnerId,
- companyId,
- });
-
- // Track dimension metadata for AR + Revenue lines
- const itemPostingGroupId =
- itemCosts.data.find(
- (cost) => cost.itemId === invoiceLine.itemId
- )?.itemPostingGroupId ?? null;
-
- const salesOrder = salesOrders.data?.find(
- (so) =>
- so.salesOrderId ===
- salesOrderLines.find(
- (sol) => sol.id === invoiceLine.salesOrderLineId
- )?.salesOrderId
- );
-
- for (let i = 0; i < 2; i++) {
- journalLineDimensionsMeta.push({
- customerTypeId: customer.data.customerTypeId ?? null,
- itemPostingGroupId,
- locationId: invoiceLine.locationId ?? null,
- costCenterId: null,
- });
- }
- }
-}
-```
-
-- [ ] **Step 5: Fix direct invoice COGS to use COGS engine**
-
-In the direct invoice block (where `salesOrderLineId === null`, around lines 293-407), the COGS/Inventory entries at lines 334-365 currently use `totalLineCostWithWeightedShipping` (the selling price). These need to be deferred to the transaction where we can call `calculateCOGS`.
-
-Replace the COGS journal line pushes with placeholders that will be filled in during the transaction (same pattern as Task 6 for post-shipment). Mark these entries with a flag or use amount = 0 and fill them in inside the `db.transaction()` block.
-
-After the direct invoice's AR/Revenue entries, replace the COGS block:
-
-```typescript
-if (itemTrackingType === "Inventory") {
- const cogsJournalLineReference = nanoid();
-
- // Placeholder — amounts filled in during transaction via calculateCOGS
- journalLineInserts.push({
- accountId: accountDefaults.data.costOfGoodsSoldAccount,
- description: "Cost of Goods Sold",
- amount: 0,
- quantity: invoiceLineQuantityInInventoryUnit,
- documentType: "Invoice",
- documentId: salesInvoice.data?.id,
- externalDocumentId:
- salesInvoice.data?.customerReference,
- journalLineReference: cogsJournalLineReference,
- companyId,
- });
-
- journalLineInserts.push({
- accountId: accountDefaults.data.inventoryAccount,
- description: "Inventory Account",
- amount: 0,
- quantity: invoiceLineQuantityInInventoryUnit,
- documentType: "Invoice",
- documentId: salesInvoice.data?.id,
- externalDocumentId:
- salesInvoice.data?.customerReference,
- journalLineReference: cogsJournalLineReference,
- companyId,
- });
-
- // Track dimensions for COGS lines
- const lineItemPostingGroupId =
- itemCosts.data.find(
- (cost) => cost.itemId === invoiceLine.itemId
- )?.itemPostingGroupId ?? null;
-
- for (let i = 0; i < 2; i++) {
- journalLineDimensionsMeta.push({
- customerTypeId: customer.data.customerTypeId ?? null,
- itemPostingGroupId: lineItemPostingGroupId,
- locationId: invoiceLine.locationId ?? null,
- costCenterId: null,
- });
- }
-}
-```
-
-Then inside the `db.transaction()` block (around line 524), before the journal insertion, calculate COGS for direct invoice lines:
-
-```typescript
-// Calculate COGS for direct invoice items (no sales order)
-const directInvoiceItems = salesInvoiceLines.data.filter(
- (line) => line.salesOrderLineId === null && line.itemId
-);
-
-for (const invoiceLine of directInvoiceItems) {
- if (!invoiceLine.itemId) continue;
-
- const itemTrackingType =
- items.data.find((item) => item.id === invoiceLine.itemId)
- ?.itemTrackingType ?? "Inventory";
-
- if (itemTrackingType !== "Inventory") continue;
-
- const cogsResult = await calculateCOGS(trx, {
- itemId: invoiceLine.itemId,
- quantity: invoiceLine.quantity,
- companyId,
- });
-
- // Find the placeholder COGS journal lines for this item and fill amounts
- for (let i = 0; i < journalLineInserts.length; i++) {
- const jl = journalLineInserts[i];
- if (
- jl.description === "Cost of Goods Sold" &&
- jl.amount === 0 &&
- jl.quantity === invoiceLine.quantity
- ) {
- journalLineInserts[i].amount = debit(
- "expense",
- cogsResult.totalCost
- );
- // The next line should be the Inventory credit
- if (i + 1 < journalLineInserts.length) {
- journalLineInserts[i + 1].amount = credit(
- "asset",
- cogsResult.totalCost
- );
- }
-
- // Write costLedger entry for the sale
- await trx
- .insertInto("costLedger")
- .values({
- itemLedgerType: "Sale",
- costLedgerType: "Direct Cost",
- adjustment: false,
- documentType: "Sales Shipment",
- documentId: salesInvoice.data?.id ?? "",
- itemId: invoiceLine.itemId,
- quantity: -invoiceLine.quantity,
- cost: -cogsResult.totalCost,
- remainingQuantity: 0,
- companyId,
- })
- .execute();
-
- break;
- }
- }
-}
-```
-
-- [ ] **Step 6: Add dimension insertion after journal line creation**
-
-Inside the transaction, after the `journalLineResults` insert (find the existing journal line insert), add dimension insertion using the same pattern as post-receipt:
-
-```typescript
-if (dimensionMap.size > 0) {
- const journalLineDimensionInserts: {
- journalLineId: string;
- dimensionId: string;
- valueId: string;
- companyId: string;
- }[] = [];
-
- journalLineResults.forEach((jl, index) => {
- const meta = journalLineDimensionsMeta[index];
- if (!meta) return;
-
- if (meta.customerTypeId && dimensionMap.has("CustomerType")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("CustomerType")!,
- valueId: meta.customerTypeId,
- companyId,
- });
- }
- if (meta.itemPostingGroupId && dimensionMap.has("ItemPostingGroup")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("ItemPostingGroup")!,
- valueId: meta.itemPostingGroupId,
- companyId,
- });
- }
- if (meta.locationId && dimensionMap.has("Location")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("Location")!,
- valueId: meta.locationId,
- companyId,
- });
- }
- if (meta.costCenterId && dimensionMap.has("CostCenter")) {
- journalLineDimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("CostCenter")!,
- valueId: meta.costCenterId,
- companyId,
- });
- }
- });
-
- if (journalLineDimensionInserts.length > 0) {
- await trx
- .insertInto("journalLineDimension")
- .values(journalLineDimensionInserts)
- .execute();
- }
-}
-```
-
-- [ ] **Step 7: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-sales-invoice/index.ts
-git commit -m "feat: remove COGS from SO-linked invoices, fix direct invoice COGS, add dimensions"
-```
-
----
-
-### Task 8: WIP Journal Entries on Material Issuance
-
-**Files:**
-- Modify: `packages/database/supabase/functions/issue/index.ts`
-
-The `issueJobOperationMaterials` function (lines 100-296) creates itemLedger entries for material consumption but no journal entries. We need to add: DR WIP / CR Raw Material Inventory for each issued material.
-
-- [ ] **Step 1: Add imports**
-
-At the top of `issue/index.ts`, add:
-
-```typescript
-import { credit, debit, journalReference } from "../lib/utils.ts";
-import { isInternalUser } from "../lib/flags.ts";
-import { getCurrentAccountingPeriod } from "../shared/get-accounting-period.ts";
-import { getNextSequence } from "../shared/get-next-sequence.ts";
-import { getDefaultPostingGroup } from "../shared/get-posting-group.ts";
-import { calculateCOGS } from "../shared/calculate-cogs.ts";
-import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
-```
-
-- [ ] **Step 2: Add accounting parameters to `issueJobOperationMaterials`**
-
-Expand the function signature to accept `isInternal` and return cost info:
-
-```typescript
-async function issueJobOperationMaterials(
- trx: Transaction<DB>,
- {
- jobOperationId,
- quantity,
- companyId,
- userId,
- isInternal,
- accountDefaults,
- dimensionMap,
- client,
- db,
- }: {
- jobOperationId: string;
- quantity: number;
- companyId: string;
- userId: string;
- isInternal: boolean;
- accountDefaults: any;
- dimensionMap: Map<string, string>;
- client: any;
- db: any;
- }
-)
-```
-
-- [ ] **Step 3: Add WIP journal entries inside the material issuance loop**
-
-After the `itemLedgerInserts` are built and inserted (around line 283), add:
-
-```typescript
-// WIP journal entries for material issuance
-if (isInternal && accountDefaults?.data && itemLedgerInserts.length > 0) {
- const journalLineInserts: {
- accountId: string;
- description: string;
- amount: number;
- quantity: number;
- documentType: string;
- documentId: string;
- documentLineReference: string;
- journalLineReference: string;
- companyId: string;
- }[] = [];
-
- const journalLineDimensionsMeta: {
- itemPostingGroupId: string | null;
- locationId: string | null;
- costCenterId: string | null;
- }[] = [];
-
- // Get the finished good's itemCost for dimension
- const finishedGoodJob = await trx
- .selectFrom("job")
- .where("id", "=", jobId)
- .select(["itemId", "locationId"])
- .executeTakeFirst();
-
- const finishedGoodItemCost = finishedGoodJob?.itemId
- ? await trx
- .selectFrom("itemCost")
- .where("itemId", "=", finishedGoodJob.itemId)
- .where("companyId", "=", companyId)
- .select("itemPostingGroupId")
- .executeTakeFirst()
- : null;
-
- for (const ledger of itemLedgerInserts) {
- const materialQuantity = Math.abs(Number(ledger.quantity));
- if (materialQuantity === 0) continue;
-
- // Calculate the cost of the issued material
- const cogsResult = await calculateCOGS(trx, {
- itemId: ledger.itemId,
- quantity: materialQuantity,
- companyId,
- });
-
- const journalLineReference = nanoid();
-
- // DR WIP
- journalLineInserts.push({
- accountId: accountDefaults.data.workInProgressAccount,
- description: "WIP Account",
- amount: debit("asset", cogsResult.totalCost),
- quantity: materialQuantity,
- documentType: "Job Consumption",
- documentId: jobId,
- documentLineReference: journalReference.to.materialIssue(
- jobOperationId
- ),
- journalLineReference,
- companyId,
- });
-
- // CR Raw Material Inventory
- journalLineInserts.push({
- accountId: accountDefaults.data.inventoryAccount,
- description: "Inventory Account",
- amount: credit("asset", cogsResult.totalCost),
- quantity: materialQuantity,
- documentType: "Job Consumption",
- documentId: jobId,
- documentLineReference: journalReference.to.materialIssue(
- jobOperationId
- ),
- journalLineReference,
- companyId,
- });
-
- // Write costLedger entry for the consumption
- await trx
- .insertInto("costLedger")
- .values({
- itemLedgerType: "Consumption",
- costLedgerType: "Direct Cost",
- adjustment: false,
- documentType: "Job Consumption",
- documentId: jobId,
- itemId: ledger.itemId,
- quantity: -materialQuantity,
- cost: -cogsResult.totalCost,
- remainingQuantity: 0,
- companyId,
- })
- .execute();
-
- // Dimension metadata
- for (let i = 0; i < 2; i++) {
- journalLineDimensionsMeta.push({
- itemPostingGroupId:
- finishedGoodItemCost?.itemPostingGroupId ?? null,
- locationId: finishedGoodJob?.locationId ?? null,
- costCenterId: null,
- });
- }
- }
-
- if (journalLineInserts.length > 0) {
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
- const journalEntryId = await getNextSequence(
- trx,
- "journalEntry",
- companyId
- );
-
- const journalResult = await trx
- .insertInto("journal")
- .values({
- journalEntryId,
- accountingPeriodId,
- description: `Material Issue to Job ${jobId}`,
- postingDate: new Date().toISOString().slice(0, 10),
- companyId,
- sourceType: "Job Consumption",
- status: "Posted",
- postedAt: new Date().toISOString(),
- postedBy: userId,
- createdBy: userId,
- })
- .returning(["id"])
- .executeTakeFirstOrThrow();
-
- const journalLineResults = await trx
- .insertInto("journalLine")
- .values(
- journalLineInserts.map((line) => ({
- ...line,
- journalId: journalResult.id,
- }))
- )
- .returning(["id"])
- .execute();
-
- if (dimensionMap.size > 0) {
- const dimensionInserts: {
- journalLineId: string;
- dimensionId: string;
- valueId: string;
- companyId: string;
- }[] = [];
-
- journalLineResults.forEach((jl, index) => {
- const meta = journalLineDimensionsMeta[index];
- if (!meta) return;
-
- if (
- meta.itemPostingGroupId &&
- dimensionMap.has("ItemPostingGroup")
- ) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("ItemPostingGroup")!,
- valueId: meta.itemPostingGroupId,
- companyId,
- });
- }
- if (meta.locationId && dimensionMap.has("Location")) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("Location")!,
- valueId: meta.locationId,
- companyId,
- });
- }
- if (meta.costCenterId && dimensionMap.has("CostCenter")) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("CostCenter")!,
- valueId: meta.costCenterId,
- companyId,
- });
- }
- });
-
- if (dimensionInserts.length > 0) {
- await trx
- .insertInto("journalLineDimension")
- .values(dimensionInserts)
- .execute();
- }
- }
- }
-}
-```
-
-- [ ] **Step 4: Update all callers of `issueJobOperationMaterials`**
-
-Search for all call sites of `issueJobOperationMaterials` in `issue/index.ts`. Each one needs the new parameters. The `jobOperation` case (around line 624) calls it inside a transaction:
-
-```typescript
-case "jobOperation": {
- const { id, companyId, quantity, userId } = validatedPayload;
-
- const client = await getSupabaseServiceRole(
- req.headers.get("Authorization"),
- req.headers.get("carbon-key") ?? "",
- companyId
- );
-
- const [isInternal, companyRecord] = await Promise.all([
- isInternalUser(client, userId),
- client
- .from("company")
- .select("companyGroupId")
- .eq("id", companyId)
- .single(),
- ]);
- if (companyRecord.error) throw new Error("Failed to fetch company");
-
- const accountDefaults = isInternal
- ? await getDefaultPostingGroup(client, companyId)
- : null;
- if (isInternal && (accountDefaults?.error || !accountDefaults?.data)) {
- throw new Error("Error getting account defaults");
- }
-
- const dimensions = isInternal
- ? await client
- .from("dimension")
- .select("id, entityType")
- .eq("companyGroupId", companyRecord.data.companyGroupId)
- .eq("active", true)
- .in("entityType", ["ItemPostingGroup", "Location", "CostCenter"])
- : null;
-
- const dimensionMap = new Map<string, string>();
- if (dimensions?.data) {
- for (const dim of dimensions.data) {
- if (dim.entityType) dimensionMap.set(dim.entityType, dim.id);
- }
- }
-
- await db.transaction().execute(async (trx) => {
- await issueJobOperationMaterials(trx, {
- jobOperationId: id,
- quantity,
- companyId,
- userId,
- isInternal,
- accountDefaults: accountDefaults?.data ? accountDefaults : null,
- dimensionMap,
- client,
- db,
- });
- });
-
- break;
-}
-```
-
-Do the same for all other call sites (e.g., `jobOperationBatchComplete`, trigger-based calls).
-
-- [ ] **Step 5: Commit**
-
-```bash
-git add packages/database/supabase/functions/issue/index.ts
-git commit -m "feat: add WIP journal entries and costLedger consumption on material issuance"
-```
-
----
-
-### Task 9: Job Completion — FG Receipt, CostLedger, WIP Discharge
-
-**Files:**
-- Modify: `packages/database/supabase/functions/issue/index.ts` (the `jobCompleteInventory` case, lines 473-620)
-
-On job completion, we need to:
-1. Calculate total accumulated WIP cost (sum of all WIP debits for this job)
-2. Create journal entries: DR Finished Goods Inventory / CR WIP
-3. Write a costLedger entry for the finished good (with `remainingQuantity`)
-4. Update `itemCost.unitCost` for Average cost items
-
-- [ ] **Step 1: Add accounting fetches to `jobCompleteInventory` case**
-
-Inside the `jobCompleteInventory` case (starts around line 473), after the `client` initialization (line 484), add:
-
-```typescript
-const [isInternal, companyRecord] = await Promise.all([
- isInternalUser(client, userId),
- client
- .from("company")
- .select("companyGroupId")
- .eq("id", companyId)
- .single(),
-]);
-if (companyRecord.error) throw new Error("Failed to fetch company");
-
-const accountDefaults = isInternal
- ? await getDefaultPostingGroup(client, companyId)
- : null;
-if (isInternal && (accountDefaults?.error || !accountDefaults?.data)) {
- throw new Error("Error getting account defaults");
-}
-
-const dimensions = isInternal
- ? await client
- .from("dimension")
- .select("id, entityType")
- .eq("companyGroupId", companyRecord.data.companyGroupId)
- .eq("active", true)
- .in("entityType", ["ItemPostingGroup", "Location", "CostCenter"])
- : null;
-
-const dimensionMap = new Map<string, string>();
-if (dimensions?.data) {
- for (const dim of dimensions.data) {
- if (dim.entityType) dimensionMap.set(dim.entityType, dim.id);
- }
-}
-```
-
-- [ ] **Step 2: Add WIP discharge and costLedger entry inside the transaction**
-
-Inside the `db.transaction()` block, after the itemLedger inserts (around line 617), add:
-
-```typescript
-// WIP discharge: DR FG Inventory / CR WIP
-if (isInternal && accountDefaults?.data) {
- // Calculate accumulated WIP cost for this job
- // Sum all journal lines where documentId = jobId and accountId = WIP account (debit side)
- const wipEntries = await trx
- .selectFrom("journalLine")
- .innerJoin("journal", "journal.id", "journalLine.journalId")
- .select((eb) => eb.fn.sum("journalLine.amount").as("totalWip"))
- .where("journalLine.accountId", "=", accountDefaults.data!.workInProgressAccount)
- .where("journalLine.documentId", "=", jobId)
- .where("journal.companyId", "=", companyId)
- .executeTakeFirst();
-
- const accumulatedWipCost = Math.abs(Number(wipEntries?.totalWip ?? 0));
-
- if (accumulatedWipCost > 0) {
- const today = new Date().toISOString().slice(0, 10);
- const journalLineReference = nanoid();
-
- const journalLineInserts = [
- {
- accountId: accountDefaults.data.inventoryAccount,
- description: "Finished Goods Inventory",
- amount: debit("asset", accumulatedWipCost),
- quantity: quantityComplete,
- documentType: "Job Receipt",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- {
- accountId: accountDefaults.data.workInProgressAccount,
- description: "WIP Account",
- amount: credit("asset", accumulatedWipCost),
- quantity: quantityComplete,
- documentType: "Job Receipt",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- ];
-
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
- const journalEntryId = await getNextSequence(
- trx,
- "journalEntry",
- companyId
- );
-
- const journalResult = await trx
- .insertInto("journal")
- .values({
- journalEntryId,
- accountingPeriodId,
- description: `Job Completion ${jobId}`,
- postingDate: today,
- companyId,
- sourceType: "Job Receipt",
- status: "Posted",
- postedAt: new Date().toISOString(),
- postedBy: userId,
- createdBy: userId,
- })
- .returning(["id"])
- .executeTakeFirstOrThrow();
-
- const journalLineResults = await trx
- .insertInto("journalLine")
- .values(
- journalLineInserts.map((line) => ({
- ...line,
- journalId: journalResult.id,
- }))
- )
- .returning(["id"])
- .execute();
-
- // Write costLedger entry for finished good
- await trx
- .insertInto("costLedger")
- .values({
- itemLedgerType: "Output",
- costLedgerType: "Direct Cost",
- adjustment: false,
- documentType: "Job Receipt",
- documentId: jobId,
- itemId: job.itemId!,
- quantity: quantityReceivedToInventory,
- cost: accumulatedWipCost,
- remainingQuantity: quantityReceivedToInventory,
- companyId,
- })
- .execute();
-
- // Update itemCost.unitCost for Average cost items
- const finishedItemCost = await trx
- .selectFrom("itemCost")
- .selectAll()
- .where("itemId", "=", job.itemId!)
- .where("companyId", "=", companyId)
- .executeTakeFirst();
-
- if (finishedItemCost?.costingMethod === "Average") {
- // Weighted average: (existing value + new value) / (existing qty + new qty)
- const existingOnHand = await trx
- .selectFrom("itemLedger")
- .select((eb) => eb.fn.sum("quantity").as("quantity"))
- .where("itemId", "=", job.itemId!)
- .where("companyId", "=", companyId)
- .executeTakeFirst();
-
- const existingQty = Number(existingOnHand?.quantity ?? 0);
- const existingValue =
- existingQty * Number(finishedItemCost.unitCost ?? 0);
- const newValue = accumulatedWipCost;
- const newQty = quantityReceivedToInventory;
- const totalQty = existingQty + newQty;
-
- if (totalQty > 0) {
- const newUnitCost = (existingValue + newValue) / totalQty;
- await trx
- .updateTable("itemCost")
- .set({ unitCost: newUnitCost })
- .where("itemId", "=", job.itemId!)
- .where("companyId", "=", companyId)
- .execute();
- }
- }
-
- // Insert dimensions
- if (dimensionMap.size > 0) {
- const finishedGoodItemCost = await trx
- .selectFrom("itemCost")
- .where("itemId", "=", job.itemId!)
- .where("companyId", "=", companyId)
- .select("itemPostingGroupId")
- .executeTakeFirst();
-
- const jobRecord = await trx
- .selectFrom("job")
- .where("id", "=", jobId)
- .select(["locationId"])
- .executeTakeFirst();
-
- const dimensionInserts: {
- journalLineId: string;
- dimensionId: string;
- valueId: string;
- companyId: string;
- }[] = [];
-
- journalLineResults.forEach((jl) => {
- if (
- finishedGoodItemCost?.itemPostingGroupId &&
- dimensionMap.has("ItemPostingGroup")
- ) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("ItemPostingGroup")!,
- valueId: finishedGoodItemCost.itemPostingGroupId,
- companyId,
- });
- }
- if (jobRecord?.locationId && dimensionMap.has("Location")) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("Location")!,
- valueId: jobRecord.locationId,
- companyId,
- });
- }
- });
-
- if (dimensionInserts.length > 0) {
- await trx
- .insertInto("journalLineDimension")
- .values(dimensionInserts)
- .execute();
- }
- }
- }
-}
-```
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/issue/index.ts
-git commit -m "feat: add WIP discharge journal entries and costLedger on job completion"
-```
-
----
-
-### Task 10: WIP Journal Entries on Labor/Machine Time
-
-**Files:**
-- Create: `packages/database/supabase/functions/post-production-event/index.ts`
-- Modify: `apps/erp/app/routes/x+/job+/$jobId.events.new.tsx`
-- Modify: `apps/erp/app/routes/x+/job+/$jobId.events.$id.tsx`
-- Modify: `apps/mes/app/services/operations.service.ts`
-
-Production events are created via Supabase client (not Kysely transactions) in two places:
-- `apps/erp/app/modules/production/production.service.ts:2054` — `upsertProductionEvent`
-- `apps/mes/app/services/operations.service.ts:860` — `createProductionEvent`
-
-Since these use Supabase client (not Kysely), we need a new edge function `post-production-event` that the route actions call after creating/updating a production event that has an `endTime`. This follows the pattern of the other posting edge functions.
-
-The `productionEvent.duration` column is in **seconds** (generated from `endTime - startTime`).
-
-- [ ] **Step 1: Create the `post-production-event` edge function**
-
-```typescript
-import { serve } from "https://deno.land/[email protected]/http/server.ts";
-import { format } from "https://deno.land/[email protected]/datetime/mod.ts";
-import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
-import z from "npm:zod@^3.24.1";
-import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";
-import { corsHeaders } from "../lib/headers.ts";
-import { getSupabaseServiceRole } from "../lib/supabase.ts";
-import { isInternalUser } from "../lib/flags.ts";
-import { credit, debit, journalReference } from "../lib/utils.ts";
-import { getCurrentAccountingPeriod } from "../shared/get-accounting-period.ts";
-import { getNextSequence } from "../shared/get-next-sequence.ts";
-import { getDefaultPostingGroup } from "../shared/get-posting-group.ts";
-
-const pool = getConnectionPool(1);
-const db = getDatabaseClient<DB>(pool);
-
-const payloadValidator = z.object({
- productionEventId: z.string(),
- userId: z.string(),
- companyId: z.string(),
-});
-
-serve(async (req: Request) => {
- if (req.method === "OPTIONS") {
- return new Response("ok", { headers: corsHeaders });
- }
-
- const payload = await req.json();
- const today = format(new Date(), "yyyy-MM-dd");
-
- try {
- const { productionEventId, userId, companyId } =
- payloadValidator.parse(payload);
-
- const client = await getSupabaseServiceRole(
- req.headers.get("Authorization"),
- req.headers.get("carbon-key") ?? "",
- companyId
- );
-
- const [isInternal, companyRecord] = await Promise.all([
- isInternalUser(client, userId),
- client
- .from("company")
- .select("companyGroupId")
- .eq("id", companyId)
- .single(),
- ]);
-
- if (!isInternal) {
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-
- if (companyRecord.error) throw new Error("Failed to fetch company");
-
- const [productionEvent, accountDefaults, dimensions] = await Promise.all([
- client
- .from("productionEvent")
- .select("*, jobOperation!inner(jobId)")
- .eq("id", productionEventId)
- .single(),
- getDefaultPostingGroup(client, companyId),
- client
- .from("dimension")
- .select("id, entityType")
- .eq("companyGroupId", companyRecord.data.companyGroupId)
- .eq("active", true)
- .in("entityType", ["ItemPostingGroup", "Location"]),
- ]);
-
- if (productionEvent.error) throw new Error("Failed to fetch production event");
- if (accountDefaults?.error || !accountDefaults?.data) {
- throw new Error("Error getting account defaults");
- }
- if (!accountDefaults.data.laborAbsorptionAccount) {
- throw new Error("laborAbsorptionAccount not configured in account defaults");
- }
-
- const event = productionEvent.data;
- if (!event.endTime || !event.duration || !event.workCenterId) {
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-
- const jobId = (event.jobOperation as any).jobId as string;
-
- const workCenter = await client
- .from("workCenter")
- .select("laborRate, quotingRate")
- .eq("id", event.workCenterId)
- .single();
-
- if (workCenter.error) throw new Error("Failed to fetch work center");
-
- const durationHours = event.duration / 3600; // duration is in seconds
- const rate =
- event.type === "Machine"
- ? Number(workCenter.data.quotingRate ?? 0)
- : Number(workCenter.data.laborRate ?? 0);
-
- const cost = durationHours * rate;
-
- if (cost <= 0) {
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-
- const dimensionMap = new Map<string, string>();
- if (dimensions?.data) {
- for (const dim of dimensions.data) {
- if (dim.entityType) dimensionMap.set(dim.entityType, dim.id);
- }
- }
-
- // Get finished good info for dimensions
- const job = await client
- .from("job")
- .select("itemId, locationId")
- .eq("id", jobId)
- .single();
-
- if (job.error) throw new Error("Failed to fetch job");
-
- const finishedItemCost = job.data.itemId
- ? await client
- .from("itemCost")
- .select("itemPostingGroupId")
- .eq("itemId", job.data.itemId)
- .eq("companyId", companyId)
- .single()
- : null;
-
- const journalLineReference = nanoid();
-
- const journalLineInserts = [
- {
- accountId: accountDefaults.data.workInProgressAccount,
- description: "WIP Account",
- amount: debit("asset", cost),
- quantity: 1,
- documentType: "Production Event",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- {
- accountId: accountDefaults.data.laborAbsorptionAccount!,
- description: "Labor/Machine Absorption",
- amount: credit("revenue", cost),
- quantity: 1,
- documentType: "Production Event",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- ];
-
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
- await db.transaction().execute(async (trx) => {
- const journalEntryId = await getNextSequence(
- trx,
- "journalEntry",
- companyId
- );
-
- const journalResult = await trx
- .insertInto("journal")
- .values({
- journalEntryId,
- accountingPeriodId,
- description: `${event.type} Time — Job ${jobId}`,
- postingDate: today,
- companyId,
- sourceType: "Production Event",
- status: "Posted",
- postedAt: new Date().toISOString(),
- postedBy: userId,
- createdBy: userId,
- })
- .returning(["id"])
- .executeTakeFirstOrThrow();
-
- const journalLineResults = await trx
- .insertInto("journalLine")
- .values(
- journalLineInserts.map((line) => ({
- ...line,
- journalId: journalResult.id,
- }))
- )
- .returning(["id"])
- .execute();
-
- if (dimensionMap.size > 0) {
- const dimensionInserts: {
- journalLineId: string;
- dimensionId: string;
- valueId: string;
- companyId: string;
- }[] = [];
-
- journalLineResults.forEach((jl) => {
- if (
- finishedItemCost?.data?.itemPostingGroupId &&
- dimensionMap.has("ItemPostingGroup")
- ) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("ItemPostingGroup")!,
- valueId: finishedItemCost.data.itemPostingGroupId,
- companyId,
- });
- }
- if (job.data.locationId && dimensionMap.has("Location")) {
- dimensionInserts.push({
- journalLineId: jl.id,
- dimensionId: dimensionMap.get("Location")!,
- valueId: job.data.locationId,
- companyId,
- });
- }
- });
-
- if (dimensionInserts.length > 0) {
- await trx
- .insertInto("journalLineDimension")
- .values(dimensionInserts)
- .execute();
- }
- }
- });
-
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- } catch (err) {
- console.error(err);
- return new Response(JSON.stringify({ error: (err as Error).message }), {
- status: 500,
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-});
-```
-
-- [ ] **Step 2: Call the edge function from route actions**
-
-In `apps/erp/app/routes/x+/job+/$jobId.events.new.tsx`, after the successful insert (around line 77), invoke the edge function if the event has an `endTime`:
-
-```typescript
-// After: const insert = await upsertProductionEvent(client, { ... });
-if (!insert.error && d.endTime) {
- await client.functions.invoke("post-production-event", {
- body: {
- productionEventId: insert.data.id,
- userId,
- companyId,
- },
- });
-}
-```
-
-Do the same in `apps/erp/app/routes/x+/job+/$jobId.events.$id.tsx` (after update), and in `apps/mes/app/services/operations.service.ts` (after both insert paths).
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-production-event/index.ts
-git add apps/erp/app/routes/x+/job+/$jobId.events.new.tsx
-git add apps/erp/app/routes/x+/job+/$jobId.events.$id.tsx
-git add apps/mes/app/services/operations.service.ts
-git commit -m "feat: add WIP journal entries for labor/machine/setup production events"
-```
-
----
-
-### Task 11: Job Close — Add "Closed" Status and Variance Settlement
-
-**Files:**
-- Create: `packages/database/supabase/migrations/20260504000002_job-closed-status.sql`
-- Modify: `apps/erp/app/modules/production/production.models.ts` (add "Closed" to status enum)
-- Modify: `apps/erp/app/routes/x+/job+/$jobId.status.tsx` (handle Closed transition)
-- Modify: `packages/database/supabase/functions/issue/index.ts` (or create a new `close-job` edge function)
-
-The `job` table currently has statuses: Draft, Planned, Ready, In Progress, Paused, Completed, Cancelled. There is no "Closed" status. Per the spec, variance settlement happens when a completed job is closed. We need to add the "Closed" status and the variance settlement logic.
-
-- [ ] **Step 1: Add "Closed" to the job status enum**
-
-Create migration:
-
-```sql
--- Add "Closed" to the jobStatus enum
-ALTER TYPE "jobStatus" ADD VALUE IF NOT EXISTS 'Closed';
-```
-
-- [ ] **Step 2: Update production models to include "Closed"**
-
-In `apps/erp/app/modules/production/production.models.ts`, find the job status definitions and add "Closed" to the locked statuses alongside "Completed" and "Cancelled".
-
-- [ ] **Step 3: Add variance settlement in the status update route**
-
-In `apps/erp/app/routes/x+/job+/$jobId.status.tsx`, when the status transitions to "Closed", invoke an edge function that settles variance:
-
-```typescript
-if (status === "Closed") {
- await client.functions.invoke("close-job", {
- body: { jobId, userId, companyId },
- });
-}
-```
-
-- [ ] **Step 4: Create `close-job` edge function (or add to `issue`)**
-
-```typescript
-import { serve } from "https://deno.land/[email protected]/http/server.ts";
-import { format } from "https://deno.land/[email protected]/datetime/mod.ts";
-import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
-import z from "npm:zod@^3.24.1";
-import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";
-import { corsHeaders } from "../lib/headers.ts";
-import { getSupabaseServiceRole } from "../lib/supabase.ts";
-import { isInternalUser } from "../lib/flags.ts";
-import { credit, debit, journalReference } from "../lib/utils.ts";
-import { getCurrentAccountingPeriod } from "../shared/get-accounting-period.ts";
-import { getNextSequence } from "../shared/get-next-sequence.ts";
-import { getDefaultPostingGroup } from "../shared/get-posting-group.ts";
-
-const pool = getConnectionPool(1);
-const db = getDatabaseClient<DB>(pool);
-
-const payloadValidator = z.object({
- jobId: z.string(),
- userId: z.string(),
- companyId: z.string(),
-});
-
-serve(async (req: Request) => {
- if (req.method === "OPTIONS") {
- return new Response("ok", { headers: corsHeaders });
- }
-
- const payload = await req.json();
- const today = format(new Date(), "yyyy-MM-dd");
-
- try {
- const { jobId, userId, companyId } = payloadValidator.parse(payload);
-
- const client = await getSupabaseServiceRole(
- req.headers.get("Authorization"),
- req.headers.get("carbon-key") ?? "",
- companyId
- );
-
- const [isInternal, companyRecord] = await Promise.all([
- isInternalUser(client, userId),
- client
- .from("company")
- .select("companyGroupId")
- .eq("id", companyId)
- .single(),
- ]);
-
- if (!isInternal) {
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-
- if (companyRecord.error) throw new Error("Failed to fetch company");
-
- const accountDefaults = await getDefaultPostingGroup(client, companyId);
- if (accountDefaults?.error || !accountDefaults?.data) {
- throw new Error("Error getting account defaults");
- }
-
- // Calculate remaining WIP balance for this job
- // Sum all journal line amounts where the account is WIP and the document is this job
- await db.transaction().execute(async (trx) => {
- const wipBalance = await trx
- .selectFrom("journalLine")
- .innerJoin("journal", "journal.id", "journalLine.journalId")
- .select((eb) => eb.fn.sum("journalLine.amount").as("balance"))
- .where(
- "journalLine.accountId",
- "=",
- accountDefaults.data!.workInProgressAccount
- )
- .where("journalLine.documentId", "=", jobId)
- .where("journal.companyId", "=", companyId)
- .executeTakeFirst();
-
- const remainingWip = Number(wipBalance?.balance ?? 0);
-
- // If WIP still has a net balance, post variance to clear it
- // A positive balance means debits > credits (cost not fully discharged)
- if (Math.abs(remainingWip) < 0.01) return;
-
- const journalLineReference = nanoid();
-
- const journalLineInserts = [
- {
- accountId: accountDefaults.data!.materialVarianceAccount,
- description: "Production Variance",
- amount: debit("expense", Math.abs(remainingWip)),
- quantity: 0,
- documentType: "Job Close",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- {
- accountId: accountDefaults.data!.workInProgressAccount,
- description: "WIP Account",
- amount: credit("asset", Math.abs(remainingWip)),
- quantity: 0,
- documentType: "Job Close",
- documentId: jobId,
- documentLineReference: journalReference.to.job(jobId),
- journalLineReference,
- companyId,
- },
- ];
-
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
- const journalEntryId = await getNextSequence(
- trx,
- "journalEntry",
- companyId
- );
-
- const journalResult = await trx
- .insertInto("journal")
- .values({
- journalEntryId,
- accountingPeriodId,
- description: `Job Close Variance ${jobId}`,
- postingDate: today,
- companyId,
- sourceType: "Job Close",
- status: "Posted",
- postedAt: new Date().toISOString(),
- postedBy: userId,
- createdBy: userId,
- })
- .returning(["id"])
- .executeTakeFirstOrThrow();
-
- await trx
- .insertInto("journalLine")
- .values(
- journalLineInserts.map((line) => ({
- ...line,
- journalId: journalResult.id,
- }))
- )
- .execute();
- });
-
- return new Response(JSON.stringify({ success: true }), {
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- } catch (err) {
- console.error(err);
- return new Response(JSON.stringify({ error: (err as Error).message }), {
- status: 500,
- headers: { ...corsHeaders, "Content-Type": "application/json" },
- });
- }
-});
-```
-
-- [ ] **Step 5: Commit**
-
-```bash
-git add packages/database/supabase/migrations/20260504000002_job-closed-status.sql
-git add packages/database/supabase/functions/close-job/index.ts
-git add apps/erp/app/modules/production/production.models.ts
-git add apps/erp/app/routes/x+/job+/$jobId.status.tsx
-git commit -m "feat: add Closed job status and production variance settlement"
-```
-
----
-
-### Task 12: Verify End-to-End — Ship and Invoice a Bought Product
-
-- [ ] **Step 1: Apply migrations**
-
-Run the database migrations to add `remainingQuantity` and `laborAbsorptionAccount`.
-
-- [ ] **Step 2: Test post-shipment journal entries**
-
-Create a sales order with an inventory item, ship it, and verify:
-- Journal entry is created with DR COGS / CR Inventory
-- Amounts use actual inventory cost (not selling price)
-- Dimensions (CustomerType, ItemPostingGroup, Location) are attached
-- costLedger entry is created with `itemLedgerType: "Sale"`
-
-- [ ] **Step 3: Test post-sales-invoice (SO-linked)**
-
-Invoice the same sales order and verify:
-- Journal entry has ONLY DR AR / CR Revenue
-- NO COGS/Inventory entries (those were at shipment)
-- Dimensions are attached
-
-- [ ] **Step 4: Test post-sales-invoice (direct, no SO)**
-
-Create a direct sales invoice (no sales order) and verify:
-- Journal entry has DR AR / CR Revenue AND DR COGS / CR Inventory
-- COGS uses actual inventory cost from the COGS engine
-- costLedger entry is created
-
-- [ ] **Step 5: Verify update-purchased-prices**
-
-Finalize a PO and verify costLedger entries have `remainingQuantity` set.
-
----
-
-### Task 13: Verify End-to-End — Manufacture and Ship a Product
-
-- [ ] **Step 1: Test material issuance WIP**
-
-Run a job operation that issues materials and verify:
-- Journal entry: DR WIP / CR Raw Material Inventory
-- costLedger entry for consumption
-- Dimensions (ItemPostingGroup, Location, CostCenter) attached
-
-- [ ] **Step 2: Test job completion**
-
-Complete the job and verify:
-- Journal entry: DR FG Inventory / CR WIP
-- costLedger entry for the finished good (with `remainingQuantity`)
-- `itemCost.unitCost` updated for Average cost items
-
-- [ ] **Step 3: Test shipping the manufactured product**
-
-Ship the finished good and verify:
-- Journal entry: DR COGS / CR Inventory
-- COGS uses the cost from the job completion costLedger entry
-- For FIFO: the cost layer from the job is consumed
-
-- [ ] **Step 4: Test job close variance**
-
-Close the job and verify:
-- If WIP balance remains, variance journal entry is created
-- WIP account balance is zero after close
diff --git a/docs/superpowers/plans/2026-05-03-indirect-purchases.md b/docs/superpowers/plans/2026-05-03-indirect-purchases.md
deleted file mode 100644
index b27ec9db02..0000000000
--- a/docs/superpowers/plans/2026-05-03-indirect-purchases.md
+++ /dev/null
@@ -1,983 +0,0 @@
-# Indirect Purchases Implementation Plan
-
-> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-
-**Goal:** Add GL Account (indirect) line support to purchase orders, purchase invoices, and supplier quotes, with mixed direct/indirect lines on a single document.
-
-**Architecture:** Tabs inside the line form (ModalCard) switch between Direct and Indirect forms. The validator accepts both `methodItemType` and `"G/L Account"`. Status logic treats GL Account lines as always-received. Receipt creation skips them. Invoice posting debits the specified GL account directly.
-
-**Tech Stack:** React, Zod, Supabase/Postgres, react-pdf
-
-**Already in place:**
-- `CostCenter` form component exists at `apps/erp/app/components/Form/CostCenter.tsx`
-- `Account` form component exists at `apps/erp/app/components/Form/Account.tsx`
-- `accountId` column exists on `purchaseOrderLine` and `purchaseInvoiceLine` (from company-groups migration)
-- `post-purchase-invoice` edge function already has a `case "G/L Account"` handler that debits the specified account directly
-- `PurchaseOrderPDF` utils already handle GL Account lines in `getLineDescription` and `getLineDescriptionDetails`
-- Receipt creation already filters to only `["Part", "Material", "Tool", "Fixture", "Consumable"]` lines
-
----
-
-### Task 1: DB Migration — Add costCenterId to purchase order and invoice lines
-
-**Files:**
-- Create: `packages/database/supabase/migrations/20260503000000_indirect-purchases.sql`
-
-- [ ] **Step 1: Create migration file**
-
-```sql
-ALTER TABLE "purchaseOrderLine" ADD COLUMN "costCenterId" TEXT;
-ALTER TABLE "purchaseOrderLine" ADD CONSTRAINT "purchaseOrderLine_costCenterId_fkey"
- FOREIGN KEY ("costCenterId") REFERENCES "costCenter"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-CREATE INDEX "purchaseOrderLine_costCenterId_idx" ON "purchaseOrderLine"("costCenterId");
-
-ALTER TABLE "purchaseInvoiceLine" ADD COLUMN "costCenterId" TEXT;
-ALTER TABLE "purchaseInvoiceLine" ADD CONSTRAINT "purchaseInvoiceLine_costCenterId_fkey"
- FOREIGN KEY ("costCenterId") REFERENCES "costCenter"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-CREATE INDEX "purchaseInvoiceLine_costCenterId_idx" ON "purchaseInvoiceLine"("costCenterId");
-
-ALTER TABLE "supplierQuoteLine" ADD COLUMN "costCenterId" TEXT;
-ALTER TABLE "supplierQuoteLine" ADD CONSTRAINT "supplierQuoteLine_costCenterId_fkey"
- FOREIGN KEY ("costCenterId") REFERENCES "costCenter"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-CREATE INDEX "supplierQuoteLine_costCenterId_idx" ON "supplierQuoteLine"("costCenterId");
-
-ALTER TABLE "supplierQuoteLine" ADD COLUMN "accountId" TEXT;
-ALTER TABLE "supplierQuoteLine" ADD CONSTRAINT "supplierQuoteLine_accountId_fkey"
- FOREIGN KEY ("accountId") REFERENCES "account"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-CREATE INDEX "supplierQuoteLine_accountId_idx" ON "supplierQuoteLine"("accountId");
-
-ALTER TABLE "supplierQuoteLine" ADD COLUMN "supplierQuoteLineType" TEXT NOT NULL DEFAULT 'Part';
-```
-
-- [ ] **Step 2: Verify migration compiles**
-
-Visually inspect the SQL for syntax errors. Do NOT run the migration — wait for the user to rebuild the database.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/migrations/20260503000000_indirect-purchases.sql
-git commit -m "feat: add costCenterId, accountId, and lineType to purchase and invoice lines"
-```
-
----
-
-### Task 2: Update validators and models — purchasing
-
-**Files:**
-- Modify: `apps/erp/app/modules/purchasing/purchasing.models.ts`
-
-- [ ] **Step 1: Add "G/L Account" to purchaseOrderLineType**
-
-In `apps/erp/app/modules/purchasing/purchasing.models.ts`, change lines 35-44 from:
-
-```typescript
-export const purchaseOrderLineType = [
- "Part",
- // "Service",
- "Material",
- "Tool",
- "Consumable",
- // "G/L Account",
- // "Fixed Asset",
- "Comment"
-] as const;
-```
-
-to:
-
-```typescript
-export const purchaseOrderLineType = [
- "Part",
- // "Service",
- "Material",
- "Tool",
- "Consumable",
- "G/L Account",
- // "Fixed Asset",
- "Comment"
-] as const;
-```
-
-- [ ] **Step 2: Update purchaseOrderLineValidator to accept G/L Account**
-
-Change the validator's `purchaseOrderLineType` field (line 193) from:
-
-```typescript
- purchaseOrderLineType: z.enum(methodItemType, {
- errorMap: (issue, ctx) => ({
- message: "Type is required"
- })
- }),
-```
-
-to:
-
-```typescript
- purchaseOrderLineType: z.enum([...methodItemType, "G/L Account"], {
- errorMap: (issue, ctx) => ({
- message: "Type is required"
- })
- }),
-```
-
-- [ ] **Step 3: Add costCenterId field to the validator**
-
-In the `purchaseOrderLineValidator` object (after `accountId` on line 199), add:
-
-```typescript
- costCenterId: zfd.text(z.string().optional()),
-```
-
-- [ ] **Step 4: Uncomment the G/L Account refinement**
-
-After the existing `.refine(...)` block (after line 228), uncomment and add the G/L Account refinement:
-
-```typescript
- .refine(
- (data) =>
- data.purchaseOrderLineType === "G/L Account" ? data.accountId : true,
- {
- message: "Account is required",
- path: ["accountId"]
- }
- );
-```
-
-Remove the old commented-out refinements (lines 229-252) and replace with just the G/L Account one above.
-
-- [ ] **Step 5: Update supplierQuoteLineValidator**
-
-In the `supplierQuoteLineValidator` (lines 450-466), add support for GL Account lines. The current validator requires `itemId` always. Change to:
-
-```typescript
-export const supplierQuoteLineValidator = z
- .object({
- id: zfd.text(z.string().optional()),
- supplierQuoteId: z.string(),
- supplierQuoteLineType: z.enum([...methodItemType, "G/L Account"], {
- errorMap: () => ({ message: "Type is required" })
- }),
- itemId: zfd.text(z.string().optional()),
- accountId: zfd.text(z.string().optional()),
- costCenterId: zfd.text(z.string().optional()),
- description: zfd.text(z.string().optional()),
- supplierPartId: zfd.text(z.string().optional()),
- inventoryUnitOfMeasureCode: zfd.text(z.string().optional()),
- purchaseUnitOfMeasureCode: zfd.text(z.string().optional()),
- conversionFactor: zfd.numeric(z.number().optional()),
- quantity: z.array(
- zfd.numeric(z.number().min(0.00001, { message: "Quantity is required" }))
- )
- })
- .refine(
- (data) =>
- ["Part", "Service", "Material", "Tool", "Fixture", "Consumable"].includes(
- data.supplierQuoteLineType
- )
- ? data.itemId
- : true,
- {
- message: "Part is required",
- path: ["itemId"]
- }
- )
- .refine(
- (data) =>
- data.supplierQuoteLineType === "G/L Account" ? data.accountId : true,
- {
- message: "Account is required",
- path: ["accountId"]
- }
- )
- .refine(
- (data) =>
- ["Part", "Service", "Material", "Tool", "Fixture", "Consumable"].includes(
- data.supplierQuoteLineType
- )
- ? data.description
- : true,
- {
- message: "Description is required",
- path: ["description"]
- }
- );
-```
-
-- [ ] **Step 6: Commit**
-
-```bash
-git add apps/erp/app/modules/purchasing/purchasing.models.ts
-git commit -m "feat: update purchasing validators for GL Account line type"
-```
-
----
-
-### Task 3: Update validators and models — invoicing
-
-**Files:**
-- Modify: `apps/erp/app/modules/invoicing/invoicing.models.ts`
-
-- [ ] **Step 1: Add "G/L Account" to purchaseInvoiceLineType**
-
-In `apps/erp/app/modules/invoicing/invoicing.models.ts`, change lines 5-14 from:
-
-```typescript
-export const purchaseInvoiceLineType = [
- "Part",
- // "Service",
- "Material",
- "Tool",
- "Consumable",
- // "Fixed Asset",
- // "G/L Account",
- "Comment"
-] as const;
-```
-
-to:
-
-```typescript
-export const purchaseInvoiceLineType = [
- "Part",
- // "Service",
- "Material",
- "Tool",
- "Consumable",
- // "Fixed Asset",
- "G/L Account",
- "Comment"
-] as const;
-```
-
-- [ ] **Step 2: Update purchaseInvoiceLineValidator to accept G/L Account**
-
-Change the `invoiceLineType` field (line 105) from:
-
-```typescript
- invoiceLineType: z.enum(methodItemType, {
-```
-
-to:
-
-```typescript
- invoiceLineType: z.enum([...methodItemType, "G/L Account"], {
-```
-
-- [ ] **Step 3: Add costCenterId field**
-
-After `accountId` (line 113), add:
-
-```typescript
- costCenterId: zfd.text(z.string().optional()),
-```
-
-- [ ] **Step 4: Uncomment G/L Account refinement and update location refinement**
-
-After the existing location refinement (line 148), add:
-
-```typescript
- .refine(
- (data) =>
- data.invoiceLineType === "G/L Account" ? data.accountId : true,
- {
- message: "Account is required",
- path: ["accountId"]
- }
- );
-```
-
-Remove the old commented-out refinements (lines 149-170).
-
-- [ ] **Step 5: Commit**
-
-```bash
-git add apps/erp/app/modules/invoicing/invoicing.models.ts
-git commit -m "feat: update invoicing validators for GL Account line type"
-```
-
----
-
-### Task 4: Update PurchaseOrderLineForm with Direct/Indirect tabs
-
-**Files:**
-- Modify: `apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx`
-
-- [ ] **Step 1: Add tab imports and Account/CostCenter form components**
-
-Add to the imports at the top of the file:
-
-```typescript
-import {
- Tabs,
- TabsContent,
- TabsList,
- TabsTrigger
-} from "@carbon/react";
-```
-
-These are already available from `@carbon/react` but not currently imported in this file. Also add the form component imports:
-
-```typescript
-import { Account, CostCenter } from "~/components/Form";
-```
-
-And add icons for the tabs:
-
-```typescript
-import { LuBox, LuReceipt } from "react-icons/lu";
-```
-
-- [ ] **Step 2: Add tab state**
-
-After the `isEditing` variable (line 152), add:
-
-```typescript
- const isGLAccount = initialValues.purchaseOrderLineType === "G/L Account";
- const [activeTab, setActiveTab] = useState<"direct" | "indirect">(
- isGLAccount ? "indirect" : "direct"
- );
-```
-
-- [ ] **Step 3: Add indirect line state**
-
-After the existing `itemData` state, add state for indirect line data:
-
-```typescript
- const [indirectData, setIndirectData] = useState<{
- accountId: string;
- costCenterId: string;
- description: string;
- purchaseQuantity: number;
- supplierUnitPrice: number;
- supplierShippingCost: number;
- supplierTaxAmount: number;
- taxPercent: number;
- }>({
- accountId: initialValues.accountId ?? "",
- costCenterId: initialValues.costCenterId ?? "",
- description: initialValues.description ?? "",
- purchaseQuantity: initialValues.purchaseQuantity ?? 1,
- supplierUnitPrice: initialValues.supplierUnitPrice ?? 0,
- supplierShippingCost: initialValues.supplierShippingCost ?? 0,
- supplierTaxAmount: initialValues.supplierTaxAmount ?? 0,
- taxPercent: 0
- });
-```
-
-Add tax calculation effect for indirect data (similar to the existing one for itemData):
-
-```typescript
- useEffect(() => {
- const subtotal =
- indirectData.supplierUnitPrice * indirectData.purchaseQuantity +
- indirectData.supplierShippingCost;
- if (indirectData.taxPercent !== 0) {
- setIndirectData((d) => ({
- ...d,
- supplierTaxAmount: subtotal * indirectData.taxPercent
- }));
- }
- }, [
- indirectData.supplierUnitPrice,
- indirectData.purchaseQuantity,
- indirectData.supplierShippingCost,
- indirectData.taxPercent
- ]);
-```
-
-- [ ] **Step 4: Wrap form body with Tabs when creating new lines**
-
-In the JSX, wrap the `ModalCardBody` content with Tabs. The key structural change: when `!isEditing`, render tabs around two `TabsContent` blocks. When `isEditing`, render only the appropriate form (no tabs).
-
-Replace the existing `<ModalCardBody>` section with a structure like:
-
-```tsx
-<ModalCardBody>
- <Hidden name="id" />
- <Hidden name="purchaseOrderId" />
- <Hidden
- name="exchangeRate"
- value={routeData?.purchaseOrder?.exchangeRate ?? 1}
- />
-
- {!isEditing ? (
- <Tabs value={activeTab} onValueChange={(v) => setActiveTab(v as "direct" | "indirect")}>
- <TabsList className="mb-4">
- <TabsTrigger value="direct">
- <LuBox className="mr-1" />
- Direct
- </TabsTrigger>
- <TabsTrigger value="indirect">
- <LuReceipt className="mr-1" />
- Indirect
- </TabsTrigger>
- </TabsList>
- <TabsContent value="direct">
- {/* existing direct form fields — move them here */}
- <Hidden name="purchaseOrderLineType" value={itemType} />
- <Hidden name="description" value={itemData.description} />
- <Hidden name="inventoryUnitOfMeasureCode" value={itemData?.inventoryUom} />
- {/* ... all existing form fields ... */}
- </TabsContent>
- <TabsContent value="indirect">
- <Hidden name="purchaseOrderLineType" value="G/L Account" />
- <Hidden name="description" value={indirectData.description} />
- <VStack>
- <div className="grid w-full gap-x-8 gap-y-4 grid-cols-1 lg:grid-cols-3">
- <Account name="accountId" label={t`GL Account`} />
- <FormControl>
- <FormLabel>
- <Trans>Description</Trans>
- </FormLabel>
- <Input
- value={indirectData.description}
- onChange={(e) =>
- setIndirectData((d) => ({
- ...d,
- description: e.target.value
- }))
- }
- />
- </FormControl>
- <CostCenter name="costCenterId" label={t`Cost Center`} isOptional />
- <NumberControlled
- name="purchaseQuantity"
- label={t`Quantity`}
- value={indirectData.purchaseQuantity}
- onChange={(value) =>
- setIndirectData((d) => ({ ...d, purchaseQuantity: value }))
- }
- />
- <NumberControlled
- name="supplierUnitPrice"
- label={t`Unit Price`}
- value={indirectData.supplierUnitPrice}
- formatOptions={{
- style: "currency",
- currency:
- routeData?.purchaseOrder?.currencyCode ??
- company.baseCurrencyCode
- }}
- onChange={(value) =>
- setIndirectData((d) => ({ ...d, supplierUnitPrice: value }))
- }
- />
- <NumberControlled
- name="supplierShippingCost"
- label={t`Shipping`}
- minValue={0}
- value={indirectData.supplierShippingCost}
- formatOptions={{
- style: "currency",
- currency:
- routeData?.purchaseOrder?.currencyCode ??
- company.baseCurrencyCode
- }}
- onChange={(value) =>
- setIndirectData((d) => ({ ...d, supplierShippingCost: value }))
- }
- />
- <NumberControlled
- name="supplierTaxAmount"
- label={t`Tax`}
- value={indirectData.supplierTaxAmount}
- formatOptions={{
- style: "currency",
- currency:
- routeData?.purchaseOrder?.currencyCode ??
- company.baseCurrencyCode
- }}
- onChange={(value) => {
- const subtotal =
- indirectData.supplierUnitPrice * indirectData.purchaseQuantity +
- indirectData.supplierShippingCost;
- setIndirectData((d) => ({
- ...d,
- supplierTaxAmount: value,
- taxPercent: subtotal > 0 ? value / subtotal : 0
- }));
- }}
- />
- <NumberControlled
- name="taxPercent"
- label={t`Tax Percent`}
- value={indirectData.taxPercent}
- minValue={0}
- maxValue={1}
- step={0.0001}
- formatOptions={{
- style: "percent",
- minimumFractionDigits: 0,
- maximumFractionDigits: 2
- }}
- onChange={(value) => {
- const subtotal =
- indirectData.supplierUnitPrice * indirectData.purchaseQuantity +
- indirectData.supplierShippingCost;
- setIndirectData((d) => ({
- ...d,
- taxPercent: value,
- supplierTaxAmount: subtotal * value
- }));
- }}
- />
- <CustomFormFields table="purchaseOrderLine" />
- </div>
- </VStack>
- </TabsContent>
- </Tabs>
- ) : isGLAccount ? (
- // Editing an existing GL Account line — show indirect fields only, no tabs
- <>
- <Hidden name="purchaseOrderLineType" value="G/L Account" />
- <Hidden name="description" value={indirectData.description} />
- {/* same indirect fields as above */}
- </>
- ) : (
- // Editing an existing direct line — show direct fields only, no tabs
- <>
- <Hidden name="purchaseOrderLineType" value={itemType} />
- <Hidden name="description" value={itemData.description} />
- <Hidden name="inventoryUnitOfMeasureCode" value={itemData?.inventoryUom} />
- {/* existing direct form fields */}
- </>
- )}
-</ModalCardBody>
-```
-
-The key principle: extract the existing direct form fields into a reusable block, and add the indirect block alongside it. Do not duplicate the Hidden fields that are shared (id, purchaseOrderId, exchangeRate).
-
-- [ ] **Step 5: Commit**
-
-```bash
-git add apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
-git commit -m "feat: add Direct/Indirect tabs to PurchaseOrderLineForm"
-```
-
----
-
-### Task 5: Update PurchaseOrderExplorer for GL Account lines
-
-**Files:**
-- Modify: `apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx`
-
-- [ ] **Step 1: Update PurchaseOrderLineItem to handle GL Account lines**
-
-In the `PurchaseOrderLineItem` component (line 175), update the display logic. Currently it always shows `getItemReadableId(items, line.itemId)` (line 218). For GL Account lines, show the description instead.
-
-Change lines 216-223 from:
-
-```tsx
- <VStack spacing={0} className="min-w-0">
- <span className="font-semibold line-clamp-1">
- {getItemReadableId(items, line.itemId)}
- </span>
- <span className="text-muted-foreground text-xs truncate line-clamp-1">
- {line.description}
- </span>
- </VStack>
-```
-
-to:
-
-```tsx
- <VStack spacing={0} className="min-w-0">
- <span className="font-semibold line-clamp-1">
- {line.purchaseOrderLineType === "G/L Account"
- ? (line.description || "Indirect Expense")
- : getItemReadableId(items, line.itemId)}
- </span>
- <span className="text-muted-foreground text-xs truncate line-clamp-1">
- {line.purchaseOrderLineType === "G/L Account"
- ? "G/L Account"
- : line.description}
- </span>
- </VStack>
-```
-
-- [ ] **Step 2: Update the "View Item Master" dropdown to hide for GL Account lines**
-
-The existing check on line 251 already handles this partially:
-
-```tsx
-{methodItemType.includes(line?.purchaseOrderLineType ?? "") && (
-```
-
-Since `"G/L Account"` is not in `methodItemType`, this already correctly hides the "View Item Master" option. No change needed.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx
-git commit -m "feat: display GL Account lines in PurchaseOrderExplorer"
-```
-
----
-
-### Task 6: Update PurchaseInvoiceLineForm with Direct/Indirect tabs
-
-**Files:**
-- Modify: `apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx`
-
-- [ ] **Step 1: Apply the same tab pattern as PurchaseOrderLineForm**
-
-Follow the exact same pattern from Task 4: add Tabs imports, Account/CostCenter imports, tab state, indirect data state, and the Direct/Indirect tab UI. The fields for the indirect tab are the same: GL Account, Description, Cost Center, Quantity, Unit Price, Shipping, Tax Amount, Tax Percent.
-
-The key differences from the PO form:
-- The hidden field name is `invoiceLineType` instead of `purchaseOrderLineType`
-- The validator is `purchaseInvoiceLineValidator`
-- The currency comes from `routeData?.purchaseInvoice?.currencyCode`
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLineForm.tsx
-git commit -m "feat: add Direct/Indirect tabs to PurchaseInvoiceLineForm"
-```
-
----
-
-### Task 7: Update SupplierQuoteLineForm with Direct/Indirect tabs
-
-**Files:**
-- Modify: `apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx`
-
-- [ ] **Step 1: Apply the same tab pattern**
-
-Add Direct/Indirect tabs to the supplier quote line form. The indirect tab for quotes should include: GL Account, Description, Cost Center, and the quantity array (since quotes support multiple quantity break points).
-
-Key difference: supplier quote lines use `quantity` as an array of numbers (for price breaks), so the indirect form needs to use `ArrayNumeric` for quantities.
-
-Add hidden field `supplierQuoteLineType` set to `"G/L Account"` for indirect tab.
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx
-git commit -m "feat: add Direct/Indirect tabs to SupplierQuoteLineForm"
-```
-
----
-
-### Task 8: Update status logic — getPurchaseOrderStatus
-
-**Files:**
-- Modify: `packages/utils/src/status.ts`
-
-- [ ] **Step 1: Treat GL Account lines as always-received**
-
-In `getPurchaseOrderStatus` (line 59), update the `allLinesReceived` check to treat GL Account lines like Comment lines — they should be treated as always received:
-
-Change lines 70-72 from:
-
-```typescript
- const allLinesReceived = lines.every(
- (line) => line.purchaseOrderLineType === "Comment" || line.receivedComplete
- );
-```
-
-to:
-
-```typescript
- const allLinesReceived = lines.every(
- (line) =>
- line.purchaseOrderLineType === "Comment" ||
- line.purchaseOrderLineType === "G/L Account" ||
- line.receivedComplete
- );
-```
-
-The `allInvoices` check does NOT change — GL Account lines still need to be invoiced.
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add packages/utils/src/status.ts
-git commit -m "feat: treat GL Account lines as always-received in status logic"
-```
-
----
-
-### Task 9: Update status logic — post-receipt edge function
-
-**Files:**
-- Modify: `packages/database/supabase/functions/post-receipt/index.ts`
-
-- [ ] **Step 1: Update receipt posting status calculation**
-
-In the post-receipt function, update the `areAllLinesReceived` check (line 1129-1131) to treat GL Account like Comment:
-
-Change:
-
-```typescript
- const areAllLinesReceived = purchaseOrderLines.every(
- (line) =>
- line.purchaseOrderLineType === "Comment" || line.receivedComplete
- );
-```
-
-to:
-
-```typescript
- const areAllLinesReceived = purchaseOrderLines.every(
- (line) =>
- line.purchaseOrderLineType === "Comment" ||
- line.purchaseOrderLineType === "G/L Account" ||
- line.receivedComplete
- );
-```
-
-- [ ] **Step 2: Update receipt voiding status projection**
-
-Similarly update the `areAllLinesReceivedProjected` check (lines 304-310):
-
-Change:
-
-```typescript
- const areAllLinesReceivedProjected = projectedPurchaseOrderLines.every(
- (line) => {
- if (line.purchaseOrderLineType === "Comment") return true;
-```
-
-to:
-
-```typescript
- const areAllLinesReceivedProjected = projectedPurchaseOrderLines.every(
- (line) => {
- if (line.purchaseOrderLineType === "Comment" || line.purchaseOrderLineType === "G/L Account") return true;
-```
-
-Do the same for the `areAllLinesInvoicedProjected` check at line 297 — but only for the received check. GL Account lines still need invoicing, so do NOT add the GL Account exception to the invoiced check.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-receipt/index.ts
-git commit -m "feat: skip GL Account lines in receipt status calculations"
-```
-
----
-
-### Task 10: Update receipt creation — skip GL Account lines
-
-**Files:**
-- Modify: `packages/database/supabase/functions/create/index.ts`
-
-- [ ] **Step 1: Add G/L Account to receipt line filter**
-
-In the `receiptFromPurchaseOrder` case, the PO lines are already filtered to include only `["Part", "Material", "Tool", "Fixture", "Consumable"]` (line 791-797). This already excludes GL Account lines. No change needed here.
-
-However, verify the secondary filter at lines 879-885 which excludes `"Service"` lines. Add `"G/L Account"` exclusion for safety:
-
-Change the filter from:
-
-```typescript
- .filter((d) => d.itemId && d.purchaseQuantity && d.purchaseOrderLineType !== "Service")
-```
-
-to:
-
-```typescript
- .filter((d) => d.itemId && d.purchaseQuantity && d.purchaseOrderLineType !== "Service" && d.purchaseOrderLineType !== "G/L Account")
-```
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add packages/database/supabase/functions/create/index.ts
-git commit -m "feat: exclude GL Account lines from receipt creation"
-```
-
----
-
-### Task 11: Update PurchaseOrderHeader — Receive button logic
-
-**Files:**
-- Modify: `apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx`
-
-- [ ] **Step 1: Hide Receive button when all lines are GL Account**
-
-Add a computed value to check if the PO has any direct (receivable) lines:
-
-After `const requiresShipment = isOutsideProcessing && !hasShipments;` (line 124), add:
-
-```typescript
- const hasReceivableLines = useMemo(
- () =>
- routeData?.lines?.some(
- (line) =>
- line.purchaseOrderLineType !== "Comment" &&
- line.purchaseOrderLineType !== "G/L Account"
- ) ?? false,
- [routeData?.lines]
- );
-```
-
-Then wrap the Receive/Receipts button section (lines 366-434) with a condition:
-
-```tsx
-{hasReceivableLines && (
- // ... existing receipts/receive button JSX ...
-)}
-```
-
-- [ ] **Step 2: Commit**
-
-```bash
-git add apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx
-git commit -m "feat: hide Receive button when PO has only GL Account lines"
-```
-
----
-
-### Task 12: Update convert edge function — PO to Invoice
-
-**Files:**
-- Modify: `packages/database/supabase/functions/convert/index.ts`
-
-- [ ] **Step 1: Verify PO to Invoice conversion carries GL Account fields**
-
-Check the `purchaseOrderToPurchaseInvoice` case (lines 349-371). The existing mapping already copies:
-- `invoiceLineType` ← `line.purchaseOrderLineType`
-- `accountId` ← `line.accountId`
-
-Add `costCenterId` to the mapping. In the line mapping object, add:
-
-```typescript
- costCenterId: line.costCenterId,
-```
-
-- [ ] **Step 2: Update supplier quote to PO conversion**
-
-In the `supplierQuoteToPurchaseOrder` case (lines 1495-1529), update the line mapping to carry over GL Account fields:
-
-Add to the line mapping object:
-
-```typescript
- purchaseOrderLineType: line.supplierQuoteLineType === "G/L Account"
- ? "G/L Account"
- : (line.item?.type ?? "Part"),
- accountId: line.accountId,
- costCenterId: line.costCenterId,
-```
-
-Replace the existing `purchaseOrderLineType` field which currently uses `line.item?.type` unconditionally.
-
-- [ ] **Step 3: Update the line filter for supplier quote to PO**
-
-The existing code filters lines that have `selectedLines[line.id].quantity > 0`. This should work for GL Account lines too since they have quantities. No filter change needed.
-
-- [ ] **Step 4: Commit**
-
-```bash
-git add packages/database/supabase/functions/convert/index.ts
-git commit -m "feat: carry GL Account fields through document conversions"
-```
-
----
-
-### Task 13: Update Purchase Order PDF
-
-**Files:**
-- Modify: `packages/documents/src/utils/purchase-order.ts`
-
-- [ ] **Step 1: Verify getLineDescription handles GL Account**
-
-The `getLineDescription` function already handles GL Account — it returns `line?.description`. No change needed.
-
-- [ ] **Step 2: Update getLineDescriptionDetails to use account name**
-
-The `getLineDescriptionDetails` function currently shows:
-
-```typescript
- case "G/L Account":
- return `G/L Account: ${line?.accountNumber}`;
-```
-
-This references `accountNumber` which is the legacy field. Check the `purchaseOrderLines` view to see if it includes an account name via a join. If the view includes `accountName`, update to:
-
-```typescript
- case "G/L Account":
- return line?.accountName ? `${line.accountName}` : "G/L Account";
-```
-
-If the view doesn't include account name, you'll need to either:
-1. Update the `purchaseOrderLines` view to join the account table and include the name, OR
-2. Keep the existing `accountNumber` reference if it still works (the view may still expose it)
-
-Check the view definition before deciding.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/documents/src/utils/purchase-order.ts
-git commit -m "feat: update PDF description for GL Account lines"
-```
-
----
-
-### Task 14: Route actions — no explicit changes needed
-
-All three route actions use the `...d` spread from the validated form data:
-- PO lines: `apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.details.tsx` and `$orderId.new.tsx`
-- Invoice lines: `apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.$lineId.details.tsx` and `$invoiceId.new.tsx`
-- Quote lines: `apps/erp/app/routes/x+/supplier-quote+/$id.$lineId.details.tsx` and `$id.new.tsx`
-
-Since we added `costCenterId`, `accountId`, and type fields to the validators in Tasks 2-3, these automatically flow through to the database upsert via `...d`. No explicit route action changes are needed.
-
-**However**, verify after testing that all fields persist correctly. If any upsert function (e.g., `upsertSupplierQuoteLine`) explicitly lists allowed fields rather than accepting `...d`, those functions will need updating too.
-
----
-
-### Task 15: Test end-to-end in browser
-
-- [ ] **Step 1: Start dev server**
-
-```bash
-npm run dev
-```
-
-- [ ] **Step 2: Test creating a direct purchase order line**
-
-Navigate to an existing PO in Draft status. Click "Add Line Item". Verify the Direct tab is selected by default. Create a Part line. Verify it saves correctly.
-
-- [ ] **Step 3: Test creating an indirect purchase order line**
-
-On the same PO, click "Add Line Item" again. Switch to the Indirect tab. Select a GL Account, enter a description, quantity, and unit price. Save. Verify it appears in the explorer with the description shown.
-
-- [ ] **Step 4: Test status logic**
-
-Create a PO with only GL Account lines. Finalize it. Verify the status goes to "To Invoice" (not "To Receive and Invoice"). Verify the Receive button is hidden.
-
-Create a PO with mixed lines. Finalize it. Verify status is "To Receive and Invoice". Create a receipt — verify only direct lines appear. Post the receipt. Verify status changes to "To Invoice".
-
-- [ ] **Step 5: Test invoice creation from PO**
-
-On a PO with GL Account lines, click Invoice. Verify both direct and indirect lines appear on the invoice. Verify GL Account fields (accountId, costCenterId) are carried over.
-
-- [ ] **Step 6: Test the PDF**
-
-Preview the PDF for a PO with GL Account lines. Verify the description shows as primary text and the account number appears as muted secondary text.
-
-- [ ] **Step 7: Commit any fixes**
-
-```bash
-git add -A
-git commit -m "fix: address issues found during end-to-end testing"
-```
-
----
-
-### Task 16: Update the cache
-
-- [ ] **Step 1: Update relevant cache files**
-
-After all changes are committed, update the llm/cache files to reflect the new GL Account line support in purchasing, invoicing, and supplier quotes.
-
-- [ ] **Step 2: Commit cache updates**
-
-```bash
-git add llm/cache/
-git commit -m "docs: update cache with indirect purchase support"
-```
diff --git a/docs/superpowers/specs/2026-05-03-accrual-accounting-design.md b/docs/superpowers/specs/2026-05-03-accrual-accounting-design.md
deleted file mode 100644
index 61780cfe3e..0000000000
--- a/docs/superpowers/specs/2026-05-03-accrual-accounting-design.md
+++ /dev/null
@@ -1,278 +0,0 @@
-# Accrual Accounting Rewrite: COGS, Shipment Journal Entries, Dimensions & WIP
-
-## Problem Statement
-
-Three critical issues with the current accrual accounting implementation:
-
-1. **No journal entries on shipment**: `post-shipment` creates item ledger entries but zero GL impact. COGS is never recognized when goods leave the warehouse.
-2. **No dimensions on sales transactions**: `post-sales-invoice` never attaches dimensions (ItemPostingGroup, Location, CustomerType) to journal lines. Purchase-side functions do.
-3. **Inaccurate COGS**: `post-sales-invoice` uses the invoice line's selling price (`unitPrice`) as COGS instead of the actual inventory cost. COGS = Revenue, which is incorrect.
-
-Additionally:
-- **No costLedger entries for manufactured parts**: Job completion creates item ledger entries but never writes to costLedger, so there's no cost basis for COGS on manufactured goods.
-- **No WIP accounting**: Material issuance, labor, and machine time during production have no GL impact.
-
-## Approach: NetSuite-Style (Approach A)
-
-Based on research of both NetSuite and SAP best practices, both systems agree:
-
-- **COGS at shipment, Revenue at invoice** — COGS follows the physical goods movement, revenue follows the billing event
-- **Manufacturing uses WIP -> FG Inventory -> Variance** — incremental WIP accounting during production, discharge at completion
-- **Dimensions inherited from source documents** — never manually assigned on automated postings
-
-## Design
-
-### Section 1: Shipment Posting — Journal Entries
-
-**File**: `packages/database/supabase/functions/post-shipment/index.ts`
-
-When a shipment is posted for a sales order, create journal entries:
-
-| Account | Debit | Credit | Source |
-|---------|-------|--------|--------|
-| Cost of Goods Sold | $X | | COGS calculation engine |
-| Inventory | | $X | Same amount |
-
-Cost source: The COGS calculation engine (Section 2) determines `$X` based on the item's `costingMethod` from `itemCost`.
-
-Dimensions attached: ItemPostingGroup (from itemCost), Location (from shipment line), CustomerType (from sales order customer).
-
-Edge cases:
-- Non-inventory items: No COGS entry (no inventory to relieve)
-- Outside processing items: Use WIP account instead of Inventory for credit
-- Intercompany: Use IC COGS account if applicable
-
-### Section 2: COGS Calculation Engine
-
-New shared module usable by `post-shipment` and `post-sales-invoice` (for direct invoices).
-
-```
-calculateCOGS(itemId, quantity, companyId, costingMethod) -> { unitCost, totalCost, layersConsumed[] }
-```
-
-**By costing method:**
-
-**Standard Cost**:
-- Query `itemCost.standardCost`
-- `totalCost = standardCost * quantity`
-- No costLedger interaction
-
-**Average Cost**:
-- Query `itemCost.unitCost` (maintained as weighted average by `update-purchased-prices`)
-- `totalCost = unitCost * quantity`
-- No costLedger interaction
-
-**FIFO**:
-- Query costLedger entries ordered by `postingDate ASC, createdAt ASC`
-- Only entries with `remainingQuantity > 0`
-- Consume layers oldest-first until quantity fulfilled
-- Return `{ costLedgerId, quantityConsumed, unitCost }[]` for audit
-
-**LIFO**:
-- Same as FIFO but ordered `postingDate DESC, createdAt DESC`
-
-The engine also writes a costLedger entry for the shipment:
-- `itemLedgerType: "Sale"`, `costLedgerType: "Direct Cost"`
-- `documentType: "Sales Shipment"`, `quantity: -quantity`, `cost: -totalCost`
-
-For FIFO/LIFO, update `remainingQuantity` on each consumed layer within the same transaction.
-
-Fallback: If insufficient layers exist (negative inventory scenario), fall back to `itemCost.unitCost`.
-
-### Section 3: Sales Invoice Posting Changes
-
-**File**: `packages/database/supabase/functions/post-sales-invoice/index.ts`
-
-**When a shipment already exists** (ship first, invoice later):
-- Invoice posts revenue only: DR Accounts Receivable / CR Sales Revenue
-- No COGS entries (already posted at shipment)
-- No item ledger entries (already relieved at shipment)
-
-**When invoice is posted before shipment** (invoice first, ship later):
-- Invoice posts revenue only: DR Accounts Receivable / CR Sales Revenue
-- COGS posted later when shipment occurs (Section 1 handles this)
-
-**Direct invoice (no sales order)**:
-- Invoice posts both sides using the COGS calculation engine:
- - DR Accounts Receivable / CR Sales Revenue (selling price)
- - DR COGS / CR Inventory (actual cost from engine — NOT the selling price)
-- Creates item ledger and shipment lines as today
-
-**Key fix**: Revenue and COGS are now from different sources. Revenue = selling price. COGS = actual inventory cost.
-
-Dimensions attached: ItemPostingGroup, Location, CustomerType (matching shipment pattern).
-
-### Section 4: WIP Accounting & Job Completion
-
-Four events build up WIP during production, one discharges it.
-
-**4a. Material Issuance to Job**
-
-| Account | Debit | Credit |
-|---------|-------|--------|
-| WIP | material cost | |
-| Raw Material Inventory | | material cost |
-
-Cost determined by the issued material's costing method via the COGS calculation engine. Writes a costLedger entry for consumption (`itemLedgerType: "Consumption"`).
-
-**4b. Labor/Machine/Setup Time Recording**
-
-When a production event completes (has `endTime`):
-
-| Account | Debit | Credit |
-|---------|-------|--------|
-| WIP | time * rate | |
-| Labor/Machine Absorption | | time * rate |
-
-Rate from work center or operation cost rate.
-
-**4c. Outside Processing Receipt**
-
-Already handled by `post-receipt` — posts DR WIP / CR GR/IR for outside processing items. No changes needed.
-
-**4d. Job Completion (Discharge WIP -> Finished Goods)**
-
-| Account | Debit | Credit |
-|---------|-------|--------|
-| Finished Goods Inventory | actual accumulated cost | |
-| WIP | | actual accumulated cost |
-
-Actual accumulated cost = sum of all WIP debits (4a + 4b + 4c) for this job.
-
-Writes costLedger entry for the finished good:
-- `itemLedgerType: "Output"`, `documentType: "Job Receipt"`
-- `quantity: quantityComplete`, `cost: actual accumulated cost`
-- `remainingQuantity: quantityComplete` (FIFO/LIFO layer)
-
-Updates `itemCost.unitCost` for Average cost items.
-
-**4e. Job Close (Variance Settlement)**
-
-When a completed job is closed, if WIP balance remains:
-
-| Account | Debit | Credit |
-|---------|-------|--------|
-| Production Variance | remaining WIP | |
-| WIP | | remaining WIP |
-
-Variance accounts from `accountDefault`: `materialVarianceAccount`, `laborAndMachineVarianceAccount`, `overheadVarianceAccount`, `lotSizeVarianceAccount`.
-
-**Dimensions on all WIP entries**: ItemPostingGroup (from finished good), Location (from job), Department (from job if assigned).
-
-### Section 5: Dimensions on All Transactions
-
-Standardize dimension attachment across all posting functions.
-
-| Transaction | ItemPostingGroup | Location | CustomerType | SupplierType | CostCenter |
-|-------------|-----------------|----------|--------------|--------------|------------|
-| Purchase Receipt | From itemCost | From receipt line | — | From supplier | — |
-| Purchase Invoice | From itemCost | From invoice line | — | From supplier | From GL account line |
-| Sales Shipment (new) | From itemCost | From shipment line | From customer | — | From SO line |
-| Sales Invoice (fix) | From itemCost | From invoice line | From customer | — | From SO line |
-| Job Material Issue (new) | From material's itemCost | From job location | — | — | From job |
-| Job Labor/Machine (new) | From finished good's itemCost | From job location | — | — | From job |
-| Job Completion (new) | From finished good's itemCost | From job location | — | — | From job |
-
-Inheritance rule: Line-level > Header-level > Entity-level default.
-
-No changes to `post-receipt` or `post-purchase-invoice` (already correct).
-
-### Section 6: costLedger as Cost Layer System
-
-Add one column to `costLedger`:
-
-```sql
-ALTER TABLE "costLedger" ADD COLUMN "remainingQuantity" NUMERIC(12, 4) NOT NULL DEFAULT 0;
-```
-
-**Layer creation** (remainingQuantity set to quantity):
-
-| Event | itemLedgerType | documentType |
-|-------|---------------|--------------|
-| Purchase receipt | Purchase | Purchase Receipt |
-| Job completion | Output | Job Receipt |
-| Positive inventory adjustment | Positive Adjmt. | — |
-| Transfer receipt | Transfer | Transfer Receipt |
-
-**Layer consumption** (remainingQuantity decremented, FIFO/LIFO only):
-
-| Event | itemLedgerType | documentType |
-|-------|---------------|--------------|
-| Sales shipment | Sale | Sales Shipment |
-| Material issue to job | Consumption | — |
-| Negative inventory adjustment | Negative Adjmt. | — |
-
-Standard/Average items: Layers created for audit trail but `remainingQuantity` not consumed on shipment.
-
-**update-purchased-prices changes**: Initialize `remainingQuantity = quantity` when creating layers from PO finalization. Keep existing average cost calculation.
-
-### Backfill Strategy
-
-For existing data, add `remainingQuantity` to historical costLedger entries.
-
-**For each item + company:**
-
-1. Calculate current on-hand: `SUM(itemLedger.quantity)`
-2. For FIFO items: Walk costLedger newest-to-oldest, assign `remainingQuantity` until on-hand accounted for (newest layers are what remain after oldest were consumed)
-3. For LIFO items: Walk oldest-to-newest
-4. For Standard/Average: Set `remainingQuantity = quantity` on all inbound entries
-
-**Gap handling** (on-hand > costLedger total): Create synthetic opening balance entry:
-- "Buy" items (`item.replenishmentSystem = 'Buy'`): `itemLedgerType: "Purchase"`, `documentType: "Purchase Receipt"`
-- "Make"/"Buy and Make" items: `itemLedgerType: "Output"`, `documentType: "Job Receipt"`
-- Cost = `gap * itemCost.unitCost`
-- Date = earliest itemLedger entry date for that item (ensures synthetic layers are consumed first in FIFO)
-
-## Deployment Strategy
-
-**Big bang cutover with reconciliation** — not a gradual rollout.
-
-**Phase 1: Deploy costLedger changes (always on, no GL impact)**
-- Add `remainingQuantity` column
-- Run backfill migration
-- Start writing `remainingQuantity` on all new costLedger entries (receipts, PO finalization)
-- Start consuming layers on shipments (update `remainingQuantity` in costLedger) — this is data-only, no journal entries
-- Write costLedger entries on job completion (data-only, no journal entries)
-- **Keep existing journal entry behavior unchanged** — sales invoice still posts COGS the old way during this phase
-- The costLedger becomes the source of truth for what a reconciliation entry needs to contain at cutover
-
-**Phase 2: Cutover day**
-- Flip the `isInternalUser` flag (or equivalent feature flag)
-- Run one-time reconciliation: create opening balance journal entries based on costLedger state at cutover
-- All new transactions use the new journal entry behavior going forward
-
-**Why not gradual**: If we change WHEN COGS is posted (shipment vs invoice) but don't create journal entries at the new timing, neither shipment nor invoice posts COGS — worse than the current broken behavior. WIP accounting also can't be partially enabled because incremental WIP debits must exist before completion can credit WIP.
-
-## Accounts Used
-
-All accounts already exist in `accountDefault`:
-
-| Account | Used By |
-|---------|---------|
-| `costOfGoodsSoldAccount` | Shipment COGS debit |
-| `inventoryAccount` | Shipment/invoice inventory credit |
-| `receivablesAccount` | Invoice AR debit |
-| `salesAccount` | Invoice revenue credit |
-| `workInProgressAccount` | WIP debit (materials, labor, machine) |
-| `payablesAccount` | Purchase invoice AP credit |
-| `goodsReceivedNotInvoicedAccount` | GR/IR clearing (unchanged) |
-| `purchaseVarianceAccount` | PPV (unchanged) |
-| `materialVarianceAccount` | Production variance |
-| `laborAndMachineVarianceAccount` | Production variance |
-| `overheadVarianceAccount` | Production variance |
-| `lotSizeVarianceAccount` | Production variance |
-
-New account needed in `accountDefault`: **laborAbsorptionAccount** — the credit side of WIP labor/machine entries. This is the cost center "sending" its capacity to the job. Requires a new column on `accountDefault` and a migration to add it.
-
-## Files Modified
-
-| File | Change |
-|------|--------|
-| `packages/database/supabase/functions/post-shipment/index.ts` | Add journal entries (COGS + dimensions) |
-| `packages/database/supabase/functions/post-sales-invoice/index.ts` | Remove COGS from invoice, add dimensions, fix cost source |
-| `packages/database/supabase/functions/update-purchased-prices/index.ts` | Set remainingQuantity on costLedger inserts |
-| `packages/database/supabase/functions/issue/index.ts` | Add costLedger + journal entries on job completion |
-| `packages/database/supabase/migrations/` | Add remainingQuantity column + backfill |
-| New: shared COGS calculation engine | Shared by post-shipment and post-sales-invoice |
-| New: WIP journal entry logic | Triggered by material issuance, production events |
-| New: Job close variance settlement | New edge function or extension of existing |
diff --git a/docs/superpowers/specs/2026-05-03-indirect-purchases-design.md b/docs/superpowers/specs/2026-05-03-indirect-purchases-design.md
deleted file mode 100644
index 3637708373..0000000000
--- a/docs/superpowers/specs/2026-05-03-indirect-purchases-design.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Indirect Purchases
-
-## Overview
-
-Add support for indirect purchases (GL Account lines) alongside existing direct purchases (Part, Material, Tool, Consumable) in purchase orders, purchase invoices, and supplier quotes. A single document can mix both direct and indirect lines.
-
-## Line Form UI
-
-### PurchaseOrderLineForm
-
-Tabs inside the ModalCard (same pattern as JobForm's Single/Many tabs):
-
-- **"Direct" tab** — existing form, unchanged. Item selector with type switching (Part, Material, Tool, Consumable), UOM, conversion factor, location, shelf, quantity, pricing, tax.
-- **"Indirect" tab** — new form. Fields: GL Account selector, Description (free text), Cost Center (new creatable combobox), Quantity, Unit Price, Shipping, Tax Amount, Tax Percent. No item, no UOM, no conversion factor, no location/shelf.
-
-The "Indirect" tab sets `purchaseOrderLineType` to `"G/L Account"` via a hidden field.
-
-When **editing** an existing line, the tab defaults to the line's type and tabs are hidden (same as JobForm hides tabs when editing). Tabs only show when creating a new line.
-
-### PurchaseOrderExplorer
-
-Both line types appear in the same list. GL Account lines display the account name/description instead of an item readable ID.
-
-### PurchaseInvoiceLineForm
-
-Same Direct/Indirect tab treatment as the purchase order line form.
-
-### Supplier Quote Line Form
-
-Same Direct/Indirect tab treatment.
-
-## CostCenter Component
-
-New component at `apps/erp/app/components/Form/CostCenter.tsx`:
-
-- Creatable combobox pattern (matching existing form components)
-- Fetches options from `api/accounting.cost-centers`
-- Allows inline creation of new cost centers
-- Standard props: `name`, `label`, `value`, `onChange`, `isOptional`
-
-## Validators & Models
-
-### purchasing.models.ts
-
-- Add `"G/L Account"` to `purchaseOrderLineType`
-- Add `accountId` and `costCenterId` fields to `purchaseOrderLineValidator`
-- Refinement: `purchaseOrderLineType === "G/L Account"` requires `accountId`, forbids `itemId`; direct types require `itemId`, forbid `accountId`
-
-### invoicing.models.ts
-
-- Same changes to `purchaseInvoiceLineType` and `purchaseInvoiceLineValidator`
-
-### DB Migration
-
-- Add `costCenterId` column (FK to `costCenter`) on `purchaseOrderLine` and `purchaseInvoiceLine`
-- Verify `accountId` column exists on both tables (should exist from accounting dimensions work)
-
-## Status Logic & Receipts
-
-### Status Determination
-
-The utils that calculate PO status become line-type-aware:
-
-- GL Account lines are treated as always fully received (zero contribution to "to receive" count)
-- PO with **only** GL Account lines: status goes directly to "To Invoice" after finalization
-- PO with **mixed** lines: "to receive" count only comes from direct lines; if all direct lines are received but indirect lines remain uninvoiced, status is "To Invoice"
-- All lines (both types) invoiced: status becomes "Completed"
-
-### Receipts
-
-- Receipt creation from a PO filters out GL Account lines
-- GL Account lines do not appear in the receipt line list
-- If PO has only GL Account lines, the "Receive" button is hidden/disabled
-
-### Purchase Invoice Creation from PO
-
-Both direct and indirect lines are included. GL Account lines carry over `accountId`, `costCenterId`, and description.
-
-## Posting & Accounting
-
-### Purchase Invoice Posting — Indirect Lines
-
-- **Debit:** GL account specified on the line (`accountId`) — directly, bypassing posting groups
-- **Credit:** Accounts Payable (same as direct lines)
-- Tax, shipping, and discount handling unchanged
-
-### Direct Lines
-
-Posting continues through posting groups — no changes.
-
-### Mixed Invoices
-
-Journal entries contain a mix: some lines debit through posting groups (direct), some debit the explicit GL account (indirect).
-
-## Purchase Order PDF
-
-- Indirect lines show **description** as the primary content (same column as item name for direct lines)
-- Account name/number shown as secondary muted text beneath the description
-- No item number / part number for indirect lines
-- Quantity, unit price, extended price columns remain the same
-- Cost center is not shown on the PDF (internal-only detail)
-- Mixed POs: direct and indirect lines interleaved in natural order, no separate sections
-
-## Supplier Quotes
-
-- Supplier quote line form gets the same Direct/Indirect tab treatment
-- GL Account lines on quotes carry over `accountId`, `costCenterId`, and description when converting to a purchase order
-
-## Document Conversion Edge Functions
-
-The edge functions that convert between documents (supplier quote to PO, PO to invoice, etc.) must carry over GL Account fields:
-
-- `purchaseOrderLineType` / `invoiceLineType` (preserving `"G/L Account"`)
-- `accountId`
-- `costCenterId`
-- `description`
-
-These fields must be mapped alongside the existing item-based fields during conversion. For GL Account lines, item-specific fields (`itemId`, `conversionFactor`, UOM codes) are left null/empty.
-
-## Standalone Purchase Invoices
-
-- Purchase invoices can be created with GL Account lines without a backing PO
-- Posting logic is the same regardless of origin (from PO or standalone)
diff --git a/docs/superpowers/specs/2026-05-11-mto-backflush-design.md b/docs/superpowers/specs/2026-05-11-mto-backflush-design.md
deleted file mode 100644
index db27ba5ab5..0000000000
--- a/docs/superpowers/specs/2026-05-11-mto-backflush-design.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# MTO Material Backflush Design
-
-## Problem
-
-When a make-to-order (MTO) job completes, unissued materials are not backflushed from inventory. Make-to-stock (MTS) jobs handle this via `complete_job_to_inventory`, but MTO jobs skip that function entirely — the trigger just updates job status, and the ERP route only calls it for leftover inventory receipt.
-
-Materials may be partially issued during production via the MES `issue` edge function (proportionally per operation completion), but if any remain unissued at job completion, nothing catches them.
-
-## Solution
-
-Extract the backflush logic from `complete_job_to_inventory` into a reusable `backflush_job_materials` function. Call it from both MTO and MTS completion paths.
-
-## New Function
-
-```sql
-backflush_job_materials(
- p_job_id TEXT,
- p_quantity_complete NUMERIC,
- p_company_id TEXT,
- p_user_id TEXT
-)
-```
-
-### Logic
-
-1. Look up `job.quantity` (original job quantity) and `job.locationId`
-2. Loop through unissued non-tracked materials:
- - Filter: `jobMaterial` where `jobId = p_job_id`, `itemType IN ('Material', 'Part', 'Consumable')`, `methodType != 'Make to Order'`, `requiresBatchTracking = false`, `requiresSerialTracking = false`, `quantityToIssue > 0`
-3. For each material, prorate based on actual completion:
- - `target = estimatedQuantity * (p_quantity_complete / job.quantity)`
- - `to_backflush = GREATEST(target - quantityIssued, 0)`
- - Skip if `to_backflush <= 0`
-4. Resolve storage unit: explicit on jobMaterial -> pickMethod default -> largest inventory bucket at job location
-5. Create negative `itemLedger` consumption entry
-6. Update `jobMaterial.quantityIssued`
-7. If accounting enabled:
- - Calculate COGS per costing method (Standard/Average/FIFO/LIFO with cost layer consumption)
- - Post journal entry: DR WIP / CR Inventory
- - Create costLedger consumption entry
- - Attach dimensions (ItemPostingGroup, Location)
-
-### Idempotency
-
-Safe to call even if all materials are fully issued — `quantityToIssue` will be 0 and the loop won't execute. Also safe if `p_quantity_complete` produces a target less than or equal to what's already issued.
-
-## Refactor `complete_job_to_inventory`
-
-Replace the inline backflush block (lines 193-593) with:
-
-```sql
-PERFORM backflush_job_materials(p_job_id, p_quantity_complete, p_company_id, p_user_id);
-```
-
-No behavior change for MTS jobs. Labor/machine absorption, WIP discharge, output itemLedger, and cost updates remain in `complete_job_to_inventory`.
-
-## MTO Completion Paths
-
-### Trigger (`sync_finish_job_operation`)
-
-In the MTO branch (where `v_sales_order_id IS NOT NULL`), add after the job status update:
-
-```sql
-PERFORM backflush_job_materials(p_new->>'jobId', v_quantity_complete, p_new->>'companyId', p_new->>'updatedBy');
-```
-
-### ERP Route (`$jobId.complete.tsx`)
-
-In the MTO branch, add after the job status update:
-
-```typescript
-await client.rpc("backflush_job_materials", {
- p_job_id: jobId,
- p_quantity_complete: quantityComplete,
- p_company_id: companyId,
- p_user_id: userId,
-});
-```
-
-## Out of Scope
-
-- Labor/machine absorption posting for MTO (stays in `complete_job_to_inventory`)
-- WIP discharge at shipment (separate flow)
-- Tracked material (batch/serial) backflushing
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 94c86eb607..1774a972ca 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -36092,7 +36092,7 @@ export type Database = {
},
]
}
- searchIndex_9CZDcGFyZNHH9vEMuFVaDH: {
+ searchIndex_7BqMC5eK9CZo1FTcT3LJUR: {
Row: {
createdAt: string
description: string | null
@@ -44364,6 +44364,100 @@ export type Database = {
},
]
}
+ userModulePreference: {
+ Row: {
+ companyId: string
+ hidden: boolean
+ id: string
+ module: string
+ position: number
+ updatedAt: string
+ userId: string
+ }
+ Insert: {
+ companyId: string
+ hidden?: boolean
+ id?: string
+ module: string
+ position: number
+ updatedAt?: string
+ userId: string
+ }
+ Update: {
+ companyId?: string
+ hidden?: boolean
+ id?: string
+ module?: string
+ position?: number
+ updatedAt?: string
+ userId?: string
+ }
+ Relationships: [
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "companies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "company"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "customFieldTables"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "integrations"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employees"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeesAcrossCompanies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeeSummary"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "user"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "userDefaults"
+ referencedColumns: ["userId"]
+ },
+ ]
+ }
userPermission: {
Row: {
id: string
@@ -56094,21 +56188,21 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["shipmentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["invoiceCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["shipmentCountryCode"]
+ columns: ["invoiceCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 94c86eb607..1774a972ca 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -36092,7 +36092,7 @@ export type Database = {
},
]
}
- searchIndex_9CZDcGFyZNHH9vEMuFVaDH: {
+ searchIndex_7BqMC5eK9CZo1FTcT3LJUR: {
Row: {
createdAt: string
description: string | null
@@ -44364,6 +44364,100 @@ export type Database = {
},
]
}
+ userModulePreference: {
+ Row: {
+ companyId: string
+ hidden: boolean
+ id: string
+ module: string
+ position: number
+ updatedAt: string
+ userId: string
+ }
+ Insert: {
+ companyId: string
+ hidden?: boolean
+ id?: string
+ module: string
+ position: number
+ updatedAt?: string
+ userId: string
+ }
+ Update: {
+ companyId?: string
+ hidden?: boolean
+ id?: string
+ module?: string
+ position?: number
+ updatedAt?: string
+ userId?: string
+ }
+ Relationships: [
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "companies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "company"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "customFieldTables"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "userModulePreference_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "integrations"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employees"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeesAcrossCompanies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeeSummary"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "user"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "userModulePreference_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "userDefaults"
+ referencedColumns: ["userId"]
+ },
+ ]
+ }
userPermission: {
Row: {
id: string
@@ -56094,21 +56188,21 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["shipmentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["invoiceCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["shipmentCountryCode"]
+ columns: ["invoiceCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/migrations/20260512174538_menu-customization.sql b/packages/database/supabase/migrations/20260512174538_menu-customization.sql
new file mode 100644
index 0000000000..8f75bf32a2
--- /dev/null
+++ b/packages/database/supabase/migrations/20260512174538_menu-customization.sql
@@ -0,0 +1,31 @@
+CREATE TABLE "userModulePreference" (
+ "id" TEXT NOT NULL DEFAULT xid(),
+ "userId" TEXT NOT NULL,
+ "companyId" TEXT NOT NULL,
+ "module" TEXT NOT NULL,
+ "position" DOUBLE PRECISION NOT NULL,
+ "hidden" BOOLEAN NOT NULL DEFAULT false,
+ "updatedAt" TIMESTAMPTZ NOT NULL DEFAULT now(),
+
+ CONSTRAINT "userModulePreference_pkey" PRIMARY KEY ("id"),
+ CONSTRAINT "userModulePreference_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT "userModulePreference_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT "userModulePreference_userId_companyId_module_key" UNIQUE ("userId", "companyId", "module")
+);
+
+ALTER TABLE "userModulePreference" ENABLE ROW LEVEL SECURITY;
+
+CREATE POLICY "SELECT" ON "userModulePreference"
+ FOR SELECT USING ("userId" = auth.uid()::text);
+
+CREATE POLICY "INSERT" ON "userModulePreference"
+ FOR INSERT WITH CHECK ("userId" = auth.uid()::text);
+
+CREATE POLICY "UPDATE" ON "userModulePreference"
+ FOR UPDATE USING ("userId" = auth.uid()::text);
+
+CREATE POLICY "DELETE" ON "userModulePreference"
+ FOR DELETE USING ("userId" = auth.uid()::text);
+
+CREATE INDEX "userModulePreference_userId_companyId_idx"
+ ON "userModulePreference" ("userId", "companyId");
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index 609a46ca4a..f03d21ad83 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Versand:"
msgid "Shop Floor"
-msgstr "Shopfloor"
+msgstr ""
msgid "Short Description"
msgstr "Kurzbeschreibung"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 5c03e83090..291e4347bd 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Envío:"
msgid "Shop Floor"
-msgstr "Planta de Producción"
+msgstr ""
msgid "Short Description"
msgstr "Descripción Corta"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index e6bfed3535..70e86cd868 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Expédition :"
msgid "Shop Floor"
-msgstr "Atelier de production"
+msgstr ""
msgid "Short Description"
msgstr "Description courte"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index f215974383..fa7f1a65f9 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "शिपिंग:"
msgid "Shop Floor"
-msgstr "शॉप फ्लोर"
+msgstr ""
msgid "Short Description"
msgstr "संक्षिप्त विवरण"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index 6e03ef9467..2b468aeb7e 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Spedizione:"
msgid "Shop Floor"
-msgstr "Reparto Produzione"
+msgstr ""
msgid "Short Description"
msgstr "Descrizione breve"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index a600449566..5b3df6aa2a 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "配送:"
msgid "Shop Floor"
-msgstr "ショップフロア"
+msgstr ""
msgid "Short Description"
msgstr "短い説明"
diff --git a/packages/locale/locales/nl/erp.po b/packages/locale/locales/nl/erp.po
new file mode 100644
index 0000000000..85b3949bcf
--- /dev/null
+++ b/packages/locale/locales/nl/erp.po
@@ -0,0 +1,8361 @@
+msgid ""
+msgstr ""
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: @lingui/cli\n"
+"Language: nl\n"
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Plural-Forms: \n"
+
+msgid " A supplier is a business or person who sells you parts or services."
+msgstr ""
+
+msgid "\"{storageUnitName}\" has {childCount} direct nested storage units. Deleting it will also delete them and anything underneath them. This cannot be undone."
+msgstr ""
+
+msgid "\"{storageUnitName}\" has 1 direct nested storage unit. Deleting it will also delete that unit and anything underneath it. This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: rule.escalationDays
+msgid "{0} days"
+msgstr ""
+
+#. placeholder {0}: attachment.name
+#. placeholder {0}: file.name
+msgid "{0} deleted successfully"
+msgstr ""
+
+#. placeholder {0}: history.length
+msgid "{0} orders"
+msgstr ""
+
+#. placeholder {0}: selectedProcesses.length
+msgid "{0} Processes"
+msgstr ""
+
+#. placeholder {0}: lotEntities.length - inspected
+msgid "{0} un-sampled entities will be released to Available. Sampled passes stay Available and sampled failures stay Rejected."
+msgstr ""
+
+#. placeholder {0}: file.name
+msgid "{0} uploaded successfully"
+msgstr ""
+
+msgid "{maxSizeMB}MB limit"
+msgstr ""
+
+msgid "{scopeCount} permissions"
+msgstr ""
+
+msgid "/month/user"
+msgstr ""
+
+#. placeholder {0}: allItems.length - 3
+msgid "+{0} more"
+msgstr ""
+
+msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"
+msgstr ""
+
+msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."
+msgstr ""
+
+msgid "<0>insert</0> will also return the replaced values for UPSERT."
+msgstr ""
+
+msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."
+msgstr ""
+
+msgid "<0>update</0> will also return the replaced values for UPDATE."
+msgstr ""
+
+msgid "1 day"
+msgstr ""
+
+msgid "3D Model"
+msgstr ""
+
+msgid "5 User Minimum"
+msgstr ""
+
+msgid "5MB file limit"
+msgstr ""
+
+msgid "A consumable is a physical item used to make a part that can be used across multiple jobs"
+msgstr ""
+
+msgid "A contractor is a supplier contact with particular abilities and available hours"
+msgstr ""
+
+msgid "A customer is a business or person who buys your parts or services."
+msgstr ""
+
+msgid "A issue record tracks quality issues and their resolution process."
+msgstr ""
+
+msgid "A material is a physical item used to make a part that can be used across multiple jobs"
+msgstr ""
+
+msgid "A name is required to save a view"
+msgstr ""
+
+msgid "A new purchase order will be created for each supplier. Alternatively, you can choose an existing draft purchase order for the supplier to add the outside operations to."
+msgstr ""
+
+msgid "A new revision will be created using a copy of the current revision"
+msgstr ""
+
+msgid "A new size will be created using a copy of the current size"
+msgstr ""
+
+msgid "A part contains the information about a specific item that can be purchased or manufactured."
+msgstr ""
+
+msgid "A purchase invoice is a document that specifies the products or services purchased by a customer and the corresponding cost."
+msgstr ""
+
+msgid "A quote is a set of prices for specific parts and quantities."
+msgstr ""
+
+msgid "A quote line contains pricing and lead times for a particular part"
+msgstr ""
+
+msgid "A sales invoice is a document that specifies the products or services sold to a customer and the corresponding cost."
+msgstr ""
+
+msgid "A sales invoice line contains invoice details for a particular item"
+msgstr ""
+
+msgid "A sales order contains information about the agreement between the company and a specific customer for parts and services."
+msgstr ""
+
+msgid "A sales order line contains order details for a particular item"
+msgstr ""
+
+msgid "A sales request for quote (RFQ) is a customer inquiry for pricing on a set of parts and quantities. It may result in a quote."
+msgstr ""
+
+msgid "A tool is a physical item used to make a part that can be used across multiple jobs"
+msgstr ""
+
+msgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."
+msgstr ""
+
+msgid "Abilities"
+msgstr ""
+
+msgid "About"
+msgstr ""
+
+msgid "Accept Lot"
+msgstr ""
+
+msgid "Accept lot?"
+msgstr ""
+
+msgid "Accept Quote"
+msgstr ""
+
+msgid "Account"
+msgstr ""
+
+msgid "Account Manager"
+msgstr ""
+
+msgid "Account Number"
+msgstr ""
+
+msgid "Account Settings"
+msgstr ""
+
+msgid "Account Type"
+msgstr ""
+
+msgid "Accounting"
+msgstr ""
+
+msgid "Accounting is disabled"
+msgstr ""
+
+msgid "Accounting is enabled"
+msgstr ""
+
+msgid "Accounts"
+msgstr ""
+
+msgid "Accounts Payable Billing Address"
+msgstr ""
+
+msgid "Accounts Receivable Billing Address"
+msgstr ""
+
+msgid "Accumulation Period (Weeks)"
+msgstr ""
+
+msgid "Accumulation Period:"
+msgstr ""
+
+msgid "Acknowledge & continue"
+msgstr ""
+
+msgid "Action Items"
+msgstr ""
+
+msgid "Action Status"
+msgstr ""
+
+msgid "Action Type"
+msgstr ""
+
+msgid "Action Types"
+msgstr ""
+
+msgid "Actions"
+msgstr ""
+
+msgid "Activate"
+msgstr ""
+
+msgid "Activate {name}"
+msgstr ""
+
+msgid "Activate Process"
+msgstr ""
+
+msgid "Activate Work Center"
+msgstr ""
+
+msgid "Active"
+msgstr ""
+
+msgid "Active Jobs"
+msgstr ""
+
+msgid "Active Statuses"
+msgstr ""
+
+msgid "Active Supplier Quotes"
+msgstr ""
+
+msgid "Activity"
+msgstr ""
+
+msgid "Actual"
+msgstr ""
+
+msgid "Actual Cost"
+msgstr ""
+
+msgid "Actual End"
+msgstr ""
+
+msgid "Actual Failure Mode"
+msgstr ""
+
+msgid "Actual Start"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Add & Issue"
+msgstr ""
+
+msgid "Add a column below to sort the view"
+msgstr ""
+
+msgid "Add a comment..."
+msgstr ""
+
+msgid "Add Actions"
+msgstr ""
+
+msgid "Add any notes about your decision..."
+msgstr ""
+
+msgid "Add Approval Requirement"
+msgstr ""
+
+msgid "Add attachments"
+msgstr ""
+
+msgid "Add Calibration Record"
+msgstr ""
+
+msgid "Add Child Storage Unit"
+msgstr ""
+
+msgid "Add Company"
+msgstr ""
+
+msgid "Add condition"
+msgstr ""
+
+msgid "Add Contractor"
+msgstr ""
+
+msgid "Add Entry"
+msgstr ""
+
+msgid "Add from library…"
+msgstr ""
+
+msgid "Add Group"
+msgstr ""
+
+msgid "Add Item"
+msgstr ""
+
+msgid "Add Line"
+msgstr ""
+
+msgid "Add Line Item"
+msgstr ""
+
+msgid "Add Note"
+msgstr ""
+
+msgid "Add notes and documentation for this maintenance dispatch"
+msgstr ""
+
+msgid "Add Operation"
+msgstr ""
+
+msgid "Add options above first"
+msgstr ""
+
+msgid "Add Pair"
+msgstr ""
+
+msgid "Add Parameter"
+msgstr ""
+
+msgid "Add Partner"
+msgstr ""
+
+msgid "Add Permissions"
+msgstr ""
+
+msgid "Add Property"
+msgstr ""
+
+msgid "Add Question"
+msgstr ""
+
+msgid "Add Receipt"
+msgstr ""
+
+msgid "Add Required Actions"
+msgstr ""
+
+msgid "Add Requirement"
+msgstr ""
+
+msgid "Add Risk"
+msgstr ""
+
+msgid "Add rule"
+msgstr ""
+
+msgid "Add Shipment"
+msgstr ""
+
+msgid "Add Shipping"
+msgstr ""
+
+msgid "Add Spare Part"
+msgstr ""
+
+msgid "Add Step"
+msgstr ""
+
+msgid "Add Supplier"
+msgstr ""
+
+msgid "Add Timecard"
+msgstr ""
+
+msgid "Add to stock for future use"
+msgstr ""
+
+msgid "Add-On"
+msgstr ""
+
+msgid "Add-On Cost"
+msgstr ""
+
+msgid "Adding..."
+msgstr ""
+
+msgid "Address"
+msgstr ""
+
+msgid "Address Line 1"
+msgstr ""
+
+msgid "Address Line 2"
+msgstr ""
+
+msgid "Adjustment Type"
+msgstr ""
+
+msgid "Advanced"
+msgstr ""
+
+msgid "After"
+msgstr ""
+
+msgid "AI Tokens"
+msgstr ""
+
+msgid "All"
+msgstr ""
+
+msgid "All Audit Logs"
+msgstr ""
+
+msgid "All changes to auditable entities are being recorded."
+msgstr ""
+
+msgid "All Customers"
+msgstr ""
+
+msgid "All Documents"
+msgstr ""
+
+msgid "All Items"
+msgstr ""
+
+msgid "All jobs completed"
+msgstr ""
+
+msgid "All members of selected groups and selected individuals will be able to approve requests"
+msgstr ""
+
+msgid "All Suppliers"
+msgstr ""
+
+msgid "All Types"
+msgstr ""
+
+msgid "All Work Centers"
+msgstr ""
+
+msgid "Allows acknowledge & continue"
+msgstr ""
+
+msgid "Alpha"
+msgstr ""
+
+msgid "Always"
+msgstr ""
+
+msgid "Amount"
+msgstr ""
+
+msgid "Amount Type"
+msgstr ""
+
+msgid "An item cannot be added to itself."
+msgstr ""
+
+msgid "and {remaining} more"
+msgstr ""
+
+msgid "API and Webhooks"
+msgstr ""
+
+msgid "API Docs"
+msgstr ""
+
+msgid "API Documentation"
+msgstr ""
+
+msgid "API Key"
+msgstr ""
+
+msgid "API Keys"
+msgstr ""
+
+msgid "Applies to"
+msgstr ""
+
+msgid "Apply pricing rules"
+msgstr ""
+
+msgid "Apply To"
+msgstr ""
+
+msgid "Approval Date"
+msgstr ""
+
+msgid "Approval Requirements"
+msgstr ""
+
+msgid "Approval Rules"
+msgstr ""
+
+msgid "Approve"
+msgstr ""
+
+msgid "Approved By"
+msgstr ""
+
+msgid "AQL"
+msgstr ""
+
+msgid "Archive"
+msgstr ""
+
+msgid "Archive all"
+msgstr ""
+
+msgid "Archived"
+msgstr ""
+
+msgid "Archived Logs"
+msgstr ""
+
+#. placeholder {0}: quote.quoteId
+#. placeholder {1}: formatter.format(total)
+msgid "Are you sure you want to accept quote {0} for {1}?"
+msgstr ""
+
+msgid "Are you sure you want to activate the process: {name}? It will appear in dropdowns again."
+msgstr ""
+
+msgid "Are you sure you want to activate this gauge?."
+msgstr ""
+
+#. placeholder {0}: routeData?.rfqSummary ?.rfqId!
+msgid "Are you sure you want to cancel {0}? This will also cancel all related supplier quotes."
+msgstr ""
+
+msgid "Are you sure you want to cancel this job? It will no longer be available on the shop floor."
+msgstr ""
+
+msgid "Are you sure you want to change the {propertyName} property? Since you use generated material IDs this will change the part ID of this part, and all related revisions."
+msgstr ""
+
+msgid "Are you sure you want to complete this stock transfer?"
+msgstr ""
+
+msgid "Are you sure you want to confirm this sales order? Confirming the order will affect on order quantities used to calculate supply and demand."
+msgstr ""
+
+msgid "Are you sure you want to convert the RFQ to a quote?"
+msgstr ""
+
+msgid "Are you sure you want to create jobs for this sales order? This will create jobs for all lines that don't already have jobs."
+msgstr ""
+
+#. placeholder {0}: routeData?.supplier?.name
+msgid "Are you sure you want to deactivate {0}?"
+msgstr ""
+
+#. placeholder {0}: selectedCategory?.name
+msgid "Are you sure you want to deactivate the {0} attribute category?"
+msgstr ""
+
+#. placeholder {0}: selectedAttribute?.name
+msgid "Are you sure you want to deactivate the {0} attribute?"
+msgstr ""
+
+msgid "Are you sure you want to deactivate the {label} configuration rule?"
+msgstr ""
+
+msgid "Are you sure you want to deactivate the process: {name}? It will no longer appear in dropdowns."
+msgstr ""
+
+msgid "Are you sure you want to deactivate these users?"
+msgstr ""
+
+msgid "Are you sure you want to deactivate this gauge?."
+msgstr ""
+
+msgid "Are you sure you want to deactivate this user?"
+msgstr ""
+
+#. placeholder {0}: tool.readableIdWithRevision
+msgid "Are you sure you want to delete {0} from this operation? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: selectedGroup.name
+msgid "Are you sure you want to delete {0}?"
+msgstr ""
+
+#. placeholder {0}: routeData?.consumableSummary?.readableIdWithRevision
+#. placeholder {0}: routeData?.customer?.name!
+#. placeholder {0}: routeData?.document?.name
+msgid "Are you sure you want to delete {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: selectedCustomField?.name
+msgid "Are you sure you want to delete the {0} field?"
+msgstr ""
+
+#. placeholder {0}: parameter.label
+msgid "Are you sure you want to delete the {0} parameter? This will not update any formulas that are using this parameter."
+msgstr ""
+
+msgid "Are you sure you want to delete the {key} parameter from this operation? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the {name} attribute from this operation? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: account.name
+#. placeholder {1}: account.number ? ` (${account.number})` : ""
+msgid "Are you sure you want to delete the account: {0}{1}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: apiKey.name
+msgid "Are you sure you want to delete the API key: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the contractor: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: customerPart?.customer?.name ?? ""
+msgid "Are you sure you want to delete the customer part for {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the customer portal for: {customerName}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: customerStatus.name
+msgid "Are you sure you want to delete the customer status: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: customerType.name
+msgid "Are you sure you want to delete the customer type: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the department: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: employeeType.name
+msgid "Are you sure you want to delete the employee type: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the failure mode: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: gaugeType.name
+msgid "Are you sure you want to delete the gauge type: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: group.name
+msgid "Are you sure you want to delete the group: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the holiday: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: nonConformanceType.name
+msgid "Are you sure you want to delete the issue type: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: itemPostingGroup.name
+msgid "Are you sure you want to delete the item group: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: line.customerPartId
+#. placeholder {0}: line.description
+#. placeholder {0}: line.itemReadableId
+msgid "Are you sure you want to delete the line: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the line: {itemReadableId}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the location: {name}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the maintenance schedule: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialDimension.name
+msgid "Are you sure you want to delete the material dimension: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialFinish.name
+msgid "Are you sure you want to delete the material finish: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialForm.name
+msgid "Are you sure you want to delete the material form: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialGrade.name
+msgid "Are you sure you want to delete the material grade: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialSubstance.name
+msgid "Are you sure you want to delete the material substance: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: materialType.name
+msgid "Are you sure you want to delete the material type: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: noQuoteReason.name
+msgid "Are you sure you want to delete the no quote reason: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the partner: {name}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: paymentTerm.name
+msgid "Are you sure you want to delete the payment term: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: pricingRule.name
+msgid "Are you sure you want to delete the pricing rule: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: purchaseInvoiceLine.quantity ?? 0
+#. placeholder {1}: purchaseInvoiceLine.description ?? ""
+msgid "Are you sure you want to delete the purchase invoice line for {0} {1}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: salesInvoiceLine.quantity ?? 0
+#. placeholder {1}: salesInvoiceLine.description ?? ""
+msgid "Are you sure you want to delete the sales invoice line for {0} {1}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: salesOrderLine.saleQuantity ?? 0
+#. placeholder {1}: salesOrderLine.description ?? ""
+msgid "Are you sure you want to delete the sales order line for {0} {1}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: scrapReason.name
+msgid "Are you sure you want to delete the scrap reason: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete the shift: {name} from {locationName}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: shippingMethod.name
+msgid "Are you sure you want to delete the shipping method: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: storageType.name
+msgid "Are you sure you want to delete the storage type: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: storageUnit.name
+msgid "Are you sure you want to delete the storage unit: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: supplierType.name
+msgid "Are you sure you want to delete the supplier type: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: unitOfMeasure.name
+msgid "Are you sure you want to delete the unit of measure: {0}? This cannot be undone."
+msgstr ""
+
+#. placeholder {0}: selectedView.name
+msgid "Are you sure you want to delete the view \"{0}\"?"
+msgstr ""
+
+#. placeholder {0}: webhook.name
+msgid "Are you sure you want to delete the webhook: {0}? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this approval rule? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this gauge?"
+msgstr ""
+
+msgid "Are you sure you want to delete this issue workflow?"
+msgstr ""
+
+msgid "Are you sure you want to delete this issue?"
+msgstr ""
+
+msgid "Are you sure you want to delete this kanban card? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this maintenance dispatch? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this quality document?"
+msgstr ""
+
+msgid "Are you sure you want to delete this record?"
+msgstr ""
+
+msgid "Are you sure you want to delete this required action?"
+msgstr ""
+
+msgid "Are you sure you want to delete this risk?"
+msgstr ""
+
+msgid "Are you sure you want to delete this risk? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this suggestion? This action cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to delete this timecard? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to finalize the quote?"
+msgstr ""
+
+msgid "Are you sure you want to finalize the supplier quote?"
+msgstr ""
+
+#. placeholder {0}: selectedPurchaseInvoice.invoiceId!
+#. placeholder {0}: selectedSalesInvoice.invoiceId!
+msgid "Are you sure you want to permanently delete {0}?"
+msgstr ""
+
+msgid "Are you sure you want to permanently delete the supplier process?"
+msgstr ""
+
+msgid "Are you sure you want to post this receipt?"
+msgstr ""
+
+msgid "Are you sure you want to post this shipment?"
+msgstr ""
+
+msgid "Are you sure you want to reject this quote?"
+msgstr ""
+
+msgid "Are you sure you want to release this job? It will become available to the shop floor, and drive purchasing and production."
+msgstr ""
+
+msgid "Are you sure you want to remove this item from the price list? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to revoke the invitation for this user?"
+msgstr ""
+
+msgid "Are you sure you want to revoke the invitations for these users?"
+msgstr ""
+
+msgid "Are you sure you want to send an invite to these users?"
+msgstr ""
+
+msgid "Are you sure you want to send an invite to this user?"
+msgstr ""
+
+msgid "Are you sure you want to void this purchase invoice? This action will reverse all financial transactions and cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to void this receipt? This action will reverse all inventory transactions and cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to void this sales invoice? This action will reverse all financial transactions and cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to void this shipment? This action will reverse all inventory transactions and cannot be undone."
+msgstr ""
+
+msgid "Are you sure?"
+msgstr ""
+
+msgid "As the company owner, you can transfer ownership to another employee. This will give them full access to billing and administrative settings."
+msgstr ""
+
+msgid "Ascending"
+msgstr ""
+
+#. js-lingui-explicit-id
+msgid "Ask anything"
+msgstr ""
+
+msgid "Assembly:"
+msgstr ""
+
+msgid "Assign To"
+msgstr ""
+
+msgid "Assign to Groups"
+msgstr ""
+
+msgid "Assigned"
+msgstr ""
+
+msgid "Assigned to Me"
+msgstr ""
+
+msgid "Assignee"
+msgstr ""
+
+msgid "Assignment"
+msgstr ""
+
+msgid "Assignments"
+msgstr ""
+
+msgid "At least one condition must match"
+msgstr ""
+
+msgid "Attach File"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Attribute"
+msgstr ""
+
+msgid "Attribute sampling standard used to compute lot sample sizes and accept/reject numbers on inbound inspections."
+msgstr ""
+
+msgid "Attributes"
+msgstr ""
+
+msgid "Attributes are inherited from the procedure."
+msgstr ""
+
+msgid "Audit Log"
+msgstr ""
+
+msgid "Audit Logging"
+msgstr ""
+
+msgid "Audit logging is disabled"
+msgstr ""
+
+msgid "Audit logging is enabled"
+msgstr ""
+
+msgid "Audit logging is not enabled"
+msgstr ""
+
+msgid "Audit Logs"
+msgstr ""
+
+msgid "Authentication Error"
+msgstr ""
+
+msgid "Auto Release"
+msgstr ""
+
+msgid "Auto release must be enabled to start a job automatically"
+msgstr ""
+
+msgid "Auto Start Job"
+msgstr ""
+
+msgid "Auto-generated QR Code"
+msgstr ""
+
+msgid "Automatically release the job when the kanban is scanned"
+msgstr ""
+
+msgid "Automatically start the job when the kanban is scanned"
+msgstr ""
+
+msgid "Available"
+msgstr ""
+
+msgid "Avg Days to Close"
+msgstr ""
+
+msgid "Back"
+msgstr ""
+
+msgid "Back to home"
+msgstr ""
+
+msgid "Back to traceability"
+msgstr ""
+
+msgid "Backflush"
+msgstr ""
+
+msgid "Balance Sheet"
+msgstr ""
+
+msgid "Base Currency"
+msgstr ""
+
+msgid "Base Price"
+msgstr ""
+
+msgid "Basic Information"
+msgstr ""
+
+msgid "Batch"
+msgstr ""
+
+msgid "Batch items require a sales order"
+msgstr ""
+
+msgid "Batch number"
+msgstr ""
+
+msgid "Batch Number"
+msgstr ""
+
+msgid "Batch Properties"
+msgstr ""
+
+msgid "Batch Size"
+msgstr ""
+
+msgid "Batch Tracking"
+msgstr ""
+
+msgid "Beta"
+msgstr ""
+
+msgid "Bill of Material"
+msgstr ""
+
+msgid "Bill of Materials"
+msgstr ""
+
+msgid "Bill of Process"
+msgstr ""
+
+msgid "Bill To"
+msgstr ""
+
+msgid "Billing"
+msgstr ""
+
+msgid "Billing Address"
+msgstr ""
+
+msgid "Block with an error"
+msgstr ""
+
+msgid "Block, allow override"
+msgstr ""
+
+#. placeholder {0}: workCenter.blockingDispatchReadableId
+msgid "Blocked by {0}"
+msgstr ""
+
+msgid "Blocks save until resolved"
+msgstr ""
+
+msgid "BoM"
+msgstr ""
+
+msgid "BoM + BoP"
+msgstr ""
+
+msgid "BOM synced successfully"
+msgstr ""
+
+msgid "Breadcrumb"
+msgstr ""
+
+msgid "Browse library"
+msgstr ""
+
+msgid "Bucket"
+msgstr ""
+
+msgid "Bulk Import"
+msgstr ""
+
+msgid "Bulk Jobs"
+msgstr ""
+
+msgid "Buy"
+msgstr ""
+
+msgid "Buy and Make"
+msgstr ""
+
+msgid "Buyer"
+msgstr ""
+
+msgid "by {byUser}"
+msgstr ""
+
+msgid "By accepting the invite, you agree to the <0>Terms of Service</0> and <1>Privacy Policy</1>."
+msgstr ""
+
+msgid "By signing in, you agree to the <0>Terms of Service</0> and <1>Privacy Policy.</1>"
+msgstr ""
+
+msgid "CAD Model"
+msgstr ""
+
+msgid "Calculate from BOM"
+msgstr ""
+
+msgid "Calculated finished-good expiry"
+msgstr ""
+
+msgid "Calculation Method"
+msgstr ""
+
+msgid "Calibration Expiration Notifications"
+msgstr ""
+
+msgid "Calibration Interval (Months)"
+msgstr ""
+
+msgid "Calibration Records"
+msgstr ""
+
+msgid "Calibration Status"
+msgstr ""
+
+msgid "Calibration Supplier"
+msgstr ""
+
+msgid "Calibrations"
+msgstr ""
+
+msgid "Can't disable the only active break. Add another break or toggle the override's Active instead."
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "Cancel Job"
+msgstr ""
+
+msgid "Canceled"
+msgstr ""
+
+msgid "Cancelled"
+msgstr ""
+
+msgid "Cannot add parameters to unsaved operation"
+msgstr ""
+
+msgid "Cannot add steps to unsaved operation"
+msgstr ""
+
+msgid "Cannot add tools to unsaved operation"
+msgstr ""
+
+msgid "Cannot convert RFQ to quote"
+msgstr ""
+
+msgid "Cannot move to parts bucket without item ID"
+msgstr ""
+
+msgid "Cannot place order - no supplier associated with this item"
+msgstr ""
+
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
+msgid "Cannot send RFQ"
+msgstr ""
+
+msgid "Cannot upload to parts bucket without item ID"
+msgstr ""
+
+msgid "Carbon client is not available"
+msgstr ""
+
+msgid "Carbon client not available"
+msgstr ""
+
+msgid "Carbon client not found"
+msgstr ""
+
+msgid "Carbon column"
+msgstr ""
+
+msgid "Carbon Logo"
+msgstr ""
+
+msgid "Carbon Value"
+msgstr ""
+
+msgid "Carrier"
+msgstr ""
+
+msgid "Carrier Account"
+msgstr ""
+
+msgid "Category"
+msgstr ""
+
+msgid "Category Name"
+msgstr ""
+
+msgid "CC"
+msgstr ""
+
+msgid "Change"
+msgstr ""
+
+msgid "Change status"
+msgstr ""
+
+msgid "Change the item type (e.g. Part, Material, Tool, etc.)"
+msgstr ""
+
+msgid "Change Type"
+msgstr ""
+
+msgid "Changed By"
+msgstr ""
+
+msgid "Changes"
+msgstr ""
+
+msgid "Changing this will overwrite the existing method"
+msgstr ""
+
+msgid "Changing this will update the part ID"
+msgstr ""
+
+msgid "Chart of Accounts"
+msgstr ""
+
+msgid "Chat"
+msgstr ""
+
+msgid "Check your email"
+msgstr ""
+
+msgid "Choose another file"
+msgstr ""
+
+msgid "Choose your preferred language for the interface."
+msgstr ""
+
+msgid "Choose your style"
+msgstr ""
+
+msgid "City"
+msgstr ""
+
+msgid "Class"
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Clear All"
+msgstr ""
+
+msgid "Clear due date"
+msgstr ""
+
+msgid "Clear Filters"
+msgstr ""
+
+msgid "Clear search"
+msgstr ""
+
+msgid "Clear search query"
+msgstr ""
+
+msgid "Clock In"
+msgstr ""
+
+msgid "Clock Out"
+msgstr ""
+
+#. placeholder {0}: formatTime(openEntry.clockIn, locale)
+msgid "Clocked in since {0}"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Close Date"
+msgstr ""
+
+msgid "Closed Date"
+msgstr ""
+
+msgid "Closure blocked"
+msgstr ""
+
+msgid "Cloud-Hosted"
+msgstr ""
+
+msgid "Code"
+msgstr ""
+
+msgid "Collapse all"
+msgstr ""
+
+msgid "Collapse Costs"
+msgstr ""
+
+msgid "Collapse Labor"
+msgstr ""
+
+msgid "Collapse Machine"
+msgstr ""
+
+msgid "Collapse Setup"
+msgstr ""
+
+msgid "Collapse subtree"
+msgstr ""
+
+msgid "Column"
+msgstr ""
+
+msgid "Column visibility and order"
+msgstr ""
+
+msgid "Columns"
+msgstr ""
+
+msgid "Coming soon"
+msgstr ""
+
+msgid "comma-separated values"
+msgstr ""
+
+msgid "Comment"
+msgstr ""
+
+msgid "Comments"
+msgstr ""
+
+msgid "Companies"
+msgstr ""
+
+msgid "Company"
+msgstr ""
+
+msgid "Company Name"
+msgstr ""
+
+msgid "Company policy asks for a different person to inspect inbound items than the one who received them."
+msgstr ""
+
+msgid "Compare and Order"
+msgstr ""
+
+msgid "Compare at quantity:"
+msgstr ""
+
+msgid "Compare Quotes"
+msgstr ""
+
+msgid "Compare Supplier Quotes"
+msgstr ""
+
+msgid "Complete"
+msgstr ""
+
+msgid "Complete All"
+msgstr ""
+
+msgid "Complete all quantities on barcode scan"
+msgstr ""
+
+msgid "Complete Job"
+msgstr ""
+
+msgid "Complete Stock Transfer"
+msgstr ""
+
+msgid "Completed"
+msgstr ""
+
+msgid "Completed At"
+msgstr ""
+
+msgid "Completed Date"
+msgstr ""
+
+msgid "Completed Job Notifications"
+msgstr ""
+
+msgid "Completed Qty"
+msgstr ""
+
+msgid "Completion Barcode"
+msgstr ""
+
+msgid "Completion Time"
+msgstr ""
+
+msgid "Conditions"
+msgstr ""
+
+msgid "Configuration Parameters"
+msgstr ""
+
+msgid "Configurator"
+msgstr ""
+
+msgid "Configure"
+msgstr ""
+
+msgid "Configure {label}"
+msgstr ""
+
+msgid "Configure defaults for the quality dashboard."
+msgstr ""
+
+msgid "Configure how preventative maintenance dispatches are automatically generated from maintenance schedules."
+msgstr ""
+
+msgid "Configure Item"
+msgstr ""
+
+msgid "Configure Materials"
+msgstr ""
+
+msgid "Configure notifications for when gauges go out of calibration."
+msgstr ""
+
+msgid "Configure notifications for when jobs are completed."
+msgstr ""
+
+msgid "Configure notifications for when maintenance dispatches are created from the shop floor. Notifications are routed based on the failure mode type."
+msgstr ""
+
+msgid "Configure notifications for when new suggestions are submitted."
+msgstr ""
+
+msgid "Configure the content displayed on job traveler PDFs."
+msgstr ""
+
+msgid "Configure the default accounts used for various transaction types across your system"
+msgstr ""
+
+msgid "Configure the start months for your fiscal and tax years"
+msgstr ""
+
+msgid "Configure when purchased item prices should be updated from supplier transactions."
+msgstr ""
+
+msgid "Configure who should receive notifications when a supplier submits a quote."
+msgstr ""
+
+msgid "Configured"
+msgstr ""
+
+msgid "Confirm"
+msgstr ""
+
+#. placeholder {0}: salesOrder?.salesOrderId
+msgid "Confirm {0}"
+msgstr ""
+
+msgid "Confirm ID Change"
+msgstr ""
+
+msgid "Confirm Import"
+msgstr ""
+
+msgid "Confirm Password"
+msgstr ""
+
+msgid "Connect Carbon to your accounting, project, and CAD tools and much more."
+msgstr ""
+
+msgid "Connect Jira issue"
+msgstr ""
+
+msgid "Connect Linear issue"
+msgstr ""
+
+msgid "Connected to"
+msgstr ""
+
+msgid "Console Mode"
+msgstr ""
+
+msgid "Console mode has been enabled. Use this PIN to identify yourself at MES terminals."
+msgstr ""
+
+msgid "Console mode is disabled"
+msgstr ""
+
+msgid "Console mode is enabled"
+msgstr ""
+
+msgid "Console Operator"
+msgstr ""
+
+msgid "Consumable"
+msgstr ""
+
+msgid "Consumable Details"
+msgstr ""
+
+msgid "Consumable ID"
+msgstr ""
+
+msgid "Consumables"
+msgstr ""
+
+msgid "Consumed"
+msgstr ""
+
+msgid "Contact"
+msgstr ""
+
+msgid "Contact (optional)"
+msgstr ""
+
+msgid "Contacts"
+msgstr ""
+
+msgid "Contained"
+msgstr ""
+
+msgid "Containment"
+msgstr ""
+
+msgid "Contractor"
+msgstr ""
+
+msgid "Contractors"
+msgstr ""
+
+msgid "Conversion"
+msgstr ""
+
+msgid "Conversion Factor"
+msgstr ""
+
+msgid "Conversion:"
+msgstr ""
+
+msgid "Convert"
+msgstr ""
+
+msgid "Convert Line to Job"
+msgstr ""
+
+msgid "Convert Lines to Jobs"
+msgstr ""
+
+msgid "Convert to Quote"
+msgstr ""
+
+msgid "Copied link to clipboard"
+msgstr ""
+
+msgid "Copied!"
+msgstr ""
+
+msgid "Copy"
+msgstr ""
+
+msgid "Copy all items and pricing to another customer or type."
+msgstr ""
+
+msgid "Copy API Key"
+msgstr ""
+
+msgid "Copy consumable number"
+msgstr ""
+
+msgid "Copy dispatch ID"
+msgstr ""
+
+msgid "Copy dispatch number"
+msgstr ""
+
+msgid "Copy document name"
+msgstr ""
+
+msgid "Copy document unique identifier"
+msgstr ""
+
+msgid "Copy ID"
+msgstr ""
+
+msgid "Copy issue number"
+msgstr ""
+
+msgid "Copy issue unique identifier"
+msgstr ""
+
+msgid "Copy Job number"
+msgstr ""
+
+msgid "Copy link"
+msgstr ""
+
+msgid "Copy link to consumable"
+msgstr ""
+
+msgid "Copy link to dispatch"
+msgstr ""
+
+msgid "Copy link to document"
+msgstr ""
+
+msgid "Copy link to issue"
+msgstr ""
+
+msgid "Copy link to Job"
+msgstr ""
+
+msgid "Copy link to material"
+msgstr ""
+
+msgid "Copy link to part"
+msgstr ""
+
+msgid "Copy link to procedure"
+msgstr ""
+
+msgid "Copy link to tool"
+msgstr ""
+
+msgid "Copy link to training"
+msgstr ""
+
+msgid "Copy material number"
+msgstr ""
+
+msgid "Copy material unique identifier"
+msgstr ""
+
+msgid "Copy MCP Command"
+msgstr ""
+
+msgid "Copy part number"
+msgstr ""
+
+msgid "Copy part unique identifier"
+msgstr ""
+
+msgid "Copy PIN"
+msgstr ""
+
+msgid "Copy pricing to a single customer"
+msgstr ""
+
+msgid "Copy pricing to all customers of a type"
+msgstr ""
+
+msgid "Copy procedure name"
+msgstr ""
+
+msgid "Copy procedure unique identifier"
+msgstr ""
+
+msgid "Copy Quote"
+msgstr ""
+
+msgid "Copy Quote number"
+msgstr ""
+
+msgid "Copy response"
+msgstr ""
+
+msgid "Copy this item's pricing to another scope."
+msgstr ""
+
+msgid "Copy this link to share the quote with a customer"
+msgstr ""
+
+msgid "Copy this link to share the quote with a supplier"
+msgstr ""
+
+msgid "Copy tool number"
+msgstr ""
+
+msgid "Copy tool unique identifier"
+msgstr ""
+
+msgid "Copy training name"
+msgstr ""
+
+msgid "Copy training unique identifier"
+msgstr ""
+
+msgid "Correct Answer"
+msgstr ""
+
+msgid "Correct Answers"
+msgstr ""
+
+msgid "Cost Center"
+msgstr ""
+
+msgid "Cost Centers"
+msgstr ""
+
+msgid "Cost History"
+msgstr ""
+
+msgid "Costing"
+msgstr ""
+
+msgid "Costing & Posting"
+msgstr ""
+
+msgid "Costing Method"
+msgstr ""
+
+msgid "Couldn't load documents"
+msgstr ""
+
+msgid "Country"
+msgstr ""
+
+msgid "Create"
+msgstr ""
+
+#. placeholder {0}: search.trim() === "" ? (createLabel ?? label) : search
+#. placeholder {0}: search.trim() === "" ? label : search
+msgid "Create {0}"
+msgstr ""
+
+msgid "Create a new kanban card for scan-based replenishment."
+msgstr ""
+
+msgid "Create a new maintenance dispatch to track equipment repairs and maintenance activities"
+msgstr ""
+
+msgid "Create a new production job to fulfill the sales order"
+msgstr ""
+
+msgid "Create a quote with a new quote ID"
+msgstr ""
+
+msgid "Create Account"
+msgstr ""
+
+msgid "Create an account"
+msgstr ""
+
+msgid "Create audit trail entries"
+msgstr ""
+
+msgid "Create Issue"
+msgstr ""
+
+msgid "Create Issue from Inspection"
+msgstr ""
+
+msgid "Create Jobs"
+msgstr ""
+
+msgid "Create Kanban"
+msgstr ""
+
+msgid "Create new rule"
+msgstr ""
+
+msgid "Create Quote Revision"
+msgstr ""
+
+msgid "Create Revision"
+msgstr ""
+
+msgid "Create Rule"
+msgstr ""
+
+msgid "Create User"
+msgstr ""
+
+msgid "Create Version"
+msgstr ""
+
+msgid "Create Work Center"
+msgstr ""
+
+msgid "Created"
+msgstr ""
+
+msgid "Created account"
+msgstr ""
+
+msgid "Created At"
+msgstr ""
+
+msgid "Created By"
+msgstr ""
+
+msgid "Created consumable"
+msgstr ""
+
+msgid "Created customer portal"
+msgstr ""
+
+msgid "Created customer status"
+msgstr ""
+
+msgid "Created customer type"
+msgstr ""
+
+#. placeholder {0}: createdCustomer?.name ?? t`Customer`
+msgid "Created customer: {0}"
+msgstr ""
+
+msgid "Created department"
+msgstr ""
+
+msgid "Created failure mode"
+msgstr ""
+
+msgid "Created gauge type"
+msgstr ""
+
+msgid "Created item group"
+msgstr ""
+
+msgid "Created location"
+msgstr ""
+
+msgid "Created maintenance schedule"
+msgstr ""
+
+msgid "Created material"
+msgstr ""
+
+msgid "Created material dimension"
+msgstr ""
+
+msgid "Created material finish"
+msgstr ""
+
+msgid "Created material form"
+msgstr ""
+
+msgid "Created material grade"
+msgstr ""
+
+msgid "Created material substance"
+msgstr ""
+
+msgid "Created material type"
+msgstr ""
+
+msgid "Created no quote reason"
+msgstr ""
+
+msgid "Created non conformance type"
+msgstr ""
+
+msgid "Created part"
+msgstr ""
+
+msgid "Created payment term"
+msgstr ""
+
+msgid "Created process"
+msgstr ""
+
+msgid "Created required action"
+msgstr ""
+
+msgid "Created scrap reason"
+msgstr ""
+
+msgid "Created shipping method"
+msgstr ""
+
+msgid "Created stock transfer line"
+msgstr ""
+
+msgid "Created storage type"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.data.name
+msgid "Created supplier: {0}"
+msgstr ""
+
+msgid "Created tool"
+msgstr ""
+
+msgid "Created unit of measure"
+msgstr ""
+
+msgid "Created webhook"
+msgstr ""
+
+msgid "Created work center"
+msgstr ""
+
+msgid "Creating part..."
+msgstr ""
+
+msgid "CSV column"
+msgstr ""
+
+msgid "CSV file must have at least 2 rows."
+msgstr ""
+
+msgid "Currency"
+msgstr ""
+
+msgid "Current"
+msgstr ""
+
+msgid "Current Password"
+msgstr ""
+
+msgid "Current quantity"
+msgstr ""
+
+msgid "Currently training for"
+msgstr ""
+
+msgid "Custom"
+msgstr ""
+
+msgid "Custom {label}"
+msgstr ""
+
+msgid "Custom Field"
+msgstr ""
+
+msgid "Custom Fields"
+msgstr ""
+
+msgid "Customer"
+msgstr ""
+
+msgid "Customer Accounts"
+msgstr ""
+
+msgid "Customer Contact"
+msgstr ""
+
+msgid "Customer Details"
+msgstr ""
+
+msgid "Customer ID"
+msgstr ""
+
+msgid "Customer Invoice Number"
+msgstr ""
+
+msgid "Customer Location"
+msgstr ""
+
+msgid "Customer Overview"
+msgstr ""
+
+msgid "Customer Part"
+msgstr ""
+
+msgid "Customer Part ID"
+msgstr ""
+
+msgid "Customer Part Number"
+msgstr ""
+
+msgid "Customer Part Revision"
+msgstr ""
+
+msgid "Customer Parts"
+msgstr ""
+
+msgid "Customer PO"
+msgstr ""
+
+msgid "Customer PO Number"
+msgstr ""
+
+msgid "Customer Portal"
+msgstr ""
+
+msgid "Customer Portals"
+msgstr ""
+
+msgid "Customer Revision"
+msgstr ""
+
+msgid "Customer RFQ"
+msgstr ""
+
+msgid "Customer Scope"
+msgstr ""
+
+msgid "Customer Status"
+msgstr ""
+
+msgid "Customer Statuses"
+msgstr ""
+
+msgid "Customer Type"
+msgstr ""
+
+msgid "Customer Types"
+msgstr ""
+
+msgid "Customers"
+msgstr ""
+
+msgid "Daily Usage"
+msgstr ""
+
+msgid "Dark"
+msgstr ""
+
+msgid "Dark Mode"
+msgstr ""
+
+msgid "Dashboard"
+msgstr ""
+
+msgid "Data Type"
+msgstr ""
+
+msgid "Data type cannot be changed"
+msgstr ""
+
+msgid "Date"
+msgstr ""
+
+msgid "Date Acquired"
+msgstr ""
+
+msgid "Date Calibrated"
+msgstr ""
+
+msgid "Date Due"
+msgstr ""
+
+msgid "Date Issued"
+msgstr ""
+
+msgid "Date Paid"
+msgstr ""
+
+msgid "Date Range"
+msgstr ""
+
+msgid "Dates"
+msgstr ""
+
+msgid "Days"
+msgstr ""
+
+msgid "Days Discount"
+msgstr ""
+
+msgid "Days Due"
+msgstr ""
+
+msgid "Days in advance to generate dispatches"
+msgstr ""
+
+msgid "Days Off"
+msgstr ""
+
+msgid "Days Remaining"
+msgstr ""
+
+msgid "Deactivate"
+msgstr ""
+
+#. placeholder {0}: workCenter.name
+msgid "Deactivate {0}"
+msgstr ""
+
+msgid "Deactivate {name}"
+msgstr ""
+
+msgid "Deactivate Account"
+msgstr ""
+
+msgid "Deactivate Employee"
+msgstr ""
+
+msgid "Deactivate Employees"
+msgstr ""
+
+msgid "Deactivate Process"
+msgstr ""
+
+msgid "Deactivate Supplier"
+msgstr ""
+
+msgid "Deactivate Users"
+msgstr ""
+
+msgid "Deactivate Work Center"
+msgstr ""
+
+msgid "Deadline Type"
+msgstr ""
+
+msgid "Decide what an operator sees if they try to issue a batch or serial that's already expired."
+msgstr ""
+
+msgid "Default Accounts"
+msgstr ""
+
+msgid "Default Approver"
+msgstr ""
+
+msgid "Default CC Recipients"
+msgstr ""
+
+msgid "Default Method"
+msgstr ""
+
+msgid "Default Method Type"
+msgstr ""
+
+msgid "Default Permissions"
+msgstr ""
+
+msgid "Default Priority"
+msgstr ""
+
+msgid "Default shelf-life duration (days)"
+msgstr ""
+
+msgid "Default Source"
+msgstr ""
+
+msgid "Default Storage Unit"
+msgstr ""
+
+msgid "Default Unit"
+msgstr ""
+
+msgid "Defaults"
+msgstr ""
+
+msgid "Define the default size of the product label. Used for tracking items in inventory."
+msgstr ""
+
+msgid "Define the terms and conditions for purchase orders"
+msgstr ""
+
+msgid "Define the terms and conditions for quotes and sales orders"
+msgstr ""
+
+msgid "Defines how many tracked entities are inspected per lot, and how many failures are tolerated before the lot is rejected."
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Delete {name}"
+msgstr ""
+
+msgid "Delete {storageUnitName}"
+msgstr ""
+
+msgid "Delete API Key"
+msgstr ""
+
+msgid "Delete Assignment"
+msgstr ""
+
+msgid "Delete Association"
+msgstr ""
+
+msgid "Delete Attribute"
+msgstr ""
+
+msgid "Delete Category"
+msgstr ""
+
+msgid "Delete chat"
+msgstr ""
+
+msgid "Delete Consumable"
+msgstr ""
+
+msgid "Delete Contact"
+msgstr ""
+
+msgid "Delete Contractor"
+msgstr ""
+
+msgid "Delete Custom Field"
+msgstr ""
+
+msgid "Delete Customer"
+msgstr ""
+
+msgid "Delete Customer Status"
+msgstr ""
+
+msgid "Delete Customer Type"
+msgstr ""
+
+msgid "Delete Department"
+msgstr ""
+
+msgid "Delete Dispatch"
+msgstr ""
+
+msgid "Delete Document"
+msgstr ""
+
+msgid "Delete Employee Type"
+msgstr ""
+
+msgid "Delete Failure Mode"
+msgstr ""
+
+msgid "Delete file"
+msgstr ""
+
+msgid "Delete Group"
+msgstr ""
+
+msgid "Delete Holiday"
+msgstr ""
+
+msgid "Delete Issue"
+msgstr ""
+
+msgid "Delete Line"
+msgstr ""
+
+msgid "Delete Location"
+msgstr ""
+
+msgid "Delete Material"
+msgstr ""
+
+msgid "Delete Material Dimension"
+msgstr ""
+
+msgid "Delete Material Finish"
+msgstr ""
+
+msgid "Delete Material Grade"
+msgstr ""
+
+msgid "Delete Material Shape"
+msgstr ""
+
+msgid "Delete Material Type"
+msgstr ""
+
+msgid "Delete Part"
+msgstr ""
+
+msgid "Delete Partner"
+msgstr ""
+
+msgid "Delete Payment Term"
+msgstr ""
+
+msgid "Delete Portal"
+msgstr ""
+
+msgid "Delete Price Break"
+msgstr ""
+
+msgid "Delete Pricing Rule"
+msgstr ""
+
+msgid "Delete Procedure"
+msgstr ""
+
+msgid "Delete Process"
+msgstr ""
+
+msgid "Delete Purchase Invoice"
+msgstr ""
+
+msgid "Delete Purchase Order"
+msgstr ""
+
+msgid "Delete Purchase Orders"
+msgstr ""
+
+msgid "Delete Question"
+msgstr ""
+
+msgid "Delete Quote"
+msgstr ""
+
+msgid "Delete Reason"
+msgstr ""
+
+msgid "Delete Receipt"
+msgstr ""
+
+msgid "Delete receipt line"
+msgstr ""
+
+msgid "Delete RFQ"
+msgstr ""
+
+msgid "Delete Risk"
+msgstr ""
+
+msgid "Delete rows"
+msgstr ""
+
+msgid "Delete Rule"
+msgstr ""
+
+msgid "Delete Sales Invoice"
+msgstr ""
+
+msgid "Delete Sales Order"
+msgstr ""
+
+msgid "Delete Schedule"
+msgstr ""
+
+msgid "Delete Shift"
+msgstr ""
+
+msgid "Delete Shipment"
+msgstr ""
+
+msgid "Delete shipment line"
+msgstr ""
+
+msgid "Delete Shipping Method"
+msgstr ""
+
+msgid "Delete Step"
+msgstr ""
+
+msgid "Delete Stock Transfer"
+msgstr ""
+
+msgid "Delete Storage Type"
+msgstr ""
+
+msgid "Delete Storage Unit"
+msgstr ""
+
+msgid "Delete Substance"
+msgstr ""
+
+msgid "Delete Suggestion"
+msgstr ""
+
+msgid "Delete Supplier"
+msgstr ""
+
+msgid "Delete Supplier Quote"
+msgstr ""
+
+msgid "Delete Supplier Type"
+msgstr ""
+
+msgid "Delete Timecard"
+msgstr ""
+
+msgid "Delete Tool"
+msgstr ""
+
+msgid "Delete Training"
+msgstr ""
+
+msgid "Delete Transfer"
+msgstr ""
+
+msgid "Delete Transfer Line"
+msgstr ""
+
+msgid "Delete View"
+msgstr ""
+
+msgid "Delete Warehouse Transfer"
+msgstr ""
+
+msgid "Delete Webhook"
+msgstr ""
+
+msgid "Delivery Date"
+msgstr ""
+
+msgid "Delivery Location"
+msgstr ""
+
+msgid "Demand"
+msgstr ""
+
+msgid "Demand Forecast"
+msgstr ""
+
+msgid "Demand Projections"
+msgstr ""
+
+msgid "Demand-Based"
+msgstr ""
+
+msgid "Department"
+msgstr ""
+
+msgid "Department Name"
+msgstr ""
+
+msgid "Departments"
+msgstr ""
+
+msgid "Description"
+msgstr ""
+
+msgid "Description (optional)"
+msgstr ""
+
+msgid "Description of Issue"
+msgstr ""
+
+msgid "Detail"
+msgstr ""
+
+msgid "Details"
+msgstr ""
+
+msgid "Digital Quote"
+msgstr ""
+
+msgid "Digital Quotes"
+msgstr ""
+
+msgid "Dimension"
+msgstr ""
+
+msgid "Dimensions"
+msgstr ""
+
+msgid "Direct"
+msgstr ""
+
+msgid "Disabled"
+msgstr ""
+
+msgid "Discard"
+msgstr ""
+
+msgid "Discount"
+msgstr ""
+
+msgid "Discount Days after {selectedCalculationMethod}"
+msgstr ""
+
+msgid "Discount Percent"
+msgstr ""
+
+msgid "Discount Percentage"
+msgstr ""
+
+msgid "Dismiss"
+msgstr ""
+
+msgid "Dispatch"
+msgstr ""
+
+msgid "Dispatch ID"
+msgstr ""
+
+msgid "Dispatches"
+msgstr ""
+
+msgid "Display Settings"
+msgstr ""
+
+msgid "Disposition"
+msgstr ""
+
+msgid "Dispositions"
+msgstr ""
+
+msgid "Do you want to overwrite the user's current permissions with the default permissions for this employee type?"
+msgstr ""
+
+msgid "Document"
+msgstr ""
+
+msgid "Document Control"
+msgstr ""
+
+msgid "Document:"
+msgstr ""
+
+msgid "Documents"
+msgstr ""
+
+msgid "Don't Cancel"
+msgstr ""
+
+msgid "Done"
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+msgid "Download CSV"
+msgstr ""
+
+msgid "Draft"
+msgstr ""
+
+msgid "Drag and drop a Purchase Order PDF here, or click to select a file"
+msgstr ""
+
+msgid "Drag handle"
+msgstr ""
+
+msgid "Drop Shipment"
+msgstr ""
+
+msgid "Drop Shipment Statuses"
+msgstr ""
+
+msgid "Drop your file here, or click to browse."
+msgstr ""
+
+#. placeholder {0}: formatRelativeTime( convertDateStringToIsoString(dueDate) )
+msgid "Due {0}"
+msgstr ""
+
+msgid "Due Date"
+msgstr ""
+
+msgid "Due Date of First Job"
+msgstr ""
+
+msgid "Due Date of Last Job"
+msgstr ""
+
+msgid "Due Days after {selectedCalculationMethod}"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Duplicate Item"
+msgstr ""
+
+msgid "Duplicate Price List"
+msgstr ""
+
+msgid "Duplicate Pricing Rule"
+msgstr ""
+
+msgid "Duplicate To"
+msgstr ""
+
+msgid "Duplicate to..."
+msgstr ""
+
+msgid "Duration"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Edit Account"
+msgstr ""
+
+msgid "Edit API Key"
+msgstr ""
+
+msgid "Edit Approval Rule"
+msgstr ""
+
+msgid "Edit Assignment"
+msgstr ""
+
+msgid "Edit Attribute"
+msgstr ""
+
+msgid "Edit Attribute Category"
+msgstr ""
+
+msgid "Edit Category"
+msgstr ""
+
+msgid "Edit column visibility"
+msgstr ""
+
+msgid "Edit Contact"
+msgstr ""
+
+msgid "Edit Contractor"
+msgstr ""
+
+msgid "Edit Currency"
+msgstr ""
+
+msgid "Edit Custom Field"
+msgstr ""
+
+msgid "Edit Customer Part"
+msgstr ""
+
+msgid "Edit Customer Status"
+msgstr ""
+
+msgid "Edit Customer Type"
+msgstr ""
+
+msgid "Edit date range"
+msgstr ""
+
+msgid "Edit Department"
+msgstr ""
+
+msgid "Edit Dispatch"
+msgstr ""
+
+msgid "Edit Employee"
+msgstr ""
+
+msgid "Edit Employee Type"
+msgstr ""
+
+msgid "Edit expiration date"
+msgstr ""
+
+msgid "Edit Expiry"
+msgstr ""
+
+msgid "Edit Failure Mode"
+msgstr ""
+
+msgid "Edit Gauge Calibration Record"
+msgstr ""
+
+msgid "Edit Gauge Type"
+msgstr ""
+
+msgid "Edit Group"
+msgstr ""
+
+msgid "Edit Holiday"
+msgstr ""
+
+msgid "Edit Item Group"
+msgstr ""
+
+msgid "Edit Kanban"
+msgstr ""
+
+msgid "Edit Line"
+msgstr ""
+
+msgid "Edit Location"
+msgstr ""
+
+msgid "Edit Maintenance Dispatch"
+msgstr ""
+
+msgid "Edit Material"
+msgstr ""
+
+msgid "Edit Material Dimension"
+msgstr ""
+
+msgid "Edit Material Finish"
+msgstr ""
+
+msgid "Edit Material Grade"
+msgstr ""
+
+msgid "Edit Material Shape"
+msgstr ""
+
+msgid "Edit Material Substance"
+msgstr ""
+
+msgid "Edit Material Type"
+msgstr ""
+
+msgid "Edit Non Conformance Type"
+msgstr ""
+
+msgid "Edit Part"
+msgstr ""
+
+msgid "Edit Partner"
+msgstr ""
+
+msgid "Edit Payment Term"
+msgstr ""
+
+msgid "Edit Permissions"
+msgstr ""
+
+msgid "Edit Portal"
+msgstr ""
+
+msgid "Edit Price Override"
+msgstr ""
+
+msgid "Edit Pricing"
+msgstr ""
+
+msgid "Edit Pricing Rule"
+msgstr ""
+
+msgid "Edit Process"
+msgstr ""
+
+msgid "Edit purchase order line type"
+msgstr ""
+
+msgid "Edit Question"
+msgstr ""
+
+msgid "Edit Reason"
+msgstr ""
+
+msgid "Edit Receipt"
+msgstr ""
+
+msgid "Edit Revision"
+msgstr ""
+
+msgid "Edit rule"
+msgstr ""
+
+msgid "Edit Rule"
+msgstr ""
+
+msgid "Edit Schedule"
+msgstr ""
+
+msgid "Edit Scheduled Maintenance"
+msgstr ""
+
+msgid "Edit Sequence"
+msgstr ""
+
+msgid "Edit Shift"
+msgstr ""
+
+msgid "Edit Shipment"
+msgstr ""
+
+msgid "Edit Shipping"
+msgstr ""
+
+msgid "Edit Shipping Method"
+msgstr ""
+
+msgid "Edit Size"
+msgstr ""
+
+msgid "Edit Step"
+msgstr ""
+
+msgid "Edit Stock Transfer"
+msgstr ""
+
+msgid "Edit Storage Type"
+msgstr ""
+
+msgid "Edit Storage Unit"
+msgstr ""
+
+msgid "Edit Substance"
+msgstr ""
+
+msgid "Edit Supplier"
+msgstr ""
+
+msgid "Edit Supplier Part"
+msgstr ""
+
+msgid "Edit supplier process"
+msgstr ""
+
+msgid "Edit Supplier Type"
+msgstr ""
+
+msgid "Edit Timecard"
+msgstr ""
+
+msgid "Edit Tool"
+msgstr ""
+
+msgid "Edit Training"
+msgstr ""
+
+msgid "Edit Transfer"
+msgstr ""
+
+msgid "Edit Transfer Line"
+msgstr ""
+
+msgid "Edit Unit of Measure"
+msgstr ""
+
+msgid "Edit View"
+msgstr ""
+
+msgid "Edit Webhook"
+msgstr ""
+
+msgid "Edit Work Center"
+msgstr ""
+
+msgid "Email"
+msgstr ""
+
+msgid "Email Address"
+msgstr ""
+
+msgid "Email notifications not configured"
+msgstr ""
+
+msgid "Emails"
+msgstr ""
+
+msgid "Emoji"
+msgstr ""
+
+msgid "Employee"
+msgstr ""
+
+msgid "Employee Accounts"
+msgstr ""
+
+msgid "Employee Type"
+msgstr ""
+
+msgid "Employee Types"
+msgstr ""
+
+msgid "Employees"
+msgstr ""
+
+msgid "Enable audit logging in settings to start tracking changes to your data."
+msgstr ""
+
+msgid "Enable digital quotes for your company. This will allow you to send digital quotes to your customers, and allow them to accept them online."
+msgstr ""
+
+msgid "Enable full accrual accounting with journal entries, financial reports, and general ledger posting."
+msgstr ""
+
+msgid "Enable in Settings"
+msgstr ""
+
+msgid "Enable notifications when an RFQ is marked as ready for quote."
+msgstr ""
+
+msgid "Enable shared workstation mode for MES terminals. Operators identify themselves via PIN before performing work."
+msgstr ""
+
+msgid "Enable this rule to automatically require approval for matching documents"
+msgstr ""
+
+msgid "Enable timecard tracking for work shifts."
+msgstr ""
+
+msgid "Enable to allow shared workstation mode."
+msgstr ""
+
+msgid "Enable to automatically post transactions to the general ledger."
+msgstr ""
+
+msgid "Enable to generate IDs and descriptions for raw materials."
+msgstr ""
+
+msgid "Enable to include work instructions on job traveler PDFs."
+msgstr ""
+
+msgid "Enable to show part thumbnails on purchase order PDFs."
+msgstr ""
+
+msgid "Enable to show part thumbnails on sales PDFs."
+msgstr ""
+
+msgid "Enable to start tracking changes to your data."
+msgstr ""
+
+msgid "Enable to start tracking work shifts."
+msgstr ""
+
+msgid "Enable to use metric units for material dimensions."
+msgstr ""
+
+msgid "Enabled"
+msgstr ""
+
+msgid "End Date"
+msgstr ""
+
+msgid "End Time"
+msgstr ""
+
+msgid "Enforce constraints on receipts, shipments, transfers and job operations for this item."
+msgstr ""
+
+msgid "Enforce per-item validation across receipts, shipments, transfers and adjustments."
+msgstr ""
+
+msgid "Enforce per-item validation and guidelines across receipts, shipments, transfers, and adjustments."
+msgstr ""
+
+msgid "Engineering Contact"
+msgstr ""
+
+msgid "Enter a batch number before setting the expiration date"
+msgstr ""
+
+msgid "Enter or scan serial number"
+msgstr ""
+
+msgid "Enter PO number"
+msgstr ""
+
+msgid "Entered At Receipt"
+msgstr ""
+
+msgid "Entities"
+msgstr ""
+
+msgid "Entities to move"
+msgstr ""
+
+msgid "Entities to split off"
+msgstr ""
+
+msgid "Entity"
+msgstr ""
+
+msgid "Entity is {status}"
+msgstr ""
+
+msgid "EORI"
+msgstr ""
+
+msgid "ERP, MES, QMS"
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Error deleting file"
+msgstr ""
+
+msgid "Error downloading file"
+msgstr ""
+
+msgid "Error fetching customer data"
+msgstr ""
+
+msgid "Error fetching supplier data"
+msgstr ""
+
+msgid "Error loading assigned dispatches"
+msgstr ""
+
+msgid "Error loading assigned documents"
+msgstr ""
+
+msgid "Error loading assigned issues"
+msgstr ""
+
+msgid "Error loading job tree."
+msgstr ""
+
+msgid "Error loading make method"
+msgstr ""
+
+msgid "Error moving file"
+msgstr ""
+
+msgid "Error removing model from {sourceDocument}"
+msgstr ""
+
+msgid "Error removing model from item"
+msgstr ""
+
+msgid "Error removing model from job"
+msgstr ""
+
+msgid "Error removing model from quote line"
+msgstr ""
+
+msgid "Error removing model from RFQ line"
+msgstr ""
+
+msgid "Error removing model from sales invoice line"
+msgstr ""
+
+msgid "Error removing model from sales order line"
+msgstr ""
+
+msgid "Error validating serial number"
+msgstr ""
+
+msgid "Errors"
+msgstr ""
+
+msgid "Escalation"
+msgstr ""
+
+msgid "Est. Duration"
+msgstr ""
+
+msgid "Estimated Duration"
+msgstr ""
+
+msgid "Estimated Duration (minutes)"
+msgstr ""
+
+msgid "Estimated Scrap Quantity"
+msgstr ""
+
+msgid "Estimates vs Actual"
+msgstr ""
+
+msgid "Estimates vs Actuals"
+msgstr ""
+
+msgid "Estimator"
+msgstr ""
+
+msgid "Event Type"
+msgstr ""
+
+msgid "Events"
+msgstr ""
+
+msgid "Every condition must match"
+msgstr ""
+
+msgid "Everything from Starter"
+msgstr ""
+
+msgid "Exchange Rate"
+msgstr ""
+
+msgid "Exchange Rates"
+msgstr ""
+
+msgid "Expand"
+msgstr ""
+
+#. placeholder {0}: item.label
+msgid "Expand {0}"
+msgstr ""
+
+msgid "Expand all"
+msgstr ""
+
+msgid "Expand Costs"
+msgstr ""
+
+msgid "Expand Labor"
+msgstr ""
+
+msgid "Expand Machine"
+msgstr ""
+
+msgid "Expand Setup"
+msgstr ""
+
+msgid "Expand subtree"
+msgstr ""
+
+msgid "Expected Receipt"
+msgstr ""
+
+msgid "Expected Receipt Date"
+msgstr ""
+
+msgid "Expiration Date"
+msgstr ""
+
+msgid "Expiration Date (applies to all serials on this line)"
+msgstr ""
+
+msgid "Expired"
+msgstr ""
+
+msgid "Expired batch"
+msgstr ""
+
+msgid "Expired Batches"
+msgstr ""
+
+msgid "Expires"
+msgstr ""
+
+msgid "Expires At (optional)"
+msgstr ""
+
+msgid "Expiry"
+msgstr ""
+
+msgid "Expiry begins when the selected process completes."
+msgstr ""
+
+msgid "Expiry begins when the selected process starts."
+msgstr ""
+
+msgid "Expiry trace"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Export CSV"
+msgstr ""
+
+msgid "Export Lines to CSV"
+msgstr ""
+
+msgid "Extended Price"
+msgstr ""
+
+msgid "External"
+msgstr ""
+
+msgid "External Notes"
+msgstr ""
+
+msgid "External Ref."
+msgstr ""
+
+msgid "External Reference"
+msgstr ""
+
+msgid "Fail"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create consumable: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create customer portal: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create customer status: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create customer type: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create customer: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create department: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create failure mode: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create gauge type: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create item group: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create location: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create maintenance schedule: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material dimension: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material finish: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material form: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material grade: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material substance: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material type: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create material: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create no quote reason: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create part: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create payment term: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create process: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create shipping method: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create stock transfer line: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create storage type: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create supplier: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create tool: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create webhook: {0}"
+msgstr ""
+
+#. placeholder {0}: fetcher.data.error.message
+msgid "Failed to create work center: {0}"
+msgstr ""
+
+msgid "Failed to delete file from old location"
+msgstr ""
+
+msgid "Failed to download file for moving"
+msgstr ""
+
+msgid "Failed to fetch item costs"
+msgstr ""
+
+msgid "Failed to fetch place details"
+msgstr ""
+
+msgid "Failed to fetch risks"
+msgstr ""
+
+msgid "Failed to fetch suggestions"
+msgstr ""
+
+msgid "Failed to initialize Carbon client"
+msgstr ""
+
+msgid "Failed to insert quote line"
+msgstr ""
+
+msgid "Failed to insert supplier quote line"
+msgstr ""
+
+msgid "Failed to load configuration parameters"
+msgstr ""
+
+msgid "Failed to load customer part details"
+msgstr ""
+
+msgid "Failed to load data"
+msgstr ""
+
+msgid "Failed to load inbound inspections"
+msgstr ""
+
+msgid "Failed to load item data"
+msgstr ""
+
+msgid "Failed to load item details"
+msgstr ""
+
+msgid "Failed to load job operations"
+msgstr ""
+
+msgid "Failed to load jobs"
+msgstr ""
+
+msgid "Failed to load purchase order lines"
+msgstr ""
+
+msgid "Failed to load purchase orders"
+msgstr ""
+
+msgid "Failed to load receipt lines"
+msgstr ""
+
+msgid "Failed to load receipts"
+msgstr ""
+
+msgid "Failed to load sales order lines"
+msgstr ""
+
+msgid "Failed to load sales orders"
+msgstr ""
+
+msgid "Failed to load shipment lines"
+msgstr ""
+
+msgid "Failed to load shipments"
+msgstr ""
+
+msgid "Failed to load supplier part details"
+msgstr ""
+
+msgid "Failed to load tracked entities"
+msgstr ""
+
+msgid "Failed to remove image: {errorMessage}"
+msgstr ""
+
+msgid "Failed to remove model thumbnail"
+msgstr ""
+
+msgid "Failed to remove purchase order"
+msgstr ""
+
+msgid "Failed to remove thumbnail"
+msgstr ""
+
+msgid "Failed to resize image"
+msgstr ""
+
+msgid "Failed to resize image: {errorMessage}"
+msgstr ""
+
+msgid "Failed to retrieve CSV column data."
+msgstr ""
+
+msgid "Failed to save configuration rule"
+msgstr ""
+
+msgid "Failed to update batch property"
+msgstr ""
+
+msgid "Failed to update category markups"
+msgstr ""
+
+msgid "Failed to update configuration parameter"
+msgstr ""
+
+msgid "Failed to update item cost"
+msgstr ""
+
+msgid "Failed to update opportunity with purchase order"
+msgstr ""
+
+msgid "Failed to update quote line"
+msgstr ""
+
+msgid "Failed to update supplier quote line"
+msgstr ""
+
+msgid "Failed to update thumbnail path"
+msgstr ""
+
+msgid "Failed to upload CSV file."
+msgstr ""
+
+msgid "Failed to upload file"
+msgstr ""
+
+msgid "Failed to upload file to new location"
+msgstr ""
+
+#. placeholder {0}: file.name
+#. placeholder {0}: fileUpload.name
+msgid "Failed to upload file: {0}"
+msgstr ""
+
+msgid "Failed to upload image"
+msgstr ""
+
+msgid "Failed to upload logo: {errorMessage}"
+msgstr ""
+
+msgid "Failed to upload model"
+msgstr ""
+
+msgid "Failed to upload thumbnail"
+msgstr ""
+
+msgid "Failure Mode"
+msgstr ""
+
+msgid "Failure Modes"
+msgstr ""
+
+msgid "Favorite"
+msgstr ""
+
+msgid "Fax"
+msgstr ""
+
+msgid "Fax Number"
+msgstr ""
+
+msgid "Feedback"
+msgstr ""
+
+msgid "Fees"
+msgstr ""
+
+msgid "Fetch"
+msgstr ""
+
+msgid "Field"
+msgstr ""
+
+msgid "Field Mapping"
+msgstr ""
+
+msgid "Fields"
+msgstr ""
+
+msgid "File deleted successfully"
+msgstr ""
+
+msgid "File Extension"
+msgstr ""
+
+msgid "File is already in the selected bucket"
+msgstr ""
+
+#. placeholder {0}: ( logo.size / 1024 / 1024 ).toFixed(2)
+msgid "File size exceeds {maxSizeMB}MB limit. Current size: {0}MB"
+msgstr ""
+
+msgid "File size exceeds 10MB limit"
+msgstr ""
+
+#. placeholder {0}: SIZE_LIMIT.format()
+msgid "File size too big (max. {0})"
+msgstr ""
+
+msgid "File type not supported"
+msgstr ""
+
+msgid "File type not supported. Please use JPG, PNG, WebP, or GIF."
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Filter"
+msgstr ""
+
+msgid "Filtering"
+msgstr ""
+
+msgid "Finalize"
+msgstr ""
+
+msgid "Finish"
+msgstr ""
+
+msgid "Finish To"
+msgstr ""
+
+msgid "Finishes"
+msgstr ""
+
+msgid "First Name"
+msgstr ""
+
+msgid "First Operation"
+msgstr ""
+
+msgid "Fiscal Year"
+msgstr ""
+
+msgid "Fiscal Year Settings"
+msgstr ""
+
+msgid "Fiscal Years"
+msgstr ""
+
+msgid "Fixed"
+msgstr ""
+
+msgid "Fixed Reorder"
+msgstr ""
+
+msgid "Fixed Shelf Life"
+msgstr ""
+
+msgid "For growing businesses that need support"
+msgstr ""
+
+msgid "For US companies handling ITAR data"
+msgstr ""
+
+msgid "Forgot to Clock Out?"
+msgstr ""
+
+msgid "Format"
+msgstr ""
+
+msgid "Frequencies"
+msgstr ""
+
+msgid "Frequency"
+msgstr ""
+
+msgid "Friday"
+msgstr ""
+
+msgid "From Location"
+msgstr ""
+
+msgid "From Storage Unit"
+msgstr ""
+
+msgid "Fully trained for"
+msgstr ""
+
+msgid "Gauge"
+msgstr ""
+
+msgid "Gauge Calibration Notifications"
+msgstr ""
+
+msgid "Gauge ID"
+msgstr ""
+
+msgid "Gauge not found"
+msgstr ""
+
+msgid "Gauge Type"
+msgstr ""
+
+msgid "Gauge Types"
+msgstr ""
+
+msgid "Gauges"
+msgstr ""
+
+msgid "General Ledger"
+msgstr ""
+
+msgid "Generate a new 4-digit PIN. Share it with the operator so they can pin in at MES terminals."
+msgstr ""
+
+msgid "Generate material IDs and descriptions based on the properties of the material."
+msgstr ""
+
+msgid "Generate new PIN"
+msgstr ""
+
+msgid "Generated IDs are disabled"
+msgstr ""
+
+msgid "Generated IDs are enabled"
+msgstr ""
+
+msgid "Get Method"
+msgstr ""
+
+msgid "GL Account"
+msgstr ""
+
+#. placeholder {0}: user.firstName
+msgid "Good afternoon, {0}"
+msgstr ""
+
+#. placeholder {0}: user.firstName
+msgid "Good evening, {0}"
+msgstr ""
+
+#. placeholder {0}: user.firstName
+msgid "Good morning, {0}"
+msgstr ""
+
+msgid "Google Places API key not configured"
+msgstr ""
+
+msgid "Grade"
+msgstr ""
+
+msgid "Grades"
+msgstr ""
+
+msgid "Group"
+msgstr ""
+
+msgid "Group Members"
+msgstr ""
+
+msgid "Group Name"
+msgstr ""
+
+msgid "Groups"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Hide, pin and reorder columns"
+msgstr ""
+
+msgid "Higher priority wins ties and applies first for markups"
+msgstr ""
+
+msgid "History"
+msgstr ""
+
+msgid "Holiday"
+msgstr ""
+
+msgid "Holiday Name"
+msgstr ""
+
+msgid "Holidays"
+msgstr ""
+
+msgid "Home Phone"
+msgstr ""
+
+msgid "Hours per Week"
+msgstr ""
+
+msgid "Hours/100 Pieces"
+msgstr ""
+
+msgid "Hours/1000 Pieces"
+msgstr ""
+
+msgid "Hours/Piece"
+msgstr ""
+
+msgid "How the resolved price was calculated."
+msgstr ""
+
+msgid "Humidity"
+msgstr ""
+
+msgid "I'm Still Working"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Ideas, suggestions or problems with this page?"
+msgstr ""
+
+msgid "Ideas, suggestions or problems?"
+msgstr ""
+
+msgid "IDs and descriptions are generated for raw materials."
+msgstr ""
+
+msgid "If items already exist"
+msgstr ""
+
+msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."
+msgstr ""
+
+msgid "Implementation Support"
+msgstr ""
+
+msgid "Import {label} CSV"
+msgstr ""
+
+msgid "In order to convert this RFQ to a quote, all lines must have an internal part number."
+msgstr ""
+
+msgid "In order to convert this RFQ to a quote, it must be associated with a customer."
+msgstr ""
+
+msgid "In order to convert this RFQ to a quote, it must have a customer."
+msgstr ""
+
+msgid "In order to send this RFQ to suppliers, you must first add suppliers to the RFQ."
+msgstr ""
+
+msgid "In Process Only"
+msgstr ""
+
+msgid "In Progress"
+msgstr ""
+
+msgid "in selected period"
+msgstr ""
+
+msgid "Inactive"
+msgstr ""
+
+msgid "Inactive actions will not appear in selection lists"
+msgstr ""
+
+msgid "Inbound Inspection"
+msgstr ""
+
+msgid "Inbound Inspections"
+msgstr ""
+
+msgid "Inbound Inspections: Require Different Inspector"
+msgstr ""
+
+msgid "Inbox"
+msgstr ""
+
+msgid "Include extra parts in shipment"
+msgstr ""
+
+msgid "Include Inactive"
+msgstr ""
+
+msgid "Includes tax and shipping costs"
+msgstr ""
+
+msgid "Income Statement"
+msgstr ""
+
+msgid "Income/Balance"
+msgstr ""
+
+msgid "Incoming"
+msgstr ""
+
+msgid "Incoterm"
+msgstr ""
+
+msgid "Incoterm Location"
+msgstr ""
+
+msgid "Indirect"
+msgstr ""
+
+msgid "Infrastructure"
+msgstr ""
+
+msgid "Inherit From Materials"
+msgstr ""
+
+msgid "Insert rows"
+msgstr ""
+
+msgid "Insert token"
+msgstr ""
+
+msgid "Inspect"
+msgstr ""
+
+msgid "Inspect Item"
+msgstr ""
+
+msgid "Inspect Next Item"
+msgstr ""
+
+msgid "Inspection"
+msgstr ""
+
+msgid "Inspection Level"
+msgstr ""
+
+msgid "Inspection Status"
+msgstr ""
+
+msgid "Inspections"
+msgstr ""
+
+msgid "Inspector"
+msgstr ""
+
+msgid "Install"
+msgstr ""
+
+msgid "Installed"
+msgstr ""
+
+msgid "Instructions"
+msgstr ""
+
+msgid "Instructions are inherited from the procedure."
+msgstr ""
+
+msgid "Integration not found"
+msgstr ""
+
+msgid "Integrations"
+msgstr ""
+
+msgid "Intercompany"
+msgstr ""
+
+msgid "Internal"
+msgstr ""
+
+msgid "Internal Notes"
+msgstr ""
+
+msgid "Invalid Invite"
+msgstr ""
+
+msgid "Inventory"
+msgstr ""
+
+msgid "Inventory Adjustment"
+msgstr ""
+
+msgid "Inventory Job Notifications"
+msgstr ""
+
+msgid "Inventory Qty"
+msgstr ""
+
+msgid "Inventory Tracking"
+msgstr ""
+
+msgid "Inventory Unit of Measure"
+msgstr ""
+
+msgid "Invite"
+msgstr ""
+
+msgid "Invoice"
+msgstr ""
+
+msgid "Invoice Contact"
+msgstr ""
+
+msgid "Invoice Customer"
+msgstr ""
+
+msgid "Invoice Customer Contact"
+msgstr ""
+
+msgid "Invoice Customer Location"
+msgstr ""
+
+msgid "Invoice ID"
+msgstr ""
+
+msgid "Invoice Location"
+msgstr ""
+
+msgid "Invoice Number"
+msgstr ""
+
+msgid "Invoice Supplier"
+msgstr ""
+
+msgid "Invoice Supplier Contact"
+msgstr ""
+
+msgid "Invoice Supplier Location"
+msgstr ""
+
+msgid "Invoice Total"
+msgstr ""
+
+msgid "Invoiced"
+msgstr ""
+
+msgid "Invoiced Amount:"
+msgstr ""
+
+msgid "Invoiced Statuses"
+msgstr ""
+
+msgid "Invoices"
+msgstr ""
+
+msgid "is"
+msgstr ""
+
+msgid "is any of"
+msgstr ""
+
+msgid "Issue"
+msgstr ""
+
+msgid "Issue description"
+msgstr ""
+
+msgid "Issue not found"
+msgstr ""
+
+msgid "Issue scoped API keys for programmatic access to your Carbon data."
+msgstr ""
+
+msgid "Issue Status"
+msgstr ""
+
+msgid "Issue Target"
+msgstr ""
+
+msgid "Issue title"
+msgstr ""
+
+msgid "Issue Trend"
+msgstr ""
+
+msgid "Issue Type"
+msgstr ""
+
+msgid "Issue Types"
+msgstr ""
+
+msgid "Issue Workflow"
+msgstr ""
+
+msgid "Issue Workflows"
+msgstr ""
+
+msgid "Issued Date"
+msgstr ""
+
+msgid "Issues"
+msgstr ""
+
+msgid "item"
+msgstr ""
+
+msgid "Item"
+msgstr ""
+
+msgid "Item {scannedItem} is not the same as the item {expectedItem}"
+msgstr ""
+
+msgid "Item Group"
+msgstr ""
+
+msgid "Item Groups"
+msgstr ""
+
+msgid "Item ID"
+msgstr ""
+
+msgid "Item Master"
+msgstr ""
+
+msgid "Item Rules"
+msgstr ""
+
+msgid "Item Scope"
+msgstr ""
+
+msgid "Item Type"
+msgstr ""
+
+msgid "items"
+msgstr ""
+
+msgid "Items"
+msgstr ""
+
+msgid "Items inside this window get a yellow badge."
+msgstr ""
+
+msgid "Job"
+msgstr ""
+
+msgid "Job ID"
+msgstr ""
+
+msgid "Job Location"
+msgstr ""
+
+msgid "Job Materials"
+msgstr ""
+
+msgid "Job Operation"
+msgstr ""
+
+msgid "Job Operations"
+msgstr ""
+
+msgid "Job Traveler"
+msgstr ""
+
+msgid "Job traveler PDFs include work instructions."
+msgstr ""
+
+msgid "Jobs"
+msgstr ""
+
+msgid "Jobs Assigned to Me"
+msgstr ""
+
+msgid "Jobs in progress"
+msgstr ""
+
+msgid "Jobs Required"
+msgstr ""
+
+#. placeholder {0}: company?.name ?? "Company"
+msgid "Join {0}"
+msgstr ""
+
+msgid "Journal Entries"
+msgstr ""
+
+msgid "Kanban"
+msgstr ""
+
+msgid "Kanban for {kanbanName}"
+msgstr ""
+
+msgid "Kanban Output"
+msgstr ""
+
+msgid "Kanbans"
+msgstr ""
+
+msgid "Keep Current"
+msgstr ""
+
+msgid "Keep existing pricing, only add new items"
+msgstr ""
+
+msgid "Key"
+msgstr ""
+
+msgid "Kit"
+msgstr ""
+
+msgid "Label"
+msgstr ""
+
+msgid "Label to complete the current operation for this kanban"
+msgstr ""
+
+#. placeholder {0}: row.original.replenishmentSystem === "Make" ? "Job" : "Order"
+msgid "Label to create a {0} for this kanban"
+msgstr ""
+
+msgid "Label to start the next operation for this kanban"
+msgstr ""
+
+msgid "Labels"
+msgstr ""
+
+msgid "Labor"
+msgstr ""
+
+msgid "Labor Rate"
+msgstr ""
+
+msgid "Labor Rate (Hourly)"
+msgstr ""
+
+msgid "Labor Time"
+msgstr ""
+
+msgid "Labor Unit"
+msgstr ""
+
+msgid "Language"
+msgstr ""
+
+msgid "Last Calibration"
+msgstr ""
+
+msgid "Last Calibration Date"
+msgstr ""
+
+msgid "Last Name"
+msgstr ""
+
+#. placeholder {0}: formatDateTime(lastSyncedAt)
+msgid "Last synced: {0}"
+msgstr ""
+
+msgid "Last updated: {formattedDate}"
+msgstr ""
+
+msgid "Lead Time"
+msgstr ""
+
+msgid "Lead Time (Days)"
+msgstr ""
+
+msgid "Lead Time Updates"
+msgstr ""
+
+msgid "Lead Time:"
+msgstr ""
+
+msgid "Learn more"
+msgstr ""
+
+msgid "Leave any related receipts untouched"
+msgstr ""
+
+msgid "Leave empty for exact match"
+msgstr ""
+
+msgid "Left item"
+msgstr ""
+
+msgid "Leftover Parts Detected"
+msgstr ""
+
+msgid "Let's build something"
+msgstr ""
+
+msgid "Let's set up your new company"
+msgstr ""
+
+msgid "Let's setup your account"
+msgstr ""
+
+msgid "Letter"
+msgstr ""
+
+msgid "Light"
+msgstr ""
+
+msgid "Light Mode"
+msgstr ""
+
+msgid "Likelihood"
+msgstr ""
+
+msgid "Line Item Comparison"
+msgstr ""
+
+msgid "Line options"
+msgstr ""
+
+msgid "Line Status"
+msgstr ""
+
+msgid "Linear Team"
+msgstr ""
+
+msgid "Lines need internal part numbers"
+msgstr ""
+
+msgid "Lines need prices or lead times"
+msgstr ""
+
+msgid "Link"
+msgstr ""
+
+msgid "Link Jira Issue"
+msgstr ""
+
+msgid "Link Linear Issue"
+msgstr ""
+
+#. placeholder {0}: r.linkedSum
+#. placeholder {1}: r.quantity
+msgid "Linked entity quantity ({0}) does not match row quantity ({1})."
+msgstr ""
+
+msgid "List Options"
+msgstr ""
+
+msgid "List Parameters"
+msgstr ""
+
+msgid "Live reloading"
+msgstr ""
+
+msgid "Load Templates"
+msgstr ""
+
+msgid "Loader"
+msgstr ""
+
+msgid "Loading item details..."
+msgstr ""
+
+msgid "Loading..."
+msgstr ""
+
+msgid "Location"
+msgstr ""
+
+msgid "Location Name"
+msgstr ""
+
+msgid "Locations"
+msgstr ""
+
+msgid "Lock"
+msgstr ""
+
+msgid "Log In"
+msgstr ""
+
+msgid "Login or create a new account"
+msgstr ""
+
+msgid "Logo removed successfully"
+msgstr ""
+
+msgid "Logo uploaded successfully"
+msgstr ""
+
+msgid "Logos"
+msgstr ""
+
+#. placeholder {0}: auditConfig.retentionDays
+msgid "Logs older than {0} days are automatically archived."
+msgstr ""
+
+msgid "Long Description"
+msgstr ""
+
+msgid "Looks empty here"
+msgstr ""
+
+msgid "Lost"
+msgstr ""
+
+msgid "Lot"
+msgstr ""
+
+msgid "Lot Size"
+msgstr ""
+
+msgid "Lot Size:"
+msgstr ""
+
+msgid "Machine"
+msgstr ""
+
+msgid "Machine Rate"
+msgstr ""
+
+msgid "Machine Rate (Hourly)"
+msgstr ""
+
+msgid "Machine Time"
+msgstr ""
+
+msgid "Machine Unit"
+msgstr ""
+
+msgid "Maintenance"
+msgstr ""
+
+msgid "Maintenance Dispatch Notifications"
+msgstr ""
+
+msgid "Maintenance Dispatches"
+msgstr ""
+
+msgid "Maintenance Scheduling"
+msgstr ""
+
+msgid "Maintenance Type"
+msgstr ""
+
+msgid "Make"
+msgstr ""
+
+msgid "Make Active"
+msgstr ""
+
+msgid "Make Default"
+msgstr ""
+
+msgid "Make Inactive"
+msgstr ""
+
+msgid "Make items cannot be invoiced directly. Change method to Pick to continue."
+msgstr ""
+
+msgid "Make Method Version"
+msgstr ""
+
+#. placeholder {0}: selectedRevision.revision
+msgid "Make revision {0} default?"
+msgstr ""
+
+#. placeholder {0}: selectedRevision.revision
+msgid "Make size {0} default?"
+msgstr ""
+
+msgid "Make to Order"
+msgstr ""
+
+msgid "Make tracked entities available again"
+msgstr ""
+
+msgid "Makes this document active again."
+msgstr ""
+
+msgid "Makes this document active and visible."
+msgstr ""
+
+msgid "Manage"
+msgstr ""
+
+msgid "Manage how shelf life is tracked, computed, and enforced across inventory."
+msgstr ""
+
+msgid "Manage Ownership"
+msgstr ""
+
+msgid "Manage Subscription"
+msgstr ""
+
+msgid "Manage your subscription and billing information"
+msgstr ""
+
+msgid "Manager"
+msgstr ""
+
+msgid "Manual"
+msgstr ""
+
+msgid "Manufacturer"
+msgstr ""
+
+msgid "Manufacturing"
+msgstr ""
+
+msgid "Mark as Planned"
+msgstr ""
+
+msgid "Mark as read"
+msgstr ""
+
+msgid "Mark Complete"
+msgstr ""
+
+msgid "Mark Dark Mode"
+msgstr ""
+
+msgid "Mark Light Mode"
+msgstr ""
+
+msgid "Mark lot as partial?"
+msgstr ""
+
+msgid "Mark Partial"
+msgstr ""
+
+msgid "Mark to delete"
+msgstr ""
+
+msgid "Match"
+msgstr ""
+
+msgid "Match all"
+msgstr ""
+
+msgid "Match any"
+msgstr ""
+
+msgid "Match none"
+msgstr ""
+
+msgid "matches"
+msgstr ""
+
+msgid "Matching Pairs"
+msgstr ""
+
+msgid "Material"
+msgstr ""
+
+msgid "Material Dimension"
+msgstr ""
+
+msgid "Material Dimensions"
+msgstr ""
+
+msgid "Material dimensions use metric units."
+msgstr ""
+
+msgid "Material Finish"
+msgstr ""
+
+msgid "Material Finishes"
+msgstr ""
+
+msgid "Material Form"
+msgstr ""
+
+msgid "Material Grade"
+msgstr ""
+
+msgid "Material Grades"
+msgstr ""
+
+msgid "Material ID"
+msgstr ""
+
+msgid "Material IDs"
+msgstr ""
+
+msgid "Material Shape"
+msgstr ""
+
+msgid "Material Shapes"
+msgstr ""
+
+msgid "Material Substance"
+msgstr ""
+
+msgid "Material Substances"
+msgstr ""
+
+msgid "Material Type"
+msgstr ""
+
+msgid "Material Types"
+msgstr ""
+
+msgid "Materials"
+msgstr ""
+
+msgid "Max Qty"
+msgstr ""
+
+msgid "Max Quantity"
+msgstr ""
+
+msgid "Maximum"
+msgstr ""
+
+msgid "Maximum Inventory Quantity"
+msgstr ""
+
+msgid "Maximum Inventory:"
+msgstr ""
+
+msgid "Maximum Order Quantity"
+msgstr ""
+
+msgid "Maximum Order:"
+msgstr ""
+
+msgid "MCP Command"
+msgstr ""
+
+msgid "Mean Time Between Failures"
+msgstr ""
+
+msgid "Mean Time To Repair"
+msgstr ""
+
+msgid "Measurement Standard"
+msgstr ""
+
+msgid "Members"
+msgstr ""
+
+msgid "Message"
+msgstr ""
+
+msgid "Method"
+msgstr ""
+
+msgid "Method Id"
+msgstr ""
+
+msgid "Method Materials"
+msgstr ""
+
+msgid "Method Operations"
+msgstr ""
+
+msgid "Method Type"
+msgstr ""
+
+msgid "Methods"
+msgstr ""
+
+msgid "Metric"
+msgstr ""
+
+msgid "Metric units are disabled"
+msgstr ""
+
+msgid "Metric units are enabled"
+msgstr ""
+
+msgid "Min Qty"
+msgstr ""
+
+msgid "Minimize"
+msgstr ""
+
+msgid "Minimum"
+msgstr ""
+
+msgid "Minimum Amount"
+msgstr ""
+
+msgid "Minimum Cost"
+msgstr ""
+
+msgid "Minimum Order Quantity"
+msgstr ""
+
+msgid "Minimum Order:"
+msgstr ""
+
+msgid "Minutes/100 Pieces"
+msgstr ""
+
+msgid "Minutes/1000 Pieces"
+msgstr ""
+
+msgid "Minutes/Piece"
+msgstr ""
+
+msgid "Missing Information"
+msgstr ""
+
+msgid "Missing Operations"
+msgstr ""
+
+msgid "Missing Shipping Costs"
+msgstr ""
+
+msgid "Missing Suppliers"
+msgstr ""
+
+msgid "Mobile Phone"
+msgstr ""
+
+msgid "Model data is missing"
+msgstr ""
+
+msgid "Model Number"
+msgstr ""
+
+msgid "Model Number:"
+msgstr ""
+
+msgid "Model removed from {sourceDocument}"
+msgstr ""
+
+msgid "Model removed from item"
+msgstr ""
+
+msgid "Model removed from job"
+msgstr ""
+
+msgid "Model removed from line"
+msgstr ""
+
+msgid "Module"
+msgstr ""
+
+msgid "Modules"
+msgstr ""
+
+msgid "Monday"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "More actions"
+msgstr ""
+
+msgid "More options"
+msgstr ""
+
+msgid "Move"
+msgstr ""
+
+msgid "Move entities"
+msgstr ""
+
+msgid "Move entities…"
+msgstr ""
+
+msgid "Move item"
+msgstr ""
+
+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."
+msgstr ""
+
+msgid "Move to"
+msgstr ""
+
+msgid "Move to Trash"
+msgstr ""
+
+#. placeholder {0}: file.name
+#. placeholder {1}: targetBucket === "parts" ? "Parts" : "Opportunity"
+msgid "Moved {0} to {1} bucket"
+msgstr ""
+
+msgid "MRP runs automatically every 3 hours, but you can run it manually here."
+msgstr ""
+
+msgid "Must be in the same location"
+msgstr ""
+
+msgid "My Documents"
+msgstr ""
+
+msgid "My Saved View"
+msgstr ""
+
+msgid "Name"
+msgstr ""
+
+msgid "Navigate"
+msgstr ""
+
+msgid "NCRs by Type"
+msgstr ""
+
+msgid "Negative Adjustment"
+msgstr ""
+
+msgid "Negative feedback"
+msgstr ""
+
+msgid "Never"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "New Account"
+msgstr ""
+
+msgid "New API Key"
+msgstr ""
+
+msgid "New Approval Rule"
+msgstr ""
+
+msgid "New Assignment"
+msgstr ""
+
+msgid "New Attribute"
+msgstr ""
+
+msgid "New Attribute Category"
+msgstr ""
+
+msgid "New chat"
+msgstr ""
+
+msgid "New Consumable"
+msgstr ""
+
+msgid "New Contractor"
+msgstr ""
+
+msgid "New Custom Field"
+msgstr ""
+
+msgid "New Customer"
+msgstr ""
+
+msgid "New Customer Part"
+msgstr ""
+
+msgid "New Department"
+msgstr ""
+
+msgid "New Employee Type"
+msgstr ""
+
+msgid "New expiration date"
+msgstr ""
+
+msgid "New Failure Mode"
+msgstr ""
+
+msgid "New Field"
+msgstr ""
+
+msgid "New Gauge Calibration Record"
+msgstr ""
+
+msgid "New Gauge Type"
+msgstr ""
+
+msgid "New Group"
+msgstr ""
+
+msgid "New Holiday"
+msgstr ""
+
+msgid "New Invoice"
+msgstr ""
+
+msgid "New Item Group"
+msgstr ""
+
+msgid "New Kanban"
+msgstr ""
+
+msgid "New Line"
+msgstr ""
+
+msgid "New Line Item"
+msgstr ""
+
+msgid "New Location"
+msgstr ""
+
+msgid "New Maintenance Dispatch"
+msgstr ""
+
+msgid "New Material"
+msgstr ""
+
+msgid "New Material Dimension"
+msgstr ""
+
+msgid "New Material Finish"
+msgstr ""
+
+msgid "New Material Grade"
+msgstr ""
+
+msgid "New Material Shape"
+msgstr ""
+
+msgid "New Material Substance"
+msgstr ""
+
+msgid "New Material Type"
+msgstr ""
+
+msgid "New Non Conformance Type"
+msgstr ""
+
+msgid "New Owner"
+msgstr ""
+
+msgid "New Part"
+msgstr ""
+
+msgid "New Password"
+msgstr ""
+
+msgid "New Payment Term"
+msgstr ""
+
+msgid "New PIN"
+msgstr ""
+
+msgid "New PO"
+msgstr ""
+
+msgid "New Price Override"
+msgstr ""
+
+msgid "New Pricing Rule"
+msgstr ""
+
+msgid "New Process"
+msgstr ""
+
+msgid "New Quote"
+msgstr ""
+
+msgid "New Quote Line"
+msgstr ""
+
+msgid "New Receipt"
+msgstr ""
+
+msgid "New record created"
+msgstr ""
+
+msgid "New Revision"
+msgstr ""
+
+msgid "New RFQ"
+msgstr ""
+
+msgid "New rule"
+msgstr ""
+
+msgid "New Rule"
+msgstr ""
+
+msgid "New Sales Invoice"
+msgstr ""
+
+msgid "New Sales Invoice Line"
+msgstr ""
+
+msgid "New Sales Order"
+msgstr ""
+
+msgid "New Sales Order Line"
+msgstr ""
+
+msgid "New Scheduled Maintenance"
+msgstr ""
+
+msgid "New Shift"
+msgstr ""
+
+msgid "New Shipment"
+msgstr ""
+
+msgid "New Shipping Method"
+msgstr ""
+
+msgid "New Size"
+msgstr ""
+
+msgid "New Storage Type"
+msgstr ""
+
+msgid "New Storage Unit"
+msgstr ""
+
+msgid "New Supplier"
+msgstr ""
+
+msgid "New Supplier Part"
+msgstr ""
+
+msgid "New Timecard"
+msgstr ""
+
+msgid "New Tool"
+msgstr ""
+
+msgid "New Training"
+msgstr ""
+
+msgid "New Transfer"
+msgstr ""
+
+msgid "New Transfer Line"
+msgstr ""
+
+msgid "New Unit of Measure"
+msgstr ""
+
+msgid "New Version"
+msgstr ""
+
+msgid "New Warehouse Transfer"
+msgstr ""
+
+msgid "New Webhook"
+msgstr ""
+
+msgid "New Work Center"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Next Calibration"
+msgstr ""
+
+msgid "Next Calibration Date"
+msgstr ""
+
+msgid "Next Date"
+msgstr ""
+
+msgid "Next Due"
+msgstr ""
+
+msgid "Next Sequence"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+#. placeholder {0}: node.name.toLowerCase()
+msgid "No {0} found"
+msgstr ""
+
+msgid "No abilities added"
+msgstr ""
+
+msgid "No Access"
+msgstr ""
+
+msgid "No action needed"
+msgstr ""
+
+msgid "No active plan"
+msgstr ""
+
+msgid "No Active Quotes"
+msgstr ""
+
+msgid "No addresses found"
+msgstr ""
+
+#. placeholder {0}: auditConfig.retentionDays
+msgid "No archived logs yet. Logs older than {0} days will be automatically archived and available for download here."
+msgstr ""
+
+msgid "No available filters"
+msgstr ""
+
+msgid "No BOM input has a shelf-life policy"
+msgstr ""
+
+msgid "No calibration records found"
+msgstr ""
+
+msgid "No changes recorded"
+msgstr ""
+
+msgid "No chat history"
+msgstr ""
+
+msgid "No chats found"
+msgstr ""
+
+msgid "No comments yet. Be the first to add a comment."
+msgstr ""
+
+msgid "No completed jobs within range"
+msgstr ""
+
+msgid "No condition may match"
+msgstr ""
+
+msgid "No conversion is required"
+msgstr ""
+
+msgid "No cost history found"
+msgstr ""
+
+msgid "No Data"
+msgstr ""
+
+msgid "No data exists"
+msgstr ""
+
+msgid "No days off scheduled"
+msgstr ""
+
+msgid "No draft versions available"
+msgstr ""
+
+msgid "No due date"
+msgstr ""
+
+msgid "No employees assigned yet. Add groups to see status."
+msgstr ""
+
+msgid "No employees found"
+msgstr ""
+
+msgid "No fields found."
+msgstr ""
+
+msgid "No files"
+msgstr ""
+
+msgid "No files uploaded"
+msgstr ""
+
+msgid "No Gauge Selected"
+msgstr ""
+
+msgid "No groups assigned"
+msgstr ""
+
+msgid "No image"
+msgstr ""
+
+msgid "No issue types configured"
+msgstr ""
+
+msgid "No logo uploaded"
+msgstr ""
+
+msgid "No matches"
+msgstr ""
+
+msgid "No matches for \"{query}\". Try a different search term."
+msgstr ""
+
+msgid "No new notifications"
+msgstr ""
+
+msgid "No notes"
+msgstr ""
+
+msgid "No operators."
+msgstr ""
+
+msgid "No option found."
+msgstr ""
+
+msgid "No options found."
+msgstr ""
+
+msgid "No other employees found. Add employees to enable ownership transfer."
+msgstr ""
+
+msgid "No outstanding trainings"
+msgstr ""
+
+msgid "No overtime scheduled"
+msgstr ""
+
+msgid "No part ID"
+msgstr ""
+
+msgid "No parts added yet"
+msgstr ""
+
+msgid "No planning data"
+msgstr ""
+
+msgid "No pricing for selected quantity"
+msgstr ""
+
+msgid "No pricing options found"
+msgstr ""
+
+msgid "No Quote"
+msgstr ""
+
+msgid "No Quote Reason"
+msgstr ""
+
+msgid "No Quote Reasons"
+msgstr ""
+
+msgid "No remaining entities to inspect."
+msgstr ""
+
+msgid "No results"
+msgstr ""
+
+msgid "No results found"
+msgstr ""
+
+msgid "No rules assigned"
+msgstr ""
+
+msgid "No samples inspected yet."
+msgstr ""
+
+msgid "No sorts applied to this view"
+msgstr ""
+
+msgid "No time entries for this week"
+msgstr ""
+
+msgid "No value needed"
+msgstr ""
+
+msgid "No values available"
+msgstr ""
+
+msgid "No work center utilization data within range"
+msgstr ""
+
+msgid "No work centers exist"
+msgstr ""
+
+msgid "Nominal Cost"
+msgstr ""
+
+msgid "Non Conformance Type"
+msgstr ""
+
+msgid "Non-Inventory"
+msgstr ""
+
+msgid "Non-Inventory Tracking"
+msgstr ""
+
+msgid "Non-Taxable Add-On Cost"
+msgstr ""
+
+msgid "None"
+msgstr ""
+
+msgid "Not enough jobs to cover quantity"
+msgstr ""
+
+msgid "Not Required"
+msgstr ""
+
+msgid "Not set"
+msgstr ""
+
+msgid "Not started training for"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Notes"
+msgstr ""
+
+msgid "Notes (optional)"
+msgstr ""
+
+msgid "Nothing in the archive"
+msgstr ""
+
+msgid "Notification"
+msgstr ""
+
+msgid "Notifications"
+msgstr ""
+
+msgid "Now let's set up your company"
+msgstr ""
+
+msgid "Number"
+msgstr ""
+
+msgid "Number of inventory units per purchase unit"
+msgstr ""
+
+msgid "OEE Impact"
+msgstr ""
+
+msgid "of"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "On Hand"
+msgstr ""
+
+msgid "On Hold"
+msgstr ""
+
+msgid "On Jobs"
+msgstr ""
+
+msgid "On Purchase Order"
+msgstr ""
+
+msgid "On Sales Order"
+msgstr ""
+
+msgid "On Storage Unit"
+msgstr ""
+
+msgid "Onshape Status"
+msgstr ""
+
+msgid "Oops! The link you're trying to access has expired or is no longer valid."
+msgstr ""
+
+msgid "Oops! The link you're trying to access is not valid."
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Open Actions"
+msgstr ""
+
+msgid "Open chat history"
+msgstr ""
+
+msgid "Open Date"
+msgstr ""
+
+msgid "Open Dispatches"
+msgstr ""
+
+msgid "Open Issues"
+msgstr ""
+
+msgid "Open menu"
+msgstr ""
+
+msgid "Open Purchase Invoices"
+msgstr ""
+
+msgid "Open Purchase Orders"
+msgstr ""
+
+msgid "Open Quotes"
+msgstr ""
+
+msgid "Open Reactive"
+msgstr ""
+
+msgid "Open RFQs"
+msgstr ""
+
+msgid "Open Sales Orders"
+msgstr ""
+
+msgid "Open Scheduled"
+msgstr ""
+
+msgid "Open task details"
+msgstr ""
+
+msgid "Operation"
+msgstr ""
+
+msgid "Operation Order"
+msgstr ""
+
+msgid "Operation Type"
+msgstr ""
+
+msgid "Operations"
+msgstr ""
+
+msgid "Operations Type"
+msgstr ""
+
+msgid "Operator"
+msgstr ""
+
+msgid "Operator gets a warning. Stock still goes through."
+msgstr ""
+
+msgid "Operator must pick a different batch/serial."
+msgstr ""
+
+msgid "Operators"
+msgstr ""
+
+msgid "Operators can use shared workstations with PIN authentication."
+msgstr ""
+
+msgid "Opportunity"
+msgstr ""
+
+msgid "Optional"
+msgstr ""
+
+msgid "Optional context for this rule"
+msgstr ""
+
+msgid "Options"
+msgstr ""
+
+msgid "Order"
+msgstr ""
+
+msgid "Order Date"
+msgstr ""
+
+msgid "Order Multiple"
+msgstr ""
+
+msgid "Order Parts"
+msgstr ""
+
+msgid "Order Qty"
+msgstr ""
+
+msgid "Order Total"
+msgstr ""
+
+msgid "Ordered"
+msgstr ""
+
+msgid "Ordering"
+msgstr ""
+
+msgid "Orders"
+msgstr ""
+
+msgid "Orders submitted"
+msgstr ""
+
+msgid "Other Type"
+msgstr ""
+
+msgid "Outgoing"
+msgstr ""
+
+msgid "Output"
+msgstr ""
+
+msgid "Output never outlasts its raw materials. Falls back to the fixed duration when no input has an expiry date."
+msgstr ""
+
+msgid "Overdue"
+msgstr ""
+
+msgid "Overhead Rate"
+msgstr ""
+
+msgid "Overhead Rate (Hourly)"
+msgstr ""
+
+msgid "Override needs the inventory:update permission and a reason."
+msgstr ""
+
+msgid "Override Price"
+msgstr ""
+
+msgid "Override price for a single customer"
+msgstr ""
+
+msgid "Override price for all customers of a type"
+msgstr ""
+
+msgid "Override the expiration on {label}."
+msgstr ""
+
+msgid "Overtime"
+msgstr ""
+
+msgid "Overwrite Existing"
+msgstr ""
+
+msgid "Overwrite Permissions"
+msgstr ""
+
+msgid "Overwrite the quote method with the source method"
+msgstr ""
+
+msgid "Overwrite the target manufacturing method with the quote method"
+msgstr ""
+
+msgid "Packing Slip"
+msgstr ""
+
+msgid "Paid Amount:"
+msgstr ""
+
+msgid "Paid Date"
+msgstr ""
+
+msgid "Parameters"
+msgstr ""
+
+msgid "Parameters are inherited from the procedure."
+msgstr ""
+
+msgid "Params"
+msgstr ""
+
+msgid "Parent Department"
+msgstr ""
+
+msgid "Parent Group"
+msgstr ""
+
+msgid "Parent Storage Unit"
+msgstr ""
+
+msgid "Pareto by Type"
+msgstr ""
+
+msgid "Part"
+msgstr ""
+
+msgid "Part Details"
+msgstr ""
+
+msgid "Part ID"
+msgstr ""
+
+msgid "Part is configured for manufacturing"
+msgstr ""
+
+msgid "Part thumbnails are shown on purchase order PDFs."
+msgstr ""
+
+msgid "Part thumbnails are shown on sales PDFs."
+msgstr ""
+
+msgid "Partial"
+msgstr ""
+
+msgid "Partner"
+msgstr ""
+
+msgid "Partners"
+msgstr ""
+
+msgid "Parts"
+msgstr ""
+
+msgid "Pass"
+msgstr ""
+
+msgid "Path"
+msgstr ""
+
+msgid "Payment"
+msgstr ""
+
+msgid "Payment Method"
+msgstr ""
+
+msgid "Payment Term"
+msgstr ""
+
+msgid "Payment Terms"
+msgstr ""
+
+msgid "PDF"
+msgstr ""
+
+msgid "PDF Watermark"
+msgstr ""
+
+msgid "PDFs"
+msgstr ""
+
+msgid "Pending"
+msgstr ""
+
+msgid "People"
+msgstr ""
+
+msgid "Per Unit"
+msgstr ""
+
+msgid "Percentage of Lot"
+msgstr ""
+
+msgid "Perfect for low-cost evaluation"
+msgstr ""
+
+msgid "Period"
+msgstr ""
+
+msgid "Permanently Delete"
+msgstr ""
+
+msgid "Permissions"
+msgstr ""
+
+msgid "Phone"
+msgstr ""
+
+msgid "Phone Number"
+msgstr ""
+
+msgid "Photo removed successfully"
+msgstr ""
+
+msgid "Photo uploaded successfully"
+msgstr ""
+
+msgid "Pick"
+msgstr ""
+
+msgid "Pick a column to sort by"
+msgstr ""
+
+msgid "Pick a customer or customer type to view their pricing."
+msgstr ""
+
+msgid "Pick a date or leave blank to clear it."
+msgstr ""
+
+msgid "Pick an existing rule from the library or create a new one to start enforcing constraints on this item."
+msgstr ""
+
+msgid "Pick List"
+msgstr ""
+
+msgid "Pieces/Hour"
+msgstr ""
+
+msgid "Pieces/Minute"
+msgstr ""
+
+msgid "Pinned"
+msgstr ""
+
+msgid "Plan"
+msgstr ""
+
+msgid "Plan Type"
+msgstr ""
+
+msgid "Planned End"
+msgstr ""
+
+msgid "Planned End Time"
+msgstr ""
+
+msgid "Planned Start"
+msgstr ""
+
+msgid "Planned Start Time"
+msgstr ""
+
+msgid "Planning"
+msgstr ""
+
+msgid "Please contact your administrator to enable audit logging."
+msgstr ""
+
+msgid "Please enter your email address"
+msgstr ""
+
+msgid "Please enter your name"
+msgstr ""
+
+msgid "Please fill out all required fields"
+msgstr ""
+
+msgid "Please save the operation before adding parameters."
+msgstr ""
+
+msgid "Please save the operation before adding steps."
+msgstr ""
+
+msgid "Please save the operation before adding tools."
+msgstr ""
+
+msgid "Please select an item"
+msgstr ""
+
+msgid "Please upload a CSV file of your data"
+msgstr ""
+
+msgid "PO"
+msgstr ""
+
+msgid "PO Number"
+msgstr ""
+
+msgid "Policy & Procedure"
+msgstr ""
+
+msgid "Portal Link"
+msgstr ""
+
+msgid "Portals"
+msgstr ""
+
+msgid "Positive Adjustment"
+msgstr ""
+
+msgid "Positive feedback"
+msgstr ""
+
+msgid "Post"
+msgstr ""
+
+msgid "Post Comment"
+msgstr ""
+
+msgid "Post Invoice"
+msgstr ""
+
+msgid "Post Receipt"
+msgstr ""
+
+msgid "Post Shipment"
+msgstr ""
+
+msgid "Postal Code"
+msgstr ""
+
+msgid "Posted"
+msgstr ""
+
+msgid "Posted By"
+msgstr ""
+
+msgid "Posting Date"
+msgstr ""
+
+msgid "Posting Groups"
+msgstr ""
+
+msgid "Potential Data Loss"
+msgstr ""
+
+msgid "Pre-filled for a new item when expiry is Fixed Duration."
+msgstr ""
+
+msgid "Preferred Supplier"
+msgstr ""
+
+msgid "Prefix"
+msgstr ""
+
+msgid "Prev"
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Preview Quantity"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Previous Date"
+msgstr ""
+
+msgid "Price break actions"
+msgstr ""
+
+msgid "Price Break History"
+msgstr ""
+
+msgid "Price Breaks"
+msgstr ""
+
+msgid "Price List"
+msgstr ""
+
+msgid "Price Lists"
+msgstr ""
+
+msgid "Prices"
+msgstr ""
+
+msgid "Pricing"
+msgstr ""
+
+msgid "Pricing Rule"
+msgstr ""
+
+msgid "Pricing Rules"
+msgstr ""
+
+msgid "Pricing Trace"
+msgstr ""
+
+msgid "Print Label"
+msgstr ""
+
+msgid "Priorities"
+msgstr ""
+
+msgid "Priority"
+msgstr ""
+
+msgid "Privacy Policy"
+msgstr ""
+
+msgid "Private"
+msgstr ""
+
+msgid "Procedure"
+msgstr ""
+
+msgid "Procedures"
+msgstr ""
+
+msgid "Process"
+msgstr ""
+
+msgid "Process Name"
+msgstr ""
+
+msgid "Process Type"
+msgstr ""
+
+msgid "Processes"
+msgstr ""
+
+msgid "Product Label Size"
+msgstr ""
+
+msgid "Production"
+msgstr ""
+
+msgid "Production Event"
+msgstr ""
+
+msgid "Production Events"
+msgstr ""
+
+msgid "Production Qty"
+msgstr ""
+
+msgid "Production Quantities"
+msgstr ""
+
+msgid "Production Quantity"
+msgstr ""
+
+msgid "Profile"
+msgstr ""
+
+msgid "Progress"
+msgstr ""
+
+msgid "Project"
+msgstr ""
+
+msgid "Projections"
+msgstr ""
+
+msgid "Promised Date"
+msgstr ""
+
+msgid "Properties"
+msgstr ""
+
+msgid "Public"
+msgstr ""
+
+msgid "Publish"
+msgstr ""
+
+msgid "Published by Carbon"
+msgstr ""
+
+msgid "Pull From"
+msgstr ""
+
+msgid "Pull from Inventory"
+msgstr ""
+
+msgid "Purchase History"
+msgstr ""
+
+msgid "Purchase Invoice"
+msgstr ""
+
+msgid "Purchase Invoice Amount"
+msgstr ""
+
+msgid "Purchase Invoice Line"
+msgstr ""
+
+msgid "Purchase Invoices"
+msgstr ""
+
+msgid "Purchase Order"
+msgstr ""
+
+msgid "Purchase Order Amount"
+msgstr ""
+
+msgid "Purchase Order approval rule"
+msgstr ""
+
+msgid "Purchase Order ID"
+msgstr ""
+
+msgid "Purchase Order Line"
+msgstr ""
+
+msgid "Purchase Order Location"
+msgstr ""
+
+msgid "Purchase order removed successfully"
+msgstr ""
+
+msgid "Purchase Orders"
+msgstr ""
+
+msgid "Purchase orders required"
+msgstr ""
+
+msgid "Purchase Price Updates"
+msgstr ""
+
+msgid "Purchase Qty"
+msgstr ""
+
+msgid "Purchase to Order"
+msgstr ""
+
+msgid "Purchase Unit of Measure"
+msgstr ""
+
+msgid "Purchase Unit:"
+msgstr ""
+
+msgid "Purchased"
+msgstr ""
+
+msgid "Purchasing"
+msgstr ""
+
+msgid "Purchasing Contact"
+msgstr ""
+
+msgid "Purchasing Terms & Conditions"
+msgstr ""
+
+msgid "Purchasing Unit of Measure"
+msgstr ""
+
+msgid "Push record changes to external systems the moment they happen."
+msgstr ""
+
+#. placeholder {0}: row.original.replenishmentSystem === "Make" ? "Job" : "Order"
+msgid "QR Code to create a {0} for this kanban"
+msgstr ""
+
+msgid "QR Code to start the next operation for this kanban"
+msgstr ""
+
+msgid "Qty to Order"
+msgstr ""
+
+msgid "Qty. Complete"
+msgstr ""
+
+msgid "Qty. per Parent"
+msgstr ""
+
+msgid "Qty. Reworked"
+msgstr ""
+
+msgid "Qty. Scrapped"
+msgstr ""
+
+msgid "Quality"
+msgstr ""
+
+msgid "Quality Document approval rule"
+msgstr ""
+
+msgid "Quality Documents"
+msgstr ""
+
+msgid "Quality Type"
+msgstr ""
+
+msgid "Quantities"
+msgstr ""
+
+msgid "Quantity"
+msgstr ""
+
+msgid "Quantity Completed"
+msgstr ""
+
+msgid "Quantity is derived from completed serials/batches in MES and cannot be edited."
+msgstr ""
+
+msgid "Quantity must be greater than 0"
+msgstr ""
+
+msgid "Quantity on Hand"
+msgstr ""
+
+msgid "Quantity on Jobs"
+msgstr ""
+
+msgid "Quantity on Purchase Order"
+msgstr ""
+
+msgid "Quantity on Sales Order"
+msgstr ""
+
+msgid "Quantity Per Job"
+msgstr ""
+
+msgid "Quantity per Parent"
+msgstr ""
+
+msgid "Quantity Type"
+msgstr ""
+
+msgid "Question"
+msgstr ""
+
+msgid "Quote"
+msgstr ""
+
+msgid "Quote Accepted By"
+msgstr ""
+
+msgid "Quote Accepted By Email"
+msgstr ""
+
+msgid "Quote expired"
+msgstr ""
+
+msgid "Quote ID"
+msgstr ""
+
+msgid "Quote Line"
+msgstr ""
+
+msgid "Quote Location"
+msgstr ""
+
+msgid "Quote Markups"
+msgstr ""
+
+msgid "Quote Materials"
+msgstr ""
+
+msgid "Quote not found"
+msgstr ""
+
+msgid "Quote Number"
+msgstr ""
+
+msgid "Quoted Date"
+msgstr ""
+
+msgid "Quotes"
+msgstr ""
+
+msgid "Rate Limit"
+msgstr ""
+
+msgid "Reactivate"
+msgstr ""
+
+msgid "Read rows"
+msgstr ""
+
+msgid "Ready for Quote"
+msgstr ""
+
+msgid "Reason"
+msgstr ""
+
+msgid "Reason for declining (Optional)"
+msgstr ""
+
+msgid "Reasons"
+msgstr ""
+
+msgid "Reassign specific tracked entities from this row to another disposition row."
+msgstr ""
+
+msgid "Recalculate"
+msgstr ""
+
+msgid "Recalculate Unit Cost"
+msgstr ""
+
+msgid "Receipt"
+msgstr ""
+
+msgid "Receipt ID"
+msgstr ""
+
+msgid "Receipt Line"
+msgstr ""
+
+msgid "Receipt Lines"
+msgstr ""
+
+msgid "Receipt Promised Date"
+msgstr ""
+
+msgid "Receipt Requested Date"
+msgstr ""
+
+msgid "Receipts"
+msgstr ""
+
+msgid "Receive"
+msgstr ""
+
+#. placeholder {0}: job.jobId
+msgid "Receive {0} to Inventory"
+msgstr ""
+
+msgid "Receive to Inventory"
+msgstr ""
+
+msgid "Received At"
+msgstr ""
+
+msgid "Received By"
+msgstr ""
+
+msgid "Received Qty"
+msgstr ""
+
+msgid "Receiving Location"
+msgstr ""
+
+msgid "Recent"
+msgstr ""
+
+msgid "Recently Created"
+msgstr ""
+
+msgid "Record"
+msgstr ""
+
+msgid "Record deleted"
+msgstr ""
+
+msgid "Records"
+msgstr ""
+
+msgid "Redirecting to verification page..."
+msgstr ""
+
+msgid "Reference"
+msgstr ""
+
+msgid "Refresh"
+msgstr ""
+
+msgid "Refresh exchange rate"
+msgstr ""
+
+msgid "Reject"
+msgstr ""
+
+msgid "Reject Lot"
+msgstr ""
+
+msgid "Reject Quote"
+msgstr ""
+
+msgid "Rejected"
+msgstr ""
+
+msgid "Rejected By"
+msgstr ""
+
+msgid "Rejected Date"
+msgstr ""
+
+msgid "Release"
+msgstr ""
+
+msgid "Release Job"
+msgstr ""
+
+msgid "Released"
+msgstr ""
+
+msgid "Remaining after split stays on the original row."
+msgstr ""
+
+msgid "Remember this PIN. You will need it to exit console mode on MES terminals."
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+#. placeholder {0}: item.label
+msgid "Remove {0}"
+msgstr ""
+
+msgid "Remove attachment"
+msgstr ""
+
+msgid "Remove condition"
+msgstr ""
+
+msgid "Remove filter"
+msgstr ""
+
+msgid "Remove Filters"
+msgstr ""
+
+msgid "Remove from Price List"
+msgstr ""
+
+msgid "Remove item"
+msgstr ""
+
+msgid "Remove negative feedback"
+msgstr ""
+
+msgid "Remove order"
+msgstr ""
+
+msgid "Remove Order"
+msgstr ""
+
+msgid "Remove pair"
+msgstr ""
+
+msgid "Remove positive feedback"
+msgstr ""
+
+msgid "Remove sort by column"
+msgstr ""
+
+msgid "Remove this storage type from all referencing storage units and delete it. This cannot be undone."
+msgstr ""
+
+msgid "Remove Transfer"
+msgstr ""
+
+msgid "Reopen"
+msgstr ""
+
+msgid "Reorder"
+msgstr ""
+
+msgid "Reorder Group"
+msgstr ""
+
+msgid "Reorder Point"
+msgstr ""
+
+msgid "Reorder Point:"
+msgstr ""
+
+msgid "Reorder Policy"
+msgstr ""
+
+msgid "Reorder Policy:"
+msgstr ""
+
+msgid "Reorder Qty."
+msgstr ""
+
+msgid "Reorder Quantity"
+msgstr ""
+
+msgid "Reorder Quantity:"
+msgstr ""
+
+msgid "Reordering Policy"
+msgstr ""
+
+msgid "Replace existing pricing with source values"
+msgstr ""
+
+msgid "Replenishment"
+msgstr ""
+
+msgid "Replenishment System"
+msgstr ""
+
+msgid "Report"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Request Approval"
+msgstr ""
+
+msgid "Requested Date"
+msgstr ""
+
+msgid "Require approval before suppliers can be set to Active"
+msgstr ""
+
+msgid "Require approval for purchase orders based on amount thresholds"
+msgstr ""
+
+msgid "Require approval for quality documents in your workflow"
+msgstr ""
+
+msgid "Required"
+msgstr ""
+
+msgid "Required Action"
+msgstr ""
+
+msgid "Required Actions"
+msgstr ""
+
+msgid "Required Date"
+msgstr ""
+
+msgid "Requires Action"
+msgstr ""
+
+msgid "Requires Adjustment"
+msgstr ""
+
+msgid "Requires Inspection"
+msgstr ""
+
+msgid "Requires Repair"
+msgstr ""
+
+msgid "Reserved"
+msgstr ""
+
+msgid "Reset"
+msgstr ""
+
+msgid "Reset PIN"
+msgstr ""
+
+#. placeholder {0}: operator.firstName
+#. placeholder {1}: operator.lastName
+msgid "Reset PIN for {0} {1}"
+msgstr ""
+
+msgid "Resolve these before completing the NCR: every row must have a non-Pending disposition, and its linked entity quantities must match the row quantity."
+msgstr ""
+
+msgid "Resolved Price"
+msgstr ""
+
+msgid "Resources"
+msgstr ""
+
+msgid "Restore from Trash"
+msgstr ""
+
+msgid "Restore tracked entities to available"
+msgstr ""
+
+msgid "Result"
+msgstr ""
+
+msgid "Results"
+msgstr ""
+
+msgid "Results per page"
+msgstr ""
+
+msgid "Retry"
+msgstr ""
+
+msgid "Retry response"
+msgstr ""
+
+msgid "Return Home"
+msgstr ""
+
+msgid "Rev {revision}"
+msgstr ""
+
+msgid "Reverse all inventory adjustments"
+msgstr ""
+
+msgid "Reverse all journal and cost ledger entries"
+msgstr ""
+
+msgid "Reverse any item ledger entries from this invoice"
+msgstr ""
+
+msgid "Reverse the related journal entries"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+#. placeholder {0}: revision.revision
+msgid "Revision {0}"
+msgstr ""
+
+msgid "Revoke"
+msgstr ""
+
+msgid "Revoke Invite"
+msgstr ""
+
+msgid "Revoke Invites"
+msgstr ""
+
+msgid "RFQ"
+msgstr ""
+
+msgid "RFQ Date"
+msgstr ""
+
+msgid "RFQ has no customer"
+msgstr ""
+
+msgid "RFQ has no suppliers"
+msgstr ""
+
+msgid "RFQ ID"
+msgstr ""
+
+msgid "RFQ Location"
+msgstr ""
+
+msgid "RFQ Number"
+msgstr ""
+
+msgid "RFQs"
+msgstr ""
+
+msgid "Right item"
+msgstr ""
+
+msgid "Risk"
+msgstr ""
+
+msgid "Risks"
+msgstr ""
+
+msgid "Role"
+msgstr ""
+
+msgid "Role:"
+msgstr ""
+
+msgid "rows"
+msgstr ""
+
+msgid "Rule"
+msgstr ""
+
+msgid "Rule applies to every customer."
+msgstr ""
+
+msgid "Rule applies to every item."
+msgstr ""
+
+msgid "Rule Type"
+msgstr ""
+
+msgid "Rule Violation"
+msgstr ""
+
+msgid "Rules"
+msgstr ""
+
+msgid "Run Test"
+msgstr ""
+
+msgid "Running Total"
+msgstr ""
+
+msgid "Safety Stock"
+msgstr ""
+
+msgid "Safety Stock:"
+msgstr ""
+
+msgid "Sale Price"
+msgstr ""
+
+msgid "Sales"
+msgstr ""
+
+msgid "Sales Contact"
+msgstr ""
+
+msgid "Sales Funnel"
+msgstr ""
+
+msgid "Sales Invoice"
+msgstr ""
+
+msgid "Sales Invoice Line"
+msgstr ""
+
+msgid "Sales Invoices"
+msgstr ""
+
+msgid "Sales Job Notifications"
+msgstr ""
+
+msgid "Sales Order"
+msgstr ""
+
+msgid "Sales Order ID"
+msgstr ""
+
+msgid "Sales Order Line"
+msgstr ""
+
+msgid "Sales Order Location"
+msgstr ""
+
+msgid "Sales Order Number"
+msgstr ""
+
+msgid "Sales Orders"
+msgstr ""
+
+msgid "Sales Person"
+msgstr ""
+
+msgid "Sales Revenue"
+msgstr ""
+
+msgid "Sales Terms & Conditions"
+msgstr ""
+
+msgid "Sample"
+msgstr ""
+
+msgid "Sample Size"
+msgstr ""
+
+msgid "Sampling Plan"
+msgstr ""
+
+msgid "Sampling Standard"
+msgstr ""
+
+msgid "Saturday"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Save & Close"
+msgstr ""
+
+msgid "Save and Overwrite"
+msgstr ""
+
+msgid "Save Method"
+msgstr ""
+
+msgid "Save View"
+msgstr ""
+
+msgid "Scan"
+msgstr ""
+
+msgid "Scan a label or search by ID, serial number, or batch number."
+msgstr ""
+
+msgid "Scan or enter tracked entity ID, serial, or batch"
+msgstr ""
+
+msgid "Scan or search..."
+msgstr ""
+
+msgid "Scan or select a tracked entity from this lot and record the inspection result."
+msgstr ""
+
+msgid "Scan the tracking ID for this line"
+msgstr ""
+
+msgid "SCAR"
+msgstr ""
+
+msgid "Schedule"
+msgstr ""
+
+msgid "Schedule Name"
+msgstr ""
+
+msgid "Scheduled Maintenance"
+msgstr ""
+
+msgid "Scheduled Maintenances"
+msgstr ""
+
+msgid "Schedules"
+msgstr ""
+
+msgid "Scope"
+msgstr ""
+
+msgid "Scopes"
+msgstr ""
+
+msgid "Scrap Percent"
+msgstr ""
+
+msgid "Scrap Qty"
+msgstr ""
+
+msgid "Scrap Quantity"
+msgstr ""
+
+msgid "Scrap Quantity Per Job"
+msgstr ""
+
+msgid "Scrap Reason"
+msgstr ""
+
+msgid "Scrap Reasons"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Search across your workspace..."
+msgstr ""
+
+msgid "Search by Jira issue title..."
+msgstr ""
+
+msgid "Search by linear issue title..."
+msgstr ""
+
+msgid "Search customers and types..."
+msgstr ""
+
+msgid "Search customers or types..."
+msgstr ""
+
+msgid "Search employees..."
+msgstr ""
+
+msgid "Search fields..."
+msgstr ""
+
+msgid "Search for existing or create a new one"
+msgstr ""
+
+msgid "Search history"
+msgstr ""
+
+msgid "Search Job"
+msgstr ""
+
+msgid "Search operators..."
+msgstr ""
+
+msgid "Search processes..."
+msgstr ""
+
+msgid "Search related items..."
+msgstr ""
+
+msgid "Search suppliers..."
+msgstr ""
+
+#. js-lingui-explicit-id
+msgid "Search the web"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Seconds/Piece"
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select a assignee"
+msgstr ""
+
+msgid "Select a default approver"
+msgstr ""
+
+msgid "Select a new owner"
+msgstr ""
+
+msgid "Select a plan"
+msgstr ""
+
+#. placeholder {0}: plans[0].stripeTrialPeriodDays
+msgid "Select a plan to get started. You won't be charged for the first {0} days. Switch or cancel anytime."
+msgstr ""
+
+msgid "Select a project"
+msgstr ""
+
+msgid "Select a quote"
+msgstr ""
+
+msgid "Select a quote line"
+msgstr ""
+
+msgid "Select a reason for why the quote was not created."
+msgstr ""
+
+msgid "Select a team"
+msgstr ""
+
+msgid "Select an assignee"
+msgstr ""
+
+msgid "Select an issue type"
+msgstr ""
+
+msgid "Select an item and specify the quantity to issue"
+msgstr ""
+
+msgid "Select an item first"
+msgstr ""
+
+msgid "Select an item to configure"
+msgstr ""
+
+msgid "Select an option"
+msgstr ""
+
+msgid "Select Contact"
+msgstr ""
+
+msgid "Select Customer Status"
+msgstr ""
+
+msgid "Select Customer Type"
+msgstr ""
+
+msgid "Select customer types"
+msgstr ""
+
+msgid "Select customers"
+msgstr ""
+
+msgid "Select date range to filter net change and balance at date"
+msgstr ""
+
+msgid "Select Employee"
+msgstr ""
+
+msgid "Select Employee Type"
+msgstr ""
+
+msgid "Select field"
+msgstr ""
+
+msgid "Select Gauge"
+msgstr ""
+
+msgid "Select groups or individuals"
+msgstr ""
+
+msgid "Select Item Type"
+msgstr ""
+
+msgid "Select items"
+msgstr ""
+
+msgid "Select Quantities"
+msgstr ""
+
+msgid "Select Row"
+msgstr ""
+
+msgid "Select scope"
+msgstr ""
+
+msgid "Select Supplier Status"
+msgstr ""
+
+msgid "Select Supplier Type"
+msgstr ""
+
+msgid "Select surfaces"
+msgstr ""
+
+msgid "Select the groups that should complete this training"
+msgstr ""
+
+msgid "Select value"
+msgstr ""
+
+msgid "Select values"
+msgstr ""
+
+msgid "Selected"
+msgstr ""
+
+msgid "Selected Operation"
+msgstr ""
+
+#. placeholder {0}: target.maxQuantity - selectedSum
+msgid "Selected: {selectedSum} / remaining after split: {0}"
+msgstr ""
+
+msgid "Self Managed"
+msgstr ""
+
+msgid "Self-Onboarding with Carbon Academy"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Send Invite"
+msgstr ""
+
+msgid "Send Invites"
+msgstr ""
+
+msgid "Send RFQ to Suppliers"
+msgstr ""
+
+msgid "Send Via"
+msgstr ""
+
+msgid "Sends this document for approval before it can go active."
+msgstr ""
+
+msgid "Sequences"
+msgstr ""
+
+msgid "Serial"
+msgstr ""
+
+msgid "Serial / Batch"
+msgstr ""
+
+msgid "Serial items require a sales order"
+msgstr ""
+
+msgid "Serial Number"
+msgstr ""
+
+msgid "Serial number not found"
+msgstr ""
+
+msgid "Serial Number:"
+msgstr ""
+
+msgid "Serial or Batch Tracking Required"
+msgstr ""
+
+msgid "Serial Tracking"
+msgstr ""
+
+msgid "Serial/Batch #"
+msgstr ""
+
+msgid "Set Clock Out"
+msgstr ""
+
+msgid "Set clock-out time"
+msgstr ""
+
+msgid "Set Console PIN"
+msgstr ""
+
+msgid "Set default markup percentages for each cost category on new quote lines"
+msgstr ""
+
+msgid "Set due date"
+msgstr ""
+
+msgid "Set Pricing"
+msgstr ""
+
+msgid "Set Quantity"
+msgstr ""
+
+#. placeholder {0}: selectedVersion.version
+msgid "Set Version {0} as Active Version?"
+msgstr ""
+
+msgid "Set your default location in profile settings to pick a storage unit."
+msgstr ""
+
+msgid "Settings"
+msgstr ""
+
+msgid "Setup"
+msgstr ""
+
+msgid "Setup instructions"
+msgstr ""
+
+msgid "Setup Time"
+msgstr ""
+
+msgid "Setup Unit"
+msgstr ""
+
+msgid "Severities"
+msgstr ""
+
+msgid "Severity"
+msgstr ""
+
+msgid "Shape"
+msgstr ""
+
+msgid "Shapes"
+msgstr ""
+
+msgid "Share"
+msgstr ""
+
+msgid "Share Link"
+msgstr ""
+
+msgid "Share Quote"
+msgstr ""
+
+msgid "Shelf life"
+msgstr ""
+
+msgid "Shelf Life (Days)"
+msgstr ""
+
+msgid "Shelf Life Start Process"
+msgstr ""
+
+msgid "Shelf-Life"
+msgstr ""
+
+msgid "Shift"
+msgstr ""
+
+msgid "Shift Name"
+msgstr ""
+
+msgid "Shifts"
+msgstr ""
+
+msgid "Ship"
+msgstr ""
+
+msgid "Ship some, stock some"
+msgstr ""
+
+msgid "Ship to Customer"
+msgstr ""
+
+msgid "Shipment"
+msgstr ""
+
+msgid "Shipment Date"
+msgstr ""
+
+msgid "Shipment ID"
+msgstr ""
+
+msgid "Shipment Line"
+msgstr ""
+
+msgid "Shipment Lines"
+msgstr ""
+
+msgid "Shipment Location"
+msgstr ""
+
+msgid "Shipments"
+msgstr ""
+
+msgid "Shipped Qty"
+msgstr ""
+
+msgid "Shipping"
+msgstr ""
+
+msgid "Shipping Contact"
+msgstr ""
+
+msgid "Shipping Cost"
+msgstr ""
+
+msgid "Shipping Customer"
+msgstr ""
+
+msgid "Shipping Location"
+msgstr ""
+
+msgid "Shipping Method"
+msgstr ""
+
+msgid "Shipping Methods"
+msgstr ""
+
+msgid "Shipping Notes"
+msgstr ""
+
+msgid "Shipping Supplier"
+msgstr ""
+
+msgid "Shipping:"
+msgstr ""
+
+msgid "Shop Floor"
+msgstr ""
+
+msgid "Short Description"
+msgstr ""
+
+msgid "Shortcuts"
+msgstr ""
+
+msgid "Show Durations"
+msgstr ""
+
+msgid "Show parent items"
+msgstr ""
+
+msgid "Show part thumbnails on purchase orders."
+msgstr ""
+
+msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."
+msgstr ""
+
+msgid "Show sync options"
+msgstr ""
+
+msgid "Shown as a faint background behind every page of generated PDFs"
+msgstr ""
+
+msgid "Shown to the user when this rule fails."
+msgstr ""
+
+msgid "Sign in with Email"
+msgstr ""
+
+msgid "Sign in with Google"
+msgstr ""
+
+msgid "Sign in with Outlook"
+msgstr ""
+
+msgid "Sign Out"
+msgstr ""
+
+msgid "Signed in as {name}"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Sizes"
+msgstr ""
+
+msgid "Skip Existing"
+msgstr ""
+
+msgid "Skip Holidays"
+msgstr ""
+
+msgid "Skip raw-material dates set at receipt. Only inputs with their own shelf-life policy count."
+msgstr ""
+
+msgid "Skip scheduled maintenance on company holidays"
+msgstr ""
+
+msgid "Skipped"
+msgstr ""
+
+msgid "Something went wrong. Please try again."
+msgstr ""
+
+msgid "Soonest expiry across every material sets the finished good."
+msgstr ""
+
+msgid "Sort"
+msgstr ""
+
+msgid "Sort Ascending"
+msgstr ""
+
+msgid "Sort by"
+msgstr ""
+
+msgid "Sort Descending"
+msgstr ""
+
+msgid "Source"
+msgstr ""
+
+msgid "Source Analysis"
+msgstr ""
+
+msgid "Source Document"
+msgstr ""
+
+msgid "Source Document ID"
+msgstr ""
+
+msgid "Source Item"
+msgstr ""
+
+msgid "Source Method"
+msgstr ""
+
+msgid "Source Version"
+msgstr ""
+
+msgid "Sources"
+msgstr ""
+
+msgid "Sourcing Type"
+msgstr ""
+
+msgid "Spare Part Consumption"
+msgstr ""
+
+msgid "Spare Part Cost"
+msgstr ""
+
+msgid "Specific Customer"
+msgstr ""
+
+msgid "Specific Customers"
+msgstr ""
+
+msgid "Specific Items"
+msgstr ""
+
+msgid "Split"
+msgstr ""
+
+msgid "Split line"
+msgstr ""
+
+msgid "Split off quantity"
+msgstr ""
+
+msgid "Split receipt line"
+msgstr ""
+
+msgid "Split shipment line"
+msgstr ""
+
+msgid "Standard"
+msgstr ""
+
+msgid "Standard Lead Time"
+msgstr ""
+
+msgid "Start"
+msgstr ""
+
+#. placeholder {0}: plan.stripeTrialPeriodDays
+msgid "Start {0} Day Free Trial"
+msgstr ""
+
+msgid "Start adding parts to your stock transfer"
+msgstr ""
+
+msgid "Start Date"
+msgstr ""
+
+msgid "Start Expiration"
+msgstr ""
+
+msgid "Start expiration on process end"
+msgstr ""
+
+msgid "Start expiration on process start"
+msgstr ""
+
+msgid "Start Learning"
+msgstr ""
+
+msgid "Start Now"
+msgstr ""
+
+msgid "Start of Fiscal Year"
+msgstr ""
+
+msgid "Start of Tax Year"
+msgstr ""
+
+msgid "Start Time"
+msgstr ""
+
+msgid "Started"
+msgstr ""
+
+msgid "State / Province"
+msgstr ""
+
+#. placeholder {0}: lotEntities.length
+#. placeholder {1}: Math.max(0, lotEntities.length - inspected)
+msgid "Statistical acceptance failed, so the entire lot is considered non-conforming (ISO 9001:2015 §8.7). All {0} entities — {passes} sampled pass(es), {fails} failure(s), and {1} un-inspected — will be marked Rejected. An NCR will be opened automatically for MRB disposition."
+msgstr ""
+
+msgid "Status"
+msgstr ""
+
+msgid "Status Distribution"
+msgstr ""
+
+msgid "Statuses"
+msgstr ""
+
+msgid "Step"
+msgstr ""
+
+msgid "Step Records"
+msgstr ""
+
+msgid "Steps"
+msgstr ""
+
+msgid "Stock Transfer ID"
+msgstr ""
+
+msgid "Stock Transfer Lines"
+msgstr ""
+
+msgid "Stock Transfer Notes"
+msgstr ""
+
+msgid "Stock Transfer Wizard"
+msgstr ""
+
+msgid "Stock Transfers"
+msgstr ""
+
+msgid "Storage Type"
+msgstr ""
+
+msgid "Storage Types"
+msgstr ""
+
+msgid "Storage Unit"
+msgstr ""
+
+msgid "Storage Units"
+msgstr ""
+
+msgid "Store a fixed number of days on this item. Expiry start date is set on each batch or serial when it's created (or when the trigger process runs, if set)."
+msgstr ""
+
+msgid "Store a fixed number of days on this item. Expiry start date is set on each batch or serial when it's received or created (or when the trigger process runs, if set)."
+msgstr ""
+
+msgid "Store a fixed number of days on this item. Expiry start date is set on each batch or serial when it's received."
+msgstr ""
+
+msgid "Style of kanban output to show in the Kanban table"
+msgstr ""
+
+msgid "Sub-assembly expiries only"
+msgstr ""
+
+msgid "Sub-Departments"
+msgstr ""
+
+msgid "Subassembly"
+msgstr ""
+
+msgid "Submit"
+msgstr ""
+
+msgid "Submit anonymously"
+msgstr ""
+
+msgid "Submit for approval"
+msgstr ""
+
+msgid "Submit Inspection"
+msgstr ""
+
+msgid "Submitted By"
+msgstr ""
+
+msgid "Subscribe to changes"
+msgstr ""
+
+msgid "Substance"
+msgstr ""
+
+msgid "Substances"
+msgstr ""
+
+msgid "Subtotal"
+msgstr ""
+
+msgid "Subtotal:"
+msgstr ""
+
+msgid "Success"
+msgstr ""
+
+msgid "Successfully copied quote"
+msgstr ""
+
+msgid "Successfully created a new revision"
+msgstr ""
+
+msgid "Suffix"
+msgstr ""
+
+msgid "Suggested Actions"
+msgstr ""
+
+msgid "Suggestion"
+msgstr ""
+
+msgid "Suggestion Notifications"
+msgstr ""
+
+msgid "Suggestions"
+msgstr ""
+
+msgid "Sunday"
+msgstr ""
+
+msgid "Supabase provides a wide range of filters."
+msgstr ""
+
+msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."
+msgstr ""
+
+msgid "Supplier"
+msgstr ""
+
+msgid "Supplier Accounts"
+msgstr ""
+
+msgid "Supplier added and selected"
+msgstr ""
+
+msgid "Supplier Contact"
+msgstr ""
+
+msgid "Supplier ID"
+msgstr ""
+
+msgid "Supplier Invoice Number"
+msgstr ""
+
+msgid "Supplier Location"
+msgstr ""
+
+msgid "Supplier Order Number"
+msgstr ""
+
+msgid "Supplier Overview"
+msgstr ""
+
+msgid "Supplier Part ID"
+msgstr ""
+
+msgid "Supplier Part Number"
+msgstr ""
+
+msgid "Supplier Parts"
+msgstr ""
+
+msgid "Supplier Processes"
+msgstr ""
+
+msgid "Supplier Quality"
+msgstr ""
+
+msgid "Supplier Quote"
+msgstr ""
+
+msgid "Supplier Quote ID"
+msgstr ""
+
+msgid "Supplier Quote Notifications"
+msgstr ""
+
+msgid "Supplier Quotes"
+msgstr ""
+
+msgid "Supplier Ref."
+msgstr ""
+
+msgid "Supplier Ref. Number"
+msgstr ""
+
+msgid "Supplier Reference"
+msgstr ""
+
+msgid "Supplier Status"
+msgstr ""
+
+msgid "Supplier Type"
+msgstr ""
+
+msgid "Supplier Types"
+msgstr ""
+
+msgid "Supplier Unit Price"
+msgstr ""
+
+msgid "Supplier updated"
+msgstr ""
+
+msgid "Supplier:"
+msgstr ""
+
+msgid "Suppliers"
+msgstr ""
+
+msgid "Supply"
+msgstr ""
+
+msgid "Supply & Demand"
+msgstr ""
+
+#. placeholder {0}: supportedModelTypes.join(", ")
+msgid "Supports {0} files"
+msgstr ""
+
+msgid "Surfaces"
+msgstr ""
+
+msgid "Suspected Failure Mode"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Sync"
+msgstr ""
+
+msgid "System"
+msgstr ""
+
+msgid "Table"
+msgstr ""
+
+msgid "Table actions"
+msgstr ""
+
+msgid "Tags"
+msgstr ""
+
+msgid "Take the shortest remaining shelf life across the materials consumed to make this item. Use when the product's expiry depends on its ingredients."
+msgstr ""
+
+msgid "Talk to Sales"
+msgstr ""
+
+msgid "Target"
+msgstr ""
+
+msgid "Target an item group."
+msgstr ""
+
+msgid "Target customers by type."
+msgstr ""
+
+msgid "Target disposition row"
+msgstr ""
+
+msgid "Target Item"
+msgstr ""
+
+msgid "Target Method"
+msgstr ""
+
+msgid "Target number of open issues shown as a reference line on the Issue Trend chart."
+msgstr ""
+
+msgid "Target one or more customers."
+msgstr ""
+
+msgid "Target one or more items."
+msgstr ""
+
+msgid "Target Version"
+msgstr ""
+
+msgid "Tasks"
+msgstr ""
+
+msgid "Tax"
+msgstr ""
+
+msgid "Tax & Additional Costs"
+msgstr ""
+
+msgid "Tax Amount"
+msgstr ""
+
+msgid "Tax ID"
+msgstr ""
+
+msgid "Tax Percent"
+msgstr ""
+
+msgid "Tax:"
+msgstr ""
+
+msgid "Temperature"
+msgstr ""
+
+msgid "Terms and Privacy"
+msgstr ""
+
+msgid "Terms of Service"
+msgstr ""
+
+msgid "Test Value"
+msgstr ""
+
+msgid "The amount of days after the calculation method that the cash discount is available"
+msgstr ""
+
+msgid "The amount of days after the calculation method that the payment is due"
+msgstr ""
+
+msgid "The billing address used on purchase orders and other purchasing documents."
+msgstr ""
+
+msgid "The billing address used on quotes, sales orders, invoices, and other sales documents."
+msgstr ""
+
+msgid "The date the customer expects to receive the goods"
+msgstr ""
+
+msgid "The endpoint that receives a POST request with the updated data when the table is updated"
+msgstr ""
+
+msgid "The following assemblies have no operations. Please assign an operation to each before releasing."
+msgstr ""
+
+msgid "The following line items are missing prices or lead times:"
+msgstr ""
+
+msgid "The lot will still be rejected, but an NCR cannot be auto-created until at least one Issue Type is configured."
+msgstr ""
+
+msgid "The new version number of the method"
+msgstr ""
+
+msgid "The number of hours per week the contractor is available to work."
+msgstr ""
+
+msgid "The percentage of the cash discount. Use 0 for no discount."
+msgstr ""
+
+msgid "The quantity of the item to be reordered on scan-based replenishment."
+msgstr ""
+
+msgid "The quote has been created"
+msgstr ""
+
+msgid "The quote will be copied with a revision suffix"
+msgstr ""
+
+msgid "The revision number of the part"
+msgstr ""
+
+msgid "The size of the part"
+msgstr ""
+
+msgid "The storage service didn't respond in time. Please try again."
+msgstr ""
+
+msgid "The unit price of the item at the time of the purchase"
+msgstr ""
+
+msgid "Theme"
+msgstr ""
+
+msgid "Theme Color"
+msgstr ""
+
+msgid "There are no active supplier quotes to compare for this RFQ."
+msgstr ""
+
+msgid "There are outside operations associated with this job that have no suppliers. Please assign a supplier to each outside operation before releasing it."
+msgstr ""
+
+msgid "These custom fields will only be available for entities with the same tags"
+msgstr ""
+
+msgid "These email addresses will be automatically CC'd on all emails sent to suppliers (quotes, purchase orders, etc.)."
+msgstr ""
+
+msgid "These email addresses will be automatically CC'd on all quote emails sent to customers."
+msgstr ""
+
+msgid "These jobs have operations assigned to this work center:"
+msgstr ""
+
+msgid "This information will be used on document headers"
+msgstr ""
+
+msgid "This information will be visible to all users, so be careful what you share."
+msgstr ""
+
+msgid "This is a unique identifier for the webhook"
+msgstr ""
+
+msgid "This is the month your fiscal year starts."
+msgstr ""
+
+msgid "This is the month your tax year starts."
+msgstr ""
+
+msgid "This item's bill of materials has no inputs with shelf-life enabled, so no expiry will be calculated from the BOM."
+msgstr ""
+
+msgid "This job will be received to inventory. It will no longer be available on the shop floor."
+msgstr ""
+
+msgid "This job will no longer be available on the shop floor."
+msgstr ""
+
+msgid "This sales order has lines that require jobs to be created"
+msgstr ""
+
+#. placeholder {0}: usageCount === 1 ? "" : "s"
+msgid "This storage type is currently used by {usageCount} storage unit{0}."
+msgstr ""
+
+msgid "This updates the theme for all users of the application"
+msgstr ""
+
+msgid "This will make this version read-only and replace any material make methods with this version."
+msgstr ""
+
+msgid "This will overwrite the existing job method"
+msgstr ""
+
+msgid "This will overwrite the existing manufacturing method and the latest versions of all subassemblies."
+msgstr ""
+
+msgid "This will overwrite the existing quote method"
+msgstr ""
+
+msgid "This will recalculate the unit cost from the active make method's bill of materials and processes using the batch size. The current cost will be overwritten. Do you want to continue?"
+msgstr ""
+
+msgid "This will replace all method materials of other revisions with this revision."
+msgstr ""
+
+msgid "This will replace all method materials of other sizes with this size."
+msgstr ""
+
+msgid "Thumbnail"
+msgstr ""
+
+msgid "Thumbnail removed"
+msgstr ""
+
+msgid "Thumbnail uploaded"
+msgstr ""
+
+msgid "Thumbnails are included"
+msgstr ""
+
+msgid "Thumbnails are not included"
+msgstr ""
+
+msgid "Thursday"
+msgstr ""
+
+msgid "Timecard"
+msgstr ""
+
+msgid "Timecards"
+msgstr ""
+
+msgid "Timecards are disabled"
+msgstr ""
+
+msgid "Timecards are enabled"
+msgstr ""
+
+msgid "Timezone"
+msgstr ""
+
+msgid "Title"
+msgstr ""
+
+msgid "To Location"
+msgstr ""
+
+msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."
+msgstr ""
+
+msgid "To Receive"
+msgstr ""
+
+msgid "To Ship"
+msgstr ""
+
+msgid "To Ship and Receive"
+msgstr ""
+
+msgid "To Storage Unit"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Toggle"
+msgstr ""
+
+msgid "Toggle Assignee"
+msgstr ""
+
+msgid "Toggle break active"
+msgstr ""
+
+msgid "Toggle column"
+msgstr ""
+
+msgid "Toggle dark/light mode"
+msgstr ""
+
+msgid "Toggle durations"
+msgstr ""
+
+msgid "Toggle Explorer"
+msgstr ""
+
+msgid "Toggle level"
+msgstr ""
+
+msgid "Toggle Properties"
+msgstr ""
+
+msgid "Toggle views"
+msgstr ""
+
+msgid "Tolerance (+/-)"
+msgstr ""
+
+msgid "Tool"
+msgstr ""
+
+msgid "Tool Details"
+msgstr ""
+
+msgid "Tool ID"
+msgstr ""
+
+msgid "Tools"
+msgstr ""
+
+msgid "Total"
+msgstr ""
+
+msgid "Total Hours"
+msgstr ""
+
+msgid "Total Minutes"
+msgstr ""
+
+msgid "Total Price"
+msgstr ""
+
+msgid "Total Quantity"
+msgstr ""
+
+msgid "Total:"
+msgstr ""
+
+msgid "Traceability"
+msgstr ""
+
+msgid "Track"
+msgstr ""
+
+msgid "Track changes to key business entities including invoices, orders, customers, suppliers, and more."
+msgstr ""
+
+msgid "Track every change to your orders, invoices, customers, and more."
+msgstr ""
+
+msgid "Track every change to your orders, invoices, customers, suppliers, and more."
+msgstr ""
+
+msgid "Track when batches or serials of this item expire."
+msgstr ""
+
+msgid "Tracked Entities"
+msgstr ""
+
+msgid "Tracked Entity"
+msgstr ""
+
+msgid "Tracked entity already picked"
+msgstr ""
+
+msgid "Tracked entity ID is required but none was found"
+msgstr ""
+
+msgid "Tracking"
+msgstr ""
+
+msgid "Tracking ID"
+msgstr ""
+
+msgid "Tracking Labels"
+msgstr ""
+
+msgid "Tracking Number"
+msgstr ""
+
+msgid "Tracking Type"
+msgstr ""
+
+msgid "Tracking URL"
+msgstr ""
+
+msgid "Training"
+msgstr ""
+
+msgid "Training Assignments"
+msgstr ""
+
+msgid "Trainings"
+msgstr ""
+
+msgid "Transactions will create journal entries and update the general ledger."
+msgstr ""
+
+msgid "Transfer"
+msgstr ""
+
+msgid "Transfer Date"
+msgstr ""
+
+msgid "Transfer From"
+msgstr ""
+
+msgid "Transfer ID"
+msgstr ""
+
+msgid "Transfer Lines"
+msgstr ""
+
+msgid "Transfer Ownership"
+msgstr ""
+
+msgid "Transfer ownership of this company to another user"
+msgstr ""
+
+msgid "Transfer To"
+msgstr ""
+
+msgid "Transfers"
+msgstr ""
+
+msgid "Trash"
+msgstr ""
+
+msgid "Trial Balance"
+msgstr ""
+
+msgid "Tuesday"
+msgstr ""
+
+msgid "Type"
+msgstr ""
+
+msgid "Type a message..."
+msgstr ""
+
+msgid "Type of Permission Update"
+msgstr ""
+
+msgid "Type to search across your workspace"
+msgstr ""
+
+msgid "Type:"
+msgstr ""
+
+msgid "Types"
+msgstr ""
+
+msgid "Un-sampled entities will remain On Hold so you can keep inspecting and disposition later. Sampled outcomes are preserved."
+msgstr ""
+
+msgid "Unapproved Supplier"
+msgstr ""
+
+msgid "Unassign rule"
+msgstr ""
+
+msgid "Unassigned"
+msgstr ""
+
+msgid "Uninstall"
+msgstr ""
+
+msgid "Unique, uppercase, without spaces"
+msgstr ""
+
+msgid "Unit"
+msgstr ""
+
+msgid "Unit Cost"
+msgstr ""
+
+msgid "Unit of Measure"
+msgstr ""
+
+msgid "Unit of Measures"
+msgstr ""
+
+msgid "Unit Price"
+msgstr ""
+
+msgid "Unit Sale Price"
+msgstr ""
+
+msgid "Units"
+msgstr ""
+
+msgid "Unknown"
+msgstr ""
+
+msgid "unknown location"
+msgstr ""
+
+msgid "Unlimited Functional Support"
+msgstr ""
+
+msgid "Unlink"
+msgstr ""
+
+msgid "Unsupported source document type: {sourceDocument}"
+msgstr ""
+
+msgid "UoM"
+msgstr ""
+
+msgid "Update"
+msgstr ""
+
+msgid "Update Inventory"
+msgstr ""
+
+msgid "Update Jira issue"
+msgstr ""
+
+msgid "Update Kanban"
+msgstr ""
+
+msgid "Update Linear issue"
+msgstr ""
+
+msgid "Update part lead times from posted purchase receipts."
+msgstr ""
+
+msgid "Update Password"
+msgstr ""
+
+msgid "Update Permissions"
+msgstr ""
+
+msgid "Update prices on"
+msgstr ""
+
+msgid "Update Quantity"
+msgstr ""
+
+msgid "Update rows"
+msgstr ""
+
+msgid "Update Rule"
+msgstr ""
+
+msgid "Update source document quantities"
+msgstr ""
+
+msgid "Update the kanban information for scan-based replenishment."
+msgstr ""
+
+msgid "Update the purchase order quantities"
+msgstr ""
+
+msgid "Updated"
+msgstr ""
+
+msgid "Updated account"
+msgstr ""
+
+msgid "Updated At"
+msgstr ""
+
+msgid "Updated By"
+msgstr ""
+
+msgid "Updated successfully"
+msgstr ""
+
+msgid "Upgrade"
+msgstr ""
+
+msgid "Upgrade to Business"
+msgstr ""
+
+msgid "Upgrade to unlock audit history"
+msgstr ""
+
+msgid "Upgrade to unlock item rules"
+msgstr ""
+
+msgid "Upload"
+msgstr ""
+
+msgid "Upload completed but no file path returned"
+msgstr ""
+
+msgid "Upload CSV"
+msgstr ""
+
+msgid "Uploaded model"
+msgstr ""
+
+#. placeholder {0}: file.name
+#. placeholder {0}: fileUpload.name
+msgid "Uploaded: {0}"
+msgstr ""
+
+#. placeholder {0}: avatarFile.name
+#. placeholder {0}: file.name
+#. placeholder {0}: fileUpload.name
+msgid "Uploading {0}"
+msgstr ""
+
+msgid "Uploading {fileName}"
+msgstr ""
+
+msgid "Upon clicking Convert, parts will be created with the following internal part numbers:"
+msgstr ""
+
+msgid "Usage/Day (30d)"
+msgstr ""
+
+msgid "Usage/Day (90d)"
+msgstr ""
+
+msgid "Use ... to get the next consumable ID"
+msgstr ""
+
+msgid "Use ... to get the next material ID"
+msgstr ""
+
+msgid "Use ... to get the next part ID"
+msgstr ""
+
+msgid "Use ... to get the next tool ID"
+msgstr ""
+
+msgid "Use a different email"
+msgstr ""
+
+msgid "Use metric system for default material dimensions."
+msgstr ""
+
+msgid "Used In"
+msgstr ""
+
+msgid "Used in the navigation and on documents like sales orders"
+msgstr ""
+
+msgid "Used in the navigation in dark mode"
+msgstr ""
+
+msgid "Used on the home screen and digital quotes"
+msgstr ""
+
+msgid "Used on the home screen in dark mode"
+msgstr ""
+
+msgid "Used to categorize items for reporting and analysis"
+msgstr ""
+
+msgid "User"
+msgstr ""
+
+msgid "Users"
+msgstr ""
+
+msgid "Users can update this value for themselves"
+msgstr ""
+
+msgid "Users to Update"
+msgstr ""
+
+msgid "Valid From"
+msgstr ""
+
+msgid "Valid Period"
+msgstr ""
+
+msgid "Valid To"
+msgstr ""
+
+msgid "Validating job..."
+msgstr ""
+
+msgid "Value"
+msgstr ""
+
+msgid "VAT Number"
+msgstr ""
+
+msgid "Verification Error"
+msgstr ""
+
+msgid "Verify your email"
+msgstr ""
+
+msgid "Version"
+msgstr ""
+
+msgid "Version:"
+msgstr ""
+
+msgid "Versions"
+msgstr ""
+
+msgid "via Digital Quote"
+msgstr ""
+
+msgid "View"
+msgstr ""
+
+msgid "View Active Jobs"
+msgstr ""
+
+msgid "View Active Quotes"
+msgstr ""
+
+msgid "View All"
+msgstr ""
+
+msgid "View Assigned Jobs"
+msgstr ""
+
+msgid "View Attachment"
+msgstr ""
+
+msgid "View Attributes"
+msgstr ""
+
+msgid "View Contact"
+msgstr ""
+
+msgid "View Custom Fields"
+msgstr ""
+
+msgid "View Customers"
+msgstr ""
+
+msgid "View Employees"
+msgstr ""
+
+msgid "View History"
+msgstr ""
+
+msgid "View in Academy"
+msgstr ""
+
+msgid "View Issue"
+msgstr ""
+
+msgid "View Item Master"
+msgstr ""
+
+msgid "View maintenance dispatch"
+msgstr ""
+
+msgid "View Open"
+msgstr ""
+
+msgid "View Open Invoices"
+msgstr ""
+
+msgid "View Open Orders"
+msgstr ""
+
+msgid "View Open POs"
+msgstr ""
+
+msgid "View Open Quotes"
+msgstr ""
+
+msgid "View Open RFQs"
+msgstr ""
+
+msgid "View Permissions"
+msgstr ""
+
+msgid "View Production Events"
+msgstr ""
+
+msgid "View Purchase Invoice"
+msgstr ""
+
+msgid "View Reactive"
+msgstr ""
+
+msgid "View Receipt"
+msgstr ""
+
+msgid "View Scheduled"
+msgstr ""
+
+msgid "View Shipment"
+msgstr ""
+
+msgid "View Status"
+msgstr ""
+
+msgid "View Stock Transfer"
+msgstr ""
+
+msgid "View Suggestion"
+msgstr ""
+
+msgid "View Suppliers"
+msgstr ""
+
+msgid "View Traceability Graph"
+msgstr ""
+
+msgid "View Transfer"
+msgstr ""
+
+msgid "Visibilities"
+msgstr ""
+
+msgid "Visibility"
+msgstr ""
+
+msgid "Visible on a user's public profile"
+msgstr ""
+
+msgid "Voice"
+msgstr ""
+
+msgid "Void"
+msgstr ""
+
+msgid "Void Invoice"
+msgstr ""
+
+msgid "Void Purchase Invoice"
+msgstr ""
+
+msgid "Void Receipt"
+msgstr ""
+
+msgid "Void Sales Invoice"
+msgstr ""
+
+msgid "Void Shipment"
+msgstr ""
+
+msgid "Voided"
+msgstr ""
+
+msgid "Voiding this purchase invoice will:"
+msgstr ""
+
+msgid "Voiding this receipt will:"
+msgstr ""
+
+msgid "Voiding this shipment will:"
+msgstr ""
+
+msgid "Warehouse Transfer"
+msgstr ""
+
+msgid "Warehouse Transfers"
+msgstr ""
+
+msgid "Warn"
+msgstr ""
+
+msgid "Warn but allow"
+msgstr ""
+
+msgid "Warn this many days before expiry"
+msgstr ""
+
+msgid "Warn when the person inspecting an inbound item is the same person who received it."
+msgstr ""
+
+msgid "Warning"
+msgstr ""
+
+msgid "Warnings"
+msgstr ""
+
+msgid "Watch full video"
+msgstr ""
+
+msgid "We've mapped each column to what we believe is correct, but please review the data below to confirm it's accurate."
+msgstr ""
+
+msgid "We've sent a verification code to {email}"
+msgstr ""
+
+msgid "We've sent a verification code to {signupEmail}"
+msgstr ""
+
+msgid "We've sent you a magic link to sign in to your account."
+msgstr ""
+
+msgid "Web Search"
+msgstr ""
+
+msgid "Webhook"
+msgstr ""
+
+msgid "Webhook Documentation"
+msgstr ""
+
+msgid "Webhook URL"
+msgstr ""
+
+msgid "Webhooks"
+msgstr ""
+
+msgid "Webhooks Docs"
+msgstr ""
+
+msgid "Website"
+msgstr ""
+
+msgid "Wednesday"
+msgstr ""
+
+msgid "Weeks Open"
+msgstr ""
+
+msgid "Weighted Average"
+msgstr ""
+
+msgid "Weighted average cost over last year calculated when the invoice is posted"
+msgstr ""
+
+msgid "Welcome to Carbon"
+msgstr ""
+
+msgid "When"
+msgstr ""
+
+msgid "When a finished product's shelf life is set to Calculated, pick which consumed inputs feed the calculation."
+msgstr ""
+
+msgid "When expired stock is used"
+msgstr ""
+
+msgid "Who Can Approve"
+msgstr ""
+
+msgid "Who should receive notifications for maintenance-related dispatches?"
+msgstr ""
+
+msgid "Who should receive notifications for operations-related dispatches?"
+msgstr ""
+
+msgid "Who should receive notifications for other dispatches?"
+msgstr ""
+
+msgid "Who should receive notifications for quality-related dispatches?"
+msgstr ""
+
+msgid "Who should receive notifications when a digital quote is accepted or expired?"
+msgstr ""
+
+msgid "Who should receive notifications when a gauge goes out of calibration?"
+msgstr ""
+
+msgid "Who should receive notifications when a new suggestion is submitted?"
+msgstr ""
+
+msgid "Who should receive notifications when a RFQ is marked ready for quote?"
+msgstr ""
+
+msgid "Who should receive notifications when a sales job is completed?"
+msgstr ""
+
+msgid "Who should receive notifications when a supplier quote is submitted?"
+msgstr ""
+
+msgid "Who should receive notifications when an inventory job is completed?"
+msgstr ""
+
+msgid "Why is the expiration being changed?"
+msgstr ""
+
+msgid "WIP"
+msgstr ""
+
+msgid "Won"
+msgstr ""
+
+msgid "Wordmark Dark Mode"
+msgstr ""
+
+msgid "Wordmark Light Mode"
+msgstr ""
+
+msgid "Work Center"
+msgstr ""
+
+msgid "Work Center Utilization"
+msgstr ""
+
+msgid "Work Centers"
+msgstr ""
+
+msgid "Work Instructions"
+msgstr ""
+
+msgid "Work instructions are included"
+msgstr ""
+
+msgid "Work instructions are not included"
+msgstr ""
+
+msgid "Work Phone"
+msgstr ""
+
+msgid "Work shift tracking is active."
+msgstr ""
+
+msgid "Workflow"
+msgstr ""
+
+msgid "Worst Performing Machines"
+msgstr ""
+
+msgid "Year"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "Yes, Accept"
+msgstr ""
+
+msgid "Yes, also delete every nested storage unit."
+msgstr ""
+
+msgid "Yes, Reject"
+msgstr ""
+
+msgid "Yes, Update IDs"
+msgstr ""
+
+msgid "You can change the UI style any time through the theme setting"
+msgstr ""
+
+msgid "You can only see this key once. Store it safely."
+msgstr ""
+
+#. placeholder {0}: new Date(openClockEntry.clockIn).toLocaleString(locale)
+msgid "You clocked in at {0}. You can edit your clock-out time below or acknowledge that you're still working."
+msgstr ""
+
+#. placeholder {0}: leftoverQuantity === 1 ? "part" : "parts"
+#. placeholder {1}: job.quantity
+msgid ""
+"You completed {leftoverQuantity} more \n"
+" {0} than the\n"
+" ordered quantity of {1}. What would you like\n"
+" to do with the extra parts?"
+msgstr ""
+
+msgid "You haven't created any contacts yet."
+msgstr ""
+
+msgid "You received this item"
+msgstr ""
+
+msgid "You received this lot"
+msgstr ""
+
+msgid "You've been clocked in for {hoursElapsed} hours. Did you forget to clock out?"
+msgstr ""
+
+msgid "Your Console PIN"
+msgstr ""
+
+msgid "Your Email"
+msgstr ""
+
+msgid "Your invitation is invalid or has already been accepted. Please contact support if you believe this is an error."
+msgstr ""
+
+msgid "Your Name"
+msgstr ""
+
+msgid "yourself"
+msgstr ""
diff --git a/packages/locale/locales/nl/mes.po b/packages/locale/locales/nl/mes.po
new file mode 100644
index 0000000000..bfe1f15aab
--- /dev/null
+++ b/packages/locale/locales/nl/mes.po
@@ -0,0 +1,924 @@
+msgid ""
+msgstr ""
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: @lingui/cli\n"
+"Language: nl\n"
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Plural-Forms: \n"
+
+#. placeholder {0}: attribute.name
+#. placeholder {1}: activeStep + 1
+msgid "{0} - Set {1}"
+msgstr ""
+
+#. placeholder {0}: employeeIds.length
+msgid "{0} Active"
+msgstr ""
+
+#. placeholder {0}: batch.quantity
+msgid "{0} available"
+msgstr ""
+
+#. placeholder {0}: operation.quantityComplete
+#. placeholder {0}: serialIndex + 1
+#. placeholder {1}: operation.operationQuantity
+#. placeholder {1}: operation.targetQuantity
+msgid "{0} of {1}"
+msgstr ""
+
+#. placeholder {0}: attributes.filter((a) => a.jobOperationStepRecord.some( (r) => r.index === activeStep ) ).length
+#. placeholder {1}: attributes.length
+msgid "{0} of {1} complete"
+msgstr ""
+
+#. placeholder {0}: attributes.filter((a) => a.jobOperationStepRecord.some( (r) => r.index === activeStep ) ).length
+#. placeholder {1}: attributes.length
+msgid "{0} of {1} completed"
+msgstr ""
+
+#. placeholder {0}: item.quantityScrapped
+msgid "{0} Scrapped"
+msgstr ""
+
+msgid "About"
+msgstr ""
+
+msgid "Account Settings"
+msgstr ""
+
+msgid "Active"
+msgstr ""
+
+msgid "Actual"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Add & Issue"
+msgstr ""
+
+msgid "Add Inventory"
+msgstr ""
+
+msgid "Add Spare Part"
+msgstr ""
+
+msgid "All"
+msgstr ""
+
+msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
+msgstr ""
+
+msgid "Are you sure you want to delete this step?"
+msgstr ""
+
+msgid "Are you sure you want to delete this timecard? This cannot be undone."
+msgstr ""
+
+msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
+msgstr ""
+
+msgid "Assigned"
+msgstr ""
+
+msgid "Assigned to Me"
+msgstr ""
+
+msgid "Assignee"
+msgstr ""
+
+msgid "Attach File"
+msgstr ""
+
+msgid "Authentication Error"
+msgstr ""
+
+#. placeholder {0}: batch.readableId
+#. placeholder {1}: batch.quantity
+msgid "Batch {0} ({1} available)"
+msgstr ""
+
+msgid "Batch is not available"
+msgstr ""
+
+#. placeholder {0}: index + 1
+msgid "Batch Number {0}"
+msgstr ""
+
+msgid "Batch number is required"
+msgstr ""
+
+#. placeholder {0}: column.blockingDispatchReadableId
+msgid "Blocked by {0}"
+msgstr ""
+
+msgid "Blocking"
+msgstr ""
+
+msgid "But don't worry. You can use the forgot password flow to request a new magic link."
+msgstr ""
+
+msgid "By signing in, you agree to the <0>Terms of Service</0> and <1>Privacy Policy.</1>"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "Carbon Logo"
+msgstr ""
+
+msgid "Cards"
+msgstr ""
+
+msgid "Chat"
+msgstr ""
+
+msgid "Check your email"
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Clear Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Clock In"
+msgstr ""
+
+msgid "Clock Out"
+msgstr ""
+
+#. placeholder {0}: formatTime(openEntry.clockIn, locale)
+msgid "Clocked in since {0}"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Close Anyways"
+msgstr ""
+
+msgid "Close Out"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Close out {0}"
+msgstr ""
+
+#. placeholder {0}: active.data.current.column.title
+#. placeholder {1}: overColumnPosition + 1
+#. placeholder {2}: columnOrder.length
+msgid "Column {0} was dropped into position {1} of {2}"
+msgstr ""
+
+#. placeholder {0}: active.data.current.column.title
+#. placeholder {1}: over.data.current.column.title
+#. placeholder {2}: overIndex + 1
+#. placeholder {3}: columnOrder.length
+msgid "Column {0} was moved over {1} at position {2} of {3}"
+msgstr ""
+
+#. placeholder {0}: column.title
+msgid "Column: {0}"
+msgstr ""
+
+msgid "Columns"
+msgstr ""
+
+msgid "Company"
+msgstr ""
+
+msgid "Complete"
+msgstr ""
+
+msgid "Completed"
+msgstr ""
+
+msgid "Console"
+msgstr ""
+
+msgid "Console Mode"
+msgstr ""
+
+msgid "Consumed expired"
+msgstr ""
+
+#. placeholder {0}: search.trim() === "" ? (createLabel ?? label) : search
+#. placeholder {0}: search.trim() === "" ? label : search
+msgid "Create {0}"
+msgstr ""
+
+msgid "Customer"
+msgstr ""
+
+msgid "Dark Mode"
+msgstr ""
+
+msgid "Date"
+msgstr ""
+
+msgid "Deadline"
+msgstr ""
+
+msgid "Default Storage Unit"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Delete Step"
+msgstr ""
+
+#. placeholder {0}: new Date(deletingEntry.clockIn).toLocaleString(locale)
+msgid "Delete Timecard ({0})"
+msgstr ""
+
+msgid "Description"
+msgstr ""
+
+msgid "Details"
+msgstr ""
+
+msgid "Dispatch not found"
+msgstr ""
+
+msgid "Display"
+msgstr ""
+
+msgid "Down"
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+msgid "Drag and drop a file here, or click to select a file"
+msgstr ""
+
+#. placeholder {0}: active.data.current?.type
+msgid "Dragging {0} cancelled."
+msgstr ""
+
+#. placeholder {0}: formatRelativeTime( convertDateStringToIsoString( operation.operationDueDate ) )
+#. placeholder {0}: formatRelativeTime( convertDateStringToIsoString(operation.jobDueDate) )
+#. placeholder {0}: formatRelativeTime( convertDateStringToIsoString(item.dueDate) )
+msgid "Due {0}"
+msgstr ""
+
+msgid "Due Date"
+msgstr ""
+
+msgid "Duplicate batch number"
+msgstr ""
+
+msgid "Duplicate serial number"
+msgstr ""
+
+msgid "Duration"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Email Address"
+msgstr ""
+
+msgid "Empty work centers"
+msgstr ""
+
+msgid "End Operations"
+msgstr ""
+
+#. placeholder {0}: selectedPerson.name
+msgid "Enter PIN for {0}"
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Estimated"
+msgstr ""
+
+msgid "Failed to complete inventory adjustment"
+msgstr ""
+
+msgid "Failed to end operations"
+msgstr ""
+
+msgid "Failed to fetch active operations"
+msgstr ""
+
+msgid "Failed to fetch storageUnits"
+msgstr ""
+
+#. placeholder {0}: fileUpload.name
+msgid "Failed to upload file: {0}"
+msgstr ""
+
+msgid "Failed to upload image"
+msgstr ""
+
+msgid "Feedback"
+msgstr ""
+
+msgid "File size exceeds 10MB limit"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Files related to the job and the opportunity line."
+msgstr ""
+
+msgid "Filter"
+msgstr ""
+
+msgid "Forgot to Clock Out?"
+msgstr ""
+
+msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
+msgstr ""
+
+msgid "I understand and want to complete without issuing"
+msgstr ""
+
+msgid "I'm Still Working"
+msgstr ""
+
+msgid "Ideas, suggestions or problems with this page?"
+msgstr ""
+
+msgid "Ideas, suggestions or problems?"
+msgstr ""
+
+msgid "Impact"
+msgstr ""
+
+msgid "In Progress"
+msgstr ""
+
+msgid "Insufficient quantity"
+msgstr ""
+
+msgid "Inventory adjustment completed"
+msgstr ""
+
+msgid "Inventory Adjustments"
+msgstr ""
+
+msgid "is"
+msgstr ""
+
+msgid "is any of"
+msgstr ""
+
+msgid "Issue"
+msgstr ""
+
+msgid "Issue Material"
+msgstr ""
+
+msgid "Item"
+msgstr ""
+
+msgid "Item Master"
+msgstr ""
+
+msgid "Job"
+msgstr ""
+
+msgid "Job Details"
+msgstr ""
+
+msgid "Job Traveler"
+msgstr ""
+
+msgid "Kit"
+msgstr ""
+
+msgid "Labor"
+msgstr ""
+
+msgid "Let's build something"
+msgstr ""
+
+msgid "Loading item details..."
+msgstr ""
+
+msgid "Loading..."
+msgstr ""
+
+msgid "Location"
+msgstr ""
+
+msgid "Log Completed"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Log completed for {0}"
+msgstr ""
+
+msgid "Log Rework"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Log rework for {0}"
+msgstr ""
+
+msgid "Log Scrap"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Log scrap for {0}"
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "Machine"
+msgstr ""
+
+msgid "Maintenance"
+msgstr ""
+
+msgid "Maintenance Completed"
+msgstr ""
+
+msgid "Manually add items to inventory"
+msgstr ""
+
+msgid "Manually remove items from inventory"
+msgstr ""
+
+msgid "matches"
+msgstr ""
+
+msgid "Materials"
+msgstr ""
+
+msgid "Maximum number of records reached"
+msgstr ""
+
+msgid "Model"
+msgstr ""
+
+msgid "More options"
+msgstr ""
+
+#. placeholder {0}: column.title
+msgid "Move column: {0}"
+msgstr ""
+
+msgid "Must be < {maxValue} {unitOfMeasureCode}"
+msgstr ""
+
+msgid "Must be > {minValue} {unitOfMeasureCode}"
+msgstr ""
+
+msgid "Must be between {minValue} and {maxValue} {unitOfMeasureCode}"
+msgstr ""
+
+msgid "My Hours"
+msgstr ""
+
+msgid "Name"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "New Record"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "No active maintenance dispatches"
+msgstr ""
+
+msgid "No active operations"
+msgstr ""
+
+msgid "No assigned operations"
+msgstr ""
+
+msgid "No available filters"
+msgstr ""
+
+msgid "No available serial numbers found"
+msgstr ""
+
+msgid "No dispatches assigned to you"
+msgstr ""
+
+msgid "No files"
+msgstr ""
+
+msgid "No Impact"
+msgstr ""
+
+msgid "No maintenance scheduled for today"
+msgstr ""
+
+msgid "No materials"
+msgstr ""
+
+msgid "No operators"
+msgstr ""
+
+msgid "No option found."
+msgstr ""
+
+msgid "No options found."
+msgstr ""
+
+msgid "No recent operations"
+msgstr ""
+
+msgid "No results"
+msgstr ""
+
+msgid "No results exist"
+msgstr ""
+
+msgid "No results found"
+msgstr ""
+
+msgid "No scheduled time"
+msgstr ""
+
+msgid "No serial numbers"
+msgstr ""
+
+msgid "No spare parts added yet"
+msgstr ""
+
+msgid "No time entries for this week"
+msgstr ""
+
+msgid "No work centers are blocked"
+msgstr ""
+
+msgid "No work centers exist"
+msgstr ""
+
+msgid "Notes"
+msgstr ""
+
+msgid "OEE Impact"
+msgstr ""
+
+msgid "OEM Required"
+msgstr ""
+
+#. placeholder {0}: batch.quantity
+msgid "Only {0} available"
+msgstr ""
+
+msgid "Oops. You shouldn't see this page. Eventually it will be a landing page."
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Operations"
+msgstr ""
+
+msgid "Operations ended"
+msgstr ""
+
+msgid "Operator Performed"
+msgstr ""
+
+msgid "Optional"
+msgstr ""
+
+msgid "Parameters"
+msgstr ""
+
+msgid "Part"
+msgstr ""
+
+msgid "Passed Inspection"
+msgstr ""
+
+msgid "Pause"
+msgstr ""
+
+#. placeholder {0}: startColumn?.title
+#. placeholder {1}: startIndex + 1
+#. placeholder {2}: columnOrder.length
+msgid "Picked up Column {0} at position: {1} of {2}"
+msgstr ""
+
+msgid "Pin Out"
+msgstr ""
+
+msgid "Planned"
+msgstr ""
+
+msgid "Please record all steps for this operation before closing."
+msgstr ""
+
+msgid "Please select an item"
+msgstr ""
+
+msgid "Prev"
+msgstr ""
+
+msgid "Preventive"
+msgstr ""
+
+msgid "Priority"
+msgstr ""
+
+msgid "Procedure"
+msgstr ""
+
+msgid "Process"
+msgstr ""
+
+msgid "Process Parameters"
+msgstr ""
+
+msgid "Processes"
+msgstr ""
+
+msgid "Progress"
+msgstr ""
+
+msgid "Quantity"
+msgstr ""
+
+msgid "Quantity must be greater than 0"
+msgstr ""
+
+msgid "Recent"
+msgstr ""
+
+msgid "Record"
+msgstr ""
+
+#. placeholder {0}: activeStep + 1
+msgid "Record {0}"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Remove filter"
+msgstr ""
+
+msgid "Remove Inventory"
+msgstr ""
+
+msgid "Remove part"
+msgstr ""
+
+msgid "Sales Order"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Scan"
+msgstr ""
+
+msgid "Scan or enter serial number"
+msgstr ""
+
+msgid "Schedule"
+msgstr ""
+
+msgid "Scrap Reason"
+msgstr ""
+
+msgid "Scrapped"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Search operators..."
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select a completion quantity"
+msgstr ""
+
+msgid "Select a rework quantity"
+msgstr ""
+
+msgid "Select a scrap quantity and reason"
+msgstr ""
+
+msgid "Select a serial number to continue with this operation"
+msgstr ""
+
+msgid "Select an item and specify the quantity to issue"
+msgstr ""
+
+msgid "Select an item..."
+msgstr ""
+
+#. placeholder {0}: index + 1
+msgid "Select Batch {0}"
+msgstr ""
+
+#. placeholder {0}: index + 1
+msgid "Select Serial {0}"
+msgstr ""
+
+msgid "Select Serial Number"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Serial"
+msgstr ""
+
+#. placeholder {0}: sn.readableId
+msgid "Serial {0}"
+msgstr ""
+
+#. placeholder {0}: index + 1
+msgid "Serial Number {0}"
+msgstr ""
+
+msgid "Serial number is not available"
+msgstr ""
+
+msgid "Serial number is required"
+msgstr ""
+
+msgid "Serial Numbers"
+msgstr ""
+
+msgid "Set Clock Out"
+msgstr ""
+
+msgid "Set clock-out time"
+msgstr ""
+
+msgid "Setup"
+msgstr ""
+
+msgid "Sign in with Email"
+msgstr ""
+
+msgid "Sign in with Google"
+msgstr ""
+
+msgid "Sign in with Outlook"
+msgstr ""
+
+msgid "Sign Out"
+msgstr ""
+
+msgid "Signed in as {stationName}"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Source"
+msgstr ""
+
+msgid "Spare Parts"
+msgstr ""
+
+msgid "Spare Parts Used"
+msgstr ""
+
+msgid "Start"
+msgstr ""
+
+msgid "Station User"
+msgstr ""
+
+msgid "Station: {stationName}"
+msgstr ""
+
+msgid "Status"
+msgstr ""
+
+msgid "Statuses"
+msgstr ""
+
+msgid "Steps"
+msgstr ""
+
+msgid "Steps are missing"
+msgstr ""
+
+msgid "Storage Unit"
+msgstr ""
+
+msgid "Submit anonymously"
+msgstr ""
+
+msgid "Suggestion"
+msgstr ""
+
+msgid "Support Required"
+msgstr ""
+
+msgid "Switch Operator"
+msgstr ""
+
+msgid "Tag"
+msgstr ""
+
+#. placeholder {0}: operation.operationQuantity
+msgid "The completed quantity for this operation is less than the required quantity of {0}."
+msgstr ""
+
+msgid "There are serial or batch tracked materials on the bill of material that have not been fully issued. Completing without issuing may result in incorrect traceability records."
+msgstr ""
+
+msgid "Thumbnail"
+msgstr ""
+
+msgid "Time Entries"
+msgstr ""
+
+#. placeholder {0}: formatDuration(totalDuration)
+msgid "Time Worked: {0}"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Tools"
+msgstr ""
+
+msgid "Total Quantity"
+msgstr ""
+
+#. placeholder {0}: formatDuration(totalDuration)
+msgid "Total time: {0}"
+msgstr ""
+
+#. placeholder {0}: formatTotalHours(entries)
+msgid "Total: {0}"
+msgstr ""
+
+msgid "Tracking Labels"
+msgstr ""
+
+msgid "Type a message..."
+msgstr ""
+
+msgid "Unissued serial/batch materials"
+msgstr ""
+
+msgid "Unknown"
+msgstr ""
+
+msgid "Update"
+msgstr ""
+
+msgid "Updated successfully"
+msgstr ""
+
+#. placeholder {0}: fileUpload.name
+msgid "Uploaded: {0}"
+msgstr ""
+
+#. placeholder {0}: fileUpload.name
+msgid "Uploading {0}"
+msgstr ""
+
+msgid "View maintenance dispatch"
+msgstr ""
+
+msgid "We've sent you a magic link to sign in to your account."
+msgstr ""
+
+msgid "WIP"
+msgstr ""
+
+msgid "Work Center"
+msgstr ""
+
+#. placeholder {0}: new Date(openClockEntry.clockIn).toLocaleString(locale)
+msgid "You clocked in at {0}. You can edit your clock-out time below or acknowledge that you're still working."
+msgstr ""
+
+msgid "You've been clocked in for {hoursElapsed} hours. Did you forget to clock out?"
+msgstr ""
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 67399e69c8..b873719262 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Wysyłka:"
msgid "Shop Floor"
-msgstr "Hala produkcyjna"
+msgstr ""
msgid "Short Description"
msgstr "Krótki opis"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 5f29c6430c..924f3eeaeb 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Envio:"
msgid "Shop Floor"
-msgstr "Chão de Fábrica"
+msgstr ""
msgid "Short Description"
msgstr "Descrição Breve"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 6d5d1c7258..2c92f00eed 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "Доставка:"
msgid "Shop Floor"
-msgstr "Цех"
+msgstr ""
msgid "Short Description"
msgstr "Краткое описание"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index 3bea4841c4..8dcd995111 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -6856,7 +6856,7 @@ msgid "Shipping:"
msgstr "运费:"
msgid "Shop Floor"
-msgstr "车间"
+msgstr ""
msgid "Short Description"
msgstr "简短描述"