@@ -274,6 +270,7 @@ const {
displayTotalBalance,
displayOpeningBalance,
displayClosingBalance,
+ getDisplayTransactionType,
getDisplayDateTime,
getDisplayTimezone,
getDisplaySourceAmount,
@@ -353,6 +350,20 @@ function getTablePageOptions(linesCount?: number): ReconciliationStatementDialog
return pageOptions;
}
+function getTransactionTypeColor(transaction: TransactionReconciliationStatementResponseItem): string | undefined {
+ if (transaction.type === TransactionType.ModifyBalance) {
+ return 'secondary';
+ } else if (transaction.type === TransactionType.Income) {
+ return undefined;
+ } else if (transaction.type === TransactionType.Expense) {
+ return undefined;
+ } else if (transaction.type === TransactionType.Transfer) {
+ return 'primary';
+ } else {
+ return 'default';
+ }
+}
+
function open(options: { accountId: string, startTime: number, endTime: number }): Promise {
accountId.value = options.accountId;
startTime.value = options.startTime;