diff --git a/src/app-gocardless/banks/ing-ingbrobu.js b/src/app-gocardless/banks/ing-ingbrobu.js index 102c6820b..6eecbe1ab 100644 --- a/src/app-gocardless/banks/ing-ingbrobu.js +++ b/src/app-gocardless/banks/ing-ingbrobu.js @@ -20,7 +20,10 @@ export default { transaction.transactionId = transaction.internalTransactionId; //Some corner case transactions have a special field called `proprietaryBankTransactionCode`, this need to be copied to `remittanceInformationUnstructured` - if (transaction.proprietaryBankTransactionCode) { + if ( + transaction.proprietaryBankTransactionCode && + !transaction.remittanceInformationUnstructured + ) { transaction.remittanceInformationUnstructured = transaction.proprietaryBankTransactionCode; } @@ -39,7 +42,11 @@ export default { } } else { transaction.transactionId = null; - if (transaction.proprietaryBankTransactionCode) { + + if ( + transaction.proprietaryBankTransactionCode && + !transaction.remittanceInformationUnstructured + ) { transaction.remittanceInformationUnstructured = transaction.proprietaryBankTransactionCode; } diff --git a/upcoming-release-notes/535.md b/upcoming-release-notes/535.md new file mode 100644 index 000000000..95df93430 --- /dev/null +++ b/upcoming-release-notes/535.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [spideraxal] +--- + +Add corner case transaction for ING Bank Romania