diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-19 02:00:10 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-19 02:00:10 -0500 |
commit | 63fee4c83775f79364199ea547dbc7e068b0abc8 (patch) | |
tree | 4230ae03ebea8e2cbc0b6e1de821730e4819af47 /src/report.h | |
parent | 3f1861fb1e9e374fb7756117638edcb6fb1e73fb (diff) | |
download | fork-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/report.h')
-rw-r--r-- | src/report.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index 0b1baff1..354e31b6 100644 --- a/src/report.h +++ b/src/report.h @@ -301,6 +301,7 @@ public: HANDLER(truncate_).report(out); HANDLER(unbudgeted).report(out); HANDLER(uncleared).report(out); + HANDLER(unrealized).report(out); HANDLER(unround).report(out); HANDLER(unsorted).report(out); HANDLER(weekly).report(out); @@ -873,6 +874,8 @@ public: parent->HANDLER(limit_).on(string("--uncleared"), "uncleared|pending"); }); + OPTION(report_t, unrealized); + OPTION_(report_t, unround, DO() { parent->HANDLER(display_amount_) .set_expr(string("--unround"), "unrounded(amount_expr)"); |