diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-22 23:42:18 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-22 23:42:18 -0500 |
commit | 5addacfbf21250204b8db25f0a4890c1299cb891 (patch) | |
tree | 9a4f9d35dd479cc8591a52d30c760f7f55758229 /src/filters.h | |
parent | 4e07084b0351f2ff75bbb960ff9b02b2f99e4b23 (diff) | |
download | fork-ledger-5addacfbf21250204b8db25f0a4890c1299cb891.tar.gz fork-ledger-5addacfbf21250204b8db25f0a4890c1299cb891.tar.bz2 fork-ledger-5addacfbf21250204b8db25f0a4890c1299cb891.zip |
Fixed an interaction with equity and virtual accounts
Fixes #686
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/filters.h b/src/filters.h index ab226429..1dad8852 100644 --- a/src/filters.h +++ b/src/filters.h @@ -640,15 +640,22 @@ protected: public: account_t * account; value_t value; + bool is_virtual; + bool must_balance; - acct_value_t(account_t * a) : account(a) { - TRACE_CTOR(acct_value_t, "account_t *"); + acct_value_t(account_t * a, bool _is_virtual = false, + bool _must_balance = false) + : account(a), is_virtual(_is_virtual), must_balance(_must_balance) { + TRACE_CTOR(acct_value_t, "account_t *, bool, bool"); } - acct_value_t(account_t * a, value_t& v) : account(a), value(v) { - TRACE_CTOR(acct_value_t, "account_t *, value_t&"); + acct_value_t(account_t * a, value_t& v, bool _is_virtual = false, + bool _must_balance = false) + : account(a), value(v), is_virtual(_is_virtual), + must_balance(_must_balance) { + TRACE_CTOR(acct_value_t, "account_t *, value_t&, bool, bool"); } acct_value_t(const acct_value_t& av) - : account(av.account), value(av.value) { + : account(av.account), value(av.value), is_virtual(av.is_virtual) { TRACE_CTOR(acct_value_t, "copy"); } ~acct_value_t() throw() { |