summaryrefslogtreecommitdiff
path: root/test/baseline/opt-primary-date.test
blob: e433a8f9e65b90a13ff48b9f290944bcdc7ad313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
; primary-date display primary dates for all calculations
2014/01/01=2014/01/13 Client invoice  ;  estimated date you'll be paid
    Assets:Accounts Receivable            $100.00
    Income: Client ABC

2014/01/01=2014/01/15 Client invoice  ; actual date money received
    Assets:Accounts Receivable            $100.00
    Income: Client ABC

; will not affect checking account
2013/10/16 * (2090) Bountiful Blessings Farm
    Expenses:Food:Groceries                  $ 37.50  ; [=2013/10/01]
    Expenses:Food:Groceries                  $ 37.50  ; [=2013/11/01]
    Expenses:Food:Groceries                  $ 37.50  ; [=2013/12/01]
    Expenses:Food:Groceries                  $ 37.50  ; [=2014/01/01]
    Expenses:Food:Groceries                  $ 37.50  ; [=2014/02/01]
    Expenses:Food:Groceries                  $ 37.50  ; [=2014/03/01]
    Assets:Checking


test bal Income --begin 2014/01/01 --end 2014/01/14
           $ -200.00  Income: Client ABC
end test

test bal Income --effective --begin 2014/01/01 --end 2014/01/14
           $ -100.00  Income: Client ABC
end test

test bal Income --primary-date --effective --begin 2014/01/01 --end 2014/01/14
           $ -200.00  Income: Client ABC
end test

test bal Income --actual-dates --effective --begin 2014/01/01 --end 2014/01/14
           $ -200.00  Income: Client ABC
end test

test reg  Income --begin 2014/01/01 --end 2014/01/14
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -100.00
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -200.00
end test

test reg  Income --effective --begin 2014/01/01 --end 2014/01/14
14-Jan-13 Client invoice        Income: Client ABC        $ -100.00    $ -100.00
end test

test reg  Income --primary-date --effective --begin 2014/01/01 --end 2014/01/14
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -100.00
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -200.00
end test

test reg  Income --actual-dates --effective --begin 2014/01/01 --end 2014/01/14
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -100.00
14-Jan-01 Client invoice        Income: Client ABC        $ -100.00    $ -200.00
end test

test  reg checking
13-Oct-16 Bountiful Blessings.. Assets:Checking           $ -225.00    $ -225.00
end test

test reg checking --primary-date --effective
13-Oct-16 Bountiful Blessings.. Assets:Checking           $ -225.00    $ -225.00
end test

test register Groceries
13-Oct-16 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50      $ 37.50
                                Expense:Food:Groceries      $ 37.50      $ 75.00
                                Expense:Food:Groceries      $ 37.50     $ 112.50
                                Expense:Food:Groceries      $ 37.50     $ 150.00
                                Expense:Food:Groceries      $ 37.50     $ 187.50
                                Expense:Food:Groceries      $ 37.50     $ 225.00
end test

test register Groceries --effective
13-Oct-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50      $ 37.50
13-Nov-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50      $ 75.00
13-Dec-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50     $ 112.50
14-Jan-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50     $ 150.00
14-Feb-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50     $ 187.50
14-Mar-01 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50     $ 225.00
end test

test register Groceries --primary-date --effective
13-Oct-16 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50      $ 37.50
                                Expense:Food:Groceries      $ 37.50      $ 75.00
                                Expense:Food:Groceries      $ 37.50     $ 112.50
                                Expense:Food:Groceries      $ 37.50     $ 150.00
                                Expense:Food:Groceries      $ 37.50     $ 187.50
                                Expense:Food:Groceries      $ 37.50     $ 225.00
end test

test register Groceries --actual-dates --effective
13-Oct-16 Bountiful Blessings.. Expense:Food:Groceries      $ 37.50      $ 37.50
                                Expense:Food:Groceries      $ 37.50      $ 75.00
                                Expense:Food:Groceries      $ 37.50     $ 112.50
                                Expense:Food:Groceries      $ 37.50     $ 150.00
                                Expense:Food:Groceries      $ 37.50     $ 187.50
                                Expense:Food:Groceries      $ 37.50     $ 225.00
end test