summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-08-09 16:56:53 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-08-09 16:56:53 -0500
commit97693b43b54423e023091c7b866a1061b644eebc (patch)
treeede20a86b1541c7ca1450b890a124760d1896f22 /src/account.cc
parente716995311076464e65ed402a9000892e8012d2e (diff)
downloadfork-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.cc4
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>);