|
|
gchar * | gnc_normalize_account_separator (const gchar *separator) |
| |
|
gboolean | gnc_reverse_balance (const Account *account) |
| |
|
gchar * | gnc_get_default_directory (const gchar *section) |
| |
|
void | gnc_set_default_directory (const gchar *section, const gchar *directory) |
| |
|
QofBook * | gnc_get_current_book (void) |
| |
|
gboolean | gnc_is_new_book (void) |
| |
|
void | gnc_set_current_book_tax_name (const gchar *tax_name) |
| |
|
const gchar * | gnc_get_current_book_tax_name (void) |
| |
|
void | gnc_set_current_book_tax_type (const gchar *tax_type) |
| |
|
const gchar * | gnc_get_current_book_tax_type (void) |
| |
| void | gnc_book_option_num_field_source_change_cb (gboolean num_action) |
| |
|
Account * | gnc_get_current_root_account (void) |
| |
|
gnc_commodity_table * | gnc_get_current_commodities (void) |
| |
| gchar * | gnc_get_account_name_for_register (const Account *account) |
| |
| Account * | gnc_account_lookup_for_register (const Account *base_account, const gchar *name) |
| |
|
char * | gnc_ui_account_get_tax_info_string (const Account *account) |
| |
|
char * | gnc_ui_account_get_tax_info_sub_acct_string (const Account *account) |
| |
|
const char * | gnc_get_reconcile_str (char reconciled_flag) |
| |
|
const char * | gnc_get_reconcile_valid_flags (void) |
| |
|
const char * | gnc_get_reconcile_flag_order (void) |
| |
|
Account * | gnc_find_or_create_equity_account (Account *root, GNCEquityType equity_type, gnc_commodity *currency) |
| |
|
gboolean | gnc_account_create_opening_balance (Account *account, gnc_numeric balance, time64 date, QofBook *book) |
| |
|
gnc_commodity * | gnc_locale_default_currency_nodefault (void) |
| |
|
gnc_commodity * | gnc_locale_default_currency (void) |
| |
|
const char * | gnc_locale_default_iso_currency_code (void) |
| |
| gnc_commodity * | gnc_default_currency (void) |
| |
| gnc_commodity * | gnc_account_or_default_currency (const Account *account, gboolean *currency_from_account_found) |
| |
| gnc_commodity * | gnc_default_report_currency (void) |
| |
|
GNCPrintAmountInfo | gnc_default_print_info (gboolean use_symbol) |
| |
|
GNCPrintAmountInfo | gnc_commodity_print_info (const gnc_commodity *commodity, gboolean use_symbol) |
| |
|
GNCPrintAmountInfo | gnc_account_print_info (const Account *account, gboolean use_symbol) |
| |
|
GNCPrintAmountInfo | gnc_split_amount_print_info (Split *split, gboolean use_symbol) |
| |
|
GNCPrintAmountInfo | gnc_share_print_info_places (int decplaces) |
| |
|
GNCPrintAmountInfo | gnc_default_share_print_info (void) |
| |
|
GNCPrintAmountInfo | gnc_default_price_print_info (void) |
| |
|
GNCPrintAmountInfo | gnc_integral_print_info (void) |
| |
|
const char * | xaccPrintAmount (gnc_numeric val, GNCPrintAmountInfo info) |
| |
| int | xaccSPrintAmount (char *buf, gnc_numeric val, GNCPrintAmountInfo info) |
| |
|
const gchar * | printable_value (gdouble val, gint denom) |
| |
|
gchar * | number_to_words (gdouble val, gint64 denom) |
| |
|
gchar * | numeric_to_words (gnc_numeric val) |
| |
|
gboolean | xaccParseAmount (const char *in_str, gboolean monetary, gnc_numeric *result, char **endstr) |
| |
|
gboolean | xaccParseAmountExtended (const char *in_str, gboolean monetary, gunichar negative_sign, gunichar decimal_point, gunichar group_separator, char *group, char *ignore_list, gnc_numeric *result, char **endstr) |
| |
|
void | gnc_ui_util_init (void) |
| |
| gnc_commodity* gnc_account_or_default_currency |
( |
const Account * |
account, |
|
|
gboolean * |
currency_from_account_found |
|
) |
| |
Returns a gnc_commodity that is a currency, suitable for being a Transaction's currency. The gnc_commodity is taken either from the current account, or from the next parent account that has a gnc_commodity that is a currency, or from gnc_default_currency().
If the given account or any of its parent account have a commodity that is a currency, it is returned and the gboolean currency_from_account_found is set to TRUE (if non-NULL). If neither this account nor any of its parent accounts have such a commodity, gnc_default_currency() is returned and the gboolean currency_from_account_found is set to FALSE (if non-NULL). This can be used to show an appropriate warning message.
If account is NULL, gnc_default_currency() is returned and currency_from_account_found is set to FALSE.
- Parameters
-
| account | The account where the currency should be looked up. May be NULL. |
| currency_from_account_found | A gboolean pointer that takes the output argument of whether the returned currency was found in the account. May be NULL. |
- Returns
- A currency pointer (and never NULL).
Definition at line 944 of file gnc-ui-util.c.
949 if (currency_from_account_found)
950 *currency_from_account_found = FALSE;
957 if (currency_from_account_found)
958 *currency_from_account_found = TRUE;
962 if (currency_from_account_found)
963 *currency_from_account_found = FALSE;
gnc_commodity * gnc_default_currency(void)
gnc_commodity * gnc_account_get_currency_or_parent(const Account *account)