Giter Site home page Giter Site logo

Comments (4)

huizarmx avatar huizarmx commented on August 17, 2024

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.

MahdiBarkia avatar MahdiBarkia commented on August 17, 2024

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.

huizarmx avatar huizarmx commented on August 17, 2024

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.

MahdiBarkia avatar MahdiBarkia commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.