diff --git a/packages/frontend/src/crm/lexware/LexwareSyncPage.tsx b/packages/frontend/src/crm/lexware/LexwareSyncPage.tsx index 1ff5252..627ff8a 100644 --- a/packages/frontend/src/crm/lexware/LexwareSyncPage.tsx +++ b/packages/frontend/src/crm/lexware/LexwareSyncPage.tsx @@ -146,6 +146,7 @@ function ImportTab() { const handleImportContactPerson = ( person: LexwareContactPersonEntry, companyName: string, + companyId?: string, ) => { const cpName = [person.firstName, person.lastName].filter(Boolean).join(' ') || @@ -156,6 +157,7 @@ function ImportTab() { lastName: person.lastName || undefined, email: person.emailAddress || undefined, phone: person.phoneNumber || undefined, + companyId: companyId || undefined, companyName: companyName || undefined, type: 'PERSON', }, @@ -417,6 +419,7 @@ function ImportTab() { handleImportContactPerson( cp, contact.company?.name ?? '', + linked?.type === 'company' ? linked.id : undefined, ) } title={`${cpName} als CRM-Kontakt importieren`}