summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-02 05:01:04 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-02 05:01:04 -0400
commitea0e14ae74ef99e01258b9c4afaffe5150a14498 (patch)
tree7c558a5b773df37b103844519959ca5d4ecb0a8a /src
parent25f106d299d0b067e257843e398acc15d66ac49b (diff)
downloadfork-ledger-ea0e14ae74ef99e01258b9c4afaffe5150a14498.tar.gz
fork-ledger-ea0e14ae74ef99e01258b9c4afaffe5150a14498.tar.bz2
fork-ledger-ea0e14ae74ef99e01258b9c4afaffe5150a14498.zip
The entry command now implies --actual
Diffstat (limited to 'src')
-rw-r--r--src/derive.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/derive.cc b/src/derive.cc
index 4730af00..b367307d 100644
--- a/src/derive.cc
+++ b/src/derive.cc
@@ -411,10 +411,12 @@ value_t xact_command(call_scope_t& args)
value_t::sequence_t::const_iterator begin = args.value().begin();
value_t::sequence_t::const_iterator end = args.value().end();
- report_t& report(find_scope<report_t>(args));
- xact_template_t tmpl = args_to_xact_template(begin, end);
+ report_t& report(find_scope<report_t>(args));
+ xact_template_t tmpl = args_to_xact_template(begin, end);
std::auto_ptr<xact_t> new_xact(derive_xact_from_template(tmpl, report));
+ report.HANDLER(limit_).on("actual"); // jww (2009-02-27): make this more general
+
report.xact_report(post_handler_ptr
(new format_posts(report,
report.HANDLER(print_format_).str())),