Report Editing

Colin Scott gnucash at double-bars.net
Sat Jan 2 13:45:00 EST 2010


It seems to be a bug introduced in 2.2.9, because before that release it
seemed to work, sort of.  Actually, the problem I have here is that if I
create a series of reports starting from one base, only the first of them
ever appears in the list of reports!

Lets assume we have the pre-defined report "Transaction Report".  From
this I create a report "A".  If I then look in the saved-reports
definition file (in 2.2.9 this is "saved-reports-2.0") then the defintion
of A shows the base as "Transaction Report".  If I now create a variation
of "A" called "B", then for me (I run Windows, and don't know if this is
also true for Linux)  only "A" is visible in the menu - "B" never appears!
If I examine the saved-reports file then the base of "B" is shown as "A".

My solution to both of these problems is a script that examines the
saved-reports file, works out the true or original base of each report,
and deletes all intermediate iterations.  (Thus, continuing the example
above, if I have "A", "P" and "X", all created from "Transaction Reports",
and "B" and "Y" based on "A" and "X" respectively, then in the output
from the script the code blocks relating to "A" and and "X" are deleted,
the base of "B" and "Y" are now "Transaction Reports", and "P" remains
unchanged.

Colin


More information about the gnucash-user mailing list