summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/journal.cc b/journal.cc
index c648baf8..7d95d72f 100644
--- a/journal.cc
+++ b/journal.cc
@@ -105,7 +105,8 @@ bool journal_t::add_entry(entry_t * entry)
foreach (const xact_t * xact, entry->xacts)
if (xact->cost) {
assert(xact->amount);
- xact->amount.commodity().add_price(entry->date(),
+ xact->amount.commodity().add_price(datetime_t(entry->date(),
+ time_duration_t(0, 0, 0)),
*xact->cost / xact->amount.number());
}