summaryrefslogtreecommitdiff
path: root/test/baseline/opt-unrealized.test
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 /test/baseline/opt-unrealized.test
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 'test/baseline/opt-unrealized.test')
-rw-r--r--test/baseline/opt-unrealized.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/baseline/opt-unrealized.test b/test/baseline/opt-unrealized.test
new file mode 100644
index 00000000..7d5d20fb
--- /dev/null
+++ b/test/baseline/opt-unrealized.test
@@ -0,0 +1,20 @@
+bal -V --unrealized
+<<<
+2008/10/01 Sample
+ Assets:Brokerage 10 AAPL
+ Assets:Checking $-200.00
+
+P 2008/10/20 12:00:00 AAPL $30.00
+
+; 2008/10/20 <Generated Transaction>
+; Assets:Brokerage $100
+; Equity:Unrealized Gains
+>>>1
+ $100.00 Assets
+ $300.00 Brokerage
+ $-200.00 Checking
+ $-100.00 Equity:Unrealized Gains
+--------------------
+ 0
+>>>2
+=== 0