feat: added account balance in statement
This commit is contained in:
@@ -13,6 +13,8 @@ async function getLastTen(accountNumber) {
|
|||||||
date: tx.stTransactionDate,
|
date: tx.stTransactionDate,
|
||||||
amount: tx.stTransactionAmount.slice(0, -3),
|
amount: tx.stTransactionAmount.slice(0, -3),
|
||||||
type: tx.stTransactionAmount.slice(-2),
|
type: tx.stTransactionAmount.slice(-2),
|
||||||
|
balance: tx.stAccountBalance.slice(0, -3),
|
||||||
|
balanceType: tx.stAccountBalance.slice(-2),
|
||||||
}));
|
}));
|
||||||
return processedTransactions;
|
return processedTransactions;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -36,6 +38,8 @@ async function getFiltered(accountNumber, fromDate, toDate) {
|
|||||||
date: tx.stTransactionDate,
|
date: tx.stTransactionDate,
|
||||||
amount: tx.stTransactionAmount.slice(0, -3),
|
amount: tx.stTransactionAmount.slice(0, -3),
|
||||||
type: tx.stTransactionAmount.slice(-2),
|
type: tx.stTransactionAmount.slice(-2),
|
||||||
|
balance: tx.stAccountBalance.slice(0, -3),
|
||||||
|
balanceType: tx.stAccountBalance.slice(-2),
|
||||||
}));
|
}));
|
||||||
return processedTransactions;
|
return processedTransactions;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Reference in New Issue
Block a user