Bug 312609 - Banks widgets at the dashboard show wrong values
Summary: Banks widgets at the dashboard show wrong values
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Packages Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 15:37 UTC by Wolfgang Hölzl
Modified: 2013-01-04 18:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Hölzl 2013-01-04 15:37:59 UTC
I'm using Skrooge 1.4.0 and KDE 4.8.5 on Kubuntu 12.04.

The banks widgets (both, light and full) seem to be completely broken, like the following demonstrates:


1. Create a new file and then a new current account with bank 1 and initial balance of 1 and a new current account with bank 2 and initial balance of 10
2. Go to the dashboard: the banks widgets don't show bank 2, just bank 1 with balance 1 (wrong) and the total balance, which is 11 (correct)

3. Go to accounts and add a wallet with initial balance 100
4. Go to the dashboard: now bank 1 shows balance of 101 (wrong); bank 2 is still missing; total is 111 (correct)

5. Go to accounts and create a new current account with bank 3 and initial balance of 1000
6. Go to the dashboard: now bank 1 shows balance of 101 (wrong); bank 2 appears and shows balance of 10 (correct); bank 3 is missing; total is 1111 (correct)

7. Go to accounts and add a new wallet with initial balance 10.000
8. Go to the dashboard: bank 1 shows balance of 10.101 (wrong); the rest is the same as step 6

9. Go to accounts and add a new current account with initial balance of 100.000 to bank 1
10. Go to the dashboard: bank 1 shows balance of 110.101 (wrong); the rest is the same as step 6

11. Go to accounts and add a new current account with bank 4 and initial balance of 1.000.000
12. Go to the dashboard: result is similar to step 6: bank 3 is shown; bank 4 is missing; total is correct


It seems, that the last bank added is always skipped and that the balance of the wallets is added to the next bank listed in the accounts page.
The accounts widgets on the dashboard don't show this behaviour.

I can remember, that this bug didn't exist in the previous version of Skrooge.

Reproducible: Always
Comment 1 Stephane MANKOWSKI 2013-01-04 17:54:44 UTC
Git commit 9b0cc3bdbe995202eb2320e6f0f3b926ab5263bd by Stephane Mankowski.
Committed on 04/01/2013 at 18:53.
Pushed by smankowski into branch 'Feature'.

M  +1    -0    CHANGELOG
M  +0    -1    plugins/skrooge/skrooge_bank/CMakeLists.txt
D  +0    -101  plugins/skrooge/skrooge_bank/skgbankboardwidget.cpp
D  +0    -56   plugins/skrooge/skrooge_bank/skgbankboardwidget.h
M  +0    -1    plugins/skrooge/skrooge_bank/skgbankplugin.cpp
M  +2    -1    skgbankmodeler/skgreportbank.cpp

http://commits.kde.org/skrooge/9b0cc3bdbe995202eb2320e6f0f3b926ab5263bd
Comment 2 Stephane MANKOWSKI 2013-01-04 18:10:27 UTC
Git commit 6f79dcf6f9c77976772a3ccb609170349f5a7d5c by Stephane Mankowski.
Committed on 04/01/2013 at 19:10.
Pushed by smankowski into branch 'Feature'.

M  +1    -1    plugins/applet/bank/bankskroogoid.cpp
M  +3    -3    skgbankmodeler/skgreportbank.cpp
M  +1    -1    skgbasegui/skgtablewithgraph.cpp

http://commits.kde.org/skrooge/6f79dcf6f9c77976772a3ccb609170349f5a7d5c