Report Writing Tips

Derek Atkins warlord at MIT.EDU
Mon Jun 28 22:05:47 EDT 2004

Peter Long <gnucash at> writes:

> I use two different currencies in my accounts and I have noticed that
> my balance sheets never seem to balance. It turns out that the
> Unrealized Gains(Losses) line item in the Liabilities section of the
> balance sheet was wrong from the time I first used a currency other
> than USD. I see that someone has already opened a bug report on this
> issue but I did not want to just sit around waiting for a fix. I
> thought I might as well get my hands dirty and try figure out why it
> was wrong. So generating a report that shows the "workings" for that
> line item is my first step toward fixing it. Actually my first step
> was just to generate ANY report. :)
> I am using the Advanced Portfolio report (advanced-portfolio.scm) as a
> template. It comes close to what I want so I was hoping I could just
> extend if to cover all commodities and have it ignore "realized" gains.

The problem is deeper than that -- GnuCash doesn't properly track cap
gains.  You should pull down CVS (HEAD) and take a look there, where
there is some basic CapGains work.  I.e., it's more than just a report


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list