Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Budget goal "#template up to" does not always remove extra funds #3971

Closed
2 tasks done
Arnoud-B opened this issue Dec 12, 2024 · 4 comments
Closed
2 tasks done
Labels
bug Something isn't working goal templates Related to the experimental goal templates feature

Comments

@Arnoud-B
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

When applying a budget template #template up to 0, it does not always remove extra funds.

In the sample budget, it removes the money spent in December, but not in November.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox, Safari

Operating System

Mac OSX

@Arnoud-B Arnoud-B added the bug Something isn't working label Dec 12, 2024
@youngcw youngcw added the goal templates Related to the experimental goal templates feature label Dec 14, 2024
@youngcw
Copy link
Member

youngcw commented Dec 14, 2024

I looked into this. Its essentially the same thing as the other issue. An up to template doesn't consider spending when setting the budget value.

So what you are seeing in that example budget is that in November the rollover from the previous month was 0, so when you run "up to 0" its already at zero since leftover(0)+budgeted(0)=0 so the template is met. The "spend" then comes after getting the balance to 50.

For December its removing 50, not from December, but the leftover from November. So its seeing leftover(50)+budgeted(-50)=0. Then after that there is the $50 "spend" that leaves the balance at 50 even after the -50 budgeted amount.

If you run the template for January, it removes the last 50 and the balance is at 0 again.

@youngcw youngcw closed this as completed Dec 14, 2024
@Arnoud-B
Copy link
Author

I'm finding it hard to follow the new logic. The current behavior seems to differ from the documentation:

#template up to 150 | Budget up to 150 each month, and remove extra funds over 150

The documentation refers to "extra funds", which seems to correspond to the category balance in the app (as there is no impact on "Available Funds"). When applying the template to a specific month, I'd expect it to adjust that month's category balance to 0 (like in the example where the category balance reaches 50). The goal is to immediately allocate available money to envelopes. Leaving category balances unused until next month doesn't seem to align with zero-based budgeting principles.

Could you clarify the reasoning behind this change?

@youngcw
Copy link
Member

youngcw commented Dec 14, 2024

Like I mentioned in the other ticket, the templates should always attempt the same thing no matter when they are run in the month. In other words, the templates act as if they are run on the first of the month when there aren't any transactions. So the only balance available at the start of the month is what was carried over from the previous month.

The intended workflow for templates is that they get run at or near the first of the month to set up the budget initially, and for future months. Then after the initial month start further changes are manual as the month goes along.

The other flow that works is if someone is paycheck to paycheck they can use priorities to continuously fill in their categories in the current month as money is available.

You may be more interested in the cleanup templates if you want to be removing funds through the month. I could see those being extended to be more flexible as well, but they don't come up very often.

@Arnoud-B
Copy link
Author

I've been experimenting a bit with the cleanup templates (this was new to me), and they may be able to do the job together with the assumption to start each month fresh. It's a different approach, but it makes sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working goal templates Related to the experimental goal templates feature
Projects
None yet
Development

No branches or pull requests

2 participants