summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-15 04:47:32 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-15 04:58:53 -0500
commit610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf (patch)
treedb4a99b9f5f41047c0c4632452eb944c93a7f07d /src/commodity.h
parentd9fc09097d3ea290a4bdf0c9b46c8ead3e48043c (diff)
downloadfork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.tar.gz
fork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.tar.bz2
fork-ledger-610a3e170994dc3cd3ae0dc989a49e4e7c7fdadf.zip
Don't map_prices if price commodity matches source
Fixes #680
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commodity.h b/src/commodity.h
index bd1aedb9..148a3636 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -273,7 +273,8 @@ public:
void map_prices(function<void(datetime_t, const amount_t&)> fn,
const datetime_t& moment = datetime_t(),
- const datetime_t& _oldest = datetime_t());
+ const datetime_t& _oldest = datetime_t(),
+ bool bidirectionally = false);
optional<price_point_t>
find_price_from_expr(expr_t& expr, const commodity_t * commodity,