diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-09 15:07:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-09 15:07:28 -0400 |
commit | 37a1989ca0b47308acee386f0976cb2da57eeedd (patch) | |
tree | 30ca37b88df705e979a722133bcf093a125da502 /src/chain.cc | |
parent | 11dc80b6184f7a48400a76ee226ef1c9be819145 (diff) | |
download | fork-ledger-37a1989ca0b47308acee386f0976cb2da57eeedd.tar.gz fork-ledger-37a1989ca0b47308acee386f0976cb2da57eeedd.tar.bz2 fork-ledger-37a1989ca0b47308acee386f0976cb2da57eeedd.zip |
Added a new --collapse-if-zero option.
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chain.cc b/src/chain.cc index ed800c47..2578387e 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -92,7 +92,8 @@ xact_handler_ptr chain_xact_handlers(report_t& report, // collapse_xacts causes entries with multiple xacts to appear as entries // with a subtotaled xact for each commodity used. if (report.HANDLED(collapse)) - handler.reset(new collapse_xacts(handler, expr)); + handler.reset(new collapse_xacts(handler, expr, + report.HANDLED(collapse_if_zero))); // subtotal_xacts combines all the xacts it receives into one subtotal // entry, which has one xact for each commodity in each account. |