summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-06 00:26:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-06 00:27:29 -0400
commit2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99 (patch)
tree5b5e8207db2a37684b2527acad7bccdd770fc1a4 /src/post.cc
parentdd23edd5cee8e712e13a3b5eefffcc3c57bf9e10 (diff)
downloadfork-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/post.cc')
-rw-r--r--src/post.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/post.cc b/src/post.cc
index 42e81159..2c303a87 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -231,10 +231,11 @@ namespace {
DEBUG("post.account_amount", "Found account: " << account->fullname());
- if (account->xdata().self_details.total.is_null())
+ value_t total = account->self_total();
+ if (total.is_null())
return 0L;
else
- return account->xdata().self_details.total.simplified();
+ return total.simplified();
}
value_t get_account_depth(post_t& post) {