summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 01:21:28 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 01:21:28 -0500
commitc0fe2b530003adee5a8cc7423e9c1c4022cf314a (patch)
tree4dcc7d60bb1879281bc3e3dd9f9225e788aaccd1 /src/filters.cc
parent95e08cc46fb499866f2491b4a8aad9fe29ac6a00 (diff)
downloadfork-ledger-c0fe2b530003adee5a8cc7423e9c1c4022cf314a.tar.gz
fork-ledger-c0fe2b530003adee5a8cc7423e9c1c4022cf314a.tar.bz2
fork-ledger-c0fe2b530003adee5a8cc7423e9c1c4022cf314a.zip
Fixed a bug with budgeting
It only occurred if you asked for a budget report on the day that a budgeting period started.
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 76326ac1..201fddf1 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -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();