summaryrefslogtreecommitdiff
path: root/entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'entry.cc')
-rw-r--r--entry.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/entry.cc b/entry.cc
index 562c6fa7..287f6555 100644
--- a/entry.cc
+++ b/entry.cc
@@ -275,8 +275,9 @@ bool entry_base_t::finalize()
amount_t final_cost;
amount_t basis_cost;
amount_t ann_amount =
- commodity_t::exchange(x_amt, final_cost, basis_cost,
- xact->cost, none, xact->actual_date(),
+ commodity_t::exchange(x_amt, final_cost, basis_cost, xact->cost, none,
+ datetime_t(xact->actual_date(),
+ time_duration_t(0, 0, 0)),
entry ? entry->code : optional<string>());
if (xact->amount.annotated()) {