Bug 381056

Summary: Dashboard portfolio widget: Wrong percentage values
Product: [Applications] skrooge Reporter: Bernhard Scheirle <bernhard+kde>
Component: generalAssignee: Guillaume DE BURE <guillaume.debure>
Status: RESOLVED FIXED    
Severity: normal CC: stephane
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 25.1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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