I have an investment account called 'Shares' which belongs to an Institution called 'Stocks and Shares'. The ledger for 'Shares' contains shareholdings (Stocks) in 5 different companies. However on the 'Institutions' screen only 3 of the stocks are listed in the 'Shares' account and the other 2 are listed directly under 'Stock and Shares' (see URL attachment). This has happened to one other of my Institutions/Investment accounts, many others are displayed correctly. Reproducible: Always Steps to Reproduce: 1. Upgrade from version 4.6.6 to 4.7.0 2. 3. Expected Results: In KMyMoney 4.6.6 all 5 shares correctly appeared under the Shares account which meant that the correct total value of the account was displayed on screen.
Could it be that the two missing stocks don't belong to that institution? If you expand all items under which institution do the missing stocks appear?
The stocks are not missing - they appear under the "Stocks and Shares" institution (to which they belong). See the image I've provided in the bug report URL. Notice that the 2 stocks 'Lloyds Banking...' and 'Schneider...' are listed at the same level as the 'Shares' account when they should be listed under it. (So should the deleted holding in 'Friends Provident'). In all other parts of KMyMoney the hierarchy is correct: 'Stock and Shares' institution ---> 'Shares' account ---> individual stocks It's only on the Investments screen that this information is displayed incorrectly.
The only way I can see this happening is if MyMoneyFile::accountList contains the child accounts in the list before their parent account. Thomas, is that possible?
Perhaps this is a consequence of the code being tidied up in 4.7.0 as it did not happen in previous versions of KMyMoney.
Could you provide your .kmy file? (In reply to Nick Elliott from comment #0) > I have an investment account called 'Shares' which belongs to an Institution > called 'Stocks and Shares'. > > The ledger for 'Shares' contains shareholdings (Stocks) in 5 different > companies. > > However on the 'Institutions' screen only 3 of the stocks are listed in the > 'Shares' account and the other 2 are listed directly under 'Stock and > Shares' (see URL attachment). > > This has happened to one other of my Institutions/Investment accounts, many > others are displayed correctly. > > Reproducible: Always > > Steps to Reproduce: > 1. Upgrade from version 4.6.6 to 4.7.0 > 2. > 3. > > > Expected Results: > In KMyMoney 4.6.6 all 5 shares correctly appeared under the Shares account > which meant that the correct total value of the account was displayed on > screen.
Git commit 62faad4adf84ea5e879f4c098a210ebef48521bf by Łukasz Wojniłowicz. Committed on 15/04/2017 at 12:59. Pushed by wojnilowicz into branch 'master'. Show/Hide zero-balance equities in account models FIXED-IN:5.0 Differential Revision: https://phabricator.kde.org/D5341 Signed-off-by: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> M +28 -0 kmymoney/dialogs/settings/ksettingsgeneral.cpp M +4 -1 kmymoney/dialogs/settings/ksettingsgeneral.h M +1 -0 kmymoney/dialogs/settings/ksettingskmymoney.cpp M +23 -8 kmymoney/models/accountsmodel.cpp https://commits.kde.org/kmymoney/62faad4adf84ea5e879f4c098a210ebef48521bf
*** Bug 349325 has been marked as a duplicate of this bug. ***
*** Bug 378073 has been marked as a duplicate of this bug. ***