summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-21 02:14:53 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-21 02:14:53 -0400
commitd0ac3a2e4e4b6a28c71755fe54089e28e3a7d4db (patch)
tree4ac1059c1170ddabe68e43b890612595d1d3e5be /src/chain.cc
parenta93111470d54e6345617b51fcc939f306854a524 (diff)
downloadfork-ledger-d0ac3a2e4e4b6a28c71755fe54089e28e3a7d4db.tar.gz
fork-ledger-d0ac3a2e4e4b6a28c71755fe54089e28e3a7d4db.tar.bz2
fork-ledger-d0ac3a2e4e4b6a28c71755fe54089e28e3a7d4db.zip
Added a new --exact option
The purpose of this option is that usually when you do a --monthly periodic report, you see dates ranges from the first day of each month, to the last day. With --exact, the first day of each range will be the date of the first transaction found in that range, and likewise with the end of the range. Essentially it "contracts" the reported period dates to reflect the exact begin and end dates.
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 2fc6123e..14c07b8c 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -138,6 +138,7 @@ xact_handler_ptr chain_xact_handlers(report_t& report,
handler.reset(new interval_xacts(handler, expr,
report.HANDLER(period_).str(),
report.session.master.get(),
+ report.HANDLED(exact),
report.HANDLED(empty)));
handler.reset(new sort_xacts(handler, "date"));
}