summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-21 18:07:27 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-21 18:07:27 +0100
commit521b935aa8ef68ac3a8a1fe1a37eed39b41eec95 (patch)
treeb7e482b7ea2d7725387046fdd6523e0f15f1dfa3 /src/post.cc
parent7287aad336161eb9a143f188c92d462e62051374 (diff)
downloadfork-ledger-521b935aa8ef68ac3a8a1fe1a37eed39b41eec95.tar.gz
fork-ledger-521b935aa8ef68ac3a8a1fe1a37eed39b41eec95.tar.bz2
fork-ledger-521b935aa8ef68ac3a8a1fe1a37eed39b41eec95.zip
Restored --percent option, added baseline test
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/post.cc b/src/post.cc
index 8eccf03d..9b416434 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -302,6 +302,8 @@ expr_t::ptr_op_t post_t::lookup(const string& name)
return WRAP_FUNCTOR(get_wrapper<&get_payee>);
else if (name == "primary")
return WRAP_FUNCTOR(get_wrapper<&get_commodity_is_primary>);
+ else if (name == "parent")
+ return WRAP_FUNCTOR(get_wrapper<&get_xact>);
break;
case 'r':