From 3a0879aff0b1ea0037098ae4f602b92719ff9a84 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Nov 2009 01:39:18 -0500 Subject: 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. --- src/post.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/post.h') 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 = none) const; + void set_reported_account(account_t * account); + account_t * reported_account() { if (xdata_) if (account_t * acct = xdata_->account) -- cgit v1.2.3