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