Open Teprifer opened 1 week ago
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