From 97a4296d7ca51f2369c1f59df07dbd150b79d1bf Mon Sep 17 00:00:00 2001 From: rjwonder Date: Tue, 9 Jan 2024 09:53:15 +0100 Subject: [PATCH] Update sync.ts with additionalInformation as fallback (#2176) --- packages/loot-core/src/server/accounts/sync.ts | 6 ++++-- upcoming-release-notes/2176.md | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/2176.md diff --git a/packages/loot-core/src/server/accounts/sync.ts b/packages/loot-core/src/server/accounts/sync.ts index ac93d5d52eb..99d457d36ad 100644 --- a/packages/loot-core/src/server/accounts/sync.ts +++ b/packages/loot-core/src/server/accounts/sync.ts @@ -312,7 +312,8 @@ async function normalizeGoCardlessTransactions(transactions, acctId) { title( trans.debtorName || trans.remittanceInformationUnstructured || - (trans.remittanceInformationUnstructuredArray || []).join(', '), + (trans.remittanceInformationUnstructuredArray || []).join(', ') || + trans.additionalInformation, ), ); if (trans.debtorAccount && trans.debtorAccount.iban) { @@ -331,7 +332,8 @@ async function normalizeGoCardlessTransactions(transactions, acctId) { title( trans.creditorName || trans.remittanceInformationUnstructured || - (trans.remittanceInformationUnstructuredArray || []).join(', '), + (trans.remittanceInformationUnstructuredArray || []).join(', ') || + trans.additionalInformation, ), ); if (trans.creditorAccount && trans.creditorAccount.iban) { diff --git a/upcoming-release-notes/2176.md b/upcoming-release-notes/2176.md new file mode 100644 index 00000000000..78f25d4c87a --- /dev/null +++ b/upcoming-release-notes/2176.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [rjwonder] +--- + +Update sync.ts with additionalInformation as last resort fallback to prevent Payee being empty