more account-summary w/ currencies

Bill Gribble grib@gnumatic.com
Thu, 1 Feb 2001 09:08:11 -0600


On Wed, Jan 31, 2001 at 03:31:28PM -0800, Christian Stimming wrote:
> Implemented a weigthed average calculation of the exchange rate for all 
> different currencies in the book. Try "show foreign currency" and you'll 
> see any non-report commodity converted to the report-currency. Feedback 
> welcome.

Christian,

We'll be needing this kind of conversion for every report soon... the
'reporting currency' is going to be a global preference.  As you
continue to work on this stuff, could you try to keep the reporting
currency operations self-contained and with a simple API so they can
be reused elsewhere?

Also keep in mind that we may want to recode parts in C for
efficiency, so possibly to isolate the iterative bits of code in their
own functions is a good idea.

(You may have already done all this; I haven't looked at the new code yet).

Have you ever heard of "FASB 52"?  It's a standards document
describing the valid ways to translate currencies at reporting time.
That's how we're ultimately going to want to do this.  There's a
summary online through www.fasb.org, and you can order a printed copy
for IIRC $10.

Thanks,
Bill Gribble