summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-19 21:10:51 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:44 -0400
commit86a6af697433cd81fa842e6340a0ae2d8cb459a0 (patch)
tree5e09346d6f299c31b4206922d15b845a580f3762 /derive.cc
parent80c472733baf078ac275c02adf0bafff82803464 (diff)
downloadfork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.tar.gz
fork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.tar.bz2
fork-ledger-86a6af697433cd81fa842e6340a0ae2d8cb459a0.zip
*** no comment ***
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/derive.cc b/derive.cc
index 20083796..35814eff 100644
--- a/derive.cc
+++ b/derive.cc
@@ -167,8 +167,9 @@ entry_t * derive_new_entry(journal_t& journal,
}
done:
- if (! run_hooks(journal.entry_finalize_hooks, *added) ||
- ! added->finalize())
+ if (! run_hooks(journal.entry_finalize_hooks, *added, false) ||
+ ! added->finalize() ||
+ ! run_hooks(journal.entry_finalize_hooks, *added, true))
throw error("Failed to finalize derived entry (check commodities)");
return added.release();