diff options
author | Craig Earls <enderw88@gmail.com> | 2014-05-09 20:40:42 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-05-09 20:40:42 -0700 |
commit | 20b915668f7e6d4be9993e11dfc04ae1760a36f7 (patch) | |
tree | 668de51ac7625355aaaa8c3c88aed82344c690c3 /src/pool.cc | |
parent | 2906a2f759b67363c070161202596e746921f09c (diff) | |
parent | dbfbf2bc893de3c44dcc08c33811bc274f647672 (diff) | |
download | fork-ledger-20b915668f7e6d4be9993e11dfc04ae1760a36f7.tar.gz fork-ledger-20b915668f7e6d4be9993e11dfc04ae1760a36f7.tar.bz2 fork-ledger-20b915668f7e6d4be9993e11dfc04ae1760a36f7.zip |
Merge commit 'dbfbf2bc893de3c44dcc08c33811bc274f647672'
Diffstat (limited to 'src/pool.cc')
-rw-r--r-- | src/pool.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pool.cc b/src/pool.cc index 4526ac0c..71bfab72 100644 --- a/src/pool.cc +++ b/src/pool.cc @@ -267,7 +267,8 @@ commodity_pool_t::exchange(const amount_t& amount, // Do not record commodity exchanges where amount's commodity has a // fixated price, since this does not establish a market value for the // base commodity. - if (! per_unit_cost.is_realzero() && + if (add_price && + ! per_unit_cost.is_realzero() && (current_annotation == NULL || ! (current_annotation->price && current_annotation->has_flags(ANNOTATION_PRICE_FIXATED))) && |