Revert "Bug 798425 - Cash flow - Option / Account: Include Trading Accounts EXCLUDES them"

This reverts commit 1d28f28e03. The
original code was fine: enabling "Include Trading Accounts" should
consider these accounts as part of the account selection.
This commit is contained in:
Christopher Lam 2022-01-24 05:13:20 +08:00
parent 0640257841
commit 01e1b92254

View File

@ -65,7 +65,7 @@
((null? s-account)
(format #t "WARNING: s-account is NULL for split: ~a\n"
(gncSplitGetGUID s)))
((or (and (not include-trading-accounts)
((or (and include-trading-accounts
(eqv? (xaccAccountGetType s-account)
ACCT-TYPE-TRADING))
(member s-account accounts)