The --revalued option now honors the -e terminus
This commit is contained in:
parent
81db8a38fe
commit
cb2e596725
3 changed files with 11 additions and 8 deletions
|
|
@ -388,6 +388,15 @@ void related_posts::flush()
|
||||||
item_handler<post_t>::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)
|
void changed_value_posts::output_revaluation(post_t * post, const date_t& date)
|
||||||
{
|
{
|
||||||
if (is_valid(date))
|
if (is_valid(date))
|
||||||
|
|
|
||||||
|
|
@ -468,13 +468,7 @@ public:
|
||||||
clear_xacts_posts(xact_temps);
|
clear_xacts_posts(xact_temps);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void flush() {
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
void output_revaluation(post_t * post, const date_t& current);
|
void output_revaluation(post_t * post, const date_t& current);
|
||||||
void output_rounding(post_t * post);
|
void output_rounding(post_t * post);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
reg -V
|
reg -V --end=2009/06/16
|
||||||
<<<
|
<<<
|
||||||
2008/04/15 * Paid expenses back from cie.
|
2008/04/15 * Paid expenses back from cie.
|
||||||
Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR
|
Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue