mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 01:58:40 -05:00
* fix(#2495): fixed gocardless import ID
* chore: added release note
* chore: updated release note
* refactor: made condition more clear
* Revert "refactor: made condition more clear"
This reverts commit ec16c99041.
* fix: added edge case
This commit is contained in:
@@ -351,6 +351,12 @@ async function normalizeBankSyncTransactions(transactions, acctId) {
|
||||
|
||||
trans.cleared = Boolean(trans.booked);
|
||||
|
||||
let imported_id = trans.transactionId;
|
||||
|
||||
if (trans.cleared && !trans.transactionId && trans.internalTransactionId) {
|
||||
imported_id = `${trans.account}-${trans.internalTransactionId}`;
|
||||
}
|
||||
|
||||
const notes =
|
||||
trans.remittanceInformationUnstructured ||
|
||||
(trans.remittanceInformationUnstructuredArray || []).join(', ');
|
||||
@@ -364,7 +370,7 @@ async function normalizeBankSyncTransactions(transactions, acctId) {
|
||||
date: trans.date,
|
||||
notes: notes.trim().replace('#', '##'),
|
||||
category: trans.category ?? null,
|
||||
imported_id: trans.transactionId,
|
||||
imported_id,
|
||||
imported_payee: trans.imported_payee,
|
||||
cleared: trans.cleared,
|
||||
},
|
||||
|
||||
6
upcoming-release-notes/4241.md
Normal file
6
upcoming-release-notes/4241.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [NullScope]
|
||||
---
|
||||
|
||||
Fix GoCardless transaction ID to fallback to it's own generated ID on sync
|
||||
Reference in New Issue
Block a user