From cde81da72c214ee5b068fa487e5a715e5f2dbffb Mon Sep 17 00:00:00 2001 From: youngcw Date: Sat, 21 Dec 2024 19:49:29 -0700 Subject: [PATCH] [Goals]: Fix applying templates in tracking budget (#4010) * fix logic * note --- packages/loot-core/src/server/budget/goaltemplates.ts | 2 +- upcoming-release-notes/4010.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/4010.md diff --git a/packages/loot-core/src/server/budget/goaltemplates.ts b/packages/loot-core/src/server/budget/goaltemplates.ts index f10cd35fa80..9e4ba9e9251 100644 --- a/packages/loot-core/src/server/budget/goaltemplates.ts +++ b/packages/loot-core/src/server/budget/goaltemplates.ts @@ -130,7 +130,7 @@ async function processTemplate( const isReflect = isReflectBudget(); const categoriesLong = await getCategories(); categoriesLong.forEach(c => { - if (!isReflect && !c.is_income) { + if (isReflect || !c.is_income) { categories.push(c); } }); diff --git a/upcoming-release-notes/4010.md b/upcoming-release-notes/4010.md new file mode 100644 index 00000000000..a4809b9b956 --- /dev/null +++ b/upcoming-release-notes/4010.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [youngcw] +--- + +Fix goal templates not applying in tracking budget