On Wed, 05 Jul 2000 22:18:44 EST, the world broke into rejoicing as
Richard Wackerbarth <[EMAIL PROTECTED]> said:
> On Wed, 05 Jul 2000, Christopher Browne wrote:
>
> > b) One that is strongly tied to the "commodity."
> >
> > Thus, you have:
> >
> > struct gnc_commodity_value {
> > gint64 quantity;
> > creference commodity_id;
> > };
> >
> > along with
> >
> > struct commodity_info {
> > creference commodity_id;
> > char commodity_name;
> > gint32 denominator;
> > };
> >
> > (Note: I'm being a bit canny here, and not specifying the real type of
> > "creferences." To Be Determined...)
> >
> > The thing is, when you look at transactions, they are all going to be
> > denominated based on some commodity. For instance, many of my accounts
> > will mostly use $USD transactions; others will use $CDN transactions.
>
> > Any amount that we work with _will_ represent some commodity. There
> > will _always_ be _at least_ one, if not two, commodities involved.
> > Two commodities if we're talking Inventory, Stocks, or Currency
> > Exchange.
>
> I agree that rather than describing the properties of a currency for the
> "denominator" of an amount, we should simply reference the currency. The
> properties of it are common to all instances of amounts denominated in that
> currency. Further, that reference can be "factored" and we can simply store
> the numerator of each entry. (Assuming that we can recover the common
> currency and its properties when we need to interact outside of the "counting
> department")
Before we get too excited about this, leave people open to provide
concrete examples where this _doesn't_ work. Mind you, I will remain
skeptical of discussions of problems with the scheme that don't display
_concrete_ problems...
I don't think there is one; the _arguable_ counterexample would be the
situation where a market changes "denominations," but that may also be
argued to redenominate the commodity, which means it's not really the
same commodity anymore...
--
[EMAIL PROTECTED] - <http://www.hex.net/~cbbrowne/linux.html>
"There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence." - Jeremy S. Anderson
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]