reubano/csv2ofx

Documentation: How do I get <LEDGERBAL> in ofx file?

SebastiaanSchmit23 opened this issue · 2 comments

If i want a LEDGERBAL in my footer how would I get this? In CLI we can do a test file csv2ofx -m capitalone capitalone.csv cap.ofx . In the code I can see that some split is needed, so I assumed -S as it would be in the documentation listed on github but it is not present when doing csv2ofx -h .

The mapping file needs a balance entry

mapping = {
"has_header": True,
"is_split": False,
"bank": "Bank Name",
"currency": "USD",
"delimiter": ",",
"account": itemgetter("Field"),
"account_id": itemgetter("Field"),
"date": itemgetter("Field"),
"type": itemgetter("Field"),
"amount": itemgetter("Field"),
"balance": itemgetter("Field"),
"desc": itemgetter("Field"),
"payee": itemgetter("Field"),
"notes": itemgetter("Field"),
"class": itemgetter("Field"),
"id": itemgetter("Field"),
"check_num": itemgetter("Field"),
}

The capitalone mapping is missing this.

Feel to submit a PR updating the mapping