Before you start (required)
General checklist
How are you using Sure?
Self hoster checklist
- Self hosted app commit SHA (find in user menu): [91b7905]
- Where are you hosting?
Bug description
The model_price field in the "Add transaction" form for an investment account is limited to a step of 0.01.
However, in real-world financial markets, asset prices (stocks, ETFs, crypto, etc.) can have more precision (commonly 3 or 4 decimal places, sometimes more).
This restriction prevents users from entering accurate transaction prices and may lead to rounding errors or incorrect portfolio tracking.
To Reproduce
- Go to an investment account
- Click on "Add transaction"
- Locate the model_price input field
- Try to enter a value with more than 2 decimal places (e.g. 123.4567)
- Observe that the input is either rounded or blocked due to the step=0.01 constraint
Expected behavior
The model_price field should allow higher precision values.
Possible fixes:
- Remove the step restriction entirely, or
- Increase precision (e.g. step=0.0001)
This would allow users to input realistic market prices without losing accuracy.
Before you start (required)
General checklist
How are you using Sure?
Self hoster checklist
Bug description
The model_price field in the "Add transaction" form for an investment account is limited to a step of 0.01.
However, in real-world financial markets, asset prices (stocks, ETFs, crypto, etc.) can have more precision (commonly 3 or 4 decimal places, sometimes more).
This restriction prevents users from entering accurate transaction prices and may lead to rounding errors or incorrect portfolio tracking.
To Reproduce
Expected behavior
The model_price field should allow higher precision values.
Possible fixes:
This would allow users to input realistic market prices without losing accuracy.