Advanced portfolio report

Morrison J. Chang mjchang at ix.netcom.com
Wed Nov 28 22:46:52 EST 2007


On Wed, 2007-11-28 at 09:14 -0800, Andrew Sackville-West wrote:
> On Tue, Nov 27, 2007 at 11:01:11PM -0500, Morrison J. Chang wrote:
> > On Tue, 2007-11-27 at 08:01 -0800, Andrew Sackville-West wrote:
> > 
> > > THe rounding is easy. Look at bugzilla #343245, comment #2 attachment
> > > includes code to fix the rounding errors. Pretty straightforward.
> > > 
> > > 
> > Hmm ... did a quick search and replace using GNC-DEMON-AUTO (logior
> > GNC-DENOM-REDUCE GNC-RND-NEVER) instead of the usual 10000 GNC-RND-ROUND
> > but I seem to get some odd problems with display (like blank or
> > fractional entries in the realized gain column).
> 
> there are a handful of roundings that affect the *display* of
> values. They are easy to spot as they use 100 as denom. Reverting
> those should fix this. I had *exactly* the same thing happen to me yesterday.

Yup that did it thanks.

> > In any case I just found a test case that I'm failing on that I need to
> > fix before I'm ready to post.
> 
> What's your test case? Maybe mine already solves it?

The test case is looking at a spreadsheet with correct values (as
opposed to incorrect values). <grin>

I'll post what I've got shortly.

-Morrison




More information about the gnucash-devel mailing list