cjhowald / ynab-csv

Tool for making your CSV files ready to import into YNAB
MIT License
2 stars 0 forks source link

More robust string > decimal conversion for amounts #16

Open ohthehugemanatee opened 7 years ago

ohthehugemanatee commented 7 years ago

Different banks use different formatting for amounts, particularly in the "outflow" column. For example, I've seen outflow values like these:

It comes down to the fact that banks seem to treat these values as strings, and we have to convert them to decimal values. Right now it seems like we have a pretty naive conversion process. I think we can make it more robust: