mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
examples: tarsnap csv rule fixes
[ci skip]
This commit is contained in:
parent
deeb10d673
commit
93cec2e558
@ -1,4 +1,4 @@
|
|||||||
# tarsnap.com's "Recent activity (all machines)", aka "Recent account activity (verbose)"
|
# hledger CSV conversion rules for tarsnap.com's "Recent activity (all machines)"
|
||||||
#
|
#
|
||||||
# RECTYPE,DATE,MACHINE,TYPE,QUANTITY,AMOUNT,BALANCE
|
# RECTYPE,DATE,MACHINE,TYPE,QUANTITY,AMOUNT,BALANCE
|
||||||
# Balance,2016-12-28,,,,,28.396910846961952530
|
# Balance,2016-12-28,,,,,28.396910846961952530
|
||||||
@ -13,9 +13,10 @@ account1 assets:tarsnap
|
|||||||
|
|
||||||
if ^Balance,
|
if ^Balance,
|
||||||
description %rectype: $%balance
|
description %rectype: $%balance
|
||||||
|
account1 dummy
|
||||||
account2 dummy
|
account2 dummy
|
||||||
amount $0
|
amount $0
|
||||||
## TODO zero amount is always rendered without commodity symbol
|
# TODO zero amount is always rendered without commodity symbol
|
||||||
|
|
||||||
if ^Usage,
|
if ^Usage,
|
||||||
description %machine %type
|
description %machine %type
|
||||||
@ -23,8 +24,8 @@ if ^Usage,
|
|||||||
amount -%quantity bytes @@ $%amount
|
amount -%quantity bytes @@ $%amount
|
||||||
|
|
||||||
# sample output:
|
# sample output:
|
||||||
# $ hledger -f .tarsnap.csv bal -B cur:\\$ -MAT expenses
|
# $ hledger -f tarsnap.csv bal -B cur:\\$ -MAT expenses
|
||||||
# using conversion rules file .tarsnap.csv.rules
|
# using conversion rules file tarsnap.csv.rules
|
||||||
# Balance changes in 2016/12/01-2017/02/28:
|
# Balance changes in 2016/12/01-2017/02/28:
|
||||||
#
|
#
|
||||||
# || 2016/12 2017/01 2017/02 Total Average
|
# || 2016/12 2017/01 2017/02 Total Average
|
||||||
|
Loading…
Reference in New Issue
Block a user