summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 113a71d8..ecb39e0b 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -158,11 +158,21 @@ post_handler_ptr chain_post_handlers(report_t& report,
report.session.journal->master,
report.HANDLER(date_).str(),
report));
- if (report.HANDLED(account_))
+
+ if (report.HANDLED(account_)) {
handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT,
report.session.journal->master,
report.HANDLER(account_).str(),
report));
+ }
+ else if (report.HANDLED(pivot_)) {
+ string pivot = report.HANDLER(pivot_).str();
+ pivot = string("\"") + pivot + ":\" + tag(/" + pivot + "/)";
+ handler.reset(new transfer_details(handler, transfer_details::SET_ACCOUNT,
+ report.session.journal->master, pivot,
+ report));
+ }
+
if (report.HANDLED(payee_))
handler.reset(new transfer_details(handler, transfer_details::SET_PAYEE,
report.session.journal->master,