summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 05:03:18 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 05:03:18 -0500
commit3fb7490bc91e65050e090ab7fa2dcae230d1697e (patch)
tree189ff9c8ac686d49774ab9ff5feb3f8f5aefff69 /src/post.cc
parente3248ee5a6b2c29e1c35eb0315fd66370a117784 (diff)
downloadfork-ledger-3fb7490bc91e65050e090ab7fa2dcae230d1697e.tar.gz
fork-ledger-3fb7490bc91e65050e090ab7fa2dcae230d1697e.tar.bz2
fork-ledger-3fb7490bc91e65050e090ab7fa2dcae230d1697e.zip
Never output calculate commodity valuation expressions
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/post.cc b/src/post.cc
index d5e0d9bc..2b84fc06 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -688,6 +688,7 @@ void extend_post(post_t& post, journal_t& journal)
if (! details) {
annotation_t new_details;
new_details.value_expr = value_expr;
+
commodity_t * new_comm =
commodity_pool_t::current_pool->find_or_create(comm, new_details);
post.amount.set_commodity(*new_comm);