mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user