Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/commands/manage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export async function unclassifiedAction(
businessName: tx.businessName,
category: tx.expense,
source: tx.source,
...(tx.accountNumberPiiValue ? { accountNumber: tx.accountNumberPiiValue } : {}),
})),
);
return;
Expand Down
4 changes: 3 additions & 1 deletion src/commands/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export async function transactionsAction(
businessName: tx.businessName,
category: tx.expense,
source: tx.source,
...(tx.accountNumberPiiValue ? { accountNumber: tx.accountNumberPiiValue } : {}),
isIncome: tx.isIncome,
...(tx.customerComment ? { comment: tx.customerComment } : {}),
})),
Expand All @@ -97,7 +98,7 @@ export async function transactionsAction(

// Table output.
const table = createTable({
head: ["Date", "Amount", "Merchant", "Category", "Source"],
head: ["Date", "Amount", "Merchant", "Category", "Source", "Account"],
});

for (const tx of transactions) {
Expand All @@ -109,6 +110,7 @@ export async function transactionsAction(
tx.businessName,
tx.expense,
tx.source,
tx.accountNumberPiiValue ?? "",
]);
}

Expand Down