diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-21 10:26:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-21 10:26:38 -0400 |
commit | 6007e3cbfe1e2b5a94e71eccc30f7298f0983535 (patch) | |
tree | 2d540ded33941d0cddaf712775e0f757d05d1fc7 /src/amount.cc | |
parent | 79a8fc5a8748ade2e15892e2eb8e199ec0939fb4 (diff) | |
download | fork-ledger-6007e3cbfe1e2b5a94e71eccc30f7298f0983535.tar.gz fork-ledger-6007e3cbfe1e2b5a94e71eccc30f7298f0983535.tar.bz2 fork-ledger-6007e3cbfe1e2b5a94e71eccc30f7298f0983535.zip |
Did more restructing of commodity price histories, although the completed
find_price does not work yet.
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 { |