feat(search): restrict client search to INDIVIDUAL only for nominee, introducer, joint holders

- nominee-form: searchByText now passes legalFormType='INDIVIDUAL' for both
  nominee search and guardian search — prevents entities/companies appearing
- introducer-search: same INDIVIDUAL filter applied
- add-related-client-dialog: INDIVIDUAL filter for joint account holders,
  partners, and members search

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-06-01 21:26:31 +05:30
co-authored by Claude Sonnet 4.6
parent 4ffeb6ee92
commit 1aa46397a6
3 changed files with 4 additions and 4 deletions
@@ -79,7 +79,7 @@ export class AddRelatedClientDialogComponent implements OnDestroy {
}
this.isSearching = true;
this.searchTimer = setTimeout(() => {
this.clientsService.searchByText(value.trim(), 0, 10, '', '', true).subscribe({
this.clientsService.searchByText(value.trim(), 0, 10, '', '', true, 'INDIVIDUAL').subscribe({
next: (res: any) => {
this.searchResults = res?.content || [];
this.isSearching = false;