summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 15:32:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 15:32:38 -0400
commitcbd66ba1c9805f03a5682f78ee1f830de8266fa4 (patch)
tree13a440d9a2428e1818d5e3e0f69540dbc7aa0a37 /src/post.cc
parentf881bf131985b52566e606f34b07f5f3c4df244c (diff)
downloadfork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.tar.gz
fork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.tar.bz2
fork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.zip
Changed "priced" to "cost_calculated" for clarity
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/post.cc b/src/post.cc
index d99d1e97..18f84f7a 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -111,8 +111,8 @@ namespace {
return post.has_flags(POST_CALCULATED);
}
- value_t get_is_priced(post_t& post) {
- return post.has_flags(POST_PRICED);
+ value_t get_is_cost_calculated(post_t& post) {
+ return post.has_flags(POST_COST_CALCULATED);
}
value_t get_virtual(post_t& post) {
@@ -236,6 +236,8 @@ expr_t::ptr_op_t post_t::lookup(const string& name)
return WRAP_FUNCTOR(get_wrapper<&get_code>);
else if (name == "cost")
return WRAP_FUNCTOR(get_wrapper<&get_cost>);
+ else if (name == "cost_calculated")
+ return WRAP_FUNCTOR(get_wrapper<&get_is_cost_calculated>);
else if (name == "count")
return WRAP_FUNCTOR(get_wrapper<&get_count>);
else if (name == "calculated")
@@ -261,8 +263,6 @@ 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 == "priced")
- return WRAP_FUNCTOR(get_wrapper<&get_is_priced>);
break;
case 'r':