diff options
author | Aristid Breitkreuz <aristid.breitkreuz@gmx.de> | 2009-11-24 11:02:17 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-24 05:08:28 -0500 |
commit | 6df3ea10f747bf76e233f582c8a3aa06ae3afd56 (patch) | |
tree | 6646d14384997135ca2325bd888cbda78ae55dfc /src/report.h | |
parent | a84c42fc172b2d055e4f403073f011b22b8cb298 (diff) | |
download | fork-ledger-6df3ea10f747bf76e233f582c8a3aa06ae3afd56.tar.gz fork-ledger-6df3ea10f747bf76e233f582c8a3aa06ae3afd56.tar.bz2 fork-ledger-6df3ea10f747bf76e233f582c8a3aa06ae3afd56.zip |
Added options: --unrealized-gains and --unrealized-losses
These options allow the user to specify what accounts names should be
used for these two types of accounts. They are optional, and default
to:
--unrealized-gains "Equity:Unrealized Gains"
--unrealized-losses "Equity:Unrealized Losses"
These are intended to be set in one's ~/.ledgerrc file.
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index 354e31b6..d942038b 100644 --- a/src/report.h +++ b/src/report.h @@ -302,6 +302,8 @@ public: HANDLER(unbudgeted).report(out); HANDLER(uncleared).report(out); HANDLER(unrealized).report(out); + HANDLER(unrealized_gains_).report(out); + HANDLER(unrealized_losses_).report(out); HANDLER(unround).report(out); HANDLER(unsorted).report(out); HANDLER(weekly).report(out); @@ -876,6 +878,9 @@ public: OPTION(report_t, unrealized); + OPTION(report_t, unrealized_gains_); + OPTION(report_t, unrealized_losses_); + OPTION_(report_t, unround, DO() { parent->HANDLER(display_amount_) .set_expr(string("--unround"), "unrounded(amount_expr)"); |