questions about budget.scm

Don Zickus dzickus at gmail.com
Tue Jul 21 17:53:25 EDT 2009


Hello,

I was trying to figure out how to tweak the Budget report (ie
reports/standard-report/budget.scm) to my liking.  However my scheme skills
are not that good and I am having trouble understanding some of the code.
Can someone who is familiar with the code help guide me through it?

Some of the things I wanted to accomplish:

- widen the account labels column.  the account name wrapping makes it hard
to read.  exporting to html and manually increasing colspan to something
greater than 1 works.  however, I can't figure out where in the source code
the colspan variable is set to 1.

- I wanted to implement a feature from the other reports, which was 'do not
show accounts with zero totals'.  There are so many accounts/sub-account I
do not use that it becomes noisy to see all of them.  My question is, is
there a quick way to figure this out.  I know there is a for-loop to loop
through all the accounts and a call to get the data for that account before
being passed to a function that displays the data.  I wasn't sure at that
particular moment, if a test could be applied to filter zero-total accounts
out.

- I wanted to add a totals row at the bottom of the report too.  I was
wondering, if one can get the total for the top level account (from the
summation of the sub-accounts), wouldn't the book total just be the
summation of all the top-level accounts?  If so, how can I apply that to the
bottom of the report (ok I know where but what account name can I use to
retrieve that info?)?

Separately regarding budget creation:

- is there a way to easily copy-n-paste the previous month's data to next
month.  Typing by hand is very very tedious.


Let me know if these questions need more clarification.  Thanks in advance!

Cheers,
Don


More information about the gnucash-devel mailing list