summaryrefslogtreecommitdiff
path: root/src/report.cc
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/report.cc
parent3f1861fb1e9e374fb7756117638edcb6fb1e73fb (diff)
downloadledger-63fee4c83775f79364199ea547dbc7e068b0abc8.tar.gz
ledger-63fee4c83775f79364199ea547dbc7e068b0abc8.tar.bz2
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.cc')
-rw-r--r--src/report.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index 92525565..7da44f8c 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -887,6 +887,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
case 'u':
OPT(unbudgeted);
else OPT(uncleared);
+ else OPT(unrealized);
else OPT(unround);
else OPT(unsorted);
break;