Bug 370242 - "Geldinstitute": "Konten ohne zugewiesene Geldinstitute" cannot delete
Summary: "Geldinstitute": "Konten ohne zugewiesene Geldinstitute" cannot delete
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 11:20 UTC by Sean
Modified: 2017-05-02 04:55 UTC (History)
2 users (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 Sean 2016-10-07 11:20:37 UTC
If you look at "Geldinstitute" (german, maybe instituts or banks?) there is one point in the list "Konten ohne zugewiesene Geldinstitute" and I like to delete it. But this is not possible. This looks like corrupt datas and I like to eleminate it.

Version 4.6.6 (new 16.04 Kubuntu installation)

Reproducible: Always

Steps to Reproduce:
1. Open KMyMoney
2. Choose "Geldinstitute"
3.
Comment 1 Jack 2016-10-07 15:15:17 UTC
If you just hover the mouse over that institution, does any tooltip display, possibly showing the reason you cannot delete it?  Are there any accounts in that institution?  If so, you will not be able to delete it.

Also, can you run a consistency check?  Does it show any problems?

One other thing to try is to run KMyMoney from a konsole command line.  It might show more information about any problem with the file.
Comment 2 Sean 2016-10-07 17:16:17 UTC
If I hoover over this institution there is no tooltip.
There are no accounts in that institution.
I did not know about the consistency check - great feature! It says there are problems and they are described under details. But there is written that datas are consistenc.

Starting from Console:
KMyMoney printcheck plugin loaded
QFSFileEngine::open: No file name specified
KMyMoney ofximport plugin loaded
KMyMoney iCalendar plugin loaded
KMyMoney csvimport plugin loaded
KBankingPlugin: No AqB4 config found.
KBankingPlugin: No AqB3 config found.
7:2016/10/07 19-13-54:aqbanking(9314):started
KMyMoney kbanking plugin loaded
KMyMoney reconciliation report plugin loaded
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active

Additional information: Kmymoney is really slowly...
Comment 3 Jack 2016-10-07 18:38:24 UTC
If you run the consistency check again, are there still any reported issues?  The first time you ran it, it might have fixed many issues; we are interested if there are any it couldn't fix automatically.  They may not be important, but we don't know until we check.

4.6.6 is now somewhat old.  You could get the latest 4.8 by using Claydoh's PPA on launchpad.  (https://launchpad.net/~claydoh/+archive/ubuntu/kmymoney2-kde4)

The slowness is probably not related to the first problem, so we should concentrate on the deletion issue first.  I can't think of any reasons to prevent deleting an institution other than if there are accounts in it.  Is it possible there are any closed and hidden accounts?  (Go to Configure KMyMoney.  Click on General (top icon on the left) then click the Filter tab.  Be sure "Do not show closed accounts" is not checked.)  If that is not it, we'll have to wait for other ideas.
Comment 4 Thomas Baumgart 2016-10-09 14:50:41 UTC
Nothing is corrupt and everything seems to be fine. You do have an account that is not assigned to an institution, hence the group 'Accounts with no institution assigned' in the institution view.. It only shows up if you have such an account and you cannot delete it.
Comment 5 Sean 2016-10-09 17:48:49 UTC
consistency check: same result
configure KMyMoney: no one is checked

If I look under accounts there is the same number of accounts compared the number under institutions. 
@Thomas: so if everything is ok what can I do, because I cant find the account with no institution. Maybe I understand you wrong...
Comment 6 Thomas Baumgart 2016-10-09 18:12:53 UTC
I just tried to duplicate this on 4.8 code and was unable to do so. Once I assign an institution to all accounts the entry is not shown anymore. Maybe this has been changed in the meantime. Do you see all you account in the accounts view? Make sure that 'Show all accounts' is off. You can find this option in the View menu. You might have to reload the file once you turned it off.
Comment 7 Sean 2016-10-10 16:49:19 UTC
This doesn't change anything.
If I configure "Geschlossene Konten nicht anzeigen" in the Kmymoney-Configuration than this special account "Konten ohne zugewiesene Geldinstitute" is not shown.
Comment 8 NSLW 2017-05-02 04:55:27 UTC
As explained in comment #4, "Konten ohne zugewiesene Geldinstitute" meant not to be deleted. They can be set as hidden.