mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
Add fallback value for payeename: 'undefined' - CBC Bank (#4384)
* Add fallback value for payename: 'undefined' * docs: add release note * Add fallback value for payename: 'undefined' (for negative amounts)
This commit is contained in:
@@ -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);
|
||||
|
||||
6
upcoming-release-notes/4384.md
Normal file
6
upcoming-release-notes/4384.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user