Bug 381056 - Dashboard portfolio widget: Wrong percentage values
Summary: Dashboard portfolio widget: Wrong percentage values
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Guillaume DE BURE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-10 07:05 UTC by Bernhard Scheirle
Modified: 2017-06-10 08:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Scheirle 2017-06-10 07:05:06 UTC
In the Variation Column skrooge displays the variation also as percentage value.
This percentage value is not correct.
You probably just forgot to multiply it with 100 for the displayed value (% = 1/100).
E.g. [1]: 
265,02 € * 1,961285940683722 % = 5,1978 € != 519,78 € (Not correct)
265,02 € * 1,961285940683722   = 519,78 € (Correct)
265,02 € * 196,1285940683722 % = 519,78 € (Correct)

Skrooge Version: 2.8.1

[1] https://docs.kde.org/trunk5/en/extragear-office/skrooge/dashboard_portfolio.png
Comment 1 Stephane MANKOWSKI 2017-06-10 08:30:57 UTC
Git commit ee47c550721c67a4f305d1d6ec1ac0b1edf10231 by Stephane Mankowski.
Committed on 10/06/2017 at 08:30.
Pushed by smankowski into branch 'master'.

Dashboard portfolio widget: Wrong percentage values

M  +1    -0    CHANGELOG
M  +1    -1    skgbankmodeler/skgreportbank.cpp

https://commits.kde.org/skrooge/ee47c550721c67a4f305d1d6ec1ac0b1edf10231