summaryrefslogtreecommitdiff
path: root/src/account.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/account.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/account.cc')
-rw-r--r--src/account.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/account.cc b/src/account.cc
index 3e39045f..56555d61 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -167,32 +167,32 @@ namespace {
}
value_t get_total(account_t& account) {
- if (! account.xdata_ || account.xdata_->total.is_null())
+ if (! account.xdata_ || account.xdata_->family_details.total.is_null())
return 0L;
else
- return account.xdata_->total;
+ return account.xdata_->family_details.total;
}
value_t get_count(account_t& account) {
if (account.xdata_)
- return long(account.xdata_->total_count);
+ return long(account.xdata_->family_details.posts_count);
else
return 0L;
}
value_t get_subcount(account_t& account) {
if (account.xdata_)
- return long(account.xdata_->count);
+ return long(account.xdata_->self_details.posts_count);
else
return 0L;
}
value_t get_amount(account_t& account) {
if (! account.xdata_ ||
- account.xdata_->value.is_null())
+ account.xdata_->self_details.total.is_null())
return 0L;
else
- return account.xdata_->value;
+ return account.xdata_->self_details.total;
}
value_t get_depth(account_t& account) {