The --revalued option now honors the -e terminus

This commit is contained in:
John Wiegley 2009-06-17 16:54:02 +01:00
parent 81db8a38fe
commit cb2e596725
3 changed files with 11 additions and 8 deletions

View file

@ -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))

View file

@ -468,13 +468,7 @@ public:
clear_xacts_posts(xact_temps);
}
virtual void flush() {
if (last_post && last_post->date() <= CURRENT_DATE()) {
output_revaluation(last_post, CURRENT_DATE());
last_post = NULL;
}
item_handler<post_t>::flush();
}
virtual void flush();
void output_revaluation(post_t * post, const date_t& current);
void output_rounding(post_t * post);

View file

@ -1,4 +1,4 @@
reg -V
reg -V --end=2009/06/16
<<<
2008/04/15 * Paid expenses back from cie.
Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR