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]: Template every works with weeks, but not months or years with "by" #3951

Closed
2 tasks done
Mikhail773 opened this issue Dec 9, 2024 · 8 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@Mikhail773
Copy link

Mikhail773 commented Dec 9, 2024

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?

You can repeat every x week, but not every x months. In the documentation and in practice we can use both of these examples with success.
#template 10 repeat every week starting 2025-01-03
#template 10 repeat every week starting 2025-01-03 up to 80

However, when trying to do the same with months the template errors
#template 500 by 2025-03 repeat every 6 months
#template 500 by 2025-03 repeat every 6 months up to 600
Alternatives given do not satisfy the need.
When trying with months it requires you state "by" , but that may not always be what you want. Say you want to frontload a budget in January to cover Jan-Mar for $600. You wouldn't want $200 each month which is what by would give you. For some reason weeks let's you frontload, but it's not a viable alternative to months since 12 weeks isn't equal to months.

Where are you hosting Actual?

NAS

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge, Desktop App (Electron), Other

Operating System

Linux

@Mikhail773 Mikhail773 added the bug Something isn't working label Dec 9, 2024
@youngcw
Copy link
Member

youngcw commented Dec 9, 2024

Is there a bug here or are you requesting a new kind of template?

@Mikhail773
Copy link
Author

I'm not certain on the intent of the creators. It's strange to me that the syntax fails, but feel free to call it a new template if it works better.

@youngcw
Copy link
Member

youngcw commented Dec 9, 2024

Its not clear to me what you are trying to accomplish. As far as I can tell from your description the templates are working fine, but not doing what you want them to do.

A by template has an implied "up to" by its nature of reaching a certain level over time. So an explicit up to isn't allowed with that type, thus the errors.

@Mikhail773
Copy link
Author

There may have been a communication error on my end.
#template 500 starting 2025-03 repeat every 6 months
It should of been starting not by

@youngcw
Copy link
Member

youngcw commented Dec 9, 2024

Are you saying you want to budget an amount, not every month, but every few months? That example with "500 starting..." isn't an available template.

So
March - 500
Apr - 0
May - 0
...
Aug - 0
Sep - 500
?

Is there a reason you want to budget all at once and not spread it out over all months?

One work around for now, would be to use the copy template and have it copy from 6 months before. You would have to get it started manually, but then after the first few months it can run on its own.

@Mikhail773
Copy link
Author

Mikhail773 commented Dec 9, 2024

That is exactly what I am saying. The use case is slightly niche, but here it goes.
I have an gifts budget that I like to set quarterly. The reason for this is that it allows me to chunk birthdays and holidays easier. But in the holidays I find spending can occur in October, November, or December depending on the sales. So I frontload October so that if I do all my shopping in October or November I am covered.

@youngcw
Copy link
Member

youngcw commented Dec 9, 2024

You maybe could get that to work with a by spend template and have the by be the start of the period instead of the end of the period. So instead of by December, go for by October and then repeat every few months.

The copy template could work too. So: #template copy from 3 months ago, and optionally add in a #template 0 up to 500 or whatever you want to limit the category to.

If you would like to have an extra-monthly template, kinda like how the weeks work, feel free to put in a feature request for one.

Ill close this as its not a bug.

@youngcw youngcw closed this as completed Dec 9, 2024
@Mikhail773
Copy link
Author

Looks like copy works. I think having that syntac working is logical, but given this is experimental to begin with and I have a workaround I won't ask for a feature

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

No branches or pull requests

2 participants