File: cmd-budget.test

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (65 lines) | stat: -rw-r--r-- 2,185 bytes parent folder | download | duplicates (8)
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
~ Monthly
    Expenses:Phone            10.00 GBP
    Expenses:Rent            550.00 GBP
    Assets

2012-01-10 * Phone expense on holidays
    Expenses:Phone            12.00 EUR @@ 10.00 GBP
    Assets:Cash              -10.00 GBP

2012-01-31 * Rent expense
    Expenses:Rent            550.00 GBP
    Assets:Cash             -550.00 GBP

2012-02-28 * Phone expense
    Expenses:Phone            20.00 GBP
    Assets:Cash              -20.00 GBP

2012-02-29 * Rent expense
    Expenses:Rent            530.00 GBP
    Assets:Cash             -530.00 GBP

2012-03-10 * Phone expense
    Expenses:Phone            15.00 GBP
    Assets:Cash              -15.00 GBP

2012-03-31 * Rent expense
    Expenses:Rent            570.00 GBP
    Assets:Cash             -570.00 GBP

test budget -X GBP -p "in january 2012"
 -560.00 GBP  -560.00 GBP            0  100%  Assets
  560.00 GBP   560.00 GBP            0  100%  Expenses
   10.00 GBP    10.00 GBP            0  100%    Phone
  550.00 GBP   550.00 GBP            0  100%    Rent
------------ ------------ ------------ -----
           0            0            0     0
end test

test budget -X GBP -p "in feb 2012"
 -550.00 GBP  -560.00 GBP    10.00 GBP   98%  Assets
  550.00 GBP   560.00 GBP   -10.00 GBP   98%  Expenses
   20.00 GBP    10.00 GBP    10.00 GBP  200%    Phone
  530.00 GBP   550.00 GBP   -20.00 GBP   96%    Rent
------------ ------------ ------------ -----
           0            0            0     0
end test

test budget -X GBP -p "in march  2012"
 -585.00 GBP  -560.00 GBP   -25.00 GBP  104%  Assets
  585.00 GBP   560.00 GBP    25.00 GBP  104%  Expenses
   15.00 GBP    10.00 GBP     5.00 GBP  150%    Phone
  570.00 GBP   550.00 GBP    20.00 GBP  104%    Rent
------------ ------------ ------------ -----
           0            0            0     0
end test

test budget -X GBP --now "2012-03-31"
-1695.00 GBP -1680.00 GBP   -15.00 GBP  101%  Assets
 1695.00 GBP  1680.00 GBP    15.00 GBP  101%  Expenses
   45.00 GBP    30.00 GBP    15.00 GBP  150%    Phone
 1650.00 GBP  1650.00 GBP            0  100%    Rent
------------ ------------ ------------ -----
           0            0            0     0
end test