Skip to content
Snippets Groups Projects
Unverified Commit 176c8466 authored by kyangk's avatar kyangk Committed by GitHub
Browse files

Ignore transactions with empty date & amount (#2653)

parent 703c319f
No related branches found
No related tags found
No related merge requests found
...@@ -96,13 +96,15 @@ async function parseQIF(filepath: string): Promise<ParseFileResult> { ...@@ -96,13 +96,15 @@ async function parseQIF(filepath: string): Promise<ParseFileResult> {
return { return {
errors: [], errors: [],
transactions: data.transactions.map(trans => ({ transactions: data.transactions
amount: trans.amount != null ? looselyParseAmount(trans.amount) : null, .map(trans => ({
date: trans.date, amount: trans.amount != null ? looselyParseAmount(trans.amount) : null,
payee_name: trans.payee, date: trans.date,
imported_payee: trans.payee, payee_name: trans.payee,
notes: trans.memo || null, imported_payee: trans.payee,
})), notes: trans.memo || null,
}))
.filter(trans => trans.date != null && trans.amount != null),
}; };
} }
......
---
category: Enhancements
authors: [kyangk]
---
Ignore transactions with empty date & amount
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment