diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-26 18:52:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-26 18:52:43 -0400 |
commit | 4f11ded5bc3e1ae1b21a1d5513320a7e5c6a6c4b (patch) | |
tree | e8d188b6ed5fb7bc1ccf83f7339d1085844e9832 /src | |
parent | 151a8d87ee299b54da262346471aa71a729a6eb2 (diff) | |
download | ledger-4f11ded5bc3e1ae1b21a1d5513320a7e5c6a6c4b.tar.gz ledger-4f11ded5bc3e1ae1b21a1d5513320a7e5c6a6c4b.tar.bz2 ledger-4f11ded5bc3e1ae1b21a1d5513320a7e5c6a6c4b.zip |
Added t and T as valexpr synonyms
t = display_amount, T = display_total
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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': |