summaryrefslogtreecommitdiff
path: root/entry.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-31 05:05:24 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-31 05:05:24 -0400
commit8afd926a27af55862ce360970e05d747f249a0da (patch)
tree3d93c3bedca21da06681bf9868fa3b94ac5050af /entry.cc
parent8276b51f5692796bfdf75dd64f709e0de1c7caaf (diff)
downloadfork-ledger-8afd926a27af55862ce360970e05d747f249a0da.tar.gz
fork-ledger-8afd926a27af55862ce360970e05d747f249a0da.tar.bz2
fork-ledger-8afd926a27af55862ce360970e05d747f249a0da.zip
Cleaned up some method names and documentation relating to values.
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