summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-19 16:07:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-19 16:07:59 -0400
commit6770380b6da5061857e0a15539f1b85669d24e62 (patch)
treed04d198e1fa4abf0c4642a5112dbf99c4558e832 /src/chain.cc
parentb819475a9346bedf31fd25e67dc2640ff6431141 (diff)
downloadfork-ledger-6770380b6da5061857e0a15539f1b85669d24e62.tar.gz
fork-ledger-6770380b6da5061857e0a15539f1b85669d24e62.tar.bz2
fork-ledger-6770380b6da5061857e0a15539f1b85669d24e62.zip
Subsantial fixes and improvements to budgeting
1. A bounded budget "from DATE to DATE" will now generate entries throughout that entire range, if it is triggered. 2. An unbounded budget begins, as before, in the timeframe of the reported posting which triggered it, but now continues until the present date.
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 8010ba74..228c3fec 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -67,8 +67,8 @@ post_handler_ptr chain_pre_post_handlers(post_handler_ptr base_handler,
// future balance.
if (report.budget_flags != BUDGET_NO_BUDGET) {
- budget_posts * budget_handler = new budget_posts(handler,
- report.budget_flags);
+ budget_posts * budget_handler =
+ new budget_posts(handler, report.terminus.date(), report.budget_flags);
budget_handler->add_period_xacts(report.session.journal->period_xacts);
handler.reset(budget_handler);