Comments (4)
According to the ixbrl spec, the number should not contain the minus sign, and the item should have the attribute sign="-"
See example below:
<ix:nonfraction contextref="Cd3922568-78b1-47a8-fab5-8ec1bca51799" unitref="Ua8e2e75a-3d26-45ae-8987-f0beacfe31f7" name="ifrs-full:GainsLossesOnExchangeDifferencesOnTranslationNetOfTax" format="ixt:numdotdecimal" decimals="-3" sign="-" id="ixv-160">1,285,000</ix:nonfraction>
from ixbrl-viewer.
Thanks for the explanation but we have the following: The number do not contain a minus and the attribute sign is there:
<span class="dmspan dmtext006" style="font-size:8pt; left:31.22pt; top:3.76pt; line-height:8pt;">‑<ix:nonFraction name="unicreditbankag:NegativeInterestOnFinancialAssets" contextRef="PYTD" unitRef="EUR" decimals="-6" format="ixt:num-comma-decimal" scale="6" sign="-" id="ixv-3"> 154</ix:nonFraction></span> <span class="dmspan dmtext001" style="font-size:8pt; left:33.88pt; top:2.74pt;"> 154 </span>
from ixbrl-viewer.
I don't see the need to print the value of the fact outside the ix:nonFraction element.
This is an example of how I render a negative numerical fact
<td class="td-numerical-fact text-end ixbrl-element ixbrl-element-nonfraction ixbrl-selected"><div class="clearfix"><span class="float-end"><span>(</span><ix:nonfraction contextref="C1ab9c0cc-4ac3-4600-8fdc-19c83e8ca02e" unitref="U91d6cf78-f4bb-4a24-cd81-6523c9831cd8" name="ifrs-full:OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax" format="ixt:numdotdecimal" id="F6eda287e-e20b-46c9-d146-5a3e3ffe10b2" decimals="-3" sign="-">11,515,295,000</ix:nonfraction><span>)</span></span></div></td>
In my case it's a monetary fact so, instead of the dash I want to present parenthesis. Hope this helps.
from ixbrl-viewer.
This is very helpful thank you @huizarmx
We will try this out and close this issue if it's fixed.
from ixbrl-viewer.
Related Issues (20)
- Exclude sections from untagged highlighting HOT 1
- Run CI tests against Python 3.12.0 release candidate
- [BUG] Maximum call stack size exceeded HOT 1
- [REQUEST] - Add a "viewer" url parameter HOT 3
- [REQUEST] Deep link to HTML elements
- [REQUEST] Switch to using Intl.DisplayNames class for language names
- [BUG] The denominator of a complex unit is not displayed in the fact properties
- [REQUEST] For UTR units, display the unit's name rather than unit's qname in Fact properties HOT 4
- Run mypy in CI
- [BUG] Invalid enum value throws error
- [BUG] Invalid Viewer URL Doesn't Raise an Error
- [BUG] Handle string values in enum facts HOT 3
- [BUG] Table Style : Position relative is added automatically HOT 4
- [BUG]Fact properties are not getting loaded in the latest version HOT 3
- [BUG] "Concealed fact" warning used inappropriately
- [BUG] Inline Rendering Issue - Incorrect period shown HOT 4
- [REQUEST] Don't mark hidden facts as hidden if they have a "style hack" link
- ixbrl-viewer multiple POST thinks its a document set HOT 13
- [BUG] iXBRLViewerPlugin: Build iXBRL with EFRAG Sample XBRL file thanks to iXBRLViewerPlugin plugin fails HOT 4
- Add Creation Software Name to UI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixbrl-viewer.