diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 02:53:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 02:53:54 -0400 |
commit | c1b25fcf8629eca326fe6dd586e4896eeb5f2d45 (patch) | |
tree | f7c59ce215ee66513db2f9eb142cdf9e7095c465 /src/chain.cc | |
parent | f2f52066d2a9c82619ffea0f3972e48417a90b5b (diff) | |
download | fork-ledger-c1b25fcf8629eca326fe6dd586e4896eeb5f2d45.tar.gz fork-ledger-c1b25fcf8629eca326fe6dd586e4896eeb5f2d45.tar.bz2 fork-ledger-c1b25fcf8629eca326fe6dd586e4896eeb5f2d45.zip |
Rewrote the equity command, which is working again
The old implementation used an account formatter, and was very
specialized. The new is done as a transaction filter, and works along
with everything else, eliminating bugs special to the equity report.
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chain.cc b/src/chain.cc index 30a6793c..c67de108 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -113,7 +113,9 @@ xact_handler_ptr chain_xact_handlers(report_t& report, // // dow_xacts is like period_xacts, except that it reports all the xacts // that fall on each subsequent day of the week. - if (report.HANDLED(subtotal)) + if (report.HANDLED(equity)) + handler.reset(new xacts_as_equity(handler, expr)); + else if (report.HANDLED(subtotal)) handler.reset(new subtotal_xacts(handler, expr)); } |