From 79a8fc5a8748ade2e15892e2eb8e199ec0939fb4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 21 Sep 2008 07:56:23 -0400 Subject: Created several alternate 'value' methods to support the upcoming commodity valuation changes. --- src/amount.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/amount.cc') diff --git a/src/amount.cc b/src/amount.cc index 8d433ad4..59671f98 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -650,7 +650,8 @@ amount_t& amount_t::in_place_unreduce() optional amount_t::value(const optional& moment) const { if (quantity) { - optional amt(commodity().value(moment)); + // jww (2008-09-21): 'none' is not the right argument here. + optional amt(commodity().value(none, moment)); if (amt) return (*amt * number()).round(); } else { -- cgit v1.2.3