summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-03-14 12:03:24 -0700
committerJohn Wiegley <johnw@newartisans.com>2016-03-14 12:03:24 -0700
commit16c2b8d58d98c41a8b9093116dfa34d5da71b44a (patch)
tree5b307f3cca940fc7b0c29c87c5421bfa5c61c506 /test/regress
parenta505538e100db388cb692d38678f1e8a5061d868 (diff)
parent97ec24544e783abd9edecdc13e8deba99baee47b (diff)
downloadfork-ledger-16c2b8d58d98c41a8b9093116dfa34d5da71b44a.tar.gz
fork-ledger-16c2b8d58d98c41a8b9093116dfa34d5da71b44a.tar.bz2
fork-ledger-16c2b8d58d98c41a8b9093116dfa34d5da71b44a.zip
Merge pull request #449 from ppickfor/next
Use interval start date (period from/since) to initialize first period.
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/1159.test29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/regress/1159.test b/test/regress/1159.test
new file mode 100644
index 00000000..72da771a
--- /dev/null
+++ b/test/regress/1159.test
@@ -0,0 +1,29 @@
+2003/09/13 a payee ; sat
+ A $100.00
+ B
+
+2003/09/14 a payee ; mon
+ A $100.00
+ B
+
+2004/10/15 a payee ; fri
+ A $50.00
+ B
+
+2004/10/19 a payee ; tue
+ A $50.00
+ B
+
+;sun first day of month
+test reg -p "every 12 months from 2001/04/01"
+03-Apr-01 - 04-Mar-31 A $200.00 $200.00
+ B $-200.00 0
+04-Apr-01 - 05-Mar-31 A $100.00 $100.00
+ B $-100.00 0
+end test
+test reg -p 'every 12 months'
+03-Sep-01 - 04-Aug-31 A $200.00 $200.00
+ B $-200.00 0
+04-Sep-01 - 05-Aug-31 A $100.00 $100.00
+ B $-100.00 0
+end test