diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-13 05:48:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-13 05:48:32 -0400 |
commit | 3231e380bbe6ebd5641a24a493078e8aee0fdfe3 (patch) | |
tree | c4fbd329f3a71a9804b0db19f1b1bbb8b4e799ac /src/output.cc | |
parent | 46bc362804fbf0cab0384bf046c95b1495fa98c6 (diff) | |
download | fork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.tar.gz fork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.tar.bz2 fork-ledger-3231e380bbe6ebd5641a24a493078e8aee0fdfe3.zip |
The balance output now includes the final total.
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/output.cc b/src/output.cc index b05f5815..e3b31df4 100644 --- a/src/output.cc +++ b/src/output.cc @@ -138,22 +138,18 @@ void format_accounts::flush() { std::ostream& out(*report.output_stream); -#if 0 - // jww (2008-08-02): I need access to the output formatter before this is - // going to work. if (print_final_total) { assert(out); - assert(account_has_xdata(*session.master)); + assert(report.session.master->has_xdata()); - account_xdata_t& xdata(account_xdata(*session.master)); + account_t::xdata_t& xdata(report.session.master->xdata()); - if (! show_collapsed && xdata.total) { + if (! report.show_collapsed && xdata.total) { out << "--------------------\n"; xdata.value = xdata.total; - handler->format.format(out, *session.master); + format.format(out, *report.session.master); } } -#endif out.flush(); } |