Goals: Fix calculated fill when using multiple 'up to' statements in different priority levels (#1312)

This commit is contained in:
shall0pass
2023-07-17 16:36:15 -05:00
committed by GitHub
parent 1031bbbce7
commit a7e7ff61ef
2 changed files with 7 additions and 1 deletions

View File

@@ -352,7 +352,7 @@ async function applyCategoryTemplate(
} else {
increment = limit;
}
if (to_budget + increment < budgetAvailable || !priority) {
if (increment < budgetAvailable || !priority) {
to_budget += increment;
} else {
if (budgetAvailable > 0) to_budget += budgetAvailable;

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [shall0pass]
---
Goals: Fix calculated fill when using multiple 'up to' statements in different priority levels