r17848 - gnucash/trunk/src/gnome-utils - Bug #459493: "Cleared" column in account overview should also sum up values of sub-accounts

Christian Stimming cstim at cvs.gnucash.org
Wed Jan 28 15:54:56 EST 2009


Author: cstim
Date: 2009-01-28 15:54:56 -0500 (Wed, 28 Jan 2009)
New Revision: 17848
Trac: http://svn.gnucash.org/trac/changeset/17848

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c
Log:
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.

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c	2009-01-28 20:48:16 UTC (rev 17847)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-account.c	2009-01-28 20:54:56 UTC (rev 17848)
@@ -676,19 +676,19 @@
 		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;



More information about the gnucash-changes mailing list