diff --git a/e2e/__screenshots__/work-orders/work-orders.visual.spec.ts/wo-new.png b/e2e/__screenshots__/work-orders/work-orders.visual.spec.ts/wo-new.png
index e7ee92cb..9edaccd5 100644
Binary files a/e2e/__screenshots__/work-orders/work-orders.visual.spec.ts/wo-new.png and b/e2e/__screenshots__/work-orders/work-orders.visual.spec.ts/wo-new.png differ
diff --git a/src/app/(protected)/workorders/_components/list/table/build-inline-draft-create-input.ts b/src/app/(protected)/workorders/_components/list/table/build-inline-draft-create-input.ts
index 169f062e..5f911bd8 100644
--- a/src/app/(protected)/workorders/_components/list/table/build-inline-draft-create-input.ts
+++ b/src/app/(protected)/workorders/_components/list/table/build-inline-draft-create-input.ts
@@ -19,7 +19,6 @@ export function buildInlineDraftCreateInput(
locationId: String(draft.locationId || ""),
locationName,
siteCode: location ? resolveSiteCode(location) : resolveSiteCode({ name: locationName }),
- customer: draft.customer.trim(),
woNumber: draft.woNumber,
type: draft.type || "PM",
severity: draft.severity,
diff --git a/src/app/(protected)/workorders/_components/list/table/cells/build-site-dialog-patch.ts b/src/app/(protected)/workorders/_components/list/table/cells/build-site-dialog-patch.ts
index 1b9e23c3..3fe930cd 100644
--- a/src/app/(protected)/workorders/_components/list/table/cells/build-site-dialog-patch.ts
+++ b/src/app/(protected)/workorders/_components/list/table/cells/build-site-dialog-patch.ts
@@ -8,7 +8,6 @@ type BuildSiteDialogPatchArgs = {
code: string;
locId: string;
selected: LocationOption | undefined;
- customer?: string;
pocName: string;
pocPhone: string;
pocNotes: string;
@@ -21,7 +20,6 @@ export function buildSiteDialogPatch({
code,
locId,
selected,
- customer,
pocName,
pocPhone,
pocNotes,
@@ -33,7 +31,6 @@ export function buildSiteDialogPatch({
site: code || (selected ? resolveSiteCode(selected) : ""),
location: selected ? extractLocationLabel(selected) : "",
locationId: locId,
- ...(customer !== undefined ? { customer } : {}),
pocName,
pocPhone,
pocNotes,
diff --git a/src/app/(protected)/workorders/_components/list/table/cells/site-cell.tsx b/src/app/(protected)/workorders/_components/list/table/cells/site-cell.tsx
index 04077833..4c40ae06 100644
--- a/src/app/(protected)/workorders/_components/list/table/cells/site-cell.tsx
+++ b/src/app/(protected)/workorders/_components/list/table/cells/site-cell.tsx
@@ -11,7 +11,6 @@ type SiteCellProps = {
value: string;
location: string;
locationId: string | number;
- customer?: string;
city?: string;
state?: string;
pocName?: string;
@@ -30,7 +29,6 @@ export function SiteCell({
value,
location,
locationId,
- customer,
city,
state,
pocName,
@@ -97,7 +95,6 @@ export function SiteCell({
onOpenChange={setOpen}
value={value}
locationId={locationId}
- customer={customer}
pocName={pocName}
pocPhone={pocPhone}
pocNotes={pocNotes}
diff --git a/src/app/(protected)/workorders/_components/list/table/cells/site-dialog-types.ts b/src/app/(protected)/workorders/_components/list/table/cells/site-dialog-types.ts
index 956d54ba..499af6aa 100644
--- a/src/app/(protected)/workorders/_components/list/table/cells/site-dialog-types.ts
+++ b/src/app/(protected)/workorders/_components/list/table/cells/site-dialog-types.ts
@@ -4,7 +4,6 @@ export type SitePatch = {
site: string;
location: string;
locationId: string | number;
- customer?: string;
pocName: string;
pocPhone: string;
pocNotes: string;
diff --git a/src/app/(protected)/workorders/_components/list/table/cells/site-dialog.tsx b/src/app/(protected)/workorders/_components/list/table/cells/site-dialog.tsx
index e68dc5c7..0843e331 100644
--- a/src/app/(protected)/workorders/_components/list/table/cells/site-dialog.tsx
+++ b/src/app/(protected)/workorders/_components/list/table/cells/site-dialog.tsx
@@ -1,4 +1,4 @@
-import { useContext, type MouseEvent } from "react";
+import type { MouseEvent } from "react";
import { MapPin } from "lucide-react";
import { Dialog, DialogContent, DialogTitle } from "@mui/material";
import { WizardFieldSelect } from "@/app/(protected)/workorders/_components/wizard/wizard-field-select";
@@ -9,12 +9,9 @@ import type { LocationOption } from "@/domain/work-orders/types/work-order";
import { FieldLabel } from "@/app/(protected)/workorders/_components/list/table/cells/dialog-field-label";
import { SiteDialogDetailPanel } from "@/app/(protected)/workorders/_components/list/table/cells/site-dialog-detail-panel";
import { SiteDialogFooter } from "@/app/(protected)/workorders/_components/list/table/cells/site-dialog-footer";
-import { WizardStepLocationAccountSelect } from "@/app/(protected)/workorders/_components/wizard/wizard-step-location-account-select";
import { SiteDialogPocSection } from "@/app/(protected)/workorders/_components/list/table/cells/site-dialog-poc-section";
import type { SitePatch } from "@/app/(protected)/workorders/_components/list/table/cells/site-dialog-types";
import { useSiteDialogState } from "@/app/(protected)/workorders/_components/list/table/cells/use-site-dialog-state";
-import { isOrgWideScope } from "@/lib/auth/org-scope";
-import { AuthContext } from "@/providers/auth-context";
export type { SitePatch };
@@ -23,7 +20,6 @@ type SiteDialogProps = {
onOpenChange: (open: boolean) => void;
value: string;
locationId: string | number;
- customer?: string;
pocName?: string;
pocPhone?: string;
pocNotes?: string;
@@ -39,7 +35,6 @@ export function SiteDialog({
onOpenChange,
value,
locationId,
- customer = "",
pocName = "",
pocPhone = "",
pocNotes = "",
@@ -49,20 +44,17 @@ export function SiteDialog({
viewOnly = false,
onSave,
}: SiteDialogProps) {
- const requireAccount = isOrgWideScope(useContext(AuthContext)?.user);
const s = useSiteDialogState({
open,
onOpenChange,
value,
locationId,
- customer,
pocName,
pocPhone,
pocNotes,
additionalContacts,
sites,
createMode,
- requireAccount,
onSave,
});
@@ -89,13 +81,6 @@ export function SiteDialog({