custom separate trading accounts
Mike Alexander
mta at umich.edu
Sun May 25 19:28:42 EDT 2014
--On May 25, 2014 12:14:03 AM -0700 gnucash.133518b at telus.net wrote:
> I would define "wrong" to be any Advanced Portfolio report in which
> the displayed Value does not equal the displayed number of Shares
> multiplied by the displayed Price. That is precisely what I am seeing
> (1000 <> 100 * 11).
Oh right, *that* problem. I had forgotten about it in the confusion.
You have prices for midnight on January 4 and midnight on January 5.
The report date, for the purpose of price lookup, is noon on January 5,
exactly half way between these two. The report used one function to
look up the price and a different one to do the exchange calculation
from SHA to CAD. These two functions had different rules for resolving
the halfway between situation.
I've checked in a version that resolves this by always using the price
returned from the price lookup. You can get the new version at
<https://raw2.github.com/Gnucash/gnucash/master/src/report/standard-reports/advanced-portfolio.scm>.
Mike
More information about the gnucash-user
mailing list