GnuCash
Contact   Instructions
Bug 796409 - Incorrect Current Value for Stocks
Summary: Incorrect Current Value for Stocks
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Register (show other bugs)
Version: 3.1
Hardware: Other Linux
: Normal normal
Target Milestone: future
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-26 09:09 EDT by mdzalesa
Modified: 2018-05-26 13:34 EDT (History)
4 users (show)

See Also:


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

Description mdzalesa 2018-05-26 09:09:29 EDT
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 10:37:10 EDT
What did you select for "commodity" when you created the Company X stock account?
Comment 2 mdzalesa 2018-05-26 11:05:35 EDT
(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 11:23:30 EDT
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 11:37:34 EDT
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 11:39:51 EDT
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 11:44:21 EDT
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 13:34:17 EDT
Fixed for 3.2. Thanks for reporting it.

Note You need to log in before you can comment on or make changes to this bug.