mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
ISYBANK_ITBBITMM should prefer valueDate over bookingDate (#510)
* prefer valueDate for isybank-itbbitmm * note * fix
This commit is contained in:
@@ -14,6 +14,7 @@ import IngIngbrobu from './banks/ing-ingbrobu.js';
|
||||
import IngIngddeff from './banks/ing-ingddeff.js';
|
||||
import IngPlIngbplpw from './banks/ing-pl-ingbplpw.js';
|
||||
import IntegrationBank from './banks/integration-bank.js';
|
||||
import IsyBankItbbitmm from './banks/isybank-itbbitmm.js';
|
||||
import KBCkredbebb from './banks/kbc_kredbebb.js';
|
||||
import MbankRetailBrexplpw from './banks/mbank-retail-brexplpw.js';
|
||||
import NationwideNaiaGB21 from './banks/nationwide-naiagb21.js';
|
||||
@@ -46,6 +47,7 @@ export const banks = [
|
||||
IngIngbrobu,
|
||||
IngIngddeff,
|
||||
IngPlIngbplpw,
|
||||
IsyBankItbbitmm,
|
||||
KBCkredbebb,
|
||||
MbankRetailBrexplpw,
|
||||
NationwideNaiaGB21,
|
||||
|
||||
16
src/app-gocardless/banks/isybank-itbbitmm.js
Normal file
16
src/app-gocardless/banks/isybank-itbbitmm.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import Fallback from './integration-bank.js';
|
||||
|
||||
/** @type {import('./bank.interface.js').IBank} */
|
||||
export default {
|
||||
...Fallback,
|
||||
|
||||
institutionIds: ['ISYBANK_ITBBITMM'],
|
||||
|
||||
// It has been reported that valueDate is more accurate than booking date
|
||||
// when it is provided
|
||||
normalizeTransaction(transaction, booked) {
|
||||
transaction.bookingDate = transaction.valueDate ?? transaction.bookingDate;
|
||||
|
||||
return Fallback.normalizeTransaction(transaction, booked);
|
||||
},
|
||||
};
|
||||
6
upcoming-release-notes/510.md
Normal file
6
upcoming-release-notes/510.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
GoCardless: `ISYBANK_ITBBITMM` should prefer valueDate over bookingDate
|
||||
Reference in New Issue
Block a user