summaryrefslogtreecommitdiff
path: root/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-27 23:52:31 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:27 -0400
commit7901598f1d1e419e19c860e81749805371298030 (patch)
treef3b4b42ad4217cd5a59eafb8cb8ffacea83b60ca /balance.h
parent4507573d4fbc4ece6a4bb832b2e1fffae0885db8 (diff)
downloadfork-ledger-7901598f1d1e419e19c860e81749805371298030.tar.gz
fork-ledger-7901598f1d1e419e19c860e81749805371298030.tar.bz2
fork-ledger-7901598f1d1e419e19c860e81749805371298030.zip
Checked in all major updates.
Diffstat (limited to 'balance.h')
-rw-r--r--balance.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/balance.h b/balance.h
index 8a6e4a35..929888d2 100644
--- a/balance.h
+++ b/balance.h
@@ -426,6 +426,7 @@ class balance_t
amount_t amount(const commodity_t& commodity) const;
balance_t value(const std::time_t moment) const;
+ balance_t factor_price() const;
void write(std::ostream& out,
const int first_width,
@@ -443,7 +444,7 @@ class balance_t
i != amounts.end();
i++)
if ((*i).second.commodity())
- (*i).second = (*i).second.round((*i).second.commodity().precision);
+ (*i).second = (*i).second.round((*i).second.commodity().precision());
}
};