diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-06 02:38:46 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-06 02:39:30 -0500 |
commit | a05d39b7226a7a383dc30132a2fac2bbd30a54ec (patch) | |
tree | b8a91ddd64b1c7c43612f341bff62530aa986003 /src/filters.cc | |
parent | 05d0f1a17f9f4a9d659274d91dfb164055453637 (diff) | |
download | fork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.tar.gz fork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.tar.bz2 fork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.zip |
Renamed --set-reported-account to just --account
This fits better with the --amount and --total options, which both
change the amount and total used for calculation. Same with --account:
it happens after filtering, but before calculation so that balance
reports look as you'd expect.
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index 00e495dd..0469d6ec 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -711,6 +711,7 @@ void transfer_details::operator()(post_t& post) case SET_PAYEE: xact.payee = expr.calc(bound_scope).to_string(); break; + case SET_ACCOUNT: { std::list<string> account_names; temp.account->remove_post(&temp); @@ -720,6 +721,7 @@ void transfer_details::operator()(post_t& post) temp.account->add_post(&temp); break; } + default: assert(false); break; |