r23057 - gnucash/trunk/src/gnome-utils - Register2: Improve commodity/currency handling: Try to always use account_or_default_currency lookup instead of code duplication.
cstim at code.gnucash.org
Wed Jun 19 11:47:50 EDT 2013
Date: 2013-06-19 11:47:49 -0400 (Wed, 19 Jun 2013)
New Revision: 23057
Register2: Improve commodity/currency handling: Try to always use account_or_default_currency lookup instead of code duplication.
The code for ensuring a commodity that is a currency was duplicated among
the file. This is now refactored into the reg_currency variable. Also, in
a non-currency register the currency is now taken from parent accounts or
the default currency, which matches the old register's policy but is different
from what register2 previously did.
More information about the gnucash-patches