gnucash maint: Bug 798425 - Cash flow - Option / Account: Include Trading Accounts EXCLUDES them

Christopher Lam clam at code.gnucash.org
Fri Jan 21 05:55:19 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/1d28f28e (commit)
	from  https://github.com/Gnucash/gnucash/commit/f0de54ac (commit)



commit 1d28f28e03018df5906a8620daa490aa451b5f59
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jan 21 18:54:28 2022 +0800

    Bug 798425 - Cash flow - Option / Account: Include Trading Accounts EXCLUDES them
    
    The option must be negated to filter out Trading accounts.

diff --git a/gnucash/report/reports/cash-flow-calc.scm b/gnucash/report/reports/cash-flow-calc.scm
index 472c484f0..808e0d325 100644
--- a/gnucash/report/reports/cash-flow-calc.scm
+++ b/gnucash/report/reports/cash-flow-calc.scm
@@ -65,7 +65,7 @@
                 ((null? s-account)
                  (format #t "WARNING: s-account is NULL for split: ~a\n"
                          (gncSplitGetGUID s)))
-                ((or (and include-trading-accounts
+                ((or (and (not include-trading-accounts)
                           (eqv? (xaccAccountGetType s-account)
                                 ACCT-TYPE-TRADING))
                      (member s-account accounts)



Summary of changes:
 gnucash/report/reports/cash-flow-calc.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list