diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-26 02:16:09 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-26 02:16:09 -0600 |
commit | 4a18317e7c35fea0aafdd99fec93adfea694743d (patch) | |
tree | 742ceb33017938573756f21c31c60cf9239473a9 /src/convert.cc | |
parent | 5a201971a9a1042a74ce2548a2de3c3e2afcf751 (diff) | |
download | fork-ledger-4a18317e7c35fea0aafdd99fec93adfea694743d.tar.gz fork-ledger-4a18317e7c35fea0aafdd99fec93adfea694743d.tar.bz2 fork-ledger-4a18317e7c35fea0aafdd99fec93adfea694743d.zip |
Added --auto-match option, for use with 'convert'
Diffstat (limited to 'src/convert.cc')
-rw-r--r-- | src/convert.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/convert.cc b/src/convert.cc index 493fbb7a..1ef3a413 100644 --- a/src/convert.cc +++ b/src/convert.cc @@ -123,8 +123,10 @@ value_t convert_command(call_scope_t& args) if (xact->posts.front()->account == NULL) { // jww (2010-03-07): Bind this logic to an option: --auto-match if (account_t * acct = - lookup_probable_account(xact->payee, current_xacts.rbegin(), - current_xacts.rend(), bucket).second) + (report.HANDLED(auto_match) ? + lookup_probable_account(xact->payee, current_xacts.rbegin(), + current_xacts.rend(), bucket).second : + NULL)) xact->posts.front()->account = acct; else xact->posts.front()->account = unknown; |