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:
John Wiegley 2009-11-02 01:21:28 -05:00
parent 95e08cc46f
commit c0fe2b5300

View file

@ -769,11 +769,11 @@ void budget_posts::report_budget_items(const date_t& date)
}
assert(begin);
if (*begin < date &&
if (*begin <= date &&
(! pair.first.end || *begin < *pair.first.end)) {
post_t& post = *pair.second;
DEBUG("ledger.walk.budget", "Reporting budget for "
DEBUG("budget.generate", "Reporting budget for "
<< post.reported_account()->fullname());
xact_t& xact = temps.create_xact();