Closed sclel016 closed 2 years ago
Welcome, and thanks for the report! I too would expect it to ignore the two zeroes there. https://github.com/simonmichael/hledger/blob/4b1919de0/hledger-lib/Hledger/Read/CsvReader.hs#L1006:L1027 needs more study.
I'd love to help by submitting a PR but my Haskell knowledge is non-existent. The code in the link looks totally foreign to my object oriented eyes!
Another example: https://www.reddit.com/r/plaintextaccounting/comments/qkvl4z/hledger_csv_rule_for_handling_empty_amounts. It's usually possible to work around but we should handle two zeroes out of the box.
Fixed by @Xitian9. Thanks!
Hi,
I'm a total beginner to
hledger
with a minimal accounting background. The first thing I tried to do was import acsv
dump of my chequing transactions. I followed the tutorial but ran into a slight snag. My bank doesn't charge fees and likes to remind me in my transactions. I have transactionschequing.csv
such as:My
chequing.csv.rules
are pretty simple for now:When I print the transactions, I get an error related to these $0 transactions.
My expectation would be for $0 transaction to either be ignored or parsed like any other transaction. I don't know whether this is an issue in
hledger
or my understanding of accounting principals. Here's my install info1.22.2, linux-x86_64
Arch Linux
Thanks for the great software!