summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-21 10:26:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-21 10:26:38 -0400
commit6007e3cbfe1e2b5a94e71eccc30f7298f0983535 (patch)
tree2d540ded33941d0cddaf712775e0f757d05d1fc7 /src/amount.cc
parent79a8fc5a8748ade2e15892e2eb8e199ec0939fb4 (diff)
downloadfork-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.cc2
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 {