You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If templates are applied while the hide decimal places user setting is enabled, a non-whole number can be budgeted via Apply Templates.
Steps to reproduce:
Setup a test budget
If using an existing category, zero out what is budgeted so it's easier to see.
Enable the hide decimal places option on the settings page
Enable goal templates
Set a template to a category to #template 1517 by 2025-10 (or anything that'll result in the amount per month not to be a whole number)
Apply budget template
Disable the hide decimals setting
Review the category budgeted amount and note it budgeted after the decimal place
Expected result, when hide decimals is enabled, templates only budgets whole numbers. This is a bug because currencies without decimal places can't realistically budget with decimal places and can result in their budgeted values not balancing (visually).
With decimals hidden this looks like:
When re-showing decimals it shows what it actually did:
If someone hides decimals even though they do have a currency with them, this change would have a negligible effect anyway of up to +/- 1 until the last month.
Where are you hosting Actual?
Docker
What browsers are you seeing the problem on?
Firefox
Operating System
Windows 11
The text was updated successfully, but these errors were encountered:
I think that in order to have the math not break things like priorities, there should be a round stage at the end of each processing stage, if this setting is enabled. It shouldn't be overly difficult to add. I do worry that the templates will be off by 1 sometimes, but we would have to test and see.
I think that in order to have the math not break things like priorities, there should be a round stage at the end of each processing stage, if this setting is enabled. It shouldn't be overly difficult to add. I do worry that the templates will be off by 1 sometimes, but we would have to test and see.
Ah yep, I think in most cases it should be fine overall - it would only affect the templates where actual is doing the maths, and would even out over time. It would still result in the correct end balance in the last month right?
I'd imagine it's quite similar to how cents must be rounded for decimal currencies.
Verified issue does not already exist?
What happened?
From Discord: https://discord.com/channels/937901803608096828/1306841659493060628
If templates are applied while the hide decimal places user setting is enabled, a non-whole number can be budgeted via Apply Templates.
Steps to reproduce:
#template 1517 by 2025-10
(or anything that'll result in the amount per month not to be a whole number)Expected result, when hide decimals is enabled, templates only budgets whole numbers. This is a bug because currencies without decimal places can't realistically budget with decimal places and can result in their budgeted values not balancing (visually).
With decimals hidden this looks like:
When re-showing decimals it shows what it actually did:
If someone hides decimals even though they do have a currency with them, this change would have a negligible effect anyway of up to +/- 1 until the last month.
Where are you hosting Actual?
Docker
What browsers are you seeing the problem on?
Firefox
Operating System
Windows 11
The text was updated successfully, but these errors were encountered: