GNOME Bugzilla – Bug 779926
Transfer Dialog does not handle commodities sale correctly
Last modified: 2018-06-29 23:55:18 UTC
The 'Amount' field in Transfer Dialog seems hard-coded to handle currencies only. I tried Transfer from a Stock account to a Currency account. First, it does not allow currency/exchange rate to be set. Second, it creates an invalid transaction with the 'Amount' being taken as the receiving currency value. e.g. buy 10 MSFT shares @ $50 each = $500 worth of shares launch "Transfer Funds" window, select MSFT as source account, and Bank as destination. The Amount of the transfer is understood to be the dollar amount, and will not be recorded correctly at all. Suggested Fix: - just disallow stocks/mutual funds as the originating account.
You're correct that the Amount field at the top of the Transfer Funds Dialog is hard-wired to currency. Stock accounts inherit the currency of their parent account. I guess it's called "Transfer Funds" for a reason. The fact that the dialog retrieves the currency instead of the commodity means that it doesn't recognize that there's a conversion required when the "Transfer To" account uses that same currency as its commodity. There's a work-around: Always use the currency account as the "Transfer From" account and use a negative number when selling a stock. That lights up the Currency Transfer section and allows you to enter the number of shares in the Amount field at the bottom of the account. There are legitimate reasons to create funds-only transfers from Stock/Mutual Fund accounts, so I'm not in favor of disabling those accounts from the Transfer Funds treeview. Rather, I think better documentation, including a warning when one is selected, is the way to go here. I've changed the bug category accordingly.
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=779926. Please continue processing the bug there and please update any external references or bookmarks.