mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
@@ -284,7 +284,7 @@ async function processCleanup(month: string): Promise<Notification> {
|
||||
}
|
||||
|
||||
const budgetAvailable = await getSheetValue(sheetName, `to-budget`);
|
||||
if (budgetAvailable <= 0) {
|
||||
if (budgetAvailable < 0) {
|
||||
warnings.push('Global: No funds are available to reallocate.');
|
||||
}
|
||||
|
||||
@@ -351,6 +351,11 @@ async function processCleanup(month: string): Promise<Notification> {
|
||||
message: 'Global: Funds not available:',
|
||||
pre: warnings.join('\n\n'),
|
||||
};
|
||||
} else if (budgetAvailable === 0) {
|
||||
return {
|
||||
type: 'message',
|
||||
message: 'All categories were up to date.',
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
type: 'message',
|
||||
|
||||
6
upcoming-release-notes/4468.md
Normal file
6
upcoming-release-notes/4468.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [youngcw]
|
||||
---
|
||||
|
||||
Remove warning on cleanup templates if budget is already "clean"
|
||||
Reference in New Issue
Block a user