gnucash stable: Bug 798851 - Account Balance 'include subaccounts' not saved

Robert Fewell bobit at code.gnucash.org
Wed Apr 12 06:30:14 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/0d84506a (commit)
	from  https://github.com/Gnucash/gnucash/commit/cc2aa21d (commit)



commit 0d84506a5ee043aca11fdeb0e8d2490c9d1a60e1
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Wed Apr 12 11:20:32 2023 +0100

    Bug 798851 - Account Balance 'include subaccounts' not saved
    
    The defaults for the account were removed by mistake in a previous
    commit, added them back.

diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
index e7b2ddf12e..7c14e0db2d 100644
--- a/libgnucash/engine/Account.cpp
+++ b/libgnucash/engine/Account.cpp
@@ -329,6 +329,12 @@ gnc_account_init(Account* acc)
     priv->starting_reconciled_balance = gnc_numeric_zero();
     priv->balance_dirty = FALSE;
 
+    priv->higher_balance_limit = gnc_numeric_create (1,0);
+    priv->higher_balance_cached = false;
+    priv->lower_balance_limit = gnc_numeric_create (1,0);
+    priv->lower_balance_cached = false;
+    priv->include_sub_account_balances = TriState::Unset;
+
     priv->splits = NULL;
     priv->sort_dirty = FALSE;
 }



Summary of changes:
 libgnucash/engine/Account.cpp | 6 ++++++
 1 file changed, 6 insertions(+)



More information about the gnucash-changes mailing list