summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-07 09:49:17 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-07 09:49:17 -0400
commitbe6cef93c479056169ab499d03ea212ff22db435 (patch)
treefba78156e5187bd690f519846427284cdc0b0193 /src/value.h
parentae8ab8106218167036ef386159450b56c328f1b9 (diff)
downloadfork-ledger-be6cef93c479056169ab499d03ea212ff22db435.tar.gz
fork-ledger-be6cef93c479056169ab499d03ea212ff22db435.tar.bz2
fork-ledger-be6cef93c479056169ab499d03ea212ff22db435.zip
A further simplification of -V and -X
With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity.
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/value.h b/src/value.h
index cffd6dee..cb3b024a 100644
--- a/src/value.h
+++ b/src/value.h
@@ -476,8 +476,7 @@ public:
void in_place_unreduce(); // exists for efficiency's sake
// Return the "market value" of a given value at a specific time.
- value_t value(const bool primary_only = false,
- const optional<datetime_t>& moment = none,
+ value_t value(const optional<datetime_t>& moment = none,
const optional<commodity_t&>& in_terms_of = none) const;
value_t price() const;