summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-03 20:28:09 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-03 20:28:09 -0400
commit1540ccec01661867b5d758c1e57f26a73b039ac6 (patch)
tree4f68ad30f6fec17d6f1d9f71fe18276be1d15461 /src/output.cc
parenteb45a0a4f46577c6615695256e5f6866a27ef20e (diff)
downloadfork-ledger-1540ccec01661867b5d758c1e57f26a73b039ac6.tar.gz
fork-ledger-1540ccec01661867b5d758c1e57f26a73b039ac6.tar.bz2
fork-ledger-1540ccec01661867b5d758c1e57f26a73b039ac6.zip
Gather account details in a details_t structure
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/output.cc b/src/output.cc
index e14c75dc..b559f253 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -290,8 +290,10 @@ void format_accounts::flush()
if (report.session.master->has_xdata()) {
account_t::xdata_t& xdata(report.session.master->xdata());
- if (! report.HANDLED(no_total) && top_displayed > 1 && xdata.total) {
- xdata.value = xdata.total;
+ if (! report.HANDLED(no_total) && top_displayed > 1 &&
+ xdata.family_details.total) {
+ xdata.self_details.total = xdata.family_details.total;
+
bind_scope_t bound_scope(report, *report.session.master);
separator_format.format(out, bound_scope);
total_line_format.format(out, bound_scope);