概要
wsl(wsl2じゃない)でledgerやってみた。
サンプルデータ使ってみた。
参考にしたページ。
実行結果
$ ledger -f root.txt balance
379,902 JPY Assets
99,855 JPY Banks:Okane
280,047 JPY Wire:Salary
-113,878 JPY Equity:Opening Balances
64,446 JPY Expenses
5,000 JPY Cash
6,578 JPY Fun:Game
2,915 JPY Grocery
39,953 JPY Tax
27,000 JPY Income
4,391 JPY Social Security
8,562 JPY Wellfare
10,000 JPY Travel
-330,000 JPY Income
-10,000 JPY Baito
-310,000 JPY Salary
-300,000 JPY Base
-10,000 JPY Overtime
-10,000 JPY Work:Commute
-470 JPY Liabilities:Card:Yellow
--------------------
0
$ ledger -f root.txt register
22-Dec-01 初期残高 Assets:Banks:Okane 120,000 JPY 120,000 JPY
Equity:Opening Balances -120,000 JPY 0
22-Dec-01 渋谷ATM Assets:Banks:Okane -5,000 JPY -5,000 JPY
Expenses:Cash 5,000 JPY 0
22-Dec-03 コンビニ Assets:Banks:Okane -145 JPY -145 JPY
Expenses:Grocery 145 JPY 0
22-Dec-05 丸の内支店 Assets:Banks:Okane 10,000 JPY 10,000 JPY
Income:Baito -10,000 JPY 0
22-Dec-10 yellowカード支払い Assets:Banks:Okane -25,000 JPY -25,000 JPY
Liabilities:Wire:Yellow 25,000 JPY 0
22-Nov-01 初期残高 Liabilities:Card:Yellow -6,122 JPY -6,122 JPY
Equity:Opening Balances 6,122 JPY 0
22-Nov-02 とあるスーパー Liabilities:Card:Yellow -2,300 JPY -2,300 JPY
Expenses:Grocery 2,300 JPY 0
22-Nov-02 ゲームショップ Liabilities:Card:Yellow -6,578 JPY -6,578 JPY
Expenses:Fun:Game 6,578 JPY 0
22-Nov-03 新幹線のチケット Liabilities:Card:Yellow -10,000 JPY -10,000 JPY
Expenses:Travel 10,000 JPY 0
22-Nov-15 支払額決定 Liabilities:Card:Yellow 25,000 JPY 25,000 JPY
Liabilities:Wire:Yellow -25,000 JPY 0
22-Nov-20 コンビニ Liabilities:Card:Yellow -135 JPY -135 JPY
Expenses:Grocery 135 JPY 0
22-Nov-30 コンビニ Liabilities:Card:Yellow -200 JPY -200 JPY
Expenses:Grocery 200 JPY 0
22-Dec-05 コンビニ Liabilities:Card:Yellow -135 JPY -135 JPY
Expenses:Grocery 135 JPY 0
22-Nov-25 給与 Income:Salary:Base -300,000 JPY -300,000 JPY
Income:Salary:Overtime -10,000 JPY -310,000 JPY
Income:Work:Commute -10,000 JPY -320,000 JPY
Expenses:Tax:Social Security 2,891 JPY -317,109 JPY
Expenses:Tax:Wellfare 8,562 JPY -308,547 JPY
Expenses:Tax:Social Security 1,500 JPY -307,047 JPY
Expenses:Tax:Income 17,000 JPY -290,047 JPY
Expenses:Tax:Income 10,000 JPY -280,047 JPY
Assets:Wire:Salary 280,047 JPY 0
[2]+ Stopped ledger -f root.txt register
以上。