--On April 12, 2006 12:37:38 PM -0400 Derek Atkins <[EMAIL PROTECTED]> wrote:

Quoting David Hampton <[EMAIL PROTECTED]>:

    ns_name = gnc_commodity_namespace_get_name(cm->namespace);
    return (!safe_strcmp(ns_name, GNC_COMMODITY_NS_LEGACY) ||
-            !safe_strcmp(ns_name, GNC_COMMODITY_NS_ISO));
+            !safe_strcmp(ns_name, GNC_COMMODITY_NS_CURRENCY));

Question: When should a developer use NS_ISO and when should we use
NS_CURRENCY?   There are certainly many other places where NS_ISO
is being used.

-derek

Good question. I had a number of accounts in my file which had a gains-act slot that was keyed with ISO4217::USD. These all stopped working when the currency category was changed until I added new entries keyed with CURRENCY::USD. Right now gnucash is not consistent about what name it's going to use for this.

--
Mike Alexander           [EMAIL PROTECTED]
Ann Arbor, MI            PGP key ID: BEA343A6

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to