Dave,

>> Am I doing something wrong ?
>>
>> I just applied the latest bigpatch and the error dialog  for report
>> error still just says "Error executing scheme report" with no
>> information about the error.  Was there another patch that I missed ?
>
>No, that patch should have the error catching code. Could you send
>me your report so I can see what's going wrong with the error
>catching code?

Well, it turns out that I have dutifully been applying the same patch
repeatedly thanks to netscape mail stripping the .gz off of the filename
when saving.
Of course, I knew about that...once upon a time.

Anyway, humble appologies for the wasted effort.

Attached is my first attempt at time-windowed averaging of a single
account's balance (eventually plan to make it sum over several accounts).
It also happens to be my first try at scheme/guile/etc.

I made some assumptions which I'm not sure are always valid, such as splits
always being returned in chronological order.  Perhaps somebody can comment
on this.

If you have gnuplot, it can plot up average vs time or  gain/loss vs time.
This is admittedly a very inelegant way to do this but I am impatient to
have some charting capability until an official direction for plotting is
worked out.  Just want to see how that bank account downward spiral looks
graphically, what can I say.

In order to try it out, one must have the get-balance function  wrapped, so
the following must make in into gnc.gwp (followed by a re-build)

(new-function
 'gnc:split-get-balance
 'double "xaccSplitGetBalance" '((Split* s))
 "Return balance at split.")

Otherwise you will have yourself a nice test of that error-catching code for
reports, it really DOES work!

Any advice, comments (other than how to use netscape) are always welcome.

Cheers.

--

 Matt Martin
[EMAIL PROTECTED]

600 West Grove Parkway  #1042
Tempe, AZ, 85283

(480) 775 2660


avg-bal.scm

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to