summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 01:39:18 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 01:40:07 -0500
commit3a0879aff0b1ea0037098ae4f602b92719ff9a84 (patch)
tree7a4ff9ee85a5bd50e627c9b7b233246f55e566da /src/post.h
parent4db60bb46429ced93770afe69b42477c03c47e72 (diff)
downloadfork-ledger-3a0879aff0b1ea0037098ae4f602b92719ff9a84.tar.gz
fork-ledger-3a0879aff0b1ea0037098ae4f602b92719ff9a84.tar.bz2
fork-ledger-3a0879aff0b1ea0037098ae4f602b92719ff9a84.zip
Added "reported posts" into account xdata
This is necessary because sometimes, a post from one account will get reported as though it were in another account (this happens with --budget, to show child account postings within their parent account). In that case, the account needs to remember which postings have been reported as being within it, so that it can add these amounts to its own total in the balance report.
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/post.h b/src/post.h
index a89ce3bc..5fdee968 100644
--- a/src/post.h
+++ b/src/post.h
@@ -193,6 +193,8 @@ public:
void add_to_value(value_t& value,
const optional<expr_t&>& expr = none) const;
+ void set_reported_account(account_t * account);
+
account_t * reported_account() {
if (xdata_)
if (account_t * acct = xdata_->account)