gnucash stable: [gnc-budget-view.c] tally budget totals for toplevel types BANK etc

Christopher Lam clam at code.gnucash.org
Wed May 24 09:44:40 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/ad7bae82 (commit)
	from  https://github.com/Gnucash/gnucash/commit/6bdaa161 (commit)



commit ad7bae8222338b1970fb811408d34ffe7dfe3490
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed May 24 21:39:56 2023 +0800

    [gnc-budget-view.c] tally budget totals for toplevel types BANK etc
    
    Budget assumed toplevel accounts are of type ASSET/LIABILITY etc when
    tallying the summary 4 rows. It failed to tally values from accounts
    of type CASH/BANK/CHECKING/SAVINGS etc. Enable tallying for these
    toplevel accounts.

diff --git a/gnucash/gnome/gnc-budget-view.c b/gnucash/gnome/gnc-budget-view.c
index bbfc06180d..52b451bd83 100644
--- a/gnucash/gnome/gnc-budget-view.c
+++ b/gnucash/gnome/gnc-budget-view.c
@@ -1344,7 +1344,7 @@ totals_col_source (GtkTreeViewColumn *col, GtkCellRenderer *cell,
         GNCAccountType acctype;
 
         currency = gnc_account_get_currency_or_parent (account);
-        acctype = xaccAccountGetType (account);
+        acctype = xaccAccountTypeGetFundamental (xaccAccountGetType (account));
 
         neg = gnc_reverse_balance (account);
 



Summary of changes:
 gnucash/gnome/gnc-budget-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list