mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Bug: Cleanup script (#1084)
This commit is contained in:
@@ -82,11 +82,9 @@ async function processCleanup(month) {
|
||||
`budget-${sinkCategory[c].cat.id}`,
|
||||
);
|
||||
let categoryId = sinkCategory[c].cat.id;
|
||||
let weight = sinkCategory[c].temp.filter(w => w.type === 'sink')[0].weight;
|
||||
let to_budget =
|
||||
budgeted +
|
||||
Math.round(
|
||||
(sinkCategory[c].temp[0].weight / total_weight) * budgetAvailable,
|
||||
);
|
||||
budgeted + Math.round((weight / total_weight) * budgetAvailable);
|
||||
if (c === sinkCategory.length - 1) {
|
||||
let currentBudgetAvailable = await getSheetValue(sheetName, `to-budget`);
|
||||
if (to_budget > currentBudgetAvailable) {
|
||||
|
||||
6
upcoming-release-notes/1084.md
Normal file
6
upcoming-release-notes/1084.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [shall0pass]
|
||||
---
|
||||
|
||||
Fix error if sink/source were defined in same category.
|
||||
Reference in New Issue
Block a user