[Gnucash-changes] r13771 - gnucash/trunk - Update the determination of what's a currency and what isn't. Fixes

Mike Alexander mta at umich.edu
Wed Apr 12 13:25:38 EDT 2006


--On April 12, 2006 12:37:38 PM -0400 Derek Atkins <warlord at MIT.EDU> 
wrote:

> Quoting David Hampton <hampton at cvs.gnucash.org>:
>
>>     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           mta at umich.edu
Ann Arbor, MI            PGP key ID: BEA343A6



More information about the gnucash-devel mailing list