summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-19 02:00:10 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-19 02:00:10 -0500
commit63fee4c83775f79364199ea547dbc7e068b0abc8 (patch)
tree4230ae03ebea8e2cbc0b6e1de821730e4819af47 /src/filters.h
parent3f1861fb1e9e374fb7756117638edcb6fb1e73fb (diff)
downloadfork-ledger-63fee4c83775f79364199ea547dbc7e068b0abc8.tar.gz
fork-ledger-63fee4c83775f79364199ea547dbc7e068b0abc8.tar.bz2
fork-ledger-63fee4c83775f79364199ea547dbc7e068b0abc8.zip
Added an --unrealized option, for use with bal -V
When this option is on, then in balance report which show market values, any gains or losses in value will be balanced into a pair of accounts called Equity:Unrealized Gains and Equity:Unrealized Losses.
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/filters.h b/src/filters.h
index f9412407..92148dbe 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -378,18 +378,24 @@ class changed_value_posts : public item_handler<post_t>
expr_t display_total_expr;
report_t& report;
bool changed_values_only;
+ bool for_accounts_report;
+ bool show_unrealized;
post_t * last_post;
value_t last_total;
value_t last_display_total;
temporaries_t temps;
account_t& revalued_account;
account_t& rounding_account;
+ account_t * gains_equity_account;
+ account_t * losses_equity_account;
changed_value_posts();
public:
changed_value_posts(post_handler_ptr handler,
- report_t& _report);
+ report_t& _report,
+ bool _for_accounts_report,
+ bool _show_unrealized);
virtual ~changed_value_posts() {
TRACE_DTOR(changed_value_posts);