After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779926 - Transfer Dialog does not handle commodities sale correctly
Transfer Dialog does not handle commodities sale correctly
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Documentation
unspecified
Other Windows
: Normal normal
: future
Assigned To: gnucash-documentation-maint
gnucash-documentation-maint
Depends on:
Blocks:
 
 
Reported: 2017-03-12 07:55 UTC by Chris
Modified: 2018-06-29 23:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris 2017-03-12 07:55:41 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.
Comment 1 John Ralls 2017-03-12 18:14:13 UTC
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.
Comment 2 John Ralls 2018-06-29 23:55:18 UTC
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.