Arelle / ixbrl-viewer

The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
Other
93 stars 57 forks source link

Calculation 1.1 support and calculation validation #614

Closed paulwarren-wk closed 7 months ago

paulwarren-wk commented 7 months ago

Reason for change

Calculations 1.1 makes calculation checking much more useful, but users need tools to visualise and understand checks. This PR adds the ability to validate calculations in the viewer, using both Calc 1.0 and 1.1 semantics, and adds a calculation inspector to visualise calculations.

Description of change

image

The calculation applied depends on the calculation mode

image

The PR also adds a copyScript parameter to generateViewer to disable the copying of the JS script to the same directory as the viewer, as this makes development more awkward (default is as before).

Steps to Test

Open any report with calculations. Check the inspector in both calc 1.0 and calc 1.1 modes. They should generally yield the same results, although the inspectors should be different.

The calculations will be behave differently if the calculations are not exact, but are consistent to within their reported accuracy. They will also be different in the face of non-complete duplicates.

review: @Arelle/arelle @paulwarren-wk

aviary-wf commented 7 months ago

Security Insights

No security relevant content was detected by automated scans.

Action Items