[PR #2125] [MERGED] [Goals] Negate schedule amount to budget if income #4135

Closed
opened 2026-02-28 20:52:02 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2125
Author: @mk-french
Created: 12/27/2023
Status: Merged
Merged: 1/3/2024
Merged by: @shall0pass

Base: masterHead: negate-income-schedule-goal


📝 Commits (4)

📊 Changes

3 files changed (+15 additions, -4 deletions)

View changed files

📝 packages/loot-core/src/server/budget/goals/goalsSchedule.ts (+8 -4)
📝 packages/loot-core/src/server/budget/goaltemplates.ts (+1 -0)
upcoming-release-notes/2125.md (+6 -0)

📄 Description

When referencing a schedule in a goal template for an income category, the amount to budget comes in as a negative amount. This PR fixes that by correctly signing the amount to budget if the category is an income category.


🔄 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/2125 **Author:** [@mk-french](https://github.com/mk-french) **Created:** 12/27/2023 **Status:** ✅ Merged **Merged:** 1/3/2024 **Merged by:** [@shall0pass](https://github.com/shall0pass) **Base:** `master` ← **Head:** `negate-income-schedule-goal` --- ### 📝 Commits (4) - [`f575355`](https://github.com/actualbudget/actual/commit/f575355cb6bf65d2e4a35e3095381ef7669f638d) Negate schedule amount to budget if income - [`8c9ad88`](https://github.com/actualbudget/actual/commit/8c9ad882c7a8d1107d78bcc70d69eb080df453e8) Release notes - [`576cf26`](https://github.com/actualbudget/actual/commit/576cf262f55bb6256e12034841243e3895e5d685) Determine sign at initial calc - [`de6ec26`](https://github.com/actualbudget/actual/commit/de6ec267e724980f4663c9061303943934d88aa6) Lint fixes ### 📊 Changes **3 files changed** (+15 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/goals/goalsSchedule.ts` (+8 -4) 📝 `packages/loot-core/src/server/budget/goaltemplates.ts` (+1 -0) ➕ `upcoming-release-notes/2125.md` (+6 -0) </details> ### 📄 Description When referencing a schedule in a goal template for an income category, the amount to budget comes in as a negative amount. This PR fixes that by correctly signing the amount to budget if the category is an income category. --- <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 20:52:02 -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#4135