Bug 441324

Summary: Ease the process of closing an investment brokerage account.
Product: [Applications] kmymoney Reporter: jdmore6
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: wishlist CC: bob
Priority: NOR    
Version: 5.1.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=312649
Latest Commit: Version Fixed In:

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.