diff --git a/src/pages/accounting/lib/mergeHomeowners.ts b/src/pages/accounting/lib/mergeHomeowners.ts index cbb64c8..45cbd0c 100644 --- a/src/pages/accounting/lib/mergeHomeowners.ts +++ b/src/pages/accounting/lib/mergeHomeowners.ts @@ -1,7 +1,7 @@ import { accounting } from "@/lib/accountingClient"; // Tables that reference a homeowner via customer_id — reassigned to the survivor on merge -const CUSTOMER_FK_TABLES = ["estimates", "invoices", "transactions", "work_orders"] as const; +const CUSTOMER_FK_TABLES = ["estimates", "invoices", "payments_received", "transactions", "work_orders"] as const; // Fields copied onto the survivor from a duplicate when the survivor's value is blank const FILLABLE_FIELDS = [