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") 

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


Reply via email to