diff options
author | John Wiegley <johnw@newartisans.com> | 2012-08-09 16:56:53 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-08-09 16:56:53 -0500 |
commit | 97693b43b54423e023091c7b866a1061b644eebc (patch) | |
tree | ede20a86b1541c7ca1450b890a124760d1896f22 /src/account.cc | |
parent | e716995311076464e65ed402a9000892e8012d2e (diff) | |
download | fork-ledger-97693b43b54423e023091c7b866a1061b644eebc.tar.gz fork-ledger-97693b43b54423e023091c7b866a1061b644eebc.tar.bz2 fork-ledger-97693b43b54423e023091c7b866a1061b644eebc.zip |
Resolve account.date to latest post in the account
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc index 72709f95..8a5cdffa 100644 --- a/src/account.cc +++ b/src/account.cc @@ -380,7 +380,9 @@ expr_t::ptr_op_t account_t::lookup(const symbol_t::kind_t kind, break; case 'd': - if (fn_name == "depth") + if (fn_name == "date") + return WRAP_FUNCTOR(get_wrapper<&get_latest>); + else if (fn_name == "depth") return WRAP_FUNCTOR(get_wrapper<&get_depth>); else if (fn_name == "depth_spacer") return WRAP_FUNCTOR(get_wrapper<&get_depth_spacer>); |