diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.cc b/src/amount.cc index 59671f98..c052cd23 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -651,7 +651,7 @@ optional<amount_t> amount_t::value(const optional<datetime_t>& moment) const { if (quantity) { // jww (2008-09-21): 'none' is not the right argument here. - optional<amount_t> amt(commodity().value(none, moment)); + optional<amount_t> amt(commodity().find_price(none, moment)); if (amt) return (*amt * number()).round(); } else { |