Registered Member
|
Hello,
I am running kmymoney 5.0.3 on linux. I am unable to close several old brokerage accounts left over from investment accounts that have been closed. In all cases, the balance is 0.00, but the message when mousing over the "Close account" button is "The balance of the account must be zero before the account can be closed." My guess is that this is a round off problem, and the balances are close to, but not exactly, zero. In one case, the balance of 0.00 is red, and after adding 0.01, the balance stays 0.00, but is now black. Is there a way to clear these balances to zero so they can be closed, or is something else wrong? |
KDE Developer
|
Ooops, there is a problem, I guess. Your investigation with the one cent addition shows the problem. We need to check where this can come from (as it should not).
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
I assumed the round off is because the investments in these accounts are mutual funds, and the transactions all involve fractional prices and share quantities, usually 3 or 4 digit precision.
|
KDE Developer
|
The following little perl script might help us to extract your data. Here it is:
Replace <text> with whatever is a unique part of your account name and use the name of your file instead of data.kmy. This will provide some output and you are interested in the
part. The following example operates on a file named tus.kmy and looks for fraspa case insensitive.
In this example, the account id is A000009 which we need as argument to the script. The call to the script would then be (we have made it executable before)
which yields the following data in output.csv
Now it's a matter of finding the problem which I would leave to you.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
ipwizard,
Thank you - using your perl script, I was able to track down the problem transactions and close these accounts. In these brokerage accounts, there were a few old transactions like this:
The transaction amounts, with precision > 2 digits were causing the problem, and were several years old, probably entered in kmymoney 4.7.1 or so. I made sure the price entry setting for these accounts was "Total for all shares", and just edited those transactions to round the amounts down to 0.01 to fix them so the displayed balance is precisely equal to the internal balance, and I could then clear and close them. Thank you very much |
Registered Member
|
Hello. I am trying to close an investment account that has a value of -$2500 but I cannot close it. The value is wrong but I am not sure why as it should be zero. The security that is associated with it has 0 shares in it,so I can close it but I am not able to close the actual investment account because I assume the value is not zero. What do I need to do to make the value of the investment account to zero so I can close it? Thanks.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar