diff options
Diffstat (limited to 'journal.cc')
-rw-r--r-- | journal.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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()); } |