Update to be compliant with file & with_file.

This commit is contained in:
thdox 2015-02-21 19:11:36 +01:00
parent e0f7b637cf
commit 557ef398e6

View file

@ -4645,21 +4645,23 @@ and @option{--rich-data} which stores additional metadata as tags.
Using the two first lines of the above csv file,
@smallexample @c input:DD85579
@smallexample @c file:B2EA7E8
,date,payee,note,amount,,,code,
767718,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-8.80,,00001640.04,,
767406,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-1.03,,00001648.84,,
@end smallexample
and launching the below command,
@smallexample @c command:DD85579
@smallexample @c command:B2EA7E8,with_file:download.csv
$ ledger convert download.csv --input-date-format "%m/%d/%Y" \
--invert --account Assets:MyBank --rich-data
--invert --account Assets:MyBank --rich-data \
--file sample.dat --now=2012/01/13 \
@end smallexample
you will get the result:
@smallexample @c result:DD85579
@smallexample @c output:B2EA7E8
2011/12/13 * Withdrawal ;ACE HARDWARE 16335 S HOUGHTON RD
; CSV: 767718,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-8.80,,00001640.04,,
; Imported: 2012/01/13