Purpose

Group-structure card: parent company and subsidiaries. File: frontend/kundkort/components/sections/KoncernSection.tsx.

Data shape

data.koncern: KoncernData is a discriminated union (types/kundkort.ts:20-28):

type KoncernData =
  | { available: false; data_gap_note: string }
  | {
      available: true;
      is_in_group: boolean;
      parent_org_nr: string | null;
      parent_name: string | null;
      subsidiaries: Array<{ org_nr: string; name: string }>;
    };

Rendering

  • available === false → renders data_gap_note text plus a GapBadge next to the heading
  • available === true and parent_name set → “Moderbolag” block with name plus muted org_nr
  • available === true and no parent and !is_in_group → “Ej del av koncern”
  • subsidiaries.length > 0 → “Dotterbolag (N)” header, lists first 5 names, then “+N till” if truncated (KoncernSection.tsx:62-71)

Note

Subsidiaries beyond the first 5 are not linked or expandable from this view. To see them you would need to query the company directly.

See also

Varumarken Section, Identity Card, UI Primitives.

See also