Skip to content
Snippets Groups Projects
Unverified Commit 43cd6b63 authored by Henrik Maaland's avatar Henrik Maaland Committed by GitHub
Browse files

Show pending transactions from Nordigen in transactions table (#919)

parent 9ee93f74
No related branches found
No related tags found
No related merge requests found
......@@ -205,13 +205,13 @@ async function downloadNordigenTransactions(
}
const {
transactions: { booked },
transactions: { all },
balances,
startingBalance,
} = res;
return {
transactions: booked,
transactions: all,
accountBalance: balances,
startingBalance,
};
......@@ -364,6 +364,8 @@ async function normalizeNordigenTransactions(transactions, acctId) {
trans.account = acctId;
trans.payee = await resolvePayee(trans, payee_name, payeesToCreate);
trans.cleared = Boolean(trans.booked);
normalized.push({
payee_name,
trans: {
......@@ -376,6 +378,7 @@ async function normalizeNordigenTransactions(transactions, acctId) {
(trans.remittanceInformationUnstructuredArray || []).join(', '),
imported_id: trans.transactionId,
imported_payee: trans.imported_payee,
cleared: trans.cleared,
},
});
}
......@@ -424,8 +427,6 @@ export async function reconcileNordigenTransactions(acctId, transactions) {
[trans.imported_id, acctId],
);
// TODO: Pending transactions
if (match) {
hasMatched.add(match.id);
}
......@@ -571,8 +572,6 @@ export async function reconcileTransactions(acctId, transactions) {
[trans.imported_id, acctId],
);
// TODO: Pending transactions
if (match) {
hasMatched.add(match.id);
}
......
---
category: Enhancements
authors: [henrikmaa]
---
Show pending transactions from Nordigen in transactions table
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment