summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/journal.cc b/journal.cc
index 638cce8b..8ff276eb 100644
--- a/journal.cc
+++ b/journal.cc
@@ -177,10 +177,7 @@ bool entry_base_t::finalize()
if ((*x)->amount.commodity() &&
! (*x)->amount.commodity().annotated)
- (*x)->amount.annotate_commodity
- (abs(per_unit_cost),
- entry ? entry->actual_date() : datetime_t(),
- entry ? entry->code : "");
+ (*x)->amount.annotate_commodity(abs(per_unit_cost));
(*x)->cost = new amount_t(- (per_unit_cost * (*x)->amount));
balance += *(*x)->cost;