From 2522f15437e75fef323edb9b8c11f3a7fac6d519 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Feb 2009 06:13:19 -0400 Subject: Re-activated the budgeting flags However, the budget reports themselves still need to be tested. --- src/report.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/report.h b/src/report.h index 9ea99bbd..7d601662 100644 --- a/src/report.h +++ b/src/report.h @@ -191,7 +191,9 @@ public: OPTION(report_t, abbrev_len_); OPTION(report_t, account_); OPTION(report_t, actual); // -L - OPTION(report_t, add_budget); + OPTION_(report_t, add_budget, DO() { + parent->budget_flags = BUDGET_BUDGETED | BUDGET_UNBUDGETED; + }); OPTION__ (report_t, amount_, // -t @@ -230,7 +232,10 @@ public: parent->append_predicate(predicate); }); - OPTION(report_t, budget); + OPTION_(report_t, budget, DO() { + parent->budget_flags = BUDGET_BUDGETED; + }); + OPTION(report_t, by_payee); // -P OPTION(report_t, cache_); OPTION(report_t, cleared); // -C @@ -395,7 +400,11 @@ public: OPTION(report_t, total_data); // -J OPTION(report_t, totals); OPTION(report_t, truncate_); - OPTION(report_t, unbudgeted); + + OPTION_(report_t, unbudgeted, DO() { + parent->budget_flags = BUDGET_UNBUDGETED; + }); + OPTION(report_t, uncleared); // -U OPTION(report_t, weekly); // -W OPTION(report_t, wide); // -w -- cgit v1.2.3