From 6770380b6da5061857e0a15539f1b85669d24e62 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 Jun 2010 16:07:54 -0400 Subject: 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. --- src/chain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/chain.cc') 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); -- cgit v1.2.3