Skip to content

Commit 6a9cf8c

Browse files
authored
fix: unset envelope for subtransaction in YNAB 4 import if not defined (#469)
1 parent 8723e8f commit 6a9cf8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/importer/parser/ynab4/parse.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ func parseTransactions(resources *types.ParsedResources, transactions []Transact
318318
if mapping, ok := envelopeIDNames[sub.CategoryID]; ok {
319319
newTransaction.Envelope = mapping.Envelope
320320
newTransaction.Category = mapping.Category
321+
} else {
322+
newTransaction.Envelope = ""
323+
newTransaction.Category = ""
321324
}
322325

323326
if sub.Amount.IsPositive() {

0 commit comments

Comments
 (0)