summaryrefslogtreecommitdiff
path: root/entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'entry.cc')
-rw-r--r--entry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/entry.cc b/entry.cc
index 4a9537ca..05fcfe9e 100644
--- a/entry.cc
+++ b/entry.cc
@@ -293,8 +293,8 @@ bool entry_base_t::finalize()
(*x)->cost, none, (*x)->actual_date(),
entry ? entry->code : optional<string>());
- if ((*x)->amount.commodity_annotated()) {
- if (ann_amount.annotation_details().price) {
+ if ((*x)->amount.annotated()) {
+ if (ann_amount.annotation().price) {
if (balance.is_null())
balance = basis_cost - final_cost;
else