[PR #3817] [MERGED] [Goals] fix how goal values are calculated #5073

Closed
opened 2026-02-28 21:05:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3817
Author: @youngcw
Created: 11/10/2024
Status: Merged
Merged: 11/11/2024
Merged by: @youngcw

Base: masterHead: youngcw/fix-template-goals


📝 Commits (3)

📊 Changes

3 files changed (+19 additions, -14 deletions)

View changed files

📝 packages/loot-core/src/server/budget/categoryTemplate.ts (+13 -10)
📝 packages/loot-core/src/server/budget/goaltemplates.ts (+0 -4)
upcoming-release-notes/3817.md (+6 -0)

📄 Description

I had messed up how the template goal values were calculated in the recent rewrite.

I had to change the following:

  1. add a variable to track what the full template amount is compared to the amount that will be budgeted.
  2. Remove the breaks on negative available. That stopped the templates running early and calculating the full goal as was requested by the templates. I was trying to be efficient, but all the processing is needed and I should have realized that.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/3817 **Author:** [@youngcw](https://github.com/youngcw) **Created:** 11/10/2024 **Status:** ✅ Merged **Merged:** 11/11/2024 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `youngcw/fix-template-goals` --- ### 📝 Commits (3) - [`e2cf718`](https://github.com/actualbudget/actual/commit/e2cf718194819fe28b1fbcadf06576e8ee286fca) fix how goals are calculated - [`4eec410`](https://github.com/actualbudget/actual/commit/4eec410403fc334c8871514fe264cdce9309fe80) lint, note - [`3e3d85d`](https://github.com/actualbudget/actual/commit/3e3d85d5b9bea0a7d466298769a665f1bfb42cf7) note ### 📊 Changes **3 files changed** (+19 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/categoryTemplate.ts` (+13 -10) 📝 `packages/loot-core/src/server/budget/goaltemplates.ts` (+0 -4) ➕ `upcoming-release-notes/3817.md` (+6 -0) </details> ### 📄 Description I had messed up how the template goal values were calculated in the recent rewrite. I had to change the following: 1. add a variable to track what the full template amount is compared to the amount that will be budgeted. 2. Remove the breaks on negative available. That stopped the templates running early and calculating the full goal as was requested by the templates. I was trying to be efficient, but all the processing is needed and I should have realized that. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:05:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5073