summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-15 17:07:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-15 17:07:43 -0400
commit3c7388918b2df7891a35b711e30ba492d1a6e9a8 (patch)
tree409ca75060b63696b7e54893961310707db3e125 /src/report.h
parent20475478a4f49b8f6e4c86b8c1fc7d79451581e0 (diff)
downloadfork-ledger-3c7388918b2df7891a35b711e30ba492d1a6e9a8.tar.gz
fork-ledger-3c7388918b2df7891a35b711e30ba492d1a6e9a8.tar.bz2
fork-ledger-3c7388918b2df7891a35b711e30ba492d1a6e9a8.zip
Change a few calls to on() to use set_expr()
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/report.h b/src/report.h
index 9356deed..06a1e040 100644
--- a/src/report.h
+++ b/src/report.h
@@ -239,8 +239,7 @@ public:
OPTION_(report_t, basis, DO() { // -B
parent->HANDLER(revalued).off();
- parent->HANDLER(amount_).on("cost");
- parent->HANDLER(total_).on("total_cost");
+ parent->HANDLER(amount_).set_expr("cost");
});
OPTION_(report_t, begin_, DO_(args) { // -b
@@ -388,8 +387,8 @@ public:
OPTION_(report_t, price, DO() { // -I
parent->HANDLER(revalued).off();
- parent->HANDLER(amount_).on("price");
- parent->HANDLER(total_).on("total_price");
+ parent->HANDLER(amount_).set_expr("price");
+ parent->HANDLER(total_).set_expr("total_price");
});
OPTION(report_t, price_exp_); // -Z
@@ -399,8 +398,8 @@ public:
OPTION_(report_t, quantity, DO() { // -O
parent->HANDLER(revalued).off();
- parent->HANDLER(amount_).on("amount");
- parent->HANDLER(total_).on("total");
+ parent->HANDLER(amount_).set_expr("amount");
+ parent->HANDLER(total_).set_expr("total");
});
OPTION_(report_t, quarterly, DO() {