From 4f11ded5bc3e1ae1b21a1d5513320a7e5c6a6c4b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 26 Oct 2009 18:52:43 -0400 Subject: [PATCH] Added t and T as valexpr synonyms t = display_amount, T = display_total --- src/report.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/report.cc b/src/report.cc index b15d9974..53426f39 100644 --- a/src/report.cc +++ b/src/report.cc @@ -903,6 +903,13 @@ expr_t::ptr_op_t report_t::lookup(const string& name) return MAKE_FUNCTOR(report_t::fn_total_expr); else if (is_eq(p, "today")) return MAKE_FUNCTOR(report_t::fn_today); + else if (is_eq(p, "t")) + return MAKE_FUNCTOR(report_t::fn_display_amount); + break; + + case 'T': + if (is_eq(p, "T")) + return MAKE_FUNCTOR(report_t::fn_display_total); break; case 'u':