{% extends "base.html" %} {% from "_macros.html" import severity_chip %} {% block title %}Investigate · {{ current.name }} — rwa-filer dash{% endblock %} {% block content %} {% set base = "/returns/" ~ current.return_id ~ "/investigate" %} {% set grid_url = "/returns/" ~ current.return_id ~ "/templates" %} {% set rules_url = "/returns/" ~ current.return_id ~ "/rules" %}
{% if current.detail and current.detail.spec.group_code %}The return uses the supplied group {{ current.detail.spec.group_code }}. Select a rule to investigate it on the template or compare the unit results below.{% else %}Every broken rule, run again on each part of the return by itself. A part that breaks a rule on its own figures is where to look; one that meets it is not.{% endif %}
Choose a breakdown column to investigate a break. If the file includes group figures, select their code to validate and file those rows. Otherwise the return is built from the monetary detail.
{% if unread %} {% else %}{% if current.path.suffix.lower() in (".csv", ".parquet") %}This file has no columns beyond the fact table's own.{% else %}Breakdown columns are read from a fact table (.parquet or .csv): a workbook or an XBRL instance carries only the summed figures.{% endif %} Add a column such as business_unit with one row per part of each cell, and open the file with it.
{% endif %}| Broken rule | The return | {% for column in view.columns %}{{ column.label }} | {% endfor %}
|---|---|---|
| {{ severity_chip(row.severity) }}{{ row.rule_id }}{{ row.label or "No label published" }}{{ row.breaks }} break{{ "s" if row.breaks != 1 }} | {{ row.whole }}{% if row.unexplained %}{{ row.unexplained }} in no member{% endif %} | {% for hit in row.cells %} {% set column = view.columns[loop.index0] %}{% if hit and hit.count %}{{ hit.amount }}{{ ("all " ~ hit.of) if hit.count == hit.of and hit.of > 2 else ("both" if hit.count == hit.of and hit.of == 2 else (hit.count ~ " of " ~ hit.of)) }}{% else %}{{ hit.amount if hit else "-" }}{% endif %} | {% endfor %}
Insufficient detail means the unit figures do not cover the inputs to the group check.
{% else %}A dash means the member meets the rule on its own rows, or has no figure in the cells it reads.{% if view.clean %} Meet every {{ "visible " if review.active }}broken rule on their own figures: {{ view.clean[:12] | join(", ") }}{% if view.clean | length > 12 %} and {{ view.clean | length - 12 }} more{% endif %}.{% endif %}
{% endif %} {% else %}{{ "No return breaks match the review filters." if review.active else "No rule breaks in this return." }}
{% endif %}| Template cell | {{ view.dimension }} | Reported text |
|---|---|---|
| {% if fact[view.dimension] == current.detail.spec.group_code %}{% endif %}{{ fact.table }}{% if fact.sheet %} [z{{ fact.sheet }}]{% endif %}{% if fact.open_key %} [{{ fact.open_key }}]{% endif %} [r{{ fact.row }}][c{{ fact.column }}]{% if fact[view.dimension] == current.detail.spec.group_code %}{% endif %} | {{ fact[view.dimension] or 'Unspecified unit' }} | {{ fact.text_value }} |
| No text values supplied. | ||