diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-06 00:26:30 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-06 00:27:29 -0400 |
commit | 2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99 (patch) | |
tree | 5b5e8207db2a37684b2527acad7bccdd770fc1a4 /src/session.cc | |
parent | dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10 (diff) | |
download | fork-ledger-2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99.tar.gz fork-ledger-2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99.tar.bz2 fork-ledger-2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99.zip |
Changed the way that account balances are computed
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc index ff23719b..e171ff4d 100644 --- a/src/session.cc +++ b/src/session.cc @@ -87,9 +87,14 @@ std::size_t session_t::read_journal(std::istream& in, { if (! master) master = journal->master; + std::size_t count = journal->parse(in, *this, master, &pathname, HANDLED(strict)); - clean_accounts(); // remove calculated totals + + // remove calculated totals and flags + clean_posts(); + clean_accounts(); + return count; } |