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/post.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/post.cc')
-rw-r--r-- | src/post.cc | 5 |
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) { |