diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-17 16:54:02 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-17 16:54:02 +0100 |
commit | cb2e596725585c73ad8a7958773839966225d850 (patch) | |
tree | 54e537e8234f3b79610ca1b28cb5febabf3cda0c /src/filters.cc | |
parent | 81db8a38fe0ca02c86d6e23fca8464616f7c3da6 (diff) | |
download | fork-ledger-cb2e596725585c73ad8a7958773839966225d850.tar.gz fork-ledger-cb2e596725585c73ad8a7958773839966225d850.tar.bz2 fork-ledger-cb2e596725585c73ad8a7958773839966225d850.zip |
The --revalued option now honors the -e terminus
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index bb2681c6..ab7d4b74 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -388,6 +388,15 @@ void related_posts::flush() item_handler<post_t>::flush(); } +void changed_value_posts::flush() +{ + if (last_post && last_post->date() <= report.terminus) { + output_revaluation(last_post, report.terminus); + last_post = NULL; + } + item_handler<post_t>::flush(); +} + void changed_value_posts::output_revaluation(post_t * post, const date_t& date) { if (is_valid(date)) |