examples: tarsnap csv rule fixes

[ci skip]
This commit is contained in:
Simon Michael 2017-02-10 18:18:17 -08:00
parent deeb10d673
commit 93cec2e558

View File

@ -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