mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #459493: "Cleared" column in account overview should also sum up values of sub-accounts
The contributer, Chad V, writes: My reason being that if you like to keep track of different "virtual" accounts within one bank account, it is nice to see the cleared balance for the whole bank account. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17848 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
375be2acaf
commit
04b1d97e5f
@ -676,19 +676,19 @@ gnc_tree_model_account_get_value (GtkTreeModel *tree_model,
|
||||
case GNC_TREE_MODEL_ACCOUNT_COL_CLEARED:
|
||||
g_value_init (value, G_TYPE_STRING);
|
||||
string = gnc_ui_account_get_print_balance(xaccAccountGetClearedBalanceInCurrency,
|
||||
account, FALSE, &negative);
|
||||
account, TRUE, &negative);
|
||||
g_value_take_string (value, string);
|
||||
break;
|
||||
case GNC_TREE_MODEL_ACCOUNT_COL_CLEARED_REPORT:
|
||||
g_value_init (value, G_TYPE_STRING);
|
||||
string = gnc_ui_account_get_print_report_balance(xaccAccountGetClearedBalanceInCurrency,
|
||||
account, FALSE, &negative);
|
||||
account, TRUE, &negative);
|
||||
g_value_take_string (value, string);
|
||||
break;
|
||||
case GNC_TREE_MODEL_ACCOUNT_COL_COLOR_CLEARED:
|
||||
g_value_init (value, G_TYPE_STRING);
|
||||
string = gnc_ui_account_get_print_balance(xaccAccountGetClearedBalanceInCurrency,
|
||||
account, FALSE, &negative);
|
||||
account, TRUE, &negative);
|
||||
gnc_tree_model_account_set_color(model, negative, value);
|
||||
g_free(string);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user