How to add reports into Gnucash

David Eisner deisner at gmail.com
Sat Aug 22 17:33:09 EDT 2009


On Sat, Aug 22, 2009 at 12:06 AM, David T.<sunfish62 at yahoo.com> wrote:
> I appreciate that you are offering to work on it this weekend. If there's anything I can do to assist you on that report, just let me know.


The Good News:  To stop the Monthly Cash Flow report from crashing
GnuCash, make the following two changes to your "toodles.scm" file:

1. At the beginning of the file, comment out the first uncommented line:
      (define-module (gnucash report cash-flow))

So change that to ";; (define-module (gnucash report cash-flow))"
(note the two semi-colons that begin the line).

2. At the end of the file, comment-out the *first* gnc:define-report
procedure call (there are two, for some reason).  It should look like
this when you're done:

----8<----
;; (gnc:define-report
;;  'version 1
;;  'name reportname
;;  'menu-path (list gnc:menuname-income-expense)
;;  'options-generator cash-flow-options-generator
;;  'renderer cash-flow-renderer)

(gnc:define-report
 'version 1
 'name monthly-reportname
 'menu-path (list gnc:menuname-income-expense)
 'options-generator monthly-cash-flow-options-generator
 'renderer monthly-cash-flow-renderer)
---->8----

Now GnuCash (2.2.9) will start up, and you'll have the "Monthly Cash
Flow" report available in the menu.


The Bad News:

The report doesn't work. [The Frogurt is also cursed.]  It looks like
it's using the old Scheme API, which was changed with GnuCash 2.2.
For example, you'll see this error:

 toodles.scm:247:33: Unbound variable: gnc:get-current-group

The gnc:get-current-group procedure is no longer available. [1]  So in
order for this report to work with GnuCash 2.2.9, it would have to be
ported.  I'm not sure how involved this would be.  Maybe Derek or
somebody else can comment.

-David

[1] http://lists.gnucash.org/pipermail/gnucash-user/2007-November/022294.html

--
David Eisner     http://cradle.brokenglass.com


More information about the gnucash-user mailing list