A local-first personal finance app
Goals: Allow up to to consider spent values (#1448)
shall0passfe033d68cf20
diff --git a/packages/loot-core/src/server/budget/goaltemplates.ts b/packages/loot-core/src/server/budget/goaltemplates.tsindex 6ed7cd47c8..06a5ef21df 100644--- a/packages/loot-core/src/server/budget/goaltemplates.ts+++ b/packages/loot-core/src/server/budget/goaltemplates.ts@@ -714,8 +714,8 @@ async function applyCategoryTemplate(if (limit != null) {if (hold && balance > limit) {to_budget = 0;- } else if (to_budget + last_month_balance > limit) {- to_budget = limit - last_month_balance;+ } else if (to_budget + balance > limit) {+ to_budget = limit - balance;}}if (diff --git a/upcoming-release-notes/1448.md b/upcoming-release-notes/1448.mdnew file mode 100644index 0000000000..c3b5229539--- /dev/null+++ b/upcoming-release-notes/1448.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [shall0pass]+---++Goals: Fix 'up to' calculation to include current month spending\ No newline at end of file