summaryrefslogtreecommitdiff
path: root/test/regress/9E0E606D.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-18 02:33:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-18 02:33:25 -0500
commit20edb3a34069b33ec83846c3026138d8fa432c97 (patch)
tree626bd28a8dfb369a871c2f609c28e43f775447b1 /test/regress/9E0E606D.test
parent47d7f5a43b286b3c736e21480d84caf75cea885f (diff)
downloadfork-ledger-20edb3a34069b33ec83846c3026138d8fa432c97.tar.gz
fork-ledger-20edb3a34069b33ec83846c3026138d8fa432c97.tar.bz2
fork-ledger-20edb3a34069b33ec83846c3026138d8fa432c97.zip
Fixed bug relating to historical pricing
Fixes #681
Diffstat (limited to 'test/regress/9E0E606D.test')
-rw-r--r--test/regress/9E0E606D.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/regress/9E0E606D.test b/test/regress/9E0E606D.test
new file mode 100644
index 00000000..86b8e36f
--- /dev/null
+++ b/test/regress/9E0E606D.test
@@ -0,0 +1,19 @@
+D 1000.00 GBP
+
+P 2011-02-01 EUR 0.8576 GBP
+P 2011-03-01 EUR 0.8612 GBP
+P 2011-04-01 EUR 0.8510 GBP
+
+2011-01-31 * AdSense earnings
+ Assets:Receivable:AdSense 11.00 EUR
+ Income:AdSense
+
+2011-02-28 * AdSense earnings
+ Assets:Receivable:AdSense 10.00 EUR
+ Income:AdSense
+
+test reg income:ad -X GBP -H
+11-Jan-31 AdSense earnings Income:AdSense -11.00 EUR -11.00 EUR
+11-Feb-28 Commodities revalued <Revalued> -9.43 GBP -9.43 GBP
+11-Feb-28 AdSense earnings Income:AdSense -8.58 GBP -18.01 GBP
+end test