mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;bal: tests related to #1379
This commit is contained in:
parent
c54971f3a2
commit
cd0c76eb4a
@ -148,3 +148,35 @@ $ hledger -f- bal -N -S --cumulative --flat
|
||||
2 b
|
||||
1 a:aa
|
||||
|
||||
# #1283 most-negative amounts are sorted last, so eg largest revenues/liabilities are last:
|
||||
<
|
||||
2020-01-01
|
||||
(revenues:a) -1
|
||||
(revenues:b) -3
|
||||
(revenues:c) -2
|
||||
|
||||
$ hledger -f- bal -N -S
|
||||
-1 revenues:a
|
||||
-2 revenues:c
|
||||
-3 revenues:b
|
||||
|
||||
# This can be worked around by using --invert (sorting happens after sign-flipping):
|
||||
$ hledger -f- bal -N -S --invert
|
||||
3 revenues:b
|
||||
2 revenues:c
|
||||
1 revenues:a
|
||||
|
||||
# Or a sign-flipping command like incomestatement:
|
||||
$ hledger -f- is -N -S
|
||||
Income Statement 2020-01-01
|
||||
|
||||
|| 2020-01-01
|
||||
============++============
|
||||
Revenues ||
|
||||
------------++------------
|
||||
revenues:b || 3
|
||||
revenues:c || 2
|
||||
revenues:a || 1
|
||||
============++============
|
||||
Expenses ||
|
||||
------------++------------
|
||||
|
Loading…
Reference in New Issue
Block a user