{% extends "base.html" %} {% block title %}Reporting hierarchy — RWA Calculator{% endblock %} {% block styles %} {% endblock %} {# Server-rendered reporting-entity hierarchy. The registry (config/reporting_entities) is folded into a tree by ui.views.hierarchy; this template only renders it. Malformed rows arrive in view.unattached and render in a clearly-marked section rather than crashing the page. #} {% macro entity_card(node, unattached=false) %}
{{ node.name }} {% if node.is_apex %}Group apex{% endif %} {% if node.core_uk_group %}Core UK group{% endif %}
{{ node.reference }} {% if node.lei %}LEI {{ node.lei }}{% endif %} {% if node.institution_type %}{{ node.institution_type }}{% endif %}
{% if node.scopes %}
{% for scope in node.scopes %} {{ scope.label }} {% endfor %}
{% endif %}
{% endmacro %} {% macro entity_tree(nodes) %} {% endmacro %} {% macro columns_help() %}

config/reporting_entities

An optional table (parquet or CSV) under your data directory's config/ folder. Add it to run scoped group, sub-consolidated or solo submissions. Expected columns:

{% for col in expected_columns %} {% endfor %}
ColumnRequiredNotes
{{ col.name }} {{ "yes" if col.required else "no" }} {{ col.notes }}
{% endmacro %} {% block content %}

Reporting hierarchy

The reporting-entity registry for a data directory, and which regulatory scope each entity can head.

{% if error %}
{{ error }}
{{ columns_help() }} {% elif view is none %}
Enter the path to your data directory above to view its reporting hierarchy.
{{ columns_help() }} {% elif view.is_empty %}
No config/reporting_entities table was found under this data directory — every calculation runs over the whole book (unscoped). Add the registry to enable scoped submissions.
{{ columns_help() }} {% else %}

{{ view.entity_count }} entit{{ "y" if view.entity_count == 1 else "ies" }} across {{ view.roots | length }} group{{ "" if view.roots | length == 1 else "s" }}.

Scopes a node can head: {% for scope in scope_legend %} {{ scope.label }} {% endfor %}
{% for root in view.roots %} {{ entity_tree([root]) }} {% endfor %} {% if view.unattached %}

Unattached entities

These rows could not be placed under a group apex — check their parent_entity_reference.

{% for item in view.unattached %}
{{ entity_card(item.node, unattached=true) }}
Unattached — {{ item.reason }}
{% if item.node.children %}{{ entity_tree(item.node.children) }}{% endif %}
{% endfor %}
{% endif %} {% endif %} {% endblock %}