summaryrefslogtreecommitdiff
path: root/test/regress/1895.test
blob: 5cf632695219961628548f67aa5212824f7c211d (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

2020-05-18 Test
    Assets:foo    10.00 EUR
    Assets:bar   -10.00 EUR

test bal
                   0  Assets
          -10.00 EUR    bar
           10.00 EUR    foo
--------------------
                   0
end test

test bal --invert
                   0  Assets
           10.00 EUR    bar
          -10.00 EUR    foo
--------------------
                   0
end test

test reg --format="%(account) %10(amount) %10(amount_expr) %10(total)        %10(display_amount) %10(display_total)\n"
Assets:foo  10.00 EUR  10.00 EUR  10.00 EUR         10.00 EUR  10.00 EUR
Assets:bar -10.00 EUR -10.00 EUR          0        -10.00 EUR          0
end test

test reg --format="%(account) %10(amount) %10(amount_expr) %10(total)        %10(display_amount) %10(display_total)\n" --invert
Assets:foo  10.00 EUR -10.00 EUR -10.00 EUR        -10.00 EUR -10.00 EUR
Assets:bar -10.00 EUR  10.00 EUR          0         10.00 EUR          0
end test