Skip to content

Commit c6656a2

Browse files
yzAlvinyoungcw
andauthored
Include category group in transaction export (#6960)
* include category group in transaction export * Apply suggestion from @yzAlvin Co-authored-by: Alvin Zhao <yzalvin@duck.com> --------- Co-authored-by: youngcw <calebyoung94@gmail.com>
1 parent 6358345 commit c6656a2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/loot-core/src/server/transactions/export/export-to-csv.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export async function exportQueryToCSV(query) {
6969
{ IsChild: 'is_child' },
7070
{ SortOrder: 'sort_order' },
7171
{ Notes: 'notes' },
72+
{ CategoryGroup: 'category.group.name' },
7273
{ Category: 'category.name' },
7374
{ Amount: 'amount' },
7475
{ Cleared: 'cleared' },
@@ -110,6 +111,7 @@ export async function exportQueryToCSV(query) {
110111
') ' +
111112
(trans.Notes || '')
112113
: trans.Notes,
114+
Category_Group: trans.CategoryGroup,
113115
Category: trans.Category,
114116
Amount: trans.IsParent
115117
? 0

upcoming-release-notes/6960.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: Enhancements
3+
authors: [yzAlvin]
4+
---
5+
6+
Include category groups on transaction export

0 commit comments

Comments
 (0)