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>
This commit is contained in:
Alvin Zhao
2026-02-15 03:31:27 +11:00
committed by GitHub
parent 6358345286
commit c6656a2815
2 changed files with 8 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ export async function exportQueryToCSV(query) {
{ IsChild: 'is_child' },
{ SortOrder: 'sort_order' },
{ Notes: 'notes' },
{ CategoryGroup: 'category.group.name' },
{ Category: 'category.name' },
{ Amount: 'amount' },
{ Cleared: 'cleared' },
@@ -110,6 +111,7 @@ export async function exportQueryToCSV(query) {
') ' +
(trans.Notes || '')
: trans.Notes,
Category_Group: trans.CategoryGroup,
Category: trans.Category,
Amount: trans.IsParent
? 0

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [yzAlvin]
---
Include category groups on transaction export