diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-01 21:15:11 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-01 21:15:11 -0500 |
commit | 449c7ca790f62b30594e845e0c1bab07c44850af (patch) | |
tree | 1f7c8b0bf422f854de8408bfd6b98fd7c4196e9b /src/chain.cc | |
parent | 52d1441646969797d4a0582c6344da46f56904e1 (diff) | |
download | fork-ledger-449c7ca790f62b30594e845e0c1bab07c44850af.tar.gz fork-ledger-449c7ca790f62b30594e845e0c1bab07c44850af.tar.bz2 fork-ledger-449c7ca790f62b30594e845e0c1bab07c44850af.zip |
New: --set-reported-account, --set-reported-payee
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/chain.cc b/src/chain.cc index db52269c..defa2e97 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -159,6 +159,17 @@ post_handler_ptr chain_post_handlers(report_t& report, handler.reset(new sort_posts(handler, "date")); } + if (report.HANDLED(set_reported_account_)) + handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT, + report.session.journal->master, + report.HANDLER(set_reported_account_).str(), + report)); + else if (report.HANDLED(set_reported_payee_)) + handler.reset(new transfer_details(handler, transfer_details::SET_PAYEE, + report.session.journal->master, + report.HANDLER(set_reported_payee_).str(), + report)); + // related_posts will pass along all posts related to the post received. If // the `related_all' handler is on, then all the xact's posts are passed; // meaning that if one post of an xact is to be printed, all the post for |