I've done considerable work over the last week "cleaning up" the
various reports, with the notable intent of factoring out common code
with a view to moving towards supporting multiple output formats.
I've put together some "HTML generator" functions to create cells and
rows in a moderately intelligent way.
But to the point, I'm effectively reverse-engineering some chunks of
reports, and having some trouble grasping average-balance.scm. Some
of the functions are *rather* long, notably runavg-options-generator,
reduce-split-list, as well as the main function that gets attached to
the menu. I've been factoring out chunks of the functions to try to
make it a bit more comprehensible, and having particular difficulty
with some functions where it is not clear what the input is supposed
to look like.
Notably, (get-averages indata) is supposed to calculate an average on
*something.* I'm not sure what that something is. I have a feeling I
could make most of the function go away, but am not certain how.
Matt, can you elaborate a bit on:
- get-averages
- allsubaccounts
- the calculation being performed by reduce-split-list
It would probably be sufficient to see some trivial input to them.
--
"We use Linux for all our mission-critical applications. Having the
source code means that we are not held hostage by anyone's support
department." -- Russell Nelson, President of Crynwr Software
[EMAIL PROTECTED] - - <http://www.hex.net/~cbbrowne/lsf.html>
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]