[PR #2535] [MERGED] Goals: Up To Template calculation with negative category balance #53657

Closed
opened 2026-04-30 22:29:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2535
Author: @shall0pass
Created: 3/31/2024
Status: Merged
Merged: 4/2/2024
Merged by: @shall0pass

Base: masterHead: goals_upto


📝 Commits (3)

📊 Changes

3 files changed (+9 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/budget/goals/goalsSimple.ts (+2 -1)
📝 packages/loot-core/src/server/budget/goaltemplates.ts (+1 -0)
upcoming-release-notes/2535.md (+6 -0)

📄 Description

If using a template such as #template up to 1000, the budgeted amount would not reach 1000 if a negative balance was rolled over from the previous month. This change allows for rolling over a negative balance from a previous month.

I've tested 3 scenarios:
Category balance of -500. Budgeted amount is 1500.
Category balance of 0. Budgeted amount is 1000.
Category balance of 500. Budgeted amount is 500.

All scenarios result in a final category balance of 1000, which I believe is the expected behavior of 'up to'.

Discord report: https://discord.com/channels/937901803608096828/1223925566583865354/1223925566583865354


🔄 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/2535 **Author:** [@shall0pass](https://github.com/shall0pass) **Created:** 3/31/2024 **Status:** ✅ Merged **Merged:** 4/2/2024 **Merged by:** [@shall0pass](https://github.com/shall0pass) **Base:** `master` ← **Head:** `goals_upto` --- ### 📝 Commits (3) - [`2b07083`](https://github.com/actualbudget/actual/commit/2b070837349ed54f35445c7a7783eb1657fbe053) 'up to' calculation - [`66b3903`](https://github.com/actualbudget/actual/commit/66b3903befccedb4943c7b6c8561e22ec208d44f) note - [`8c9b49c`](https://github.com/actualbudget/actual/commit/8c9b49cb88c4f62f41b698962a6093660d89d03e) update to last months balance ### 📊 Changes **3 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/goals/goalsSimple.ts` (+2 -1) 📝 `packages/loot-core/src/server/budget/goaltemplates.ts` (+1 -0) ➕ `upcoming-release-notes/2535.md` (+6 -0) </details> ### 📄 Description If using a template such as #template up to 1000, the budgeted amount would not reach 1000 if a negative balance was rolled over from the previous month. This change allows for rolling over a negative balance from a previous month. I've tested 3 scenarios: Category balance of -500. Budgeted amount is 1500. Category balance of 0. Budgeted amount is 1000. Category balance of 500. Budgeted amount is 500. All scenarios result in a final category balance of 1000, which I believe is the expected behavior of 'up to'. Discord report: https://discord.com/channels/937901803608096828/1223925566583865354/1223925566583865354 --- <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-04-30 22:29:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#53657