Fixed a bug with budgeting
It only occurred if you asked for a budget report on the day that a budgeting period started.
This commit is contained in:
parent
95e08cc46f
commit
c0fe2b5300
1 changed files with 2 additions and 2 deletions
|
|
@ -769,11 +769,11 @@ void budget_posts::report_budget_items(const date_t& date)
|
||||||
}
|
}
|
||||||
assert(begin);
|
assert(begin);
|
||||||
|
|
||||||
if (*begin < date &&
|
if (*begin <= date &&
|
||||||
(! pair.first.end || *begin < *pair.first.end)) {
|
(! pair.first.end || *begin < *pair.first.end)) {
|
||||||
post_t& post = *pair.second;
|
post_t& post = *pair.second;
|
||||||
|
|
||||||
DEBUG("ledger.walk.budget", "Reporting budget for "
|
DEBUG("budget.generate", "Reporting budget for "
|
||||||
<< post.reported_account()->fullname());
|
<< post.reported_account()->fullname());
|
||||||
|
|
||||||
xact_t& xact = temps.create_xact();
|
xact_t& xact = temps.create_xact();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue