mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-29 13:22:27 +03:00
39d13d68ef
Fix shell-tests for add-ons that became built-in commands.
69 lines
1.2 KiB
Plaintext
69 lines
1.2 KiB
Plaintext
# Test prices addon
|
|
|
|
# by default only market prices are reported
|
|
hledger prices -f-
|
|
<<<
|
|
P 2016/1/1 EUR $1.06
|
|
P 2016/2/1 EUR $1.05
|
|
|
|
2016/1/1 paycheck
|
|
income:remuneration $-100
|
|
income:donations $-15
|
|
assets:bank
|
|
|
|
2016/1/2 spend
|
|
expenses 20 EUR @ $1.07
|
|
assets:bank
|
|
>>>
|
|
P 2016-01-01 EUR $1.06
|
|
P 2016-02-01 EUR $1.05
|
|
>>>2
|
|
>>>=0
|
|
|
|
# costs from postings can be included also
|
|
hledger prices -f- --costs
|
|
<<<
|
|
P 2016/1/1 EUR $1.06
|
|
P 2016/2/1 EUR $1.05
|
|
|
|
2016/1/1 paycheck
|
|
income:remuneration $-100
|
|
income:donations $-15
|
|
assets:bank
|
|
|
|
2016/1/2 spend
|
|
expenses 20 EUR @ $1.07
|
|
assets:bank
|
|
|
|
2016/1/3 spend
|
|
expenses 20 EUR @@ $21.45
|
|
assets:bank
|
|
>>>
|
|
P 2016-01-01 EUR $1.06
|
|
P 2016-01-02 EUR $1.07
|
|
P 2016-01-03 EUR $1.0725
|
|
P 2016-02-01 EUR $1.05
|
|
>>>2
|
|
>>>=0
|
|
|
|
# inverted costs from postings can be calculated
|
|
hledger prices -f- --inverted-costs
|
|
<<<
|
|
P 2016/1/1 EUR $1.06
|
|
P 2016/2/1 EUR $1.05
|
|
|
|
2016/1/1 paycheck
|
|
income:remuneration $-100
|
|
income:donations $-15
|
|
assets:bank
|
|
|
|
2016/1/3 spend
|
|
expenses $21.45 @@ 20.00 EUR
|
|
assets:bank
|
|
>>>
|
|
P 2016-01-01 EUR $1.06
|
|
P 2016-01-03 EUR $1.0725
|
|
P 2016-02-01 EUR $1.05
|
|
>>>2
|
|
>>>=0
|