diff options
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/account.cc b/src/account.cc index d65b6911..9bc96564 100644 --- a/src/account.cc +++ b/src/account.cc @@ -196,6 +196,10 @@ namespace { return long(account.depth); } + value_t ignore(account_t&) { + return false; + } + value_t get_depth_spacer(account_t& account) { std::size_t depth = 0; @@ -259,6 +263,11 @@ expr_t::ptr_op_t account_t::lookup(const string& name) if (name == "total") return WRAP_FUNCTOR(get_wrapper<&get_total>); break; + + case 'u': + if (name == "use_direct_amount") + return WRAP_FUNCTOR(get_wrapper<&ignore>); + break; } return NULL; |