summaryrefslogtreecommitdiff
path: root/equity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-05 00:22:17 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-05 00:22:17 +0000
commit260217c8ab48c6000021222e0d1c989dce80b869 (patch)
tree74a76b2ab36ef99bf56be92b848544394e14a579 /equity.cc
parent2c109226140a99a07af079c70e54fb396bb3484e (diff)
downloadfork-ledger-260217c8ab48c6000021222e0d1c989dce80b869.tar.gz
fork-ledger-260217c8ab48c6000021222e0d1c989dce80b869.tar.bz2
fork-ledger-260217c8ab48c6000021222e0d1c989dce80b869.zip
*** empty log message ***
Diffstat (limited to 'equity.cc')
-rw-r--r--equity.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/equity.cc b/equity.cc
index accbfd7c..2f3246aa 100644
--- a/equity.cc
+++ b/equity.cc
@@ -2,6 +2,8 @@
namespace ledger {
+extern bool get_quotes;
+
static void equity_entry(account * acct, regexps_map& regexps,
std::ostream& out)
{
@@ -23,12 +25,12 @@ static void equity_entry(account * acct, regexps_map& regexps,
xact = new transaction();
xact->acct = const_cast<account *>(acct);
- xact->cost = (*i).second->street();
+ xact->cost = (*i).second->street(get_quotes);
opening.xacts.push_back(xact);
xact = new transaction();
xact->acct = main_ledger->find_account("Equity:Opening Balances");
- xact->cost = (*i).second->street();
+ xact->cost = (*i).second->street(get_quotes);
xact->cost->negate();
opening.xacts.push_back(xact);
}