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 428679 - Stock Cost Basis Incorrect with Split Transactions
Stock Cost Basis Incorrect with Split Transactions
Status: VERIFIED DUPLICATE of bug 346062
Product: GnuCash
Classification: Other
Component: Reports
2.0.x
Other Linux
: Normal major
: ---
Assigned To: Chris Lyttle
Chris Lyttle
: 428680 428682 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-04-11 16:13 UTC by Wanrong Lin
Modified: 2018-06-29 21:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Wanrong Lin 2007-04-11 16:13:03 UTC
If a stock/security/commodity is purchased with a split transaction originated from another account (say, "Credit Card"), the cost basis shown in "Advanced Portfolio" report is computed assuming the share price is the *total* amount transfered in the *whole* transaction. The correct cost basis should be computed from the total amount of money spent to purchase that particular stock/security.

An example:

Two accounts, "stock A" and "stock B" are set up under "Asset", initially with 0 shares in them.

If in "Credit Card" account, I enter a transaction with two split transactions (some editing in the "stock A" and "stock B" account is needed too to enter the share number and share price):

split transaction 1: buy 2 shares of stock A, at price $1.00/share ($2.00 spent)
split transaction 2: buy 3 shares of stock B, at price $2.00/share ($6.00 spent)

The total amount in the whole transaction is $8.00. Now if I open "Advanced Portfolio" report, the cost basis shown is:

Stock A:  $16.00  (seems to be computed from $8.00 * 2)
Stock B:  $24.00  (seems to be computed from $8.00 * 3)

That is apparently wrong.

Please investigate it. Thank you very much.
Comment 1 Josh Sled 2007-04-11 17:11:23 UTC
*** Bug 428680 has been marked as a duplicate of this bug. ***
Comment 2 Josh Sled 2007-04-11 17:11:28 UTC
*** Bug 428682 has been marked as a duplicate of this bug. ***
Comment 3 Christian Stimming 2007-04-14 15:02:26 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 346062 ***
Comment 4 John Ralls 2018-06-29 21:31:25 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=428679. Please update any external references or bookmarks.