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 796409 - Incorrect Current Value for Stocks
Incorrect Current Value for Stocks
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Register
3.1
Other Linux
: Normal normal
: future
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2018-05-26 13:09 UTC by mdzalesa
Modified: 2018-06-30 00:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of account after making a single entry. (48.54 KB, image/png)
2018-05-26 15:37 UTC, mdzalesa
Details
Screenshot of Account Information (45.01 KB, image/png)
2018-05-26 15:39 UTC, mdzalesa
Details

Description mdzalesa 2018-05-26 13:09:25 UTC
The current value of all stock/mutual fund accounts seems to just be placing a dollar sign in front of the number of shares I own.  For example, in one of my accounts I have listed "6.33 Shares Company X".  Although every transaction with this stock has been for > $20, the register states that it has a current value of $6.33.

I don't recall having this problem prior to upgrading to Fedora 28 from 27 (which I think used version 2.x), so I am pretty sure this is not caused by me using it incorrectly.

My best guess at why this happens:  Whenever I finish making an entry, GnuCash adds a new blank line below it.  In this new blank line it seems to automatically place a "1" in the price column.  Perhaps it is using this number by mistake instead of my last real entry when calculating the current value?

Summary:

Expected result:  Current value = # Shares x Most recent price.
Actual result: Current value = "$" followed by # shares.

Thanks!
Comment 1 John Ralls 2018-05-26 14:37:06 UTC
What did you select for "commodity" when you created the Company X stock account?
Comment 2 mdzalesa 2018-05-26 15:05:31 UTC
(In reply to John Ralls from comment #1)
> What did you select for "commodity" when you created the Company X stock
> account?

When I created it I did:

New Account -> Account Type "Stock" -> Security/currency -> Select security : Type "All non-currency", Security "DUK (Duke Energy)".
Comment 3 John Ralls 2018-05-26 15:23:26 UTC
OK. Setting aside that DUK is a normal stock that doesn't allow fractional shares, if you bought it at yesterday's close, there was no commission, and the previous balance of DUK was 0 your register should look like:

5/25/2018 Buy DUK 6.33    Assets:Investment:Broker_Cash   6.33    75.81   479.88   6.33


To the right of the cash account the five columns are shares, price, buy, sell, and balance. Sell is empty because this is a buy. You must enter two of shares, price, and buy (shares is the number of shares, price and buy are in dollars) and GnuCash will calculate the third.

What did you actually enter and what does your register show?
Comment 4 mdzalesa 2018-05-26 15:37:30 UTC
Created attachment 372422 [details]
Screenshot of account after making a single entry.

This screenshot shows the result of buying 2 share of stock "DUK" at a made up price of $10.50 each, for a total of $21.00.  In the lower left is shows "Shares: 2 DUK" and "Current Value: $2.00".  I expected current to be $21.00.
Comment 5 mdzalesa 2018-05-26 15:39:47 UTC
Created attachment 372423 [details]
Screenshot of Account Information

This screenshot shows how the test account was created.  It shows that the commodity type for the account is a stock, "DUK (Duke)", rather than US dollars.
Comment 6 John Ralls 2018-05-26 15:44:17 UTC
Ah, in the summary bar. Yes, I see that too. It's safely ignored, but should be fixed.
Comment 7 John Ralls 2018-05-26 17:34:13 UTC
Fixed for 3.2. Thanks for reporting it.
Comment 8 John Ralls 2018-06-30 00:10:53 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=796409. Please update any external references or bookmarks.