Skip to content

Commit

Permalink
[Bugfix]: Goals - Fixed an overbudgeting condition (#1738)
Browse files Browse the repository at this point in the history
* fix

* release note
  • Loading branch information
shall0pass authored Sep 26, 2023
1 parent 5f347bb commit 05f0df4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/loot-core/src/server/budget/goaltemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ async function processTemplate(month, force, category_templates) {
);
if (to_budget != null) {
num_applied++;
if (to_budget > available_remaining && priority > 0) {
to_budget = available_remaining;
}
templateBudget.push({
category: category.id,
amount: to_budget + prev_budgeted,
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1738.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [shall0pass]
---

Goals - Fixed an overbudgeting condition

0 comments on commit 05f0df4

Please sign in to comment.