Dave Peticolas wrote:
> > > Right now I believe it is only used in the Portfolio report,
> > > under the 'cost' column.
> >
> > I checked this, and I have a bug report:
> >
> > The cost value is wrong sometimes. There seem to be two
> > error situations:
> >
> > - accounts with an opening balance not equal 0.
> >
> > - accounts where shares are partly sold and later bought again.
> 
> Are you sure these are wrong? By default, the cost is computed
> with FIFO accounting. Could you given an example?

OK, an example (real world numbers):

date        description      sold     bought   price   value     tot.shrs.  total
01.01.1999  opening balance           102.319  147.65  15107.40  102.319    15107.40
25.05.1999  price                              170.47            102.319    17442.32
12.11.1999  dividend                    0.533  195.56    104.23  102.852    20113.74
31.12.1999  fee              0.086             224.84    -19.34  102.766    23106.11

The cost basis here is 15107.40 + 104.23 - 19.34 = 15192.29, right?

The portfolio report states costs of 30202.10, this is definitely wrong.


BTW: How do I enter a stock sale "the right way"? A stock sale consists of at
least 3 splits:
1.) a split to get the shares out of the account
2.) a split for profits/losses to an income/expense account
3.) fees
Example: Bought 5 shares for 40.00 and 5 for 60.00, then sell 10 shares for 100.00
with fees 20.00. I get 1000.00 for the 10 shares and I must enter
1.) sell 10 shares for 50.00
2.) profit 480.00
3.) fees 20.00
Now everything sums up to 0, so I think this is a "right way", but the split 1.)
(sell 10 for 50.00, whereas the actual price is 100.0) looks ugly.

 Herbert.
-- 
Herbert Thoma
FhG-IIS A, Studio Department
Am Weichselgarten3, 91058 Erlangen, Germany
Phone: +49-9131-776-323
Fax:   +49-9131-776-399
email: [EMAIL PROTECTED]
www: http://www.iis.fhg.de/

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to