This introduces some new helper functions which are exactly the same as what we had before, but do not call normaliseMixedAmountSquashPricesForDisplay, so that we can use the new functions for displaying Transaction and Posting. It also goes through and gets rid of most uses of the old showMixed* functions which would benefit from using the new interface.
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
# ALl output should preserve alignment etc. when showing wide characters
|
|
# (in apps and fonts which render wide chars as exactly double width).
|
|
#
|
|
# XXX add commodity symbols and prices to the sample journals
|
|
# XXX how to test hledger-ui ?
|
|
|
|
# 1.
|
|
hledger -f - print
|
|
<<<
|
|
2000-01-01 transaction 1
|
|
㐀 㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
|
|
㐀:㐁 ;㐃㐃-1
|
|
|
|
2000-01-02 transaction 2
|
|
㐀:㐁:㐂 USD 1
|
|
㐀:㐁:㐂:㐃 EUR -1
|
|
|
|
2000-01-03 transaction 3
|
|
㐀:㐁:㐂:㐃:㐄 1
|
|
㐀 -1
|
|
>>>
|
|
2000-01-01 transaction 1
|
|
㐀 㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
|
|
㐀:㐁 ; 㐃㐃-1
|
|
|
|
2000-01-02 transaction 2
|
|
㐀:㐁:㐂 USD 1
|
|
㐀:㐁:㐂:㐃 EUR -1
|
|
|
|
2000-01-03 transaction 3
|
|
㐀:㐁:㐂:㐃:㐄 1
|
|
㐀 -1
|
|
|
|
>>>2
|
|
>>>=0
|
|
|
|
# 2.
|
|
hledger -f chinese.journal register --width 80
|
|
>>>
|
|
2000-01-01 transaction 1 㐀 1 A 1 A
|
|
㐀:㐁 -1 A 0
|
|
2000-01-02 transaction 2 㐀:㐁:㐂 1 A 1 A
|
|
㐀:㐁:㐂:㐃 -1 A 0
|
|
2000-01-03 transaction 3 㐀:㐁:㐂:㐃:㐄 1 A 1 A
|
|
㐀 -1 A 0
|
|
>>>2
|
|
>>>=0
|
|
|
|
# 3.
|
|
hledger -f chinese.journal balance --tree
|
|
>>>
|
|
0 㐀:㐁
|
|
1 A 㐂
|
|
0 㐃
|
|
1 A 㐄
|
|
--------------------
|
|
0
|
|
>>>2
|
|
>>>=0
|
|
|
|
# 4.
|
|
hledger -f chinese.journal balance -Y
|
|
>>>
|
|
Balance changes in 2000:
|
|
|
|
|| 2000
|
|
================++======
|
|
㐀:㐁 || -1 A
|
|
㐀:㐁:㐂 || 1 A
|
|
㐀:㐁:㐂:㐃 || -1 A
|
|
㐀:㐁:㐂:㐃:㐄 || 1 A
|
|
----------------++------
|
|
|| 0
|
|
>>>2
|
|
>>>=0
|
|
|
|
# 5.
|
|
|
|
# 6.
|
|
|
|
# 7.
|
|
|
|
# 8.
|
|
|