diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-05 00:22:17 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-05 00:22:17 +0000 |
commit | 260217c8ab48c6000021222e0d1c989dce80b869 (patch) | |
tree | 74a76b2ab36ef99bf56be92b848544394e14a579 /equity.cc | |
parent | 2c109226140a99a07af079c70e54fb396bb3484e (diff) | |
download | fork-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.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |