Skip to content

Commit

Permalink
Merge branch 'master' into remove-deprecated-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis authored Feb 16, 2025
2 parents 8fede6a + 04f8140 commit c24c5e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/sync-server/src/app-gocardless/banks/cbc_cregbebb.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ export default {

if (Number(transaction.transactionAmount.amount) > 0) {
editedTrans.payeeName =
transaction.debtorName || transaction.remittanceInformationUnstructured;
transaction.debtorName ||
transaction.remittanceInformationUnstructured ||
'undefined';
} else {
editedTrans.payeeName =
transaction.creditorName ||
extractPayeeNameFromRemittanceInfo(
transaction.remittanceInformationUnstructured,
['Paiement', 'Domiciliation', 'Transfert', 'Ordre permanent'],
);
) ||
'undefined';
}

return Fallback.normalizeTransaction(transaction, booked, editedTrans);
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/4384.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MMichotte]
---

Provides a default fallback payeename value ('undefined') for the CBC bank in case the payeename is missing.

0 comments on commit c24c5e4

Please sign in to comment.