diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:59:13 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 20:59:13 -0400 |
commit | bfa6a643a1317515e10cca2170463f941e6d0f10 (patch) | |
tree | efb252f89017778e84b0960be979528ad1a8a3ae /src/chain.cc | |
parent | 78e57ac4cfe60147051f0a04e82c19174a86f899 (diff) | |
download | fork-ledger-bfa6a643a1317515e10cca2170463f941e6d0f10.tar.gz fork-ledger-bfa6a643a1317515e10cca2170463f941e6d0f10.tar.bz2 fork-ledger-bfa6a643a1317515e10cca2170463f941e6d0f10.zip |
Improved handling of --empty option
For example, in period reports null transactions are only generated for
empty periods if --empty is used. Otherwise, the presence of such
transactions can get confusing.
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 baf92f64..c8cbf673 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -113,7 +113,8 @@ xact_handler_ptr chain_xact_handlers(report_t& report, if (report.HANDLED(period_)) { handler.reset(new interval_xacts(handler, expr, report.HANDLER(period_).str(), - report.session.master.get())); + report.session.master.get(), + report.HANDLED(empty))); handler.reset(new sort_xacts(handler, "date")); } |