summaryrefslogtreecommitdiff
path: root/src/annotate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/annotate.h')
-rw-r--r--src/annotate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/annotate.h b/src/annotate.h
index f9d62c5b..38553752 100644
--- a/src/annotate.h
+++ b/src/annotate.h
@@ -247,6 +247,12 @@ public:
return *ptr;
}
+ virtual optional<expr_t> value_expr() const {
+ if (details.value_expr)
+ return details.value_expr;
+ return commodity_t::value_expr();
+ }
+
optional<price_point_t>
virtual find_price(const optional<commodity_t&>& commodity = none,
const optional<datetime_t>& moment = none,