Bug 441324 - Ease the process of closing an investment brokerage account.
Summary: Ease the process of closing an investment brokerage account.
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-21 22:40 UTC by jdmore6
Modified: 2022-12-17 22:48 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 jdmore6 2021-08-21 22:40:59 UTC
It can be difficult to close an investment brokerage account in kmymoney.  Because of the way investment transactions may be recorded, a brokerage account may have a balance in fractions of a cent.  So even though the balance may display as 0.00, the account can't be closed because "the balance of the account must be zero before the account can be closed".  IOW, the balance just rounds to 0.00, but is not exactly 0 and so the account can't be closed.

In trying to close a big brokerage account, I have had to resort to using a perl script obtained from this forum thread: https://forum.kde.org/viewtopic.php?f=69&t=160041 to find and fix the transactions causing the rounding problem so the account could be closed.

So this is an enhancement request to make this process a little easier.  Two possibilities come to mind, but there are probably others:

1 - A new "Clear balance" menu item/button that can be performed on an account, that would create a transaction to clear its balance to exactly 0.

2 - Relax the the requirement that an account balance must be exactly 0 to close it - instead, just require that the account's balance round to 0.00.
Comment 1 Jack 2021-08-21 22:56:25 UTC
I believe the cause of those rounding errors has been corrected since 2019, so this is decreasingly likely to cause a problem.  I've referenced another bug about providing the user with more details on why an account can't be closed.  That way, at least the reason will become more obvious to the user.