don't import deleted split lines ynab4 (#5226)

* don't import deleted split lines

* Update upcoming-release-notes/5226.md

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>

---------

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
This commit is contained in:
youngcw
2025-06-23 14:28:24 -07:00
committed by GitHub
parent 9478707ebb
commit e3aa63d1fa
2 changed files with 17 additions and 9 deletions

View File

@@ -218,15 +218,17 @@ async function importTransactions(
subtransactions:
transaction.subTransactions &&
transaction.subTransactions.map(t => {
return {
id: entityIdMap.get(t.entityId),
amount: amountToInteger(t.amount),
category: getCategory(t.categoryId),
notes: t.memo || null,
...transferProperties(t),
};
}),
transaction.subTransactions
.filter(st => !st.isTombstone)
.map(t => {
return {
id: entityIdMap.get(t.entityId),
amount: amountToInteger(t.amount),
category: getCategory(t.categoryId),
notes: t.memo || null,
...transferProperties(t),
};
}),
};
return newTransaction;