diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-12 04:32:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-12 04:32:02 -0400 |
commit | 5f1a858941adc17fcf714c7b6b176aeae727c436 (patch) | |
tree | 846efb794cb76fdc4c63fa4c6ab554b83af49f07 /src/convert.cc | |
parent | 7ca8149ec5c7fa88d98df83e6260210372223036 (diff) | |
parent | cb047c013df0eaf1c5e9edd67bbb6b6fa537d2a0 (diff) | |
download | fork-ledger-5f1a858941adc17fcf714c7b6b176aeae727c436.tar.gz fork-ledger-5f1a858941adc17fcf714c7b6b176aeae727c436.tar.bz2 fork-ledger-5f1a858941adc17fcf714c7b6b176aeae727c436.zip |
Merge branch 'next'
Diffstat (limited to 'src/convert.cc')
-rw-r--r-- | src/convert.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/convert.cc b/src/convert.cc index 6c02cff3..2e6da2f6 100644 --- a/src/convert.cc +++ b/src/convert.cc @@ -83,7 +83,7 @@ value_t convert_command(call_scope_t& scope) } } - // Create a flat list o + // Create a flat list xacts_list current_xacts(journal.xacts_begin(), journal.xacts_end()); // Read in the series of transactions from the CSV file @@ -93,6 +93,11 @@ value_t convert_command(call_scope_t& scope) csv_reader reader(data); while (xact_t * xact = reader.read_xact(journal, bucket)) { + if (report.HANDLED(invert)) { + foreach (post_t * post, xact->posts) + post->amount.in_place_negate(); + } + bool matched = false; post_map_t::iterator i = post_map.find(- xact->posts.front()->amount); if (i != post_map.end()) { |