Skip to content

Commit

Permalink
[Bugfix] Goals: Schedule overbudget condition (actualbudget#1984)
Browse files Browse the repository at this point in the history
* fix overbudget in schedules template

* release note
  • Loading branch information
shall0pass authored Nov 28, 2023
1 parent e48f36c commit c462604
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,5 @@ export async function goalsSchedule(
increment = Math.round(increment);
to_budget += increment;
}
return { to_budget, errors, remainder };
return { to_budget, errors, remainder, scheduleFlag };
}
1 change: 1 addition & 0 deletions packages/loot-core/src/server/budget/goaltemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ async function applyCategoryTemplate(
to_budget = goalsReturn.to_budget;
errors = goalsReturn.errors;
remainder = goalsReturn.remainder;
scheduleFlag = goalsReturn.scheduleFlag;
break;
}
case 'remainder': {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1984.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [shall0pass]
---

Goals: Fix Schedule overbudget condition

0 comments on commit c462604

Please sign in to comment.