From fabb1181188375e86459b387a5c494672e33b68b Mon Sep 17 00:00:00 2001 From: Leo Kewitz Date: Mon, 9 Dec 2024 16:04:29 +0100 Subject: [PATCH] feat: add expense reference and transfer reference exported fields --- src/server/controllers/account-transactions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/controllers/account-transactions.ts b/src/server/controllers/account-transactions.ts index ab574b2d..eb9874fd 100644 --- a/src/server/controllers/account-transactions.ts +++ b/src/server/controllers/account-transactions.ts @@ -129,6 +129,8 @@ export const transactionsFragment = gqlV2` type tags createdAt + reference + transferReference amount: amountV2 { value currency @@ -370,6 +372,8 @@ const csvMapping = { ?.map((a) => a.slug) .join(' '), expensePaidByHandle: (t) => get(t, 'expense.paidBy.slug'), + expenseReference: (t) => get(t, 'expense.reference'), + expenseTransferReference: (t) => get(t, 'expense.transferReference'), }; const allKinds = [