diff options
author | Johann Klähn <kljohann@gmail.com> | 2012-10-13 15:17:09 +0200 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-10-18 13:45:40 -0700 |
commit | 49b02614a39ad86bb499df8b410232a5948247d7 (patch) | |
tree | 691f32be90eec67bc7131d41dbc11026e9726f6f /src/csv.cc | |
parent | 0d90de44b62274ae761b8d81c754f2c78cd44f56 (diff) | |
download | fork-ledger-49b02614a39ad86bb499df8b410232a5948247d7.tar.gz fork-ledger-49b02614a39ad86bb499df8b410232a5948247d7.tar.bz2 fork-ledger-49b02614a39ad86bb499df8b410232a5948247d7.zip |
fix account mapping in csv conversion
By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.
Diffstat (limited to 'src/csv.cc')
-rw-r--r-- | src/csv.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -243,7 +243,7 @@ xact_t * csv_reader::read_xact(bool rich_data) // Translate the account name, if we have enough information to do so - foreach (account_mapping_t& value, context.journal->account_mappings) { + foreach (account_mapping_t& value, context.journal->payees_for_unknown_accounts) { if (value.first.match(xact->payee)) { post->account = value.second; break; |