summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-13 06:13:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-13 06:13:19 -0400
commit2522f15437e75fef323edb9b8c11f3a7fac6d519 (patch)
tree70273e5fca7bdab945faca643faf3435ec71eb42
parent206cb4cce3d2e36175691b49938053da0b192fa7 (diff)
downloadfork-ledger-2522f15437e75fef323edb9b8c11f3a7fac6d519.tar.gz
fork-ledger-2522f15437e75fef323edb9b8c11f3a7fac6d519.tar.bz2
fork-ledger-2522f15437e75fef323edb9b8c11f3a7fac6d519.zip
Re-activated the budgeting flags
However, the budget reports themselves still need to be tested.
-rw-r--r--src/report.h15
1 files 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