hledger/tests/convert.test
2011-08-14 22:15:39 +00:00

11 lines
452 B
Plaintext

# Conversion from CSV to Ledger
rm -rf input.rules; printf 'base-account Assets:MyAccount\ndate-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\n' > input.rules ; printf '10/2009/09,Flubber Co,50' > input.csv$$ ; bin/hledger convert input.csv$$ ; rm -rf input.rules *$$
>>>
2009/09/10 Flubber Co
income:unknown $-50
Assets:MyAccount $50
>>>2
using conversion rules file input.rules
>>>=0