mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# 1. issue 87, hledger should give this balance.
|
|
hledgerdev -f - balance --no-total b
|
|
<<<
|
|
1/1
|
|
a -553.653 X @@ 2609.92
|
|
a -5.684 X @@ 26.10
|
|
a -50.833 X @@ 234.90
|
|
a -49.714 X @@ 234.90
|
|
a -49.957 X @@ 234.90
|
|
a -49.778 X @@ 234.90
|
|
a -142.316 X @@ 674.01
|
|
a -49.029 X @@ 234.90
|
|
a -51.233 X @@ 234.90
|
|
a -49.204 X @@ 234.90
|
|
a -49.474 X @@ 234.90
|
|
a -47.773 X @@ 234.90
|
|
a -109.439 X @@ 576.96
|
|
a -31.133 X @@ 171.51
|
|
a -438.249 X @@ 2537.90
|
|
a -11.927 X @@ 72.03
|
|
a -170.721 X @@ 990.18
|
|
a 1910.117 X @@ 10742.52
|
|
b
|
|
>>>
|
|
-969.81 b
|
|
>>>= 0
|
|
|
|
# 2. As above, but the prices have a commodity - should work the same.
|
|
hledgerdev -f - balance --no-total b
|
|
<<<
|
|
1/1
|
|
a -553.653 X @@ 2609.92 Y
|
|
a -5.684 X @@ 26.10 Y
|
|
a -50.833 X @@ 234.90 Y
|
|
a -49.714 X @@ 234.90 Y
|
|
a -49.957 X @@ 234.90 Y
|
|
a -49.778 X @@ 234.90 Y
|
|
a -142.316 X @@ 674.01 Y
|
|
a -49.029 X @@ 234.90 Y
|
|
a -51.233 X @@ 234.90 Y
|
|
a -49.204 X @@ 234.90 Y
|
|
a -49.474 X @@ 234.90 Y
|
|
a -47.773 X @@ 234.90 Y
|
|
a -109.439 X @@ 576.96 Y
|
|
a -31.133 X @@ 171.51 Y
|
|
a -438.249 X @@ 2537.90 Y
|
|
a -11.927 X @@ 72.03 Y
|
|
a -170.721 X @@ 990.18 Y
|
|
a 1910.117 X @@ 10742.52 Y
|
|
b
|
|
>>>
|
|
-969.81 Y b
|
|
>>>= 0
|