into-ledger icon indicating copy to clipboard operation
into-ledger copied to clipboard

Unable to parse negative amount in parenthesis (999)

Open yhager opened this issue 7 years ago • 0 comments

When an amount is given in parenthesis to denote negative value (refund), it can't be parsed

$ into-ledger -a test -j ledger.dat -d '01/02/2006' -csv negative.csv 

ERROR           : Unable to parse transaction from the selected columns in CSV.
Selected CSV    : 01/02/2016, (999.99), refund
Parsed Date     : 2016-01-02 00:00:00 +0000 UTC
Parsed Desc     : refund
Parsed Currency : 0
2017/04/08 19:28:40 Please ensure that the above CSV contains ALL the 3 required fields.

When the negative amount is given with a dollar sign e.g. ($999.99), it also cannot be parsed - this is related to issue #11 as well.

yhager avatar Apr 09 '17 02:04 yhager