From be6cef93c479056169ab499d03ea212ff22db435 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 Jun 2010 09:49:17 -0400 Subject: 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. --- src/py_balance.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/py_balance.cc') diff --git a/src/py_balance.cc b/src/py_balance.cc index 7be75444..03a73ff6 100644 --- a/src/py_balance.cc +++ b/src/py_balance.cc @@ -45,16 +45,16 @@ using namespace boost::python; namespace { boost::optional py_value_0(const balance_t& balance) { - return balance.value(false, CURRENT_TIME()); + return balance.value(CURRENT_TIME()); } boost::optional py_value_1(const balance_t& balance, commodity_t& in_terms_of) { - return balance.value(false, CURRENT_TIME(), in_terms_of); + return balance.value(CURRENT_TIME(), in_terms_of); } boost::optional py_value_2(const balance_t& balance, commodity_t& in_terms_of, datetime_t& moment) { - return balance.value(false, moment, in_terms_of); + return balance.value(moment, in_terms_of); } boost::optional -- cgit v1.2.3